@arcgis/map-components 5.1.0-next.12 → 5.1.0-next.14
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/{7JQZBAFA.js → 255MJSL7.js} +1 -1
- package/dist/cdn/{BUE7MOVD.js → 2632C726.js} +1 -1
- package/dist/cdn/{EGN3YTD6.js → 2ID4LW4Y.js} +1 -1
- package/dist/cdn/{YFUI4F5L.js → 2LRWWFCA.js} +1 -1
- package/dist/cdn/2XOP6ODR.js +2 -0
- package/dist/cdn/{NRBM3YR6.js → 2XULQGZU.js} +1 -1
- package/dist/cdn/{KY2UAUNI.js → 2YBN6D3R.js} +1 -1
- package/dist/cdn/{UM2FDZJJ.js → 36FHKW25.js} +1 -1
- package/dist/cdn/{KYOYYCFY.js → 3IBLMFG2.js} +1 -1
- package/dist/cdn/{GKW3DDEQ.js → 3KOO4QMQ.js} +1 -1
- package/dist/cdn/{64OEHFBZ.js → 3O62Y4XU.js} +1 -1
- package/dist/cdn/{U4QW6VHU.js → 4723UCGJ.js} +1 -1
- package/dist/cdn/{JFDN4YD7.js → 4E76WGF2.js} +1 -1
- package/dist/cdn/{FYTMMPPG.js → 4GMSBMTS.js} +1 -1
- package/dist/cdn/{KAXJKSFB.js → 4JLBYQRJ.js} +1 -1
- package/dist/cdn/4S2ZIUO2.js +2 -0
- package/dist/cdn/{ZURN5EZI.js → 4WDHTN24.js} +1 -1
- package/dist/cdn/{DTVW3MYT.js → 4X3QNLL2.js} +1 -1
- package/dist/cdn/{EENOVGOS.js → 5H2OW6X5.js} +1 -1
- package/dist/cdn/5IXIFOQE.js +2 -0
- package/dist/cdn/{KNAUIRT6.js → 63HF2QYP.js} +1 -1
- package/dist/cdn/{TUW6NLYY.js → 6IUWB6ML.js} +1 -1
- package/dist/cdn/6PXPLFFB.js +2 -0
- package/dist/cdn/{UAO23YMW.js → 6XQPM3XF.js} +1 -1
- package/dist/cdn/6YZHULFG.js +2 -0
- package/dist/cdn/{I5QTPPFJ.js → 7CFAFS3P.js} +1 -1
- package/dist/cdn/{UNX4CKAF.js → 7D3Z55D3.js} +1 -1
- package/dist/cdn/{RRXH4CSV.js → 7SCKZLOG.js} +1 -1
- package/dist/cdn/7SIDRD63.js +2 -0
- package/dist/cdn/{7ZAVSDBZ.js → 7SLU4JV4.js} +1 -1
- package/dist/cdn/{GHFKQEFW.js → A5JTB4SB.js} +1 -1
- package/dist/cdn/{WW6L6XX4.js → AEDEEK6H.js} +1 -1
- package/dist/cdn/{F4HWT5H3.js → ANLNLB7F.js} +1 -1
- package/dist/cdn/{A44ZCOCX.js → ATG3WC6M.js} +1 -1
- package/dist/cdn/{RP5SO6BA.js → AWONSBWA.js} +1 -1
- package/dist/cdn/{BUOIT34V.js → B4IPMHN5.js} +1 -1
- package/dist/cdn/{UKNKW6MH.js → B4UXMUWZ.js} +1 -1
- package/dist/cdn/{PMQLTMQ4.js → BN6DAJ2Q.js} +1 -1
- package/dist/cdn/{XMSGTOUV.js → BOM3XB6A.js} +1 -1
- package/dist/cdn/BQRJK2MF.js +2 -0
- package/dist/cdn/{5RGFRTJS.js → BSOU3YSC.js} +1 -1
- package/dist/cdn/{62WRVJ3U.js → BUUMJJ3W.js} +1 -1
- package/dist/cdn/{M4L5EDRB.js → BX6WWIAY.js} +1 -1
- package/dist/cdn/{MQ6HO6LA.js → C3MVYUAO.js} +1 -1
- package/dist/cdn/C4FXVPMR.js +2 -0
- package/dist/cdn/{HH6BDERO.js → CJX4GSEZ.js} +1 -1
- package/dist/cdn/{3YA25S2J.js → CMI4ZWGU.js} +1 -1
- package/dist/cdn/COSZXJ2Q.js +2 -0
- package/dist/cdn/{2EJ4XRH4.js → CUNZDZ3C.js} +1 -1
- package/dist/cdn/CWODI2VY.js +2 -0
- package/dist/cdn/{A2JO7DWO.js → DDYVX52H.js} +1 -1
- package/dist/cdn/{2MTWUJIA.js → DEJGWX76.js} +1 -1
- package/dist/cdn/{CC53K2CR.js → DG7CXNOU.js} +1 -1
- package/dist/cdn/{FB6YQKF2.js → DMGQRIIZ.js} +1 -1
- package/dist/cdn/E44RUDE7.js +2 -0
- package/dist/cdn/{TCG6VGIB.js → ELIGNLIF.js} +1 -1
- package/dist/cdn/{EQCNO3G4.js → EM6YZ3JD.js} +1 -1
- package/dist/cdn/EQPJBPD5.js +2 -0
- package/dist/cdn/{KHM3S4Q6.js → F2JFRFTT.js} +1 -1
- package/dist/cdn/{AJHRJ5EA.js → FDCE7TCR.js} +1 -1
- package/dist/cdn/{2NOL7QIE.js → FNJ3HMEN.js} +1 -1
- package/dist/cdn/{OKXZJQ2B.js → FTQ4FNZO.js} +1 -1
- package/dist/cdn/{AEYZDEAH.js → FUXY5EKO.js} +1 -1
- package/dist/cdn/{OD5DHUHZ.js → FZDIAVC4.js} +1 -1
- package/dist/cdn/{VNOZYJLP.js → G7QZJNAC.js} +1 -1
- package/dist/cdn/{EX22SAPL.js → GF4QAY6O.js} +1 -1
- package/dist/cdn/{556MC5SF.js → GHVLDDZ3.js} +1 -1
- package/dist/cdn/{WTMMFDEH.js → GIAAX7SI.js} +1 -1
- package/dist/cdn/GJPX2JLE.js +2 -0
- package/dist/cdn/HDL76VD5.js +2 -0
- package/dist/cdn/{GNGZFV2C.js → HVKFQS3R.js} +1 -1
- package/dist/cdn/{37TNG76C.js → HZOWV5JG.js} +1 -1
- package/dist/cdn/{LG4PZVHS.js → I46QTMEJ.js} +1 -1
- package/dist/cdn/{5ITF7Q7U.js → I4SD3GKU.js} +1 -1
- package/dist/cdn/{3XMPN66U.js → I6EE4PLM.js} +1 -1
- package/dist/cdn/{NGKNECON.js → ILVKM7IB.js} +1 -1
- package/dist/cdn/{ORH27QWU.js → IOYNCKBD.js} +1 -1
- package/dist/cdn/{QVMTO5BV.js → IUFWY6SY.js} +1 -1
- package/dist/cdn/{SZ5MNKOW.js → IVHQAQZW.js} +1 -1
- package/dist/cdn/{6F6VOBIA.js → IX5YLGNO.js} +1 -1
- package/dist/cdn/{UKKUFJLL.js → J275QP5E.js} +1 -1
- package/dist/cdn/JSD5CN5Q.js +2 -0
- package/dist/cdn/{ZD5FJHIQ.js → JSISELHB.js} +1 -1
- package/dist/cdn/{4EAZ4PIQ.js → JUVPY4PW.js} +1 -1
- package/dist/cdn/{K27JJT2P.js → JWGHJITH.js} +1 -1
- package/dist/cdn/{NZAO2BVV.js → L6E647YW.js} +1 -1
- package/dist/cdn/{C4DJABUI.js → LA34IEDJ.js} +1 -1
- package/dist/cdn/LB32PLWG.js +2 -0
- package/dist/cdn/{42UR6TXZ.js → LJLCKW5C.js} +1 -1
- package/dist/cdn/{C7YN3AZA.js → LQNM7YK2.js} +1 -1
- package/dist/cdn/{R4V6HGJH.js → LYJM7ALP.js} +1 -1
- package/dist/cdn/{OCEXQCFT.js → MIGWB3PK.js} +1 -1
- package/dist/cdn/{RUB6EORR.js → MIXNJBCA.js} +1 -1
- package/dist/cdn/{ZVTPU2MO.js → MR4WJFX6.js} +1 -1
- package/dist/cdn/{NSGDR7V5.js → MSWQUZSG.js} +1 -1
- package/dist/cdn/{GYTQDFSL.js → MWS2QVII.js} +1 -1
- package/dist/cdn/{X26CF5AU.js → NFEIF3A6.js} +1 -1
- package/dist/cdn/{7YLXQNEC.js → NHBPPRG2.js} +1 -1
- package/dist/cdn/{XE5UPQ5E.js → NKO7ZJZN.js} +1 -1
- package/dist/cdn/{UHFSSX2G.js → NLRKDVIJ.js} +1 -1
- package/dist/cdn/{LZQCXN6A.js → NPEA453T.js} +1 -1
- package/dist/cdn/{HO4JUZ6N.js → NQ3Z6LXI.js} +1 -1
- package/dist/cdn/{VU3SJK5Z.js → NWWJHV2L.js} +1 -1
- package/dist/cdn/{YA6FUJR2.js → O2BAIE3M.js} +1 -1
- package/dist/cdn/{A7JPWYKR.js → OJCZ3DV5.js} +1 -1
- package/dist/cdn/{TP6I2LJO.js → OKXFUFPW.js} +1 -1
- package/dist/cdn/{M65HMJZA.js → PJHO2DXQ.js} +1 -1
- package/dist/cdn/{ZD25GJYW.js → PR47Q75I.js} +1 -1
- package/dist/cdn/{AP2IFWYH.js → PX63EYUH.js} +1 -1
- package/dist/cdn/{MAGJWMWM.js → PXJQJ6MY.js} +1 -1
- package/dist/cdn/{MDCB7SO4.js → QEXDU6P7.js} +1 -1
- package/dist/cdn/{TJG4UE24.js → QHSQUBMZ.js} +1 -1
- package/dist/cdn/QUXORNHT.js +2 -0
- package/dist/cdn/{XRP25NGI.js → RG5JFGHQ.js} +1 -1
- package/dist/cdn/{ZM2YXU7Y.js → RMGBO7V2.js} +1 -1
- package/dist/cdn/{CVBNRF34.js → S726H24O.js} +1 -1
- package/dist/cdn/{XXZ3CKTX.js → SKUQ3U6A.js} +1 -1
- package/dist/cdn/{NRV7VFJ7.js → SVRZWJDO.js} +1 -1
- package/dist/cdn/{WOV3LB6K.js → TE3F7O3C.js} +1 -1
- package/dist/cdn/{YC6JWXOW.js → TFKBGMV2.js} +1 -1
- package/dist/cdn/{5LBJB4MP.js → TK4IQ72L.js} +1 -1
- package/dist/cdn/TKFT2JL7.js +2 -0
- package/dist/cdn/TKK5PRP5.js +2 -0
- package/dist/cdn/{NWK2WHZF.js → TMXUHRLR.js} +1 -1
- package/dist/cdn/{GY5226CJ.js → UNY32K3R.js} +1 -1
- package/dist/cdn/US7LKUHP.js +2 -0
- package/dist/cdn/{3DO7PVNW.js → VD6EJLFO.js} +1 -1
- package/dist/cdn/VYAUH7PN.js +2 -0
- package/dist/cdn/{OSPWEZQJ.js → W5E542JG.js} +1 -1
- package/dist/cdn/{HB3W3CO5.js → WCIXC6UR.js} +1 -1
- package/dist/cdn/{TPOLS4YM.js → WPWBOKOR.js} +1 -1
- package/dist/cdn/{WGWNMYUH.js → WZDTXSRM.js} +1 -1
- package/dist/cdn/{PISCYSA5.js → X35NN2TZ.js} +1 -1
- package/dist/cdn/{XMZSFKKO.js → X4AA7QDM.js} +1 -1
- package/dist/cdn/{QXUY4FOY.js → X5NCN674.js} +1 -1
- package/dist/cdn/{63P5VYGP.js → XLB7XDRF.js} +1 -1
- package/dist/cdn/{C24SOTLL.js → Y4JTATJ2.js} +1 -1
- package/dist/cdn/{J55YUTPM.js → Y6W27QLR.js} +1 -1
- package/dist/cdn/{T2ZF4XIZ.js → ZERLO6VI.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/measurementUtils.js +3 -3
- package/dist/components/arcgis-area-measurement-2d/customElement.js +62 -74
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +3 -3
- package/dist/components/arcgis-area-measurement-3d/customElement.js +52 -64
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +5 -7
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +3 -3
- package/dist/components/arcgis-bookmarks/customElement.d.ts +2 -2
- package/dist/components/arcgis-bookmarks/types.d.ts +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +4 -6
- package/dist/components/arcgis-clipboard/customElement.d.ts +2 -2
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +3 -3
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +59 -71
- package/dist/components/arcgis-directions/customElement.d.ts +21 -5
- package/dist/components/arcgis-directions/customElement.js +5 -5
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +58 -70
- package/dist/components/arcgis-editor/customElement.d.ts +2 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +100 -111
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +22 -22
- package/dist/components/arcgis-feature/customElement.js +6 -6
- package/dist/components/arcgis-feature-form/customElement.d.ts +1 -2
- package/dist/components/arcgis-feature-image/customElement.d.ts +5 -5
- package/dist/components/arcgis-feature-table/customElement.d.ts +72 -24
- package/dist/components/arcgis-feature-table/customElement.js +28 -13
- package/dist/components/arcgis-feature-templates/customElement.d.ts +4 -6
- package/dist/components/arcgis-feature-title/customElement.d.ts +3 -3
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +60 -60
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +55 -55
- package/dist/components/arcgis-features/customElement.js +25 -31
- package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-home/customElement.d.ts +2 -2
- package/dist/components/arcgis-layer-list/customElement.d.ts +9 -11
- package/dist/components/arcgis-legend/customElement.d.ts +3 -3
- package/dist/components/arcgis-legend-classic-element/customElement.js +22 -24
- package/dist/components/arcgis-link-chart/customElement.d.ts +15 -17
- package/dist/components/arcgis-link-chart/customElement.js +10 -15
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +16 -18
- package/dist/components/arcgis-map/customElement.js +1 -6
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +7 -9
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +3 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +9 -9
- package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +3 -3
- package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +2 -2
- package/dist/components/arcgis-paste/customElement.d.ts +4 -4
- package/dist/components/arcgis-popup/customElement.js +106 -99
- package/dist/components/arcgis-popup/types.d.ts +1 -1
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -2
- package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +16 -7
- package/dist/components/arcgis-print/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +12 -12
- package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
- package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +21 -23
- package/dist/components/arcgis-scene/customElement.js +8 -13
- package/dist/components/arcgis-search/customElement.d.ts +10 -12
- package/dist/components/arcgis-search/customElement.js +8 -9
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +3 -3
- package/dist/components/arcgis-sketch/customElement.d.ts +3 -4
- package/dist/components/arcgis-slice/types.d.ts +2 -2
- package/dist/components/arcgis-table-list/customElement.d.ts +7 -8
- package/dist/components/arcgis-time-slider/customElement.d.ts +3 -3
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +14 -2
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +7 -3
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +74 -14
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +12 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +80 -65
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +4 -0
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +13 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +39 -26
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -4
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +3 -3
- package/dist/components/arcgis-volume-measurement/customElement.js +84 -84
- package/dist/components/types.d.ts +8 -6
- 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 +13 -13
- package/dist/types/lumina.d.ts +6 -6
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/react.d.ts +6 -6
- package/dist/types/stencil.d.ts +6 -6
- package/package.json +4 -4
- package/dist/cdn/22LNBUKE.js +0 -2
- package/dist/cdn/6CGPJGIB.js +0 -2
- package/dist/cdn/A4UJ53JS.js +0 -2
- package/dist/cdn/CTSWZC3O.js +0 -2
- package/dist/cdn/CWJ5OA5A.js +0 -2
- package/dist/cdn/D73JFV2R.js +0 -2
- package/dist/cdn/DINM6JDS.js +0 -2
- package/dist/cdn/EL62JS5C.js +0 -2
- package/dist/cdn/EM7YCHTU.js +0 -2
- package/dist/cdn/HE6QV4XG.js +0 -2
- package/dist/cdn/IDDSHZVB.js +0 -2
- package/dist/cdn/JRPIJ24K.js +0 -2
- package/dist/cdn/KEFY4XPI.js +0 -2
- package/dist/cdn/LHEP4QSS.js +0 -2
- package/dist/cdn/LIEE5WCD.js +0 -2
- package/dist/cdn/MSMDSEFM.js +0 -2
- package/dist/cdn/N3BD4UQD.js +0 -2
- package/dist/cdn/QJOQNSYB.js +0 -2
- package/dist/cdn/S6G6XXTM.js +0 -2
- package/dist/cdn/TM5C2P2F.js +0 -2
- package/dist/cdn/Z4F6DHBB.js +0 -2
|
@@ -15,7 +15,7 @@ import P from "@arcgis/core/rest/support/Query.js";
|
|
|
15
15
|
import G from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
|
|
16
16
|
import { LitElement as Q, renderElement as B } from "@arcgis/lumina";
|
|
17
17
|
import { debounce as L } from "@arcgis/toolkit/function";
|
|
18
|
-
const O = N`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,
|
|
18
|
+
const O = N`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`, E = 100, q = {
|
|
19
19
|
assetGroup: "assetgroup",
|
|
20
20
|
assetType: "assettype"
|
|
21
21
|
}, S = "{00000000-0000-0000-0000-000000000000}";
|
|
@@ -43,12 +43,12 @@ class R extends Q {
|
|
|
43
43
|
this._loaded = !1, this._cancelQueryFeatureCount();
|
|
44
44
|
const t = new AbortController();
|
|
45
45
|
this._queryFeatureCountAbortController = t, await v(this._queryFeatureCount()), this._queryFeatureCountAbortController === t && (this._queryFeatureCountAbortController = null), this._loaded = !0;
|
|
46
|
-
}, this._queryDebounced = L(this._queryController,
|
|
46
|
+
}, this._queryDebounced = L(this._queryController, E), this._queryFeatureCountDebounced = L(this._queryFeatureCountController, E), this._structureAssociations = new w(), this._structureFeatureCount = 0, this._queryAssociationType = async () => {
|
|
47
47
|
this._activeAssociationType && this._queryDebounced(this._activeAssociationType);
|
|
48
48
|
}, this._associationFeatures = I(), this._associationViewModels = I(), this._featureCount = 0, this._loaded = !1, this._queryAbortController = null, this._queryFeatureCountAbortController = null, this._queryPageAbortController = null, this.associationTypes = null, this.autoDestroyDisabled = !1, this.flowType = "feature-utility-network-associations", this.headingLevel = 2, this.source = "popup";
|
|
49
49
|
}
|
|
50
50
|
static {
|
|
51
|
-
this.properties = { _activeAssociationType: 16, _associationFeatures: 16, _associationViewModels: 16, _canLoad: 16, _canQuery: 16, _featureCount: 16, _loaded: 16, _queryAbortController: 16, _queryFeatureCountAbortController: 16, _queryPageAbortController: 16, _state: 16, associationTypes: 0, autoDestroyDisabled: 5, description: 1, flowItems: 0, flowType: 1, graphic: 0, heading: 1, headingLevel: 9, layer: 0, map: 0, messages: 0, parentFeatureViewModel: 0, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
|
|
51
|
+
this.properties = { _activeAssociationType: 16, _associationFeatures: 16, _associationViewModels: 16, _canLoad: 16, _canQuery: 16, _featureCount: 16, _loaded: 16, _queryAbortController: 16, _queryFeatureCountAbortController: 16, _queryPageAbortController: 16, _state: 16, associationTypes: 0, autoDestroyDisabled: 5, description: 1, flowItems: 0, flowType: 1, graphic: 0, heading: 1, headingLevel: 9, layer: 0, map: 0, messages: 0, parentFeatureViewModel: 0, referenceElement: 1, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
|
|
52
52
|
}
|
|
53
53
|
static {
|
|
54
54
|
this.styles = O;
|
|
@@ -82,8 +82,8 @@ class R extends Q {
|
|
|
82
82
|
return !!this.layer?.capabilities?.query?.supportsPagination;
|
|
83
83
|
}
|
|
84
84
|
get _state() {
|
|
85
|
-
const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController:
|
|
86
|
-
return
|
|
85
|
+
const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController: r, _queryPageAbortController: u, associationTypes: c } = this;
|
|
86
|
+
return r || t && !o ? "loading" : i || u ? "querying" : !this._globalId || !c || !e || !s ? "disabled" : "ready";
|
|
87
87
|
}
|
|
88
88
|
get heading() {
|
|
89
89
|
return this._heading;
|
|
@@ -118,7 +118,7 @@ class R extends Q {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
_addAssociationTypeFlowItem(t) {
|
|
121
|
-
this._addFlowItem(B(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`));
|
|
121
|
+
this._addFlowItem(B(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`));
|
|
122
122
|
}
|
|
123
123
|
_clearAssociations() {
|
|
124
124
|
this._attachmentAssociations.removeAll(), this._connectivityAssociations.removeAll(), this._containerAssociations.removeAll(), this._contentAssociations.removeAll(), this._structureAssociations.removeAll();
|
|
@@ -132,9 +132,9 @@ class R extends Q {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
async _countAssociatedFeatureCount(t, e, s, o, i) {
|
|
135
|
-
const
|
|
135
|
+
const r = this._getFeatureQueryWhereClause(t, e, s, o);
|
|
136
136
|
return await t.queryFeatureCount({
|
|
137
|
-
where:
|
|
137
|
+
where: r,
|
|
138
138
|
outFields: ["*"],
|
|
139
139
|
returnGeometry: !1
|
|
140
140
|
}, {
|
|
@@ -144,37 +144,37 @@ class R extends Q {
|
|
|
144
144
|
async _countAssociatedFeatures(t, e, s, o, i) {
|
|
145
145
|
if (!e.length)
|
|
146
146
|
return 0;
|
|
147
|
-
const
|
|
148
|
-
await this._loadLayers(
|
|
149
|
-
const u =
|
|
150
|
-
return (await Promise.all(u)).reduce((
|
|
147
|
+
const r = await this._findLayersBySourceId(t);
|
|
148
|
+
await this._loadLayers(r);
|
|
149
|
+
const u = r.map((a) => this._countAssociatedFeatureCount(a, e, s, o, i));
|
|
150
|
+
return (await Promise.all(u)).reduce((a, d) => a + d, 0);
|
|
151
151
|
}
|
|
152
152
|
async _createAssociationFeatureObjects(t, e, s, o, i) {
|
|
153
153
|
if (!t.length)
|
|
154
154
|
return [];
|
|
155
|
-
const
|
|
156
|
-
const l = await this._findLayersBySourceId(
|
|
155
|
+
const r = /* @__PURE__ */ new Map(), u = Array.from(e.entries()).map(async ([a, d]) => {
|
|
156
|
+
const l = await this._findLayersBySourceId(a);
|
|
157
157
|
await this._loadLayers(l);
|
|
158
158
|
const y = l.map((n) => this._queryLayer(n, d, s, o, i));
|
|
159
159
|
(await Promise.all(y)).forEach((n) => {
|
|
160
160
|
n.forEach((h) => {
|
|
161
161
|
if (this.source === "popup" ? h.sourceLayer && h.getEffectivePopupTemplate() : !!h.sourceLayer) {
|
|
162
|
-
const f = h.layer.globalIdField ?? "", g = h.
|
|
163
|
-
b.push(h),
|
|
162
|
+
const f = h.layer.globalIdField ?? "", g = h.getAttribute(f), b = r.get(g) ?? [];
|
|
163
|
+
b.push(h), r.set(g, b);
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
168
|
await Promise.all(u);
|
|
169
169
|
const c = [];
|
|
170
|
-
return await Promise.all(t.toArray().map(async (
|
|
171
|
-
const { fromNetworkElement: d, toNetworkElement: l } =
|
|
170
|
+
return await Promise.all(t.toArray().map(async (a) => {
|
|
171
|
+
const { fromNetworkElement: d, toNetworkElement: l } = a, y = d.globalId === this._globalId ? l : d, m = r.get(y.globalId) ?? [];
|
|
172
172
|
await Promise.all(m.map(async (n) => {
|
|
173
173
|
const h = this._utilityNetwork?.getTerminalById(y?.terminalId ?? void 0)?.name, _ = await n.sourceLayer.getFeatureTitle(n) || this._getFeatureTitle(n);
|
|
174
174
|
c.push({
|
|
175
175
|
title: _,
|
|
176
176
|
feature: n,
|
|
177
|
-
association:
|
|
177
|
+
association: a,
|
|
178
178
|
terminalName: h
|
|
179
179
|
});
|
|
180
180
|
}));
|
|
@@ -188,16 +188,16 @@ class R extends Q {
|
|
|
188
188
|
let s = function(d, l) {
|
|
189
189
|
return d.networkSourceId === l.networkSourceId && d.globalId === l.globalId && d.terminalId === l.terminalId && d.firstUnit === l.firstUnit && d.numUnits === l.numUnits;
|
|
190
190
|
};
|
|
191
|
-
const o = t.fromNetworkElement, i = t.toNetworkElement,
|
|
192
|
-
return c &&
|
|
191
|
+
const o = t.fromNetworkElement, i = t.toNetworkElement, r = e.fromNetworkElement, u = e.toNetworkElement, c = s(o, r), a = s(i, u);
|
|
192
|
+
return c && a && t.associationType === e.associationType;
|
|
193
193
|
}
|
|
194
194
|
return t.globalId != null && e.globalId != null && t.globalId === e.globalId;
|
|
195
195
|
}
|
|
196
196
|
async _findLayersBySourceId(t) {
|
|
197
197
|
const { _utilityNetwork: e, map: s } = this;
|
|
198
198
|
e?.loaded || await e?.load();
|
|
199
|
-
const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o),
|
|
200
|
-
return i.concat(
|
|
199
|
+
const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o), r = s.allTables.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o);
|
|
200
|
+
return i.concat(r).toArray();
|
|
201
201
|
}
|
|
202
202
|
_getAssociationsByType(t) {
|
|
203
203
|
switch (t) {
|
|
@@ -245,15 +245,15 @@ class R extends Q {
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
_getFeatureQueryWhereClause(t, e, s, o) {
|
|
248
|
-
const i = t.globalIdField,
|
|
248
|
+
const i = t.globalIdField, r = t.fieldsIndex.get(q.assetGroup), u = t.fieldsIndex.get(q.assetType), c = s != null, a = o != null, d = i ? D.sqlIn(i, e) : null, l = c ? `(${r?.name} = ${s})` : null, y = c && a ? `(${u?.name} = ${o})` : null;
|
|
249
249
|
return [d, l, y].filter(Boolean).join(" AND ");
|
|
250
250
|
}
|
|
251
251
|
_getFeatureTitle(t) {
|
|
252
252
|
const e = t.attributes, s = t.sourceLayer;
|
|
253
253
|
if (!e || !s)
|
|
254
254
|
return "";
|
|
255
|
-
const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null,
|
|
256
|
-
return
|
|
255
|
+
const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null, r = i != null ? i.toString() : null, u = t.getObjectId()?.toString();
|
|
256
|
+
return r || u || "";
|
|
257
257
|
}
|
|
258
258
|
_isSubtypeGroupLayer(t) {
|
|
259
259
|
return t != null && typeof t == "object" && "type" in t && t.type === "subtype-group" && "sublayers" in t;
|
|
@@ -285,11 +285,11 @@ class R extends Q {
|
|
|
285
285
|
return this._equals(t.association, e.association);
|
|
286
286
|
}
|
|
287
287
|
async _queryAssociatedFeatures(t, e) {
|
|
288
|
-
const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork:
|
|
289
|
-
if (await Promise.allSettled([s?.load(),
|
|
288
|
+
const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork: r, _canQuery: u, _associationFeatures: c } = this;
|
|
289
|
+
if (await Promise.allSettled([s?.load(), r?.load()]), !u || !s || !i || !r)
|
|
290
290
|
return;
|
|
291
|
-
const
|
|
292
|
-
|
|
291
|
+
const a = this._getAssociationsByType(t.type), { associatedAssetGroup: d, associatedAssetType: l } = t, y = /* @__PURE__ */ new Map();
|
|
292
|
+
a.forEach((n) => {
|
|
293
293
|
const { fromNetworkElement: h, toNetworkElement: _ } = n, { networkSourceId: f, elementGlobalId: g } = h.globalId === o ? {
|
|
294
294
|
networkSourceId: _.networkSourceId,
|
|
295
295
|
elementGlobalId: _.globalId
|
|
@@ -299,35 +299,35 @@ class R extends Q {
|
|
|
299
299
|
}, b = y.get(f) || [];
|
|
300
300
|
b.push(g), y.set(f, b);
|
|
301
301
|
});
|
|
302
|
-
const m = await this._createAssociationFeatureObjects(
|
|
302
|
+
const m = await this._createAssociationFeatureObjects(a, y, d, l, e);
|
|
303
303
|
this._parseFeatureObjects(m, c);
|
|
304
304
|
}
|
|
305
305
|
async _queryAssociations(t) {
|
|
306
|
-
const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery:
|
|
307
|
-
if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !
|
|
306
|
+
const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery: r } = this;
|
|
307
|
+
if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !r || !e || !o || !i || !s)
|
|
308
308
|
return;
|
|
309
309
|
const u = this._isSubtypeSublayer(e) ? e.parent : e, c = new V({
|
|
310
310
|
globalId: s,
|
|
311
311
|
networkSourceId: i.getSourceIdByLayerId(u.layerId)
|
|
312
|
-
}),
|
|
312
|
+
}), a = /* @__PURE__ */ new Set();
|
|
313
313
|
o.forEach((n) => {
|
|
314
314
|
switch (n.type) {
|
|
315
315
|
case "attachment":
|
|
316
316
|
case "structure":
|
|
317
|
-
|
|
317
|
+
a.add("attachment");
|
|
318
318
|
break;
|
|
319
319
|
case "container":
|
|
320
320
|
case "content":
|
|
321
|
-
|
|
321
|
+
a.add("containment");
|
|
322
322
|
break;
|
|
323
323
|
case "connectivity":
|
|
324
|
-
|
|
324
|
+
a.add("connectivity"), a.add("junction-junction-connectivity"), a.add("junction-edge-from-connectivity"), a.add("junction-edge-midspan-connectivity"), a.add("junction-edge-to-connectivity");
|
|
325
325
|
break;
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
328
|
const d = await i?.queryAssociations(new U({
|
|
329
329
|
elements: [c],
|
|
330
|
-
types: Array.from(
|
|
330
|
+
types: Array.from(a)
|
|
331
331
|
}), {
|
|
332
332
|
signal: t?.signal
|
|
333
333
|
}), l = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
|
|
@@ -408,21 +408,21 @@ class R extends Q {
|
|
|
408
408
|
await this._queryAssociations(t), this._featureCount = this._attachmentFeatureCount + this._connectivityFeatureCount + this._containerFeatureCount + this._contentFeatureCount + this._structureFeatureCount;
|
|
409
409
|
}
|
|
410
410
|
async _queryLayer(t, e, s, o, i) {
|
|
411
|
-
const
|
|
412
|
-
where:
|
|
411
|
+
const r = this._getFeatureQueryWhereClause(t, e, s, o), u = new P({
|
|
412
|
+
where: r,
|
|
413
413
|
outFields: ["*"],
|
|
414
414
|
cacheHint: this._supportsCacheHint
|
|
415
415
|
}), c = x.fromJSON(await $(t, u, i));
|
|
416
|
-
return c.features.forEach((
|
|
416
|
+
return c.features.forEach((a) => {
|
|
417
417
|
const d = this._isSubtypeGroupLayer(t);
|
|
418
|
-
|
|
418
|
+
a.layer = d ? t.findSublayerForFeature(a) : t, a.sourceLayer = d ? t.findSublayerForFeature(a) : t;
|
|
419
419
|
}), c.features;
|
|
420
420
|
}
|
|
421
421
|
_parseFeatureObjects(t, e) {
|
|
422
422
|
const s = I();
|
|
423
423
|
t.forEach((o) => {
|
|
424
|
-
const
|
|
425
|
-
j(s,
|
|
424
|
+
const r = (o?.feature).sourceLayer;
|
|
425
|
+
j(s, r, () => new w()).add(o);
|
|
426
426
|
});
|
|
427
427
|
for (const [o, i] of s)
|
|
428
428
|
this._sortFeatureObjectsByTitle(i), e.set(o, i);
|
|
@@ -432,16 +432,16 @@ class R extends Q {
|
|
|
432
432
|
e && (this._activeAssociationType = t, this._setUpUtilityNetworkAssociationsViewModels(), this._addAssociationTypeFlowItem(t));
|
|
433
433
|
}
|
|
434
434
|
_setUpUtilityNetworkAssociationsViewModels() {
|
|
435
|
-
this._associationViewModels.forEach((i,
|
|
436
|
-
const u = this._associationFeatures.get(
|
|
435
|
+
this._associationViewModels.forEach((i, r) => {
|
|
436
|
+
const u = this._associationFeatures.get(r);
|
|
437
437
|
u ? i.forEach((c) => {
|
|
438
|
-
u.find((d) => this._matchesGlobalFeature(c, d)) || (i.remove(c), i.length || this._associationViewModels.delete(
|
|
439
|
-
}) : (i.removeAll(), this._associationViewModels.delete(
|
|
438
|
+
u.find((d) => this._matchesGlobalFeature(c, d)) || (i.remove(c), i.length || this._associationViewModels.delete(r));
|
|
439
|
+
}) : (i.removeAll(), this._associationViewModels.delete(r));
|
|
440
440
|
});
|
|
441
441
|
const { map: t, view: e, spatialReference: s, timeZone: o } = this;
|
|
442
|
-
this._associationFeatures.forEach((i,
|
|
443
|
-
const u = this._associationViewModels.get(
|
|
444
|
-
i?.filter(Boolean).forEach((c,
|
|
442
|
+
this._associationFeatures.forEach((i, r) => {
|
|
443
|
+
const u = this._associationViewModels.get(r) || new w();
|
|
444
|
+
i?.filter(Boolean).forEach((c, a) => {
|
|
445
445
|
if (!u.some((l) => this._matchesGlobalFeature(l, c))) {
|
|
446
446
|
const { association: l, feature: y, terminalName: m, title: n } = c;
|
|
447
447
|
u.add({
|
|
@@ -456,16 +456,16 @@ class R extends Q {
|
|
|
456
456
|
graphic: y
|
|
457
457
|
}),
|
|
458
458
|
terminalName: m
|
|
459
|
-
},
|
|
459
|
+
}, a);
|
|
460
460
|
}
|
|
461
|
-
}), this._associationViewModels.set(
|
|
461
|
+
}), this._associationViewModels.set(r, u);
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
_shouldDiscardNetworkElement(t, e, s) {
|
|
465
465
|
if (!t)
|
|
466
466
|
return !1;
|
|
467
|
-
const { networkSourceId: o } = t, i = s.get(e)?.associatedNetworkSourceId,
|
|
468
|
-
return i != null && i !== o || !
|
|
467
|
+
const { networkSourceId: o } = t, i = s.get(e)?.associatedNetworkSourceId, r = this._networkSourceIdsInUse.has(o);
|
|
468
|
+
return i != null && i !== o || !r;
|
|
469
469
|
}
|
|
470
470
|
_sortFeatureObjectsByTitle(t) {
|
|
471
471
|
t.sort(this._compareByFeatureTitle);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as N } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as E, html as o } from "lit";
|
|
4
|
-
import { keyed as
|
|
4
|
+
import { keyed as F } from "lit/directives/keyed.js";
|
|
5
5
|
import O from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
|
|
6
6
|
import { u as B } from "../../chunks/useT9n.js";
|
|
7
|
-
import { classes as
|
|
7
|
+
import { classes as b } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { usePropertyChange as L } from "@arcgis/lumina/controllers";
|
|
9
9
|
import { m as R } from "../../chunks/useViewModel.js";
|
|
10
10
|
import { LitElement as P, createEvent as C, renderElement as H, nothing as d, safeClassMap as $ } from "@arcgis/lumina";
|
|
@@ -50,7 +50,7 @@ class q extends P {
|
|
|
50
50
|
}, this._openRelatedFeatureAbortController = null, this.flowItems = new x(), this.viewModel = X(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new x(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, 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.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 = L()("active", "collapsed", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = C(), this.arcgisClose = C(), this.arcgisTriggerAction = C();
|
|
51
51
|
}
|
|
52
52
|
static {
|
|
53
|
-
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16,
|
|
53
|
+
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 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 };
|
|
54
54
|
}
|
|
55
55
|
static {
|
|
56
56
|
this.styles = G;
|
|
@@ -70,12 +70,6 @@ class q extends P {
|
|
|
70
70
|
get _collapseEnabled() {
|
|
71
71
|
return this.showCollapseButton && (this.initialDisplayMode === "list" || !!(this.heading || this.viewModel.selectedFeatureViewModel?.title) && !!(this.content || this.viewModel.selectedFeatureViewModel?.content));
|
|
72
72
|
}
|
|
73
|
-
get visible() {
|
|
74
|
-
return this.viewModel.visible;
|
|
75
|
-
}
|
|
76
|
-
set visible(e) {
|
|
77
|
-
this.viewModel.visible = e;
|
|
78
|
-
}
|
|
79
73
|
get chartAnimationDisabled() {
|
|
80
74
|
return !(this.viewModel.featureViewModelAbilities?.chartAnimation ?? !0);
|
|
81
75
|
}
|
|
@@ -125,10 +119,10 @@ class q extends P {
|
|
|
125
119
|
this.viewModel.featureViewModelAbilities ??= {}, this.viewModel.featureViewModelAbilities.utilityNetworkAssociationsContent = !e;
|
|
126
120
|
}
|
|
127
121
|
get open() {
|
|
128
|
-
return this.visible;
|
|
122
|
+
return this.viewModel.visible;
|
|
129
123
|
}
|
|
130
124
|
set open(e) {
|
|
131
|
-
this.visible = e;
|
|
125
|
+
this.viewModel.visible = e;
|
|
132
126
|
}
|
|
133
127
|
get selectedDrillInFeature() {
|
|
134
128
|
const e = Array.from(this.flowItems).at(-1);
|
|
@@ -141,7 +135,7 @@ class q extends P {
|
|
|
141
135
|
return this.viewModel.clear();
|
|
142
136
|
}
|
|
143
137
|
async close() {
|
|
144
|
-
this.
|
|
138
|
+
this.open = !1;
|
|
145
139
|
}
|
|
146
140
|
async destroy() {
|
|
147
141
|
await this.manager.destroy(), await this._destroySpinner(this.referenceElement), this._cancelOpenRelatedFeature(), this._removeFlowItems(), this._unobserveFeatureMenuObserver(), this._cancelFetchingFeatures(), this._featureMenuIntersectionObserver?.disconnect();
|
|
@@ -201,8 +195,8 @@ class q extends P {
|
|
|
201
195
|
const s = i?.graphic;
|
|
202
196
|
if (!s)
|
|
203
197
|
return;
|
|
204
|
-
const n = Z(s), a = W(n) ? n : null,
|
|
205
|
-
t.set(a, [...
|
|
198
|
+
const n = Z(s), a = W(n) ? n : null, r = t.get(a) ?? [];
|
|
199
|
+
t.set(a, [...r, i]);
|
|
206
200
|
}), t;
|
|
207
201
|
}
|
|
208
202
|
_handleCollapseToggle() {
|
|
@@ -260,8 +254,8 @@ class q extends P {
|
|
|
260
254
|
this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
|
|
261
255
|
}
|
|
262
256
|
_getActionTitle(e) {
|
|
263
|
-
const { messages: t, selectedFeature: i } = this, { id: s } = e, n = i?.attributes, a = e.title ?? "",
|
|
264
|
-
return
|
|
257
|
+
const { messages: t, selectedFeature: i } = this, { id: s } = e, n = i?.attributes, a = e.title ?? "", r = s === "zoom-to-feature" ? u(a, { messages: t }) : s === "remove-selected-feature" ? u(a, { messages: t }) : s === "zoom-to-clustered-features" ? u(a, { messages: t }) : s === "browse-clustered-features" ? u(a, { messages: t }) : e.title;
|
|
258
|
+
return r && n ? u(r, n) : r ?? "";
|
|
265
259
|
}
|
|
266
260
|
_onMainKeydown(e) {
|
|
267
261
|
const { key: t } = e;
|
|
@@ -278,7 +272,7 @@ class q extends P {
|
|
|
278
272
|
this.triggerAction(e), this.arcgisTriggerAction.emit({ action: e });
|
|
279
273
|
}
|
|
280
274
|
_viewChange() {
|
|
281
|
-
this.viewModel.clear(), this.
|
|
275
|
+
this.viewModel.clear(), this.open = !1;
|
|
282
276
|
}
|
|
283
277
|
_closeOpenActionMenu() {
|
|
284
278
|
const { _actionBarMenuNode: e } = this;
|
|
@@ -352,8 +346,8 @@ class q extends P {
|
|
|
352
346
|
_renderFeatureMenu() {
|
|
353
347
|
const { messages: e, viewModel: t } = this, i = this._groupResultsByLayer(), s = this.initialDisplayMode === "list" ? "none" : "single";
|
|
354
348
|
return t.featureViewModels.length ? o`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(i.keys(), (n) => {
|
|
355
|
-
const a = i.get(n)?.map((
|
|
356
|
-
return !this.hideFeatureListLayerTitle &&
|
|
349
|
+
const a = i.get(n)?.map((l) => this._renderFeatureMenuItem(l)), r = n ? n.title ?? this.messages.untitled : null;
|
|
350
|
+
return !this.hideFeatureListLayerTitle && r !== null ? F(n ?? "map-graphics", o`<calcite-list-item-group .heading=${r}>${a}</calcite-list-item-group>`) : a;
|
|
357
351
|
})}</calcite-list>` : null;
|
|
358
352
|
}
|
|
359
353
|
_renderHeaderAction(e) {
|
|
@@ -364,33 +358,33 @@ class q extends P {
|
|
|
364
358
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
365
359
|
}
|
|
366
360
|
_renderContentFeature() {
|
|
367
|
-
const { headingLevel: e, hideCloseButton: t, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: n, flowItems: a, initialDisplayMode:
|
|
368
|
-
if (
|
|
361
|
+
const { headingLevel: e, hideCloseButton: t, _isCollapsed: i, _collapseEnabled: s, featureNavigationTop: n, flowItems: a, initialDisplayMode: r, selectedFeature: l, featureMenuOpen: p } = this, { active: f } = this.viewModel, g = this._getHeading();
|
|
362
|
+
if (r === "list" && !l)
|
|
369
363
|
return null;
|
|
370
|
-
const _ = a.length === 0 && (
|
|
371
|
-
return o`<calcite-flow-item class=${$(
|
|
364
|
+
const _ = a.length === 0 && (r === "list" ? !!l : !p);
|
|
365
|
+
return o`<calcite-flow-item class=${$(b({
|
|
372
366
|
"content-feature": !0,
|
|
373
367
|
"flow-item-collapsed": i
|
|
374
|
-
}))} .closable=${!t} .closed=${!f} .collapsed=${i} .collapseDirection=${n ? "down" : "up"} .collapsible=${s} .headingLevel=${e} .selected=${_} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${A(g)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${$(
|
|
368
|
+
}))} .closable=${!t} .closed=${!f} .collapsed=${i} .collapseDirection=${n ? "down" : "up"} .collapsible=${s} .headingLevel=${e} .selected=${_} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${A(g)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${$(b("container", "content-container"))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
375
369
|
}
|
|
376
370
|
_renderFeatureMenuContainer() {
|
|
377
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: n, featureMenuOpen: a, selectedFeature:
|
|
371
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: n, featureMenuOpen: a, selectedFeature: r, _collapseEnabled: l, _isCollapsed: p, featureNavigationTop: f, headingLevel: g } = this, { active: _, featureViewModels: I, pendingPromisesCount: T } = e, k = i ?? s.selectFeature;
|
|
378
372
|
if (n === "feature" && !a)
|
|
379
373
|
return null;
|
|
380
|
-
const D = n === "list" ? !
|
|
381
|
-
return o`<calcite-flow-item class=${$(
|
|
374
|
+
const D = n === "list" ? !r : a;
|
|
375
|
+
return o`<calcite-flow-item class=${$(b({
|
|
382
376
|
"flow-item-collapsed": p
|
|
383
|
-
}))} .closable=${n === "list" && !t} .closed=${!_} .collapsed=${n === "list" && p} .collapseDirection=${f ? "down" : "up"} .collapsible=${n === "list" &&
|
|
377
|
+
}))} .closable=${n === "list" && !t} .closed=${!_} .collapsed=${n === "list" && p} .collapseDirection=${f ? "down" : "up"} .collapsible=${n === "list" && l} .description=${this.hideFeatureMenuHeading ? void 0 : u(s.total ?? "", {
|
|
384
378
|
total: I.length
|
|
385
379
|
})} .heading=${this.hideFeatureMenuHeading ? void 0 : k} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${D} @calciteFlowItemBack=${(V) => {
|
|
386
380
|
V.preventDefault(), this._handleFeatureMenuBack();
|
|
387
381
|
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${n === "list" ? this._renderHeaderActions() : null}${T > 0 ? o`<calcite-loader class="loader" inline .label=${s.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${v(this._featureMenuIntersectionObserverCreated)}></div>${n === "feature" ? o`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${s.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
388
382
|
}
|
|
389
383
|
_renderFlowItem(e, t) {
|
|
390
|
-
const { messages: i, hideCloseButton: s, active: n } = this, a = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable,
|
|
384
|
+
const { messages: i, hideCloseButton: s, active: n } = this, a = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, r = e.flowType === "feature-association", l = i.returnToInitialFeature ?? "", p = i?.selectFeature, f = this._getActionTitle(m);
|
|
391
385
|
return o`<calcite-flow-item .closable=${!s} .closed=${!n} .description=${A(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${this.hideHeading ? void 0 : A(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(g) => {
|
|
392
386
|
g.preventDefault(), this._handleDrillInBackClick();
|
|
393
|
-
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${
|
|
387
|
+
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? d}></calcite-action>${a ? o`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? d}></calcite-action>` : null}${r ? o`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${m.disabled} .icon=${m.icon ?? void 0} .loading=${m.active} scale=s text-enabled .text=${f} title=${f ?? d} @click=${() => U(this.viewModel, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
|
|
394
388
|
}
|
|
395
389
|
_renderContentContainer() {
|
|
396
390
|
const e = this.flowItems?.toArray(), t = e?.map((s, n) => this._renderFlowItem(s, this.initialDisplayMode === "list" || !this.featureMenuOpen && n === e.length - 1)), i = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(), t] : [this._renderContentFeature(), t, this._renderFeatureMenuContainer()];
|
|
@@ -407,7 +401,7 @@ class q extends P {
|
|
|
407
401
|
}
|
|
408
402
|
_renderContent() {
|
|
409
403
|
const { content: e, selectedFeatureViewModel: t } = this.viewModel;
|
|
410
|
-
return t ?
|
|
404
|
+
return t ? F(t, o`<arcgis-feature .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} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${v(this._selectedFeatureComponent)}></arcgis-feature>`) : typeof e == "string" ? F(e, o`<div .innerHTML=${y.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
411
405
|
}
|
|
412
406
|
}
|
|
413
407
|
N("arcgis-features", q);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type WebMap from "@arcgis/core/WebMap";
|
|
3
|
-
import type WebScene from "@arcgis/core/WebScene";
|
|
2
|
+
import type WebMap from "@arcgis/core/WebMap.js";
|
|
3
|
+
import type WebScene from "@arcgis/core/WebScene.js";
|
|
4
4
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
5
|
import type { ArcgisReferenceElement, IconName, HeadingLevel } from "../types.js";
|
|
6
6
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type Color from "@arcgis/core/Color.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
5
|
-
import type { ColorLike } from "@arcgis/core/Color";
|
|
5
|
+
import type { ColorLike } from "@arcgis/core/Color.js";
|
|
6
6
|
import type { BarCreatedFunction, DataLineCreatedFunction, DataLineInfos } from "@arcgis/core/widgets/Histogram/types.js";
|
|
7
7
|
import type { HistogramBin } from "@arcgis/core/smartMapping/statistics/types.js";
|
|
8
8
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Viewpoint from "@arcgis/core/Viewpoint.js";
|
|
3
|
-
import type MapView from "@arcgis/core/views/MapView";
|
|
4
|
-
import type SceneView from "@arcgis/core/views/SceneView";
|
|
3
|
+
import type MapView from "@arcgis/core/views/MapView.js";
|
|
4
|
+
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement, IconName, GoToOverride } from "../types.js";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type ListItem from "@arcgis/core/widgets/LayerList/ListItem";
|
|
3
|
-
import type ActionToggle from "@arcgis/core/support/actions/ActionToggle";
|
|
4
|
-
import type ActionButton from "@arcgis/core/support/actions/ActionButton";
|
|
5
|
-
import type TableList from "@arcgis/core/widgets/TableList";
|
|
6
|
-
import type Collection from "@arcgis/core/core/Collection";
|
|
7
|
-
import type CatalogLayerList from "@arcgis/core/widgets/CatalogLayerList";
|
|
8
|
-
import type Collection2 from "@arcgis/core/core/Collection.js";
|
|
9
|
-
import type ListItem2 from "@arcgis/core/widgets/LayerList/ListItem.js";
|
|
2
|
+
import type ListItem from "@arcgis/core/widgets/LayerList/ListItem.js";
|
|
3
|
+
import type ActionToggle from "@arcgis/core/support/actions/ActionToggle.js";
|
|
4
|
+
import type ActionButton from "@arcgis/core/support/actions/ActionButton.js";
|
|
5
|
+
import type TableList from "@arcgis/core/widgets/TableList.js";
|
|
6
|
+
import type Collection from "@arcgis/core/core/Collection.js";
|
|
7
|
+
import type CatalogLayerList from "@arcgis/core/widgets/CatalogLayerList.js";
|
|
10
8
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
11
9
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
12
|
-
import type { LayerListViewModelTriggerActionEvent } from "@arcgis/core/widgets/LayerList/LayerListViewModel";
|
|
10
|
+
import type { LayerListViewModelTriggerActionEvent } from "@arcgis/core/widgets/LayerList/LayerListViewModel.js";
|
|
13
11
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
14
12
|
import type { CatalogLayerListProperties } from "@arcgis/core/widgets/CatalogLayerList.js";
|
|
15
13
|
import type { FilterPredicate, ListItemModifier, State, VisibilityAppearance } from "@arcgis/core/widgets/LayerList/types.js";
|
|
@@ -315,7 +313,7 @@ export abstract class ArcgisLayerList extends LitElement {
|
|
|
315
313
|
* layerListElement.openedLayers.pop();
|
|
316
314
|
* ```
|
|
317
315
|
*/
|
|
318
|
-
get openedLayers():
|
|
316
|
+
get openedLayers(): Collection<FlowLayer>;
|
|
319
317
|
/** A collection of ListItems representing operational layers. */
|
|
320
318
|
get operationalItems(): Collection<ListItem>;
|
|
321
319
|
/**
|
|
@@ -330,7 +328,7 @@ export abstract class ArcgisLayerList extends LitElement {
|
|
|
330
328
|
*
|
|
331
329
|
* @see [selectionMode](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/#selectionMode)
|
|
332
330
|
*/
|
|
333
|
-
accessor selectedItems:
|
|
331
|
+
accessor selectedItems: Collection<ListItem>;
|
|
334
332
|
/**
|
|
335
333
|
* Specifies the selection mode.
|
|
336
334
|
* Selected items are available in the [selectedItems](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/#selectedItems) property.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type ActiveLayerInfo from "@arcgis/core/widgets/Legend/support/ActiveLayerInfo.js";
|
|
3
|
+
import type Collection from "@arcgis/core/core/Collection.js";
|
|
2
4
|
import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
|
|
3
|
-
import type Collection2 from "@arcgis/core/core/Collection.js";
|
|
4
|
-
import type ActiveLayerInfo2 from "@arcgis/core/widgets/Legend/support/ActiveLayerInfo.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -93,7 +93,7 @@ export abstract class ArcgisLegend extends LitElement {
|
|
|
93
93
|
* display data in the legend. The legend component watches this property to hide or display the layer's legend when
|
|
94
94
|
* an [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/widgets/Legend/support/ActiveLayerInfo/) is removed from or added to this collection.
|
|
95
95
|
*/
|
|
96
|
-
accessor activeLayerInfos:
|
|
96
|
+
accessor activeLayerInfos: Collection<ActiveLayerInfo>;
|
|
97
97
|
/**
|
|
98
98
|
* If true, the component will not be destroyed automatically when it is
|
|
99
99
|
* disconnected from the document. This is useful when you want to move the
|