@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
|
@@ -4,12 +4,11 @@ import type FormTemplate from "@arcgis/core/form/FormTemplate.js";
|
|
|
4
4
|
import type Map from "@arcgis/core/Map.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
7
|
-
import type { ValueChangeEvent, SubmitEvent } from "@arcgis/core/widgets/FeatureForm/FeatureFormViewModel";
|
|
7
|
+
import type { ValueChangeEvent, SubmitEvent, FeatureFormViewModelState } from "@arcgis/core/widgets/FeatureForm/FeatureFormViewModel.js";
|
|
8
8
|
import type { EditType } from "@arcgis/core/widgets/support/forms/types.js";
|
|
9
9
|
import type { HeadingLevel } from "@arcgis/core/widgets/support/types.js";
|
|
10
10
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
11
11
|
import type { FeatureFormLayerUnion } from "@arcgis/core/widgets/FeatureForm/types.js";
|
|
12
|
-
import type { FeatureFormViewModelState } from "@arcgis/core/widgets/FeatureForm/FeatureFormViewModel.js";
|
|
13
12
|
|
|
14
13
|
export abstract class ArcgisFeatureForm extends LitElement {
|
|
15
14
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Graphic from "@arcgis/core/Graphic.js";
|
|
3
|
-
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer";
|
|
4
|
-
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer";
|
|
5
|
-
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer";
|
|
3
|
+
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
4
|
+
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
5
|
+
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
6
6
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
7
|
-
import type { GeometryUnion } from "@arcgis/core/geometry/types";
|
|
8
|
-
import type { SymbolUnion } from "@arcgis/core/symbols/types";
|
|
7
|
+
import type { GeometryUnion } from "@arcgis/core/geometry/types.js";
|
|
8
|
+
import type { SymbolUnion } from "@arcgis/core/symbols/types.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The Feature Image component generates a feature swatch representing a
|
|
@@ -1,36 +1,29 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type FeatureTable from "@arcgis/core/widgets/FeatureTable.js";
|
|
3
|
-
import type RelationshipColumn from "@arcgis/core/widgets/FeatureTable/RelationshipColumn";
|
|
4
|
-
import type GroupColumn from "@arcgis/core/widgets/FeatureTable/Grid/GroupColumn";
|
|
5
|
-
import type Column from "@arcgis/core/widgets/FeatureTable/Grid/Column";
|
|
6
|
-
import type AttachmentsColumn from "@arcgis/core/widgets/FeatureTable/AttachmentsColumn";
|
|
7
|
-
import type ActionColumn from "@arcgis/core/widgets/FeatureTable/ActionColumn";
|
|
3
|
+
import type RelationshipColumn from "@arcgis/core/widgets/FeatureTable/RelationshipColumn.js";
|
|
4
|
+
import type GroupColumn from "@arcgis/core/widgets/FeatureTable/Grid/GroupColumn.js";
|
|
5
|
+
import type Column from "@arcgis/core/widgets/FeatureTable/Grid/Column.js";
|
|
6
|
+
import type AttachmentsColumn from "@arcgis/core/widgets/FeatureTable/AttachmentsColumn.js";
|
|
7
|
+
import type ActionColumn from "@arcgis/core/widgets/FeatureTable/ActionColumn.js";
|
|
8
8
|
import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
|
|
9
|
-
import type AttachmentsColumn2 from "@arcgis/core/widgets/FeatureTable/AttachmentsColumn.js";
|
|
10
9
|
import type AttributeTableTemplate from "@arcgis/core/tables/AttributeTableTemplate.js";
|
|
11
|
-
import type ActionColumn2 from "@arcgis/core/widgets/FeatureTable/ActionColumn.js";
|
|
12
10
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
13
|
-
import type Column2 from "@arcgis/core/widgets/FeatureTable/Grid/Column.js";
|
|
14
11
|
import type AttachmentsViewOptions from "@arcgis/core/widgets/FeatureTable/support/AttachmentsViewOptions.js";
|
|
15
12
|
import type FieldColumn from "@arcgis/core/widgets/FeatureTable/FieldColumn.js";
|
|
16
|
-
import type GroupColumn2 from "@arcgis/core/widgets/FeatureTable/Grid/GroupColumn.js";
|
|
17
13
|
import type LayerView from "@arcgis/core/views/layers/LayerView.js";
|
|
18
14
|
import type Relationship from "@arcgis/core/layers/support/Relationship.js";
|
|
19
|
-
import type RelationshipColumn2 from "@arcgis/core/widgets/FeatureTable/RelationshipColumn.js";
|
|
20
15
|
import type TableTemplate from "@arcgis/core/widgets/FeatureTable/support/TableTemplate.js";
|
|
21
16
|
import type TimeExtent from "@arcgis/core/time/TimeExtent.js";
|
|
22
17
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
23
18
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
24
|
-
import type { FeatureStoreItem } from "@arcgis/core/widgets/FeatureTable/support/types";
|
|
25
|
-
import type { CollectionChangeEvent } from "@arcgis/core/core/Collection";
|
|
26
|
-
import type { TableInteractionColumnReorderEvent, TableInteractionCellPointeroverEvent, TableInteractionCellPointeroutEvent, TableInteractionCellKeydownEvent, TableInteractionCellClickEvent } from "@arcgis/core/widgets/FeatureTable/Grid/types";
|
|
19
|
+
import type { FeatureStoreItem, ActionColumnConfig, FeatureTableSupportedFilters, ColumnSortOrder, FeatureTableSupportedLayer } from "@arcgis/core/widgets/FeatureTable/support/types.js";
|
|
20
|
+
import type { CollectionChangeEvent } from "@arcgis/core/core/Collection.js";
|
|
21
|
+
import type { DiscardPendingEditsParameters, FeatureStoreEdits, TableInteractionColumnReorderEvent, TableInteractionCellPointeroverEvent, TableInteractionCellPointeroutEvent, TableInteractionCellKeydownEvent, TableInteractionCellClickEvent, TableMenuConfig, GridMultiSortPriority, FeatureTableState } from "@arcgis/core/widgets/FeatureTable/Grid/types.js";
|
|
27
22
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
28
|
-
import type { ActionColumnConfig, FeatureTableSupportedFilters, ColumnSortOrder, FeatureTableSupportedLayer } from "@arcgis/core/widgets/FeatureTable/support/types.js";
|
|
29
23
|
import type { FeatureTableDescriptionFunction, FeatureTableTitleFunction } from "@arcgis/core/widgets/FeatureTable.js";
|
|
30
24
|
import type { GeometryUnion } from "@arcgis/core/geometry/types.js";
|
|
31
25
|
import type { ObjectId } from "@arcgis/core/views/types.js";
|
|
32
26
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
33
|
-
import type { TableMenuConfig, GridMultiSortPriority, FeatureTableState } from "@arcgis/core/widgets/FeatureTable/Grid/types.js";
|
|
34
27
|
|
|
35
28
|
/**
|
|
36
29
|
* The Feature Table component provides an interactive tabular view of each feature's attributes in a feature layer.
|
|
@@ -44,7 +37,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
44
37
|
* @since 4.33
|
|
45
38
|
* @see [actionColumnConfig](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#actionColumnConfig)
|
|
46
39
|
*/
|
|
47
|
-
get actionColumn():
|
|
40
|
+
get actionColumn(): ActionColumn | null | undefined;
|
|
48
41
|
/**
|
|
49
42
|
* Configuration for the [ActionColumn](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/ActionColumn/).
|
|
50
43
|
* This property allows for customizing the action column's appearance and behavior.
|
|
@@ -93,7 +86,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
93
86
|
*
|
|
94
87
|
* @since 4.33
|
|
95
88
|
*/
|
|
96
|
-
get allColumns(): Array<
|
|
89
|
+
get allColumns(): Array<Column>;
|
|
97
90
|
/**
|
|
98
91
|
* Indicates the table is displaying all related tables in "show all" mode.
|
|
99
92
|
*
|
|
@@ -106,13 +99,13 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
106
99
|
*
|
|
107
100
|
* @since 4.33
|
|
108
101
|
*/
|
|
109
|
-
get allVisibleColumns(): Array<
|
|
102
|
+
get allVisibleColumns(): Array<Column>;
|
|
110
103
|
/**
|
|
111
104
|
* A flattened array of all [attachment columns](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/AttachmentsColumn/) within the table, including nested columns.
|
|
112
105
|
*
|
|
113
106
|
* @since 4.33
|
|
114
107
|
*/
|
|
115
|
-
get attachmentsColumns(): Array<
|
|
108
|
+
get attachmentsColumns(): Array<AttachmentsColumn>;
|
|
116
109
|
/**
|
|
117
110
|
* Indicates whether to display the `Attachments` field in the table. It displays the count of attachments per feature and is only applicable if the feature layer [supports attachments](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#capabilities).
|
|
118
111
|
*
|
|
@@ -188,7 +181,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
188
181
|
* A read-only collection of column, field, group, action, attachment,
|
|
189
182
|
* and relationship columns that are displayed within the table.
|
|
190
183
|
*/
|
|
191
|
-
get columns(): Collection<
|
|
184
|
+
get columns(): Collection<Column>;
|
|
192
185
|
/**
|
|
193
186
|
* The SQL where clause used to filter features visible in the table. Only the features that satisfy the definition
|
|
194
187
|
* expression are displayed in the table. This value takes priority over any definition expression set on the
|
|
@@ -267,7 +260,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
267
260
|
*
|
|
268
261
|
* @since 4.33
|
|
269
262
|
*/
|
|
270
|
-
get groupColumns(): Array<
|
|
263
|
+
get groupColumns(): Array<GroupColumn>;
|
|
271
264
|
/**
|
|
272
265
|
* Convenience property indicating the data set contains contingent values. This includes contingent values in a related table.
|
|
273
266
|
*
|
|
@@ -729,7 +722,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
729
722
|
*
|
|
730
723
|
* @since 4.33
|
|
731
724
|
*/
|
|
732
|
-
get relationshipColumns(): Array<
|
|
725
|
+
get relationshipColumns(): Array<RelationshipColumn>;
|
|
733
726
|
/**
|
|
734
727
|
* Indicates whether to fetch geometries for the corresponding features displayed in the table.
|
|
735
728
|
*
|
|
@@ -970,11 +963,56 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
970
963
|
*
|
|
971
964
|
* @since 4.33
|
|
972
965
|
*/
|
|
973
|
-
get visibleColumns(): Array<
|
|
966
|
+
get visibleColumns(): Array<Column>;
|
|
967
|
+
/**
|
|
968
|
+
* Creates a pending edit with the specified parameters.
|
|
969
|
+
* A pending edit is not immediately saved to the layer.
|
|
970
|
+
*
|
|
971
|
+
* @param edits - Pending edits to be cached. Edits must include a valid objectId and field name.
|
|
972
|
+
* @since 5.0
|
|
973
|
+
* @example
|
|
974
|
+
* // Add pending edits for two cells in a single row
|
|
975
|
+
* table.addPendingEdits(
|
|
976
|
+
* [
|
|
977
|
+
* {
|
|
978
|
+
* objectId: 1,
|
|
979
|
+
* updates: [
|
|
980
|
+
* { fieldName: "Hotel_Name", value: "My Hotel" },
|
|
981
|
+
* { fieldName: "Address", value: "123 Hotel Street" },
|
|
982
|
+
* ]
|
|
983
|
+
* }
|
|
984
|
+
* ]
|
|
985
|
+
* );
|
|
986
|
+
*/
|
|
987
|
+
addPendingEdits(edits: FeatureStoreEdits[]): void;
|
|
974
988
|
/** @param showWarningPrompt */
|
|
975
989
|
deleteSelection(showWarningPrompt?: boolean): Promise<void>;
|
|
976
990
|
/** Permanently destroy the component. */
|
|
977
991
|
destroy(): Promise<void>;
|
|
992
|
+
/**
|
|
993
|
+
* Cancels any pending edits. This might be edits for a specific field or column, or
|
|
994
|
+
* all pending edits for a specific feature. If no parameters are supplied, all pending edits
|
|
995
|
+
* for all features are discarded. Additionally, if showWarningPrompt is 'true', the value returned
|
|
996
|
+
* from this method will reflect whether or not the user chose to discard the pending edits.
|
|
997
|
+
*
|
|
998
|
+
* @param edits - Information about which pending edits should be canceled. If nothing is provided, all pending edits are discarded.
|
|
999
|
+
* @param showWarningPrompt - Indicates the table should display a warning prompt, which allows users to confirm if pending edits should be discarded.
|
|
1000
|
+
* @since 5.0
|
|
1001
|
+
* @example
|
|
1002
|
+
* // Discard pending edits for single cell in a given row
|
|
1003
|
+
* table.discardPendingEdits([{ objectId: 1, fieldName: "Address" }]);
|
|
1004
|
+
*
|
|
1005
|
+
* // Discard pending edits for all cells in a given row
|
|
1006
|
+
* table.discardPendingEdits([{ objectId: 1 }]);
|
|
1007
|
+
*
|
|
1008
|
+
* // Discard all pending edits
|
|
1009
|
+
* table.discardPendingEdits();
|
|
1010
|
+
*
|
|
1011
|
+
* // Displays a confirmation prompt before discarding all pending edits
|
|
1012
|
+
* // Returns 'true' if edits were discarded
|
|
1013
|
+
* const editsWereDiscarded = await table.discardPendingEdits(undefined, true);
|
|
1014
|
+
*/
|
|
1015
|
+
discardPendingEdits(edits?: DiscardPendingEditsParameters[] | null, showWarningPrompt?: boolean): Promise<boolean>;
|
|
978
1016
|
/** @param includeGeometry */
|
|
979
1017
|
exportSelectionToCSV(includeGeometry?: boolean): Promise<void>;
|
|
980
1018
|
/** @param fieldName */
|
|
@@ -985,7 +1023,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
985
1023
|
* @param objectId
|
|
986
1024
|
* @since 5.0
|
|
987
1025
|
*/
|
|
988
|
-
getFeatureStoreItemByObjectId(objectId: number | string): FeatureStoreItem | null | undefined
|
|
1026
|
+
getFeatureStoreItemByObjectId(objectId: number | string): Promise<FeatureStoreItem | null | undefined>;
|
|
989
1027
|
/** @param index */
|
|
990
1028
|
goToPage(index: number): Promise<void>;
|
|
991
1029
|
/** @param fieldName */
|
|
@@ -993,6 +1031,14 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
993
1031
|
nextPage(): Promise<void>;
|
|
994
1032
|
previousPage(): Promise<void>;
|
|
995
1033
|
refresh(): Promise<void>;
|
|
1034
|
+
refreshCellContent(): Promise<void>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Attempts to save any pending edits. If any edits are invalid, the save will be rejected until the edits are in a valid state.
|
|
1037
|
+
*
|
|
1038
|
+
* @returns Resolves when the edits are saved or rejected.
|
|
1039
|
+
* @since 5.0
|
|
1040
|
+
*/
|
|
1041
|
+
savePendingEdits(): Promise<void>;
|
|
996
1042
|
scrollToBottom(): Promise<void>;
|
|
997
1043
|
/** @param index */
|
|
998
1044
|
scrollToIndex(index: number): Promise<void>;
|
|
@@ -1008,6 +1054,8 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
1008
1054
|
* @param direction
|
|
1009
1055
|
*/
|
|
1010
1056
|
sortColumn(path: string, direction: "asc" | "desc"): Promise<void>;
|
|
1057
|
+
/** @param fieldName */
|
|
1058
|
+
toggleColumnVisibility(fieldName: string): Promise<void>;
|
|
1011
1059
|
zoomToSelection(): Promise<void>;
|
|
1012
1060
|
"@setterTypes": {
|
|
1013
1061
|
icon?: IconName;
|
|
@@ -27,26 +27,32 @@ class w extends c {
|
|
|
27
27
|
set tableDisabled(e) {
|
|
28
28
|
this.widget.disabled = e;
|
|
29
29
|
}
|
|
30
|
+
addPendingEdits(e) {
|
|
31
|
+
this.widget.addPendingEdits(e);
|
|
32
|
+
}
|
|
30
33
|
async deleteSelection(e) {
|
|
31
|
-
await this.widget
|
|
34
|
+
await this.widget.deleteSelection(e);
|
|
32
35
|
}
|
|
33
36
|
async destroy() {
|
|
34
37
|
await this.manager.destroy();
|
|
35
38
|
}
|
|
39
|
+
async discardPendingEdits(e, i) {
|
|
40
|
+
return await this.widget.discardPendingEdits(e, i);
|
|
41
|
+
}
|
|
36
42
|
async exportSelectionToCSV(e) {
|
|
37
|
-
await this.widget
|
|
43
|
+
await this.widget.exportSelectionToCSV(e);
|
|
38
44
|
}
|
|
39
45
|
async findColumn(e) {
|
|
40
|
-
return this.widget
|
|
46
|
+
return this.widget.findColumn(e);
|
|
41
47
|
}
|
|
42
|
-
getFeatureStoreItemByObjectId(e) {
|
|
43
|
-
return this.widget
|
|
48
|
+
async getFeatureStoreItemByObjectId(e) {
|
|
49
|
+
return this.widget.getFeatureStoreItemByObjectId(e);
|
|
44
50
|
}
|
|
45
51
|
async goToPage(e) {
|
|
46
52
|
this.widget.goToPage(e);
|
|
47
53
|
}
|
|
48
54
|
async hideColumn(e) {
|
|
49
|
-
this.widget
|
|
55
|
+
this.widget.hideColumn(e);
|
|
50
56
|
}
|
|
51
57
|
async nextPage() {
|
|
52
58
|
this.widget.nextPage();
|
|
@@ -55,34 +61,43 @@ class w extends c {
|
|
|
55
61
|
this.widget.previousPage();
|
|
56
62
|
}
|
|
57
63
|
async refresh() {
|
|
58
|
-
await this.widget
|
|
64
|
+
await this.widget.refresh();
|
|
65
|
+
}
|
|
66
|
+
async refreshCellContent() {
|
|
67
|
+
this.widget.refreshCellContent();
|
|
68
|
+
}
|
|
69
|
+
async savePendingEdits() {
|
|
70
|
+
this.widget.savePendingEdits();
|
|
59
71
|
}
|
|
60
72
|
async scrollToBottom() {
|
|
61
73
|
this.widget.scrollToBottom();
|
|
62
74
|
}
|
|
63
75
|
async scrollToIndex(e) {
|
|
64
|
-
this.widget
|
|
76
|
+
this.widget.scrollToIndex(e);
|
|
65
77
|
}
|
|
66
78
|
async scrollToLeft() {
|
|
67
79
|
this.widget.scrollLeft();
|
|
68
80
|
}
|
|
69
81
|
async scrollToRow(e) {
|
|
70
|
-
this.widget
|
|
82
|
+
this.widget.scrollToRow(e);
|
|
71
83
|
}
|
|
72
84
|
async scrollToTop() {
|
|
73
85
|
this.widget.scrollToTop();
|
|
74
86
|
}
|
|
75
87
|
async showAllColumns() {
|
|
76
|
-
this.widget
|
|
88
|
+
this.widget.showAllColumns();
|
|
77
89
|
}
|
|
78
90
|
async showColumn(e) {
|
|
79
|
-
this.widget
|
|
91
|
+
this.widget.showColumn(e);
|
|
80
92
|
}
|
|
81
93
|
async sortColumn(e, i) {
|
|
82
|
-
this.widget
|
|
94
|
+
this.widget.sortColumn(e, i);
|
|
95
|
+
}
|
|
96
|
+
async toggleColumnVisibility(e) {
|
|
97
|
+
this.widget.toggleColumnVisibility(e);
|
|
83
98
|
}
|
|
84
99
|
async zoomToSelection() {
|
|
85
|
-
this.widget
|
|
100
|
+
this.widget.zoomToSelection();
|
|
86
101
|
}
|
|
87
102
|
load() {
|
|
88
103
|
this.manager.onLifecycle(() => this.widget.highlightIds.on("change", this.arcgisSelectionChange.emit));
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type TemplateItem from "@arcgis/core/widgets/FeatureTemplates/TemplateItem";
|
|
2
|
+
import type TemplateItem from "@arcgis/core/widgets/FeatureTemplates/TemplateItem.js";
|
|
3
3
|
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
4
|
-
import type TemplateItem2 from "@arcgis/core/widgets/FeatureTemplates/TemplateItem.js";
|
|
5
4
|
import type TemplateItemGroup from "@arcgis/core/widgets/FeatureTemplates/TemplateItemGroup.js";
|
|
6
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
7
6
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
8
|
-
import type { SelectEvent } from "@arcgis/core/widgets/FeatureTemplates/FeatureTemplatesViewModel";
|
|
7
|
+
import type { SelectEvent, FeatureTemplatesViewModelState } from "@arcgis/core/widgets/FeatureTemplates/FeatureTemplatesViewModel.js";
|
|
9
8
|
import type { Filter, GroupByType } from "@arcgis/core/widgets/FeatureTemplates/types.js";
|
|
10
9
|
import type { HeadingLevel } from "@arcgis/core/widgets/support/types.js";
|
|
11
10
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
12
11
|
import type { LayerWithFeatureTemplatesUnion } from "@arcgis/core/layers/types.js";
|
|
13
|
-
import type { FeatureTemplatesViewModelState } from "@arcgis/core/widgets/FeatureTemplates/FeatureTemplatesViewModel.js";
|
|
14
12
|
|
|
15
13
|
/** @internal */
|
|
16
14
|
export abstract class ArcgisFeatureTemplates extends LitElement {
|
|
@@ -131,7 +129,7 @@ export abstract class ArcgisFeatureTemplates extends LitElement {
|
|
|
131
129
|
*/
|
|
132
130
|
get icon(): Icon["icon"];
|
|
133
131
|
set icon(value: IconName);
|
|
134
|
-
get items(): Array<
|
|
132
|
+
get items(): Array<TemplateItem | TemplateItemGroup>;
|
|
135
133
|
/**
|
|
136
134
|
* The component's default label.
|
|
137
135
|
*
|
|
@@ -173,7 +171,7 @@ export abstract class ArcgisFeatureTemplates extends LitElement {
|
|
|
173
171
|
* @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
|
|
174
172
|
*/
|
|
175
173
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
176
|
-
get selectedItem():
|
|
174
|
+
get selectedItem(): TemplateItem | undefined;
|
|
177
175
|
/**
|
|
178
176
|
* Specifies the selection behavior of list items. The `"single"` selection mode keeps the clicked list item selected. Whereas, `"none"` does not preserve the selection after clicking the list item.
|
|
179
177
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Graphic from "@arcgis/core/Graphic.js";
|
|
3
|
-
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer";
|
|
4
|
-
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer";
|
|
5
|
-
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer";
|
|
3
|
+
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
4
|
+
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
5
|
+
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
6
6
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
8
|
|
|
@@ -2,120 +2,120 @@
|
|
|
2
2
|
import { c as m } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as f, html as n } from "lit";
|
|
4
4
|
import { keyed as d } from "lit/directives/keyed.js";
|
|
5
|
-
import { ArcgisUtilityNetworkAssociationList as
|
|
5
|
+
import { ArcgisUtilityNetworkAssociationList as g } from "../arcgis-utility-network-association-list/customElement.js";
|
|
6
6
|
import { stripHTML as u } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
7
|
-
import { renderElement as p, safeClassMap as
|
|
7
|
+
import { renderElement as p, safeClassMap as y } from "@arcgis/lumina";
|
|
8
8
|
import { formatNumber as w, substitute as $ } from "@arcgis/core/intl.js";
|
|
9
9
|
const b = f`:host{position:relative;flex:1 1 auto}.list-item--hidden{display:none}.feature-observer{bottom:var(--calcite-spacing-xxl);position:relative;text-align:center;z-index:2}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.notice-container{margin-bottom:var(--calcite-spacing-xs)}`, _ = "nested";
|
|
10
|
-
class A extends
|
|
10
|
+
class A extends g {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.autoDestroyDisabled = !1, this.displayCount = 3, this.flowType = "feature-utility-network-association-type";
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.properties = { autoDestroyDisabled: 5, description: 1, displayCount: 9, endIndex: 32, flowItems: 0, flowType: 1, heading: 1, map: 0, spatialReference: 0, timeZone: 1, view: 0 };
|
|
15
|
+
this.properties = { autoDestroyDisabled: 5, description: 1, displayCount: 9, endIndex: 32, flowItems: 0, flowType: 1, heading: 1, map: 0, referenceElement: 1, spatialReference: 0, timeZone: 1, view: 0 };
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.styles = b;
|
|
19
19
|
}
|
|
20
20
|
get endIndex() {
|
|
21
|
-
const { currentFeaturePage:
|
|
22
|
-
return Math.min(
|
|
21
|
+
const { currentFeaturePage: e, featuresPerPage: t, maxFeatureCount: s } = this;
|
|
22
|
+
return Math.min(e * t, s);
|
|
23
23
|
}
|
|
24
24
|
async destroy() {
|
|
25
25
|
await this.manager.destroy();
|
|
26
26
|
}
|
|
27
|
-
_featureViewModelMatch(
|
|
28
|
-
const s =
|
|
27
|
+
_featureViewModelMatch(e, t) {
|
|
28
|
+
const s = e.graphic, i = s?.layer;
|
|
29
29
|
let o = null;
|
|
30
30
|
i?.type === "subtype-sublayer" && i.parent ? o = i.parent.globalIdField ?? null : i && "globalIdField" in i && (o = i.globalIdField);
|
|
31
|
-
const l = o ? s?.
|
|
31
|
+
const l = o ? s?.getAttribute(o) : null, r = t.graphic, a = r?.layer;
|
|
32
32
|
let c = null;
|
|
33
33
|
a?.type === "subtype-sublayer" && a.parent ? c = a.parent.globalIdField ?? null : a && "globalIdField" in a && (c = a.globalIdField);
|
|
34
|
-
const h = c ? r?.
|
|
35
|
-
return l && h && l === h;
|
|
34
|
+
const h = c ? r?.getAttribute(c) : null;
|
|
35
|
+
return !!(l && h && l === h);
|
|
36
36
|
}
|
|
37
|
-
_findFlowItem(
|
|
38
|
-
return this.flowItems?.findIndex((
|
|
39
|
-
if (
|
|
37
|
+
_findFlowItem(e) {
|
|
38
|
+
return this.flowItems?.findIndex((t) => {
|
|
39
|
+
if (t.flowType !== "feature-association")
|
|
40
40
|
return !1;
|
|
41
|
-
const s =
|
|
42
|
-
return this._featureViewModelMatch(s,
|
|
41
|
+
const s = t.viewModel;
|
|
42
|
+
return this._featureViewModelMatch(s, e);
|
|
43
43
|
}) ?? -1;
|
|
44
44
|
}
|
|
45
|
-
_formatPercentAlong(
|
|
46
|
-
const { percentAlong:
|
|
47
|
-
return
|
|
45
|
+
_formatPercentAlong(e) {
|
|
46
|
+
const { percentAlong: t } = e;
|
|
47
|
+
return t == null ? "" : w(t, {
|
|
48
48
|
style: "percent",
|
|
49
49
|
maximumFractionDigits: 2
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
async _handleFeatureClick(
|
|
52
|
+
async _handleFeatureClick(e, t, s) {
|
|
53
53
|
const { flowItems: i } = this;
|
|
54
|
-
if (
|
|
54
|
+
if (e) {
|
|
55
55
|
i?.destroyAll();
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
if (
|
|
58
|
+
if (t < 0 || !i) {
|
|
59
59
|
await this._selectAssociation(s);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
for (; i.length >
|
|
62
|
+
for (; i.length > t + 1; )
|
|
63
63
|
i.pop();
|
|
64
64
|
}
|
|
65
|
-
_isConnectivityAssociation(
|
|
66
|
-
const { associationType:
|
|
67
|
-
return
|
|
65
|
+
_isConnectivityAssociation(e) {
|
|
66
|
+
const { associationType: t } = e;
|
|
67
|
+
return t === "connectivity" || t === "junction-junction-connectivity" || t === "junction-edge-from-connectivity" || t === "junction-edge-midspan-connectivity" || t === "junction-edge-to-connectivity";
|
|
68
68
|
}
|
|
69
|
-
_isConnectivityMidspanAssociation(
|
|
70
|
-
return
|
|
69
|
+
_isConnectivityMidspanAssociation(e) {
|
|
70
|
+
return e.associationType === "junction-edge-midspan-connectivity";
|
|
71
71
|
}
|
|
72
|
-
_isParentFeature(
|
|
73
|
-
const
|
|
74
|
-
if (!
|
|
72
|
+
_isParentFeature(e) {
|
|
73
|
+
const t = this.flowItems?.getItemAt(0);
|
|
74
|
+
if (!t)
|
|
75
75
|
return !1;
|
|
76
|
-
const s =
|
|
77
|
-
return this._featureViewModelMatch(s,
|
|
76
|
+
const s = t.parentFeatureViewModel;
|
|
77
|
+
return this._featureViewModelMatch(s, e);
|
|
78
78
|
}
|
|
79
|
-
async _selectAssociation(
|
|
80
|
-
const { flowItems:
|
|
81
|
-
|
|
79
|
+
async _selectAssociation(e) {
|
|
80
|
+
const { flowItems: t } = this;
|
|
81
|
+
t && t.push(p(d(this.parentFeatureViewModel, n`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)));
|
|
82
82
|
}
|
|
83
|
-
_showAllAssociations(
|
|
84
|
-
const { flowItems:
|
|
85
|
-
if (!
|
|
83
|
+
_showAllAssociations(e) {
|
|
84
|
+
const { flowItems: t, description: s } = this;
|
|
85
|
+
if (!t || !e)
|
|
86
86
|
return;
|
|
87
87
|
this.showAllEnabled = !0;
|
|
88
|
-
const i =
|
|
89
|
-
|
|
88
|
+
const i = e?.title ?? "";
|
|
89
|
+
t.push(p(n`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this.associationViewModels} .description=${s} .flowItems=${t} .flowType=${this.flowType} .heading=${i} .messages=${this.messages} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .selectedLayer=${e} .showAllEnabled=${this.showAllEnabled}></arcgis-feature-utility-network-association-list>`));
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
|
-
const { associationViewModels:
|
|
93
|
-
return n`<div class="root">${
|
|
92
|
+
const { associationViewModels: e, state: t } = this, s = this.selectedLayer?.title ?? this.messages?.noTitle ?? "";
|
|
93
|
+
return n`<div class="root">${t === "loading" || t === "querying" ? this._renderLoading() : n`<calcite-list .displayMode=${_} .filterEnabled=${this.showAllEnabled && !!this.selectedLayer} .filterLabel=${this.messages?.associationFilterPlaceholder} .filterPlaceholder=${this.messages?.associationFilterPlaceholder} .label=${s}>${this.showAllEnabled && this.selectedLayer ? n`${this._renderFeatureCountWarning()}${this._renderAssociatedFeatureListPage()}${this._renderFeatureObserver()}` : Array.from(e.keys(), (i) => this._renderTypeList(i))}</calcite-list>`}</div>`;
|
|
94
94
|
}
|
|
95
|
-
_renderAssociatedFeature(
|
|
96
|
-
const { featureViewModel:
|
|
97
|
-
return n`<calcite-list-item class=${
|
|
95
|
+
_renderAssociatedFeature(e) {
|
|
96
|
+
const { featureViewModel: t, title: s } = e, i = this.state === "loading", o = this._findFlowItem(t), l = o < 0 && this._isParentFeature(t), r = l || o >= 0, a = `associated-feature-${e.association.globalId}`;
|
|
97
|
+
return n`<calcite-list-item class=${y(i ? "list-item--hidden" : "")} .description=${u(e.terminalName ?? "")} .label=${u(s)} @calciteListItemSelect=${async () => await this._handleFeatureClick(l, o, t)}>${this._isConnectivityAssociation(e.association) ? this._renderConnectivityIcon(e.association.associationType, a) : null}${this._isConnectivityMidspanAssociation(e.association) ? n`<calcite-chip .label=${this._formatPercentAlong(e.association)} scale=s slot=content-end>${this._formatPercentAlong(e.association)}</calcite-chip>` : null}${this._renderChevronIconNode(r)}</calcite-list-item>`;
|
|
98
98
|
}
|
|
99
|
-
_renderAssociatedFeatureList(
|
|
100
|
-
return
|
|
99
|
+
_renderAssociatedFeatureList(e) {
|
|
100
|
+
return e.toArray().map((t) => this._renderAssociatedFeature(t));
|
|
101
101
|
}
|
|
102
102
|
_renderAssociatedFeatureListPage() {
|
|
103
|
-
const
|
|
104
|
-
return [...this._renderTooltips(
|
|
103
|
+
const e = this.associationViewModels.get(this.selectedLayer).slice(0, this.endIndex);
|
|
104
|
+
return [...this._renderTooltips(e), ...this._renderAssociatedFeatureList(e)];
|
|
105
105
|
}
|
|
106
|
-
_renderChevronIconNode(
|
|
107
|
-
return n`<calcite-icon flip-rtl .icon=${
|
|
106
|
+
_renderChevronIconNode(e) {
|
|
107
|
+
return n`<calcite-icon flip-rtl .icon=${e ? "move-up" : "chevron-right"} scale=s slot=content-end></calcite-icon>`;
|
|
108
108
|
}
|
|
109
|
-
_renderItemTooltip(
|
|
110
|
-
const { tooltipReferenceMap:
|
|
111
|
-
return this._isConnectivityAssociation(
|
|
109
|
+
_renderItemTooltip(e) {
|
|
110
|
+
const { tooltipReferenceMap: t } = this, s = `associated-feature-${e.association.globalId}`;
|
|
111
|
+
return this._isConnectivityAssociation(e.association) ? n`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(s)}>${this.getConnectivityTooltip(e.association.associationType)}</calcite-tooltip>` : null;
|
|
112
112
|
}
|
|
113
|
-
_renderTypeList(
|
|
114
|
-
const { messages:
|
|
115
|
-
return d("show-all", n`<calcite-list-item expanded .label=${
|
|
113
|
+
_renderTypeList(e) {
|
|
114
|
+
const { messages: t } = this, { displayCount: s } = this, i = this.associationViewModels.get(e), o = i.slice(0, s), l = o.length < i.length, r = $(t?.numberRecords ?? "", { number: i.length.toString() }), a = t?.showAll ?? "";
|
|
115
|
+
return d("show-all", n`<calcite-list-item expanded .label=${e.title} .value=${e.id}><calcite-chip .label=${String(i.length)} scale=s slot=content-end>${i.length}</calcite-chip><calcite-list .group=${e.id} .label=${e.title ?? ""}>${[this._renderTooltips(o), this._renderAssociatedFeatureList(o)]}${l ? d("show-all-item", n`<calcite-list-item .description=${r} .label=${a} @calciteListItemSelect=${() => this._showAllAssociations(e)}><calcite-icon icon=list scale=s slot=content-end></calcite-icon></calcite-list-item>`) : null}</calcite-list></calcite-list-item>`);
|
|
116
116
|
}
|
|
117
|
-
_renderTooltips(
|
|
118
|
-
return
|
|
117
|
+
_renderTooltips(e) {
|
|
118
|
+
return e.toArray().map((t) => this._renderItemTooltip(t));
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
m("arcgis-feature-utility-network-association-list", A);
|