@arcgis/map-components 5.1.0-next.2 → 5.1.0-next.21
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/README.md +1 -1
- package/dist/cdn/{RCWZGU5T.js → 255MJSL7.js} +1 -1
- package/dist/cdn/25C2WYON.js +2 -0
- package/dist/cdn/{BUE7MOVD.js → 2632C726.js} +1 -1
- package/dist/cdn/2AYGSNEO.js +2 -0
- package/dist/cdn/{HH6BDERO.js → 2F4VMURG.js} +1 -1
- package/dist/cdn/2ID4LW4Y.js +2 -0
- package/dist/cdn/{YFUI4F5L.js → 2LRWWFCA.js} +1 -1
- package/dist/cdn/2XOP6ODR.js +2 -0
- package/dist/cdn/{YZ5ZVEPC.js → 2ZPMEF52.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/3OVSVCGF.js +2 -0
- package/dist/cdn/45DIIV4Z.js +2 -0
- package/dist/cdn/{5PRNT4KD.js → 4723UCGJ.js} +1 -1
- package/dist/cdn/{JFDN4YD7.js → 4E76WGF2.js} +1 -1
- package/dist/cdn/{NIUIKBRD.js → 4GMSBMTS.js} +1 -1
- package/dist/cdn/{M65HMJZA.js → 4IATWN2B.js} +1 -1
- package/dist/cdn/{3FSARSVN.js → 4JCY4NHX.js} +1 -1
- package/dist/cdn/{KAXJKSFB.js → 4JLBYQRJ.js} +1 -1
- package/dist/cdn/4S2ZIUO2.js +2 -0
- package/dist/cdn/{DTVW3MYT.js → 4X3QNLL2.js} +1 -1
- package/dist/cdn/{63P5VYGP.js → 5EEHZIM7.js} +1 -1
- package/dist/cdn/{EENOVGOS.js → 5H2OW6X5.js} +1 -1
- package/dist/cdn/5LIIGBMB.js +2 -0
- package/dist/cdn/{KNAUIRT6.js → 63HF2QYP.js} +1 -1
- package/dist/cdn/{EYW7YQF6.js → 63N5ERFL.js} +1 -1
- package/dist/cdn/6HVUFH5B.js +2 -0
- package/dist/cdn/{TUW6NLYY.js → 6IUWB6ML.js} +1 -1
- package/dist/cdn/{ZURN5EZI.js → 6QW2EUPX.js} +1 -1
- package/dist/cdn/{BEXRPBHT.js → 6RKD6GFP.js} +1 -1
- 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/{UVCYUIKZ.js → 7D3Z55D3.js} +1 -1
- package/dist/cdn/{2XSXH4TM.js → 7SCKZLOG.js} +1 -1
- package/dist/cdn/{7ZAVSDBZ.js → 7SLU4JV4.js} +1 -1
- package/dist/cdn/7WLTT4K3.js +2 -0
- package/dist/cdn/{GHFKQEFW.js → A5JTB4SB.js} +1 -1
- package/dist/cdn/{WW6L6XX4.js → AEDEEK6H.js} +1 -1
- package/dist/cdn/AN7CPHB7.js +2 -0
- package/dist/cdn/{FJJVAOBW.js → AOYK64AS.js} +1 -1
- package/dist/cdn/{TSPKG2WN.js → ATG3WC6M.js} +2 -2
- package/dist/cdn/{RP5SO6BA.js → AWONSBWA.js} +1 -1
- package/dist/cdn/{UKNKW6MH.js → B4UXMUWZ.js} +1 -1
- package/dist/cdn/{HK6EWWUB.js → BM2JTRBY.js} +1 -1
- package/dist/cdn/{PMQLTMQ4.js → BN6DAJ2Q.js} +1 -1
- package/dist/cdn/BOM3XB6A.js +2 -0
- 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/{6ZNO34O5.js → CCKYOWZO.js} +1 -1
- package/dist/cdn/{3YA25S2J.js → CMI4ZWGU.js} +1 -1
- package/dist/cdn/COSZXJ2Q.js +2 -0
- package/dist/cdn/{PISCYSA5.js → CQZVPPYJ.js} +1 -1
- package/dist/cdn/{2EJ4XRH4.js → CUNZDZ3C.js} +1 -1
- package/dist/cdn/CWODI2VY.js +2 -0
- package/dist/cdn/D27YXH3W.js +2 -0
- package/dist/cdn/{R4V6HGJH.js → D3NPU6MI.js} +1 -1
- package/dist/cdn/DDYVX52H.js +2 -0
- package/dist/cdn/DEJGWX76.js +2 -0
- package/dist/cdn/{CC53K2CR.js → DG7CXNOU.js} +1 -1
- package/dist/cdn/DY3ERISU.js +2 -0
- 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/EQ4FEO75.js +2 -0
- package/dist/cdn/EQPJBPD5.js +2 -0
- package/dist/cdn/EVC4MXIZ.js +2 -0
- package/dist/cdn/{KHM3S4Q6.js → F2JFRFTT.js} +1 -1
- package/dist/cdn/F7S63XRR.js +2 -0
- package/dist/cdn/{AJHRJ5EA.js → FDCE7TCR.js} +1 -1
- package/dist/cdn/{EVRFMTMV.js → FNJ3HMEN.js} +1 -1
- package/dist/cdn/FTAYHPMM.js +2 -0
- package/dist/cdn/{OKXZJQ2B.js → FTQ4FNZO.js} +1 -1
- package/dist/cdn/{H6ILOF27.js → FUXY5EKO.js} +1 -1
- package/dist/cdn/FZDIAVC4.js +2 -0
- package/dist/cdn/G7QZJNAC.js +2 -0
- 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/GXBHOVJY.js +2 -0
- package/dist/cdn/{KY4FMFIC.js → GZ3XKDIF.js} +1 -1
- package/dist/cdn/HDL76VD5.js +2 -0
- package/dist/cdn/{J7ZNOOZ4.js → HEAH7MYD.js} +1 -1
- package/dist/cdn/{QLPUP6A3.js → HHJN3Q6G.js} +1 -1
- 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/{3XMPN66U.js → I6EE4PLM.js} +1 -1
- package/dist/cdn/{NGKNECON.js → ILVKM7IB.js} +1 -1
- package/dist/cdn/{F4HWT5H3.js → IM47JQ76.js} +1 -1
- package/dist/cdn/{ORH27QWU.js → IOYNCKBD.js} +1 -1
- package/dist/cdn/IQPGSWSL.js +2 -0
- package/dist/cdn/{QVMTO5BV.js → IUFWY6SY.js} +1 -1
- package/dist/cdn/IW7IOW5D.js +2 -0
- package/dist/cdn/{FQGKKJL7.js → IX5YLGNO.js} +1 -1
- package/dist/cdn/{UKKUFJLL.js → J275QP5E.js} +1 -1
- package/dist/cdn/{OCEXQCFT.js → JEFKCKHC.js} +1 -1
- package/dist/cdn/JSD5CN5Q.js +2 -0
- package/dist/cdn/{4EAZ4PIQ.js → JUVPY4PW.js} +1 -1
- package/dist/cdn/{K27JJT2P.js → JWGHJITH.js} +1 -1
- package/dist/cdn/JXUAJ4MS.js +2 -0
- package/dist/cdn/{32K266S4.js → L5EGJLC4.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/{2VC2VUTP.js → MIXNJBCA.js} +1 -1
- package/dist/cdn/{ZVTPU2MO.js → MR4WJFX6.js} +1 -1
- package/dist/cdn/{FC6W37TT.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/NHMOFXEE.js +2 -0
- package/dist/cdn/{52GXKBGP.js → NLRKDVIJ.js} +1 -1
- package/dist/cdn/NPEA453T.js +2 -0
- package/dist/cdn/{HO4JUZ6N.js → NQ3Z6LXI.js} +1 -1
- package/dist/cdn/NWWJHV2L.js +2 -0
- package/dist/cdn/{E2JLZZFR.js → O2BAIE3M.js} +1 -1
- package/dist/cdn/OKXFUFPW.js +2 -0
- package/dist/cdn/OSIWX2OH.js +2 -0
- package/dist/cdn/{JTFZMNCO.js → PI6UQWTD.js} +1 -1
- package/dist/cdn/{SZ5MNKOW.js → PPQASHMO.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/PZC5TBXA.js +2 -0
- package/dist/cdn/{3PQT2S7Z.js → QEXDU6P7.js} +1 -1
- package/dist/cdn/{4363SIKC.js → QHSQUBMZ.js} +1 -1
- package/dist/cdn/QUXORNHT.js +2 -0
- package/dist/cdn/R7BJHEHH.js +2 -0
- package/dist/cdn/{XRP25NGI.js → RG5JFGHQ.js} +1 -1
- package/dist/cdn/{WJ5HD2YN.js → RMGBO7V2.js} +1 -1
- package/dist/cdn/S4I3X6AX.js +2 -0
- package/dist/cdn/{CIUAWIL5.js → S4NUCPRQ.js} +2 -2
- 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/TK4IQ72L.js +2 -0
- 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/{JBJ5NQTI.js → UH33CM5U.js} +1 -1
- package/dist/cdn/UNY32K3R.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/W5T5EBL3.js +2 -0
- package/dist/cdn/{NZAO2BVV.js → WHGU6HOR.js} +1 -1
- package/dist/cdn/{TPOLS4YM.js → WPWBOKOR.js} +1 -1
- package/dist/cdn/{WGWNMYUH.js → WZDTXSRM.js} +1 -1
- package/dist/cdn/{XMZSFKKO.js → X4AA7QDM.js} +1 -1
- package/dist/cdn/{JLK664TB.js → X5NCN674.js} +1 -1
- package/dist/cdn/{FARFUCNU.js → XEOTORJP.js} +1 -1
- package/dist/cdn/{ILPNFQWH.js → XW72RT5D.js} +1 -1
- package/dist/cdn/Y33DXW66.js +2 -0
- package/dist/cdn/{YC423DBS.js → Y4JTATJ2.js} +1 -1
- package/dist/cdn/{ZHINQNZ2.js → Y6IN6NEC.js} +1 -1
- package/dist/cdn/{J55YUTPM.js → Y6W27QLR.js} +1 -1
- package/dist/cdn/{BGOWWLCQ.js → YC562S5E.js} +1 -1
- package/dist/cdn/{AFU3S7KW.js → YC5JACID.js} +1 -1
- package/dist/cdn/{T2ZF4XIZ.js → ZERLO6VI.js} +1 -1
- package/dist/cdn/assets/elevation-profile/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +106 -99
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +73 -73
- package/dist/chunks/layer-utils.js +33 -16
- package/dist/chunks/measurementUtils.js +45 -22
- package/dist/chunks/slots.js +20 -20
- package/dist/chunks/time-utils.js +24 -22
- package/dist/chunks/useArcgisViewReadyError.js +7 -7
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +19 -11
- package/dist/components/arcgis-area-measurement-2d/customElement.js +100 -91
- package/dist/components/arcgis-area-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +27 -25
- package/dist/components/arcgis-area-measurement-3d/customElement.js +73 -94
- package/dist/components/arcgis-area-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-attachments/customElement.d.ts +5 -6
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -5
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +16 -16
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +127 -100
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +6 -6
- package/dist/components/arcgis-bookmarks/customElement.d.ts +12 -17
- package/dist/components/arcgis-bookmarks/types.d.ts +14 -7
- package/dist/components/arcgis-building-explorer/customElement.d.ts +16 -75
- package/dist/components/arcgis-building-explorer/customElement.js +3 -3
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +121 -74
- package/dist/components/arcgis-clipboard/customElement.d.ts +3 -3
- package/dist/components/arcgis-compass/customElement.d.ts +2 -3
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +14 -16
- package/dist/components/arcgis-daylight/customElement.d.ts +31 -32
- package/dist/components/arcgis-daylight/customElement.js +202 -200
- package/dist/components/arcgis-daylight/types.d.ts +1 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +24 -22
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +79 -100
- package/dist/components/arcgis-direct-line-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -4
- package/dist/components/arcgis-directions/customElement.d.ts +60 -14
- package/dist/components/arcgis-directions/customElement.js +28 -6
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +23 -11
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +95 -86
- package/dist/components/arcgis-distance-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-editor/customElement.d.ts +27 -19
- package/dist/components/arcgis-editor/customElement.js +3 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +30 -29
- 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-elevation-profile-statistics/customElement.js +25 -31
- package/dist/components/arcgis-expand/customElement.d.ts +6 -7
- package/dist/components/arcgis-expand/types.d.ts +1 -0
- package/dist/components/arcgis-feature/customElement.d.ts +38 -39
- package/dist/components/arcgis-feature/customElement.js +39 -39
- package/dist/components/arcgis-feature-expression/customElement.js +23 -26
- package/dist/components/arcgis-feature-fields/customElement.js +28 -27
- package/dist/components/arcgis-feature-form/customElement.d.ts +32 -14
- package/dist/components/arcgis-feature-form/customElement.js +2 -2
- package/dist/components/arcgis-feature-image/customElement.d.ts +5 -5
- package/dist/components/arcgis-feature-relationship/customElement.js +13 -13
- package/dist/components/arcgis-feature-table/customElement.d.ts +183 -89
- package/dist/components/arcgis-feature-table/customElement.js +47 -31
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +126 -0
- package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/customElement.js +4 -4
- package/dist/components/arcgis-feature-title/customElement.d.ts +3 -3
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +11 -8
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +62 -62
- package/dist/components/arcgis-features/customElement.d.ts +66 -70
- package/dist/components/arcgis-features/customElement.js +49 -49
- package/dist/components/arcgis-floor-filter/customElement.d.ts +12 -15
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -1
- package/dist/components/arcgis-grid-controls/customElement.d.ts +10 -10
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +36 -37
- package/dist/components/arcgis-home/customElement.d.ts +8 -10
- package/dist/components/arcgis-layer-list/customElement.d.ts +51 -54
- package/dist/components/arcgis-legend/customElement.d.ts +42 -43
- package/dist/components/arcgis-legend-classic-element/customElement.js +22 -24
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +16 -14
- package/dist/components/arcgis-link-chart/customElement.d.ts +61 -71
- package/dist/components/arcgis-link-chart/customElement.js +15 -15
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +3 -5
- package/dist/components/arcgis-link-chart-layout-switcher/types.d.ts +1 -0
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +9 -9
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +13 -13
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/types.d.ts +3 -0
- package/dist/components/arcgis-locate/customElement.d.ts +3 -4
- package/dist/components/arcgis-map/customElement.d.ts +174 -184
- package/dist/components/arcgis-map/customElement.js +11 -11
- package/dist/components/arcgis-measurement/customElement.d.ts +4 -5
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +9 -11
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +7 -12
- package/dist/components/arcgis-navigation-toggle/customElement.js +9 -6
- package/dist/components/arcgis-navigation-toggle/types.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +10 -3
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +6 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +28 -16
- package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +267 -123
- package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +117 -116
- package/dist/components/arcgis-paste/customElement.d.ts +5 -5
- package/dist/components/arcgis-paste/customElement.js +57 -54
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +67 -70
- package/dist/components/arcgis-popup/customElement.js +121 -119
- package/dist/components/arcgis-popup/types.d.ts +2 -2
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +4 -3
- package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +51 -31
- package/dist/components/arcgis-print/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +7 -7
- 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-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +14 -2
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +38 -41
- package/dist/components/arcgis-scale-bar/customElement.d.ts +3 -7
- package/dist/components/arcgis-scale-bar/customElement.js +7 -7
- package/dist/components/arcgis-scale-bar/types.d.ts +5 -0
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +7 -8
- package/dist/components/arcgis-scene/customElement.d.ts +185 -200
- package/dist/components/arcgis-scene/customElement.js +14 -14
- package/dist/components/arcgis-search/customElement.d.ts +63 -59
- package/dist/components/arcgis-search/customElement.js +19 -18
- package/dist/components/arcgis-search/types.d.ts +1 -0
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +84 -40
- package/dist/components/arcgis-sketch/customElement.d.ts +57 -39
- package/dist/components/arcgis-sketch/customElement.js +20 -8
- package/dist/components/arcgis-slice/customElement.d.ts +26 -26
- package/dist/components/arcgis-slice/customElement.js +6 -6
- package/dist/components/arcgis-slice/types.d.ts +4 -0
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +128 -97
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +53 -59
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +55 -62
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +112 -100
- package/dist/components/arcgis-slider-color-legacy/customElement.js +8 -8
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +154 -99
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +14 -17
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +75 -93
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +85 -104
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +1 -2
- package/dist/components/arcgis-swipe/customElement.d.ts +11 -11
- package/dist/components/arcgis-table-list/customElement.d.ts +116 -81
- package/dist/components/arcgis-time-of-day-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-of-day-slider/customElement.js +11 -11
- package/dist/components/arcgis-time-slider/customElement.d.ts +23 -26
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +19 -33
- package/dist/components/arcgis-time-zone-label/customElement.js +19 -58
- package/dist/components/arcgis-time-zone-label/index.js +0 -1
- package/dist/components/arcgis-time-zone-label/types.d.ts +1 -0
- package/dist/components/arcgis-track/customElement.d.ts +6 -7
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +15 -2
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +5 -6
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +11 -8
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +86 -29
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +65 -59
- package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +1 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +18 -6
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +93 -64
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +10 -3
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +96 -91
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +17 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +96 -75
- package/dist/components/arcgis-utility-network-trace-results/index.js +2 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -2
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +51 -53
- package/dist/components/arcgis-value-picker-legacy/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +7 -21
- package/dist/components/arcgis-version-management/types.d.ts +15 -0
- package/dist/components/arcgis-video/customElement.d.ts +12 -12
- package/dist/components/arcgis-video-player/customElement.d.ts +6 -6
- package/dist/components/arcgis-video-player/customElement.js +2 -2
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +45 -41
- package/dist/components/arcgis-volume-measurement/customElement.js +171 -171
- package/dist/components/arcgis-volume-measurement/index.js +1 -1
- package/dist/components/arcgis-volume-measurement/types.d.ts +1 -0
- package/dist/components/arcgis-weather/customElement.d.ts +17 -18
- package/dist/components/arcgis-zoom/customElement.d.ts +8 -7
- package/dist/components/arcgis-zoom/types.d.ts +3 -0
- package/dist/components/types.d.ts +58 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +13 -35
- package/dist/loader.js +36 -36
- package/dist/types/lumina.d.ts +36 -58
- package/dist/types/preact.d.ts +37 -63
- package/dist/types/react.d.ts +38 -68
- package/dist/types/stencil.d.ts +36 -58
- package/package.json +4 -4
- package/dist/cdn/22LNBUKE.js +0 -2
- package/dist/cdn/23UYZVTW.js +0 -2
- package/dist/cdn/3GZCJE62.js +0 -2
- package/dist/cdn/4TURMTXA.js +0 -2
- package/dist/cdn/55QGHI47.js +0 -2
- package/dist/cdn/7UR4M6PN.js +0 -2
- package/dist/cdn/A4UJ53JS.js +0 -2
- package/dist/cdn/AGYDL2DX.js +0 -2
- package/dist/cdn/B5XR4LXQ.js +0 -2
- package/dist/cdn/CKNH5OMJ.js +0 -2
- package/dist/cdn/DOLELC6W.js +0 -2
- package/dist/cdn/E7FLH54K.js +0 -2
- package/dist/cdn/EL62JS5C.js +0 -2
- package/dist/cdn/EYNKJZG3.js +0 -2
- package/dist/cdn/F2TXAMXM.js +0 -2
- package/dist/cdn/FEQLUSM2.js +0 -2
- package/dist/cdn/HNHCO4OD.js +0 -2
- package/dist/cdn/HR2OOT3F.js +0 -2
- package/dist/cdn/I2MQQXVU.js +0 -2
- package/dist/cdn/IDDSHZVB.js +0 -2
- package/dist/cdn/JDZWJLJX.js +0 -2
- package/dist/cdn/KECAR2NZ.js +0 -2
- package/dist/cdn/KEFY4XPI.js +0 -2
- package/dist/cdn/KXF2562U.js +0 -2
- package/dist/cdn/LHEP4QSS.js +0 -2
- package/dist/cdn/LZFDWRYI.js +0 -2
- package/dist/cdn/M7VTEC3S.js +0 -2
- package/dist/cdn/MSMDSEFM.js +0 -2
- package/dist/cdn/MW73TE2N.js +0 -2
- package/dist/cdn/MWBGBBXT.js +0 -2
- package/dist/cdn/NVACRYY6.js +0 -2
- package/dist/cdn/NZ5M5SVG.js +0 -2
- package/dist/cdn/PNDLNFML.js +0 -2
- package/dist/cdn/RJ76OXB6.js +0 -2
- package/dist/cdn/S4XGBADW.js +0 -2
- package/dist/cdn/S6G6XXTM.js +0 -2
- package/dist/cdn/SKW7HQZ6.js +0 -2
- package/dist/cdn/SRSYUCVL.js +0 -2
- package/dist/cdn/TM5C2P2F.js +0 -2
- package/dist/cdn/U3LH3AZH.js +0 -2
- package/dist/cdn/UTH3SGAS.js +0 -2
- package/dist/cdn/VJMMA6UX.js +0 -2
- package/dist/cdn/W2E5L6DS.js +0 -2
- package/dist/cdn/WGXSSEAL.js +0 -2
- package/dist/cdn/X6OVNOLQ.js +0 -2
- package/dist/cdn/X7YUU7TS.js +0 -2
- package/dist/cdn/XO6U6OVM.js +0 -2
- package/dist/cdn/Y53D5YAC.js +0 -2
- package/dist/cdn/YKTB6AFH.js +0 -2
- package/dist/cdn/YWQGP6MB.js +0 -2
- package/dist/cdn/ZMLRDNKR.js +0 -2
- package/dist/cdn/ZUTQE3OX.js +0 -2
- package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +0 -14
- package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +0 -20
- package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +0 -93
- package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +0 -24
- package/dist/components/arcgis-building-explorer/support/types.d.ts +0 -11
- package/dist/components/arcgis-building-level-item/customElement.d.ts +0 -25
- package/dist/components/arcgis-building-level-item/index.d.ts +0 -1
- package/dist/components/arcgis-building-level-picker/customElement.d.ts +0 -20
- package/dist/components/arcgis-building-level-picker/index.d.ts +0 -1
- package/dist/components/arcgis-building-phase-picker/customElement.d.ts +0 -19
- package/dist/components/arcgis-building-phase-picker/index.d.ts +0 -1
- package/dist/components/arcgis-daylight/daylight-utils.d.ts +0 -8
- package/dist/components/arcgis-expand/ExpandViewModel.d.ts +0 -44
- package/dist/components/arcgis-feature-templates/customElement.d.ts +0 -215
- package/dist/components/arcgis-feature-templates/index.d.ts +0 -1
- package/dist/components/arcgis-slice/SliceViewModel.d.ts +0 -4
- package/dist/components/support/goTo.d.ts +0 -37
- package/dist/controllers/useArcgisLoadError.d.ts +0 -9
- package/dist/support/heading.d.ts +0 -1
- package/dist/support/measurementUtils.d.ts +0 -1
- package/dist/utils/action-utils.d.ts +0 -3
- package/dist/utils/component-utils.d.ts +0 -5
- /package/dist/cdn/{UQ7E33T4.js → 2SQUOXWG.js} +0 -0
- /package/dist/cdn/{KAJ3U6DP.js → 3GVHNIXM.js} +0 -0
- /package/dist/cdn/{E2KWMQKQ.js → 3NF4UU3S.js} +0 -0
- /package/dist/cdn/{PHF2XKSK.js → 43UMYTXQ.js} +0 -0
- /package/dist/cdn/{CHDRBZNL.js → 47T624VO.js} +0 -0
- /package/dist/cdn/{X5H6ZUFX.js → 4NBXFFTY.js} +0 -0
- /package/dist/cdn/{DDI363AI.js → 5IPPKC3M.js} +0 -0
- /package/dist/cdn/{LCXF3AKY.js → 6JUTQDKC.js} +0 -0
- /package/dist/cdn/{YMU5IPMP.js → 6QPD32WT.js} +0 -0
- /package/dist/cdn/{M6TJN2I5.js → 7LEGS7EX.js} +0 -0
- /package/dist/cdn/{ORP3ZND2.js → AQG5RIV3.js} +0 -0
- /package/dist/cdn/{W5XM52J7.js → B3I4OKDQ.js} +0 -0
- /package/dist/cdn/{RCD5UKTW.js → BFHBS4MR.js} +0 -0
- /package/dist/cdn/{CRR65TKV.js → D3X7R3GD.js} +0 -0
- /package/dist/cdn/{7FMJZURP.js → DYC6OHKG.js} +0 -0
- /package/dist/cdn/{5OB4E5PR.js → DZG4EA6U.js} +0 -0
- /package/dist/cdn/{W5B5LTGN.js → ELF2SE5K.js} +0 -0
- /package/dist/cdn/{UVZZX6YP.js → FHSXSYA6.js} +0 -0
- /package/dist/cdn/{BQIH5T3S.js → FRWY77LH.js} +0 -0
- /package/dist/cdn/{ZFFBK3VO.js → FYVM32GJ.js} +0 -0
- /package/dist/cdn/{B7IYR676.js → GVW4OIR5.js} +0 -0
- /package/dist/cdn/{FPD3STSJ.js → H6LWU2FC.js} +0 -0
- /package/dist/cdn/{DEOCASGG.js → HEBLEJCT.js} +0 -0
- /package/dist/cdn/{OSRAPPNR.js → IDITPQDC.js} +0 -0
- /package/dist/cdn/{DWZIXPJ4.js → J3F5FPMC.js} +0 -0
- /package/dist/cdn/{YP3JKXC4.js → JMZA4GQB.js} +0 -0
- /package/dist/cdn/{JDPQMOEW.js → JPDYVHUZ.js} +0 -0
- /package/dist/cdn/{PUOWH3YL.js → KNFAPO3C.js} +0 -0
- /package/dist/cdn/{W2Q7NWBG.js → LEC4CIVO.js} +0 -0
- /package/dist/cdn/{JMDNJPNT.js → NCTWDKYG.js} +0 -0
- /package/dist/cdn/{RDW2NJPR.js → PDCUZMSB.js} +0 -0
- /package/dist/cdn/{76ESM6B2.js → RJTABGPK.js} +0 -0
- /package/dist/cdn/{2ZL4CF6P.js → SPXZXKMH.js} +0 -0
- /package/dist/cdn/{HZTWWEVM.js → TRPYDMNK.js} +0 -0
- /package/dist/cdn/{YHVFARHN.js → UYDFCELQ.js} +0 -0
- /package/dist/cdn/{55VMVXRK.js → V2D4QTRR.js} +0 -0
- /package/dist/cdn/{QAXR4LT6.js → WBZEEY5N.js} +0 -0
- /package/dist/cdn/{YDJGMRV3.js → WG5RPCHL.js} +0 -0
- /package/dist/cdn/{ZLIZCBGT.js → WL4J6REN.js} +0 -0
- /package/dist/cdn/{GB42YXHR.js → XJQRAKJ6.js} +0 -0
- /package/dist/cdn/{L4WRYSKZ.js → YGJ7NPDT.js} +0 -0
- /package/dist/cdn/{V3M37NHT.js → ZJ36DBTH.js} +0 -0
- /package/dist/components/{arcgis-building-discipline-tree → arcgis-feature-templates-legacy}/index.d.ts +0 -0
- /package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/index.js +0 -0
- /package/dist/components/arcgis-locate/{LocateViewModel.d.ts → types.d.ts} +0 -0
- /package/dist/components/arcgis-weather/{WeatherViewModel.d.ts → types.d.ts} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type ClassBreakInfo from "@arcgis/core/renderers/support/ClassBreakInfo";
|
|
2
|
+
import type ClassBreakInfo from "@arcgis/core/renderers/support/ClassBreakInfo.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type { ThumbDragEvent, ThumbChangeEvent } from "@arcgis/core/widgets/Slider/types";
|
|
4
|
+
import type { ClassBreaksRendererResult } from "@arcgis/core/smartMapping/renderers/color.js";
|
|
5
|
+
import type { HistogramResult } from "@arcgis/core/smartMapping/statistics/types.js";
|
|
6
|
+
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
7
|
+
import type { ThumbDragEvent, ThumbChangeEvent } from "@arcgis/core/widgets/Slider/types.js";
|
|
9
8
|
import type { ColorBreak, HistogramConfig } from "@arcgis/core/widgets/smartMapping/types.js";
|
|
10
9
|
import type { LabelFormatFunction, InputParseFunction } from "@arcgis/core/widgets/types.js";
|
|
11
10
|
import type { SmartMappingSliderBaseState } from "@arcgis/core/widgets/smartMapping/SmartMappingSliderBase.js";
|
|
@@ -15,25 +14,25 @@ import type { SmartMappingSliderBaseState } from "@arcgis/core/widgets/smartMapp
|
|
|
15
14
|
* >
|
|
16
15
|
* > This is a **legacy component**. It relies on an underlying widget as part of our migration to native web components.
|
|
17
16
|
* >
|
|
18
|
-
* > A fully native replacement for this component is in development. Once it reaches feature parity, the legacy component will be deprecated and no longer maintained. At that point,
|
|
17
|
+
* > A fully native replacement for this component is in development. Once it reaches feature parity, the legacy component will be deprecated and no longer maintained. At that point, development should use the native component.
|
|
19
18
|
*
|
|
20
19
|
* The Classed Color Slider component is designed for authoring and exploring data-driven visualizations in any
|
|
21
|
-
* layer that can be rendered with color in a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/
|
|
20
|
+
* layer that can be rendered with color in a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/).
|
|
22
21
|
*
|
|
23
22
|
* <span id="image-annotations"></span>
|
|
24
23
|
* See the image below for a summary of the configurable options available on this slider.
|
|
25
24
|
*
|
|
26
|
-
* 
|
|
27
26
|
*
|
|
28
|
-
* The [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/
|
|
29
|
-
* [max](
|
|
27
|
+
* The [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/references/core/widgets/smartMapping/ClassedColorSlider/#fromRendererResult) method can be used to intelligently populate slider properties including
|
|
28
|
+
* [max](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#max), [min](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#min), the [classBreakInfos](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/#classBreakInfos) configuration,
|
|
30
29
|
* and the slider's histogram after the renderer has been created from the result of the
|
|
31
|
-
* [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/
|
|
30
|
+
* [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/color/#createClassBreaksRenderer) method.
|
|
32
31
|
*
|
|
33
32
|
* ```js
|
|
34
33
|
* const colorRendererCreator = await import("@arcgis/core/smartMapping/renderers/color.js");
|
|
35
34
|
* const viewElement = document.querySelector("arcgis-map")!;
|
|
36
|
-
* const classedColorSlider = document.querySelector("arcgis-slider-classed-color")!;
|
|
35
|
+
* const classedColorSlider = document.querySelector("arcgis-slider-classed-color-legacy")!;
|
|
37
36
|
*
|
|
38
37
|
* const featureLayer = new FeatureLayer({
|
|
39
38
|
* url: "https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/ACS_Poverty_by_Age_Boundaries/FeatureServer/1",
|
|
@@ -61,7 +60,7 @@ import type { SmartMappingSliderBaseState } from "@arcgis/core/widgets/smartMapp
|
|
|
61
60
|
* await classedColorSlider?.updateFromRendererResult(rendererResult, histogramResult);
|
|
62
61
|
* ```
|
|
63
62
|
*
|
|
64
|
-
* This slider should be used to update the [classBreakInfos](https://developers.arcgis.com/javascript/latest/
|
|
63
|
+
* This slider should be used to update the [classBreakInfos](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/#classBreakInfos)
|
|
65
64
|
* in a ClassBreaksRenderer. It is the responsibility of the app developer
|
|
66
65
|
* to set up event listeners on this slider that update the breaks of the appropriate renderer.
|
|
67
66
|
*
|
|
@@ -86,10 +85,9 @@ import type { SmartMappingSliderBaseState } from "@arcgis/core/widgets/smartMapp
|
|
|
86
85
|
* classedColorSlider.addEventListener("arcgisPropertyChange", updateRendererFromSlider);
|
|
87
86
|
* ```
|
|
88
87
|
*
|
|
89
|
-
* @since 5.0
|
|
90
|
-
* @see [
|
|
91
|
-
* @see [
|
|
92
|
-
* @see [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html)
|
|
88
|
+
* @since 5.0
|
|
89
|
+
* @see [colorRendererCreator](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/color/)
|
|
90
|
+
* @see [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/)
|
|
93
91
|
*/
|
|
94
92
|
export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
95
93
|
/**
|
|
@@ -106,7 +104,7 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
106
104
|
* An array of class breaks with associated colors. The colors mapped to each break can
|
|
107
105
|
* be used to update the renderer of a layer. A minimum of two breaks must be provided to the slider.
|
|
108
106
|
*
|
|
109
|
-
* @see [Color](https://developers.arcgis.com/javascript/latest/
|
|
107
|
+
* @see [Color](https://developers.arcgis.com/javascript/latest/references/core/Color/)
|
|
110
108
|
* @example
|
|
111
109
|
* ```js
|
|
112
110
|
* classedColorSlider.breaks = [
|
|
@@ -119,11 +117,9 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
119
117
|
*/
|
|
120
118
|
accessor breaks: Array<ColorBreak>;
|
|
121
119
|
/**
|
|
122
|
-
* The
|
|
123
|
-
* generated using the [histogram](https://developers.arcgis.com/javascript/latest/
|
|
120
|
+
* The histogram associated with the data represented on the slider. The bins are typically
|
|
121
|
+
* generated using the [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/) statistics function.
|
|
124
122
|
*
|
|
125
|
-
* @see [histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html)
|
|
126
|
-
* @see [Histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html)
|
|
127
123
|
* @example
|
|
128
124
|
* ```js
|
|
129
125
|
* const histogramResult = await histogram({
|
|
@@ -132,10 +128,11 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
132
128
|
* numBins: 30,
|
|
133
129
|
* });
|
|
134
130
|
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
131
|
+
* slider.histogramConfig = {
|
|
132
|
+
* bins: histogramResult.bins
|
|
133
|
+
* };
|
|
134
|
+
* ```
|
|
135
|
+
* @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
|
|
139
136
|
*/
|
|
140
137
|
accessor histogramConfig: HistogramConfig | null | undefined;
|
|
141
138
|
/**
|
|
@@ -146,33 +143,34 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
146
143
|
*/
|
|
147
144
|
accessor icon: IconName;
|
|
148
145
|
/**
|
|
149
|
-
* A function used to format user inputs. As opposed to [labelFormatFunction](https://developers.arcgis.com/javascript/latest/
|
|
146
|
+
* A function used to format user inputs. As opposed to [labelFormatFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#labelFormatFunction), which formats
|
|
150
147
|
* thumb labels, the `inputFormatFunction` formats thumb values in the input element when the user begins
|
|
151
148
|
* to edit them.
|
|
152
149
|
*
|
|
153
150
|
* The image below demonstrates how slider input values resemble corresponding slider values by default
|
|
154
151
|
* and won't match the formatting set in `labelFormatFunction`.
|
|
155
152
|
*
|
|
156
|
-
* 
|
|
157
154
|
*
|
|
158
155
|
* If you want to format slider input values so they match thumb labels, you can pass the same function set in `labelFormatFunction` to
|
|
159
156
|
* `inputFormatFunction` for consistent formatting.
|
|
160
157
|
*
|
|
161
|
-
* 
|
|
162
159
|
*
|
|
163
160
|
* However, if an `inputFormatFunction` is specified, you must also write a corresponding
|
|
164
|
-
* [inputParseFunction](https://developers.arcgis.com/javascript/latest/
|
|
165
|
-
* you specify an `inputFormatFunction`, you should set the [labelFormatFunction](https://developers.arcgis.com/javascript/latest/
|
|
161
|
+
* [inputParseFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#inputParseFunction) to parse user inputs to understandable slider values. In most cases, if
|
|
162
|
+
* you specify an `inputFormatFunction`, you should set the [labelFormatFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#labelFormatFunction) to the same value
|
|
166
163
|
* for consistency between labels and inputs.
|
|
167
164
|
*
|
|
168
165
|
* This property overrides the default input formatter, which formats by calling `toString()` on the input value.
|
|
166
|
+
*
|
|
169
167
|
*
|
|
170
|
-
* @see [inputParseFunction](https://developers.arcgis.com/javascript/latest/
|
|
168
|
+
* @see [inputParseFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#inputParseFunction)
|
|
171
169
|
* @example
|
|
172
170
|
* ```js
|
|
173
171
|
* // Formats the slider input to abbreviated numbers with units
|
|
174
172
|
* // e.g. a thumb at position 1500 will render with an input label of 1.5k
|
|
175
|
-
*
|
|
173
|
+
* slider.inputFormatFunction = (value: number): string => {
|
|
176
174
|
* if (value >= 1000000) {
|
|
177
175
|
* return (value / 1000000).toPrecision(3) + "m";
|
|
178
176
|
* }
|
|
@@ -184,24 +182,24 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
184
182
|
* }
|
|
185
183
|
* return value.toFixed(0);
|
|
186
184
|
* };
|
|
187
|
-
*
|
|
185
|
+
* ```
|
|
188
186
|
*/
|
|
189
187
|
accessor inputFormatFunction: LabelFormatFunction | null | undefined;
|
|
190
188
|
/**
|
|
191
|
-
* Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/
|
|
189
|
+
* Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#inputFormatFunction).
|
|
192
190
|
* This property must be set if an `inputFormatFunction` is set. Otherwise the slider values will
|
|
193
191
|
* likely not update to their expected positions.
|
|
194
192
|
*
|
|
195
193
|
* Overrides the default input parses, which is a parsed floating point number.
|
|
196
194
|
*
|
|
197
|
-
* @see [inputFormatFunction](https://developers.arcgis.com/javascript/latest/
|
|
195
|
+
* @see [inputFormatFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#inputFormatFunction)
|
|
198
196
|
* @example
|
|
199
197
|
* ```js
|
|
200
198
|
* // Parses the slider input (a string value) to a number value understandable to the slider
|
|
201
199
|
* // This assumes the slider was already configured with an inputFormatFunction
|
|
202
200
|
* // For example, if the input is 1.5k this function will parse
|
|
203
201
|
* // it to a value of 1500
|
|
204
|
-
*
|
|
202
|
+
* colorSlider.inputParseFunction = (value: string): number => {
|
|
205
203
|
* const charLength = value.length;
|
|
206
204
|
* const valuePrefix = parseFloat(value.substring(0, charLength - 1));
|
|
207
205
|
* const finalChar = value.substring(charLength - 1);
|
|
@@ -217,27 +215,23 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
217
215
|
* }
|
|
218
216
|
* return parseFloat(value);
|
|
219
217
|
* };
|
|
220
|
-
*
|
|
218
|
+
* ```
|
|
221
219
|
*/
|
|
222
220
|
accessor inputParseFunction: InputParseFunction | null | undefined;
|
|
223
221
|
/**
|
|
224
|
-
* A
|
|
225
|
-
* [Slider#labelFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelFormatFunction),
|
|
226
|
-
* which is a custom function used to format labels on the thumbs, min, max, and average
|
|
227
|
-
* values. Overrides the default label formatter.
|
|
228
|
-
* This function also supports date formatting.
|
|
222
|
+
* A function used to format labels on the thumbs, min, max, and average values. Overrides the default label formatter. This function also supports date formatting.
|
|
229
223
|
*
|
|
230
224
|
* @example
|
|
231
225
|
* ```js
|
|
232
226
|
* // For thumb values, rounds each label to whole numbers
|
|
233
|
-
*
|
|
227
|
+
* slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
|
|
234
228
|
* return (type === "value") ? value.toFixed(0) : value.toString();
|
|
235
229
|
* };
|
|
236
|
-
*
|
|
230
|
+
* ```
|
|
237
231
|
*/
|
|
238
232
|
accessor labelFormatFunction: LabelFormatFunction | null | undefined;
|
|
239
233
|
/**
|
|
240
|
-
* The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](
|
|
234
|
+
* The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#updateFromRendererResult) method,
|
|
241
235
|
* the user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer
|
|
242
236
|
* to set up event listeners that update the breaks of the appropriate renderer.
|
|
243
237
|
*
|
|
@@ -248,7 +242,7 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
248
242
|
*/
|
|
249
243
|
accessor max: number;
|
|
250
244
|
/**
|
|
251
|
-
* The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](
|
|
245
|
+
* The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#updateFromRendererResult) method,
|
|
252
246
|
* the user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer
|
|
253
247
|
* to set up event listeners that update the breaks of the appropriate renderer.
|
|
254
248
|
*
|
|
@@ -262,13 +256,13 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
262
256
|
* Defines how slider thumb values should be rounded. This number indicates the number
|
|
263
257
|
* of decimal places slider thumb _values_ should round to when they have been moved.
|
|
264
258
|
*
|
|
265
|
-
* Keep in mind this property rounds thumb
|
|
266
|
-
* for formatting purposes.
|
|
259
|
+
* Keep in mind this property rounds thumb values and shouldn't be used exclusively for formatting purposes.
|
|
267
260
|
*
|
|
268
261
|
* @default 4
|
|
269
262
|
* @example
|
|
270
263
|
* ```js
|
|
271
|
-
*
|
|
264
|
+
* // Rounds slider thumb values to 7 decimal places
|
|
265
|
+
* slider.precision = 7;
|
|
272
266
|
* ```
|
|
273
267
|
*/
|
|
274
268
|
accessor precision: number;
|
|
@@ -279,20 +273,20 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
279
273
|
*/
|
|
280
274
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
281
275
|
/** The current state of the component. */
|
|
282
|
-
|
|
276
|
+
get state(): SmartMappingSliderBaseState;
|
|
283
277
|
/** Permanently destroy the component. */
|
|
284
278
|
destroy(): Promise<void>;
|
|
285
279
|
/**
|
|
286
280
|
* A convenience function used to update the
|
|
287
|
-
* [classBreakInfos](https://developers.arcgis.com/javascript/latest/
|
|
288
|
-
* of a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/
|
|
281
|
+
* [classBreakInfos](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/#classBreakInfos)
|
|
282
|
+
* of a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/) associated with this slider.
|
|
289
283
|
*
|
|
290
284
|
* The number of breaks from the renderer must match the number of breaks in the slider.
|
|
291
285
|
* Generally, the input breaks for this method should come from the same renderer as one
|
|
292
|
-
* used to create the slider with the [
|
|
286
|
+
* used to create the slider with the [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-color-legacy/#updateFromRendererResult) method.
|
|
293
287
|
*
|
|
294
288
|
* @param breakInfos - The classBreakInfos
|
|
295
|
-
* from a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/
|
|
289
|
+
* from a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/) instance to update based on
|
|
296
290
|
* the properties of the slider.
|
|
297
291
|
* @returns The updated classBreakInfos to set
|
|
298
292
|
* on a ClassBreaksRenderer object.
|
|
@@ -307,12 +301,12 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
|
|
|
307
301
|
updateClassBreakInfos(breakInfos: ClassBreakInfo[]): Promise<ClassBreakInfo[] | null | undefined>;
|
|
308
302
|
/**
|
|
309
303
|
* A convenience function used to update the properties a ClassedColorSlider from the result
|
|
310
|
-
* of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/
|
|
304
|
+
* of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/color/#createClassBreaksRenderer) method.
|
|
311
305
|
* Note that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.
|
|
312
306
|
*
|
|
313
|
-
* @param rendererResult - The result object from the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/
|
|
307
|
+
* @param rendererResult - The result object from the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/color/#createClassBreaksRenderer)
|
|
314
308
|
* method.
|
|
315
|
-
* @param histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/
|
|
309
|
+
* @param histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/#histogram)
|
|
316
310
|
* method.
|
|
317
311
|
* @example
|
|
318
312
|
* ```js
|
|
@@ -12,7 +12,7 @@ class h extends l {
|
|
|
12
12
|
super(...arguments), this.widget = _(this), this.viewModel = this.widget.viewModel, this.label = this.widget.label, this.autoDestroyDisabled = !1, this.breaks = this.widget.breaks, this.histogramConfig = this.widget.histogramConfig, this.icon = this.widget.icon, this.inputFormatFunction = this.widget.inputFormatFunction, this.inputParseFunction = this.widget.inputParseFunction, this.labelFormatFunction = this.widget.labelFormatFunction, this.max = this.widget.max, this.min = this.widget.min, this.precision = this.widget.precision, this.state = this.widget.state, this.arcgisPropertyChange = d()("breaks", "histogramConfig", "max", "min", "precision", "state"), this.arcgisReady = a(), this.arcgisThumbChange = i(() => this.widget, "thumb-change"), this.arcgisThumbDrag = i(() => this.widget, "thumb-drag");
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.properties = { label: 16, autoDestroyDisabled: 5, breaks: 0, histogramConfig: 0, icon: 1, inputFormatFunction: 0, inputParseFunction: 0, labelFormatFunction: 0, max: 9, min: 9, precision: 9, referenceElement: 1, state:
|
|
15
|
+
this.properties = { label: 16, autoDestroyDisabled: 5, breaks: 0, histogramConfig: 0, icon: 1, inputFormatFunction: 0, inputParseFunction: 0, labelFormatFunction: 0, max: 9, min: 9, precision: 9, referenceElement: 1, state: 32 };
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.styles = n;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type ClassBreakInfo from "@arcgis/core/renderers/support/ClassBreakInfo";
|
|
2
|
+
import type ClassBreakInfo from "@arcgis/core/renderers/support/ClassBreakInfo.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type { ThumbDragEvent, ThumbChangeEvent } from "@arcgis/core/widgets/Slider/types";
|
|
4
|
+
import type { ClassBreaksRendererResult } from "@arcgis/core/smartMapping/renderers/size.js";
|
|
5
|
+
import type { HistogramResult } from "@arcgis/core/smartMapping/statistics/types.js";
|
|
6
|
+
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
7
|
+
import type { ThumbDragEvent, ThumbChangeEvent } from "@arcgis/core/widgets/Slider/types.js";
|
|
9
8
|
import type { SizeBreak, HistogramConfig } from "@arcgis/core/widgets/smartMapping/types.js";
|
|
10
9
|
import type { LabelFormatFunction, InputParseFunction } from "@arcgis/core/widgets/types.js";
|
|
11
10
|
import type { ClassedSizeSliderStyle } from "@arcgis/core/widgets/smartMapping/ClassedSizeSlider.js";
|
|
@@ -16,25 +15,24 @@ import type { SmartMappingSliderBaseState } from "@arcgis/core/widgets/smartMapp
|
|
|
16
15
|
* >
|
|
17
16
|
* > This is a **legacy component**. It relies on an underlying widget as part of our migration to native web components.
|
|
18
17
|
* >
|
|
19
|
-
* > A fully native replacement for this component is in development. Once it reaches feature parity, the legacy component will be deprecated and no longer maintained. At that point,
|
|
18
|
+
* > A fully native replacement for this component is in development. Once it reaches feature parity, the legacy component will be deprecated and no longer maintained. At that point, development should use the native component.
|
|
20
19
|
*
|
|
21
20
|
* The Classed Size Slider component is designed for authoring and exploring data-driven visualizations in any
|
|
22
|
-
* layer that can be rendered with size in a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/
|
|
21
|
+
* layer that can be rendered with size in a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/).
|
|
23
22
|
*
|
|
24
|
-
* <span id="image-annotations"></span>
|
|
25
23
|
* See the image below for a summary of the configurable options available on this slider.
|
|
26
24
|
*
|
|
27
|
-
* 
|
|
28
26
|
*
|
|
29
|
-
* The [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/
|
|
30
|
-
* [max](
|
|
31
|
-
* and the slider's histogram after the renderer has been created from the result of the [createClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/
|
|
27
|
+
* The [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#updateFromRendererResult) method can be used to intelligently populate slider properties including
|
|
28
|
+
* [max](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#max), [min](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#min), the [classBreakInfos](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/#classBreakInfos) configuration,
|
|
29
|
+
* and the slider's histogram after the renderer has been created from the result of the [createClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/size/#createClassBreaksRenderer)
|
|
32
30
|
* method.
|
|
33
31
|
*
|
|
34
32
|
* ```js
|
|
35
33
|
* const sizeRendererCreator = await import("@arcgis/core/smartMapping/renderers/size.js");
|
|
36
34
|
* const viewElement = document.querySelector("arcgis-map")!;
|
|
37
|
-
* const classedSizeSlider = document.querySelector("arcgis-slider-classed-size")!;
|
|
35
|
+
* const classedSizeSlider = document.querySelector("arcgis-slider-classed-size-legacy")!;
|
|
38
36
|
*
|
|
39
37
|
* const featureLayer = new FeatureLayer({
|
|
40
38
|
* url: "https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/ACS_Median_Income_by_Race_and_Age_Selp_Emp_Boundaries/FeatureServer/1",
|
|
@@ -62,7 +60,7 @@ import type { SmartMappingSliderBaseState } from "@arcgis/core/widgets/smartMapp
|
|
|
62
60
|
* await classedSizeSlider?.updateFromRendererResult(rendererResult, histogramResult);
|
|
63
61
|
* ```
|
|
64
62
|
*
|
|
65
|
-
* This slider should be used to update the [classBreakInfos](https://developers.arcgis.com/javascript/latest/
|
|
63
|
+
* This slider should be used to update the [classBreakInfos](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/#classBreakInfos)
|
|
66
64
|
* in a ClassBreaksRenderer. It is the responsibility of the app developer
|
|
67
65
|
* to set up event listeners on this slider that update the breaks of the appropriate renderer.
|
|
68
66
|
*
|
|
@@ -72,7 +70,7 @@ import type { SmartMappingSliderBaseState } from "@arcgis/core/widgets/smartMapp
|
|
|
72
70
|
* if (!renderer || !("classBreakInfos" in renderer) || !renderer.classBreakInfos?.[0]) {
|
|
73
71
|
* return;
|
|
74
72
|
* }
|
|
75
|
-
* renderer.classBreakInfos = (await classedSizeSlider.updateClassBreakInfos(renderer.classBreakInfos)
|
|
73
|
+
* renderer.classBreakInfos = (await classedSizeSlider.updateClassBreakInfos(renderer.classBreakInfos);
|
|
76
74
|
* featureLayer.renderer = renderer;
|
|
77
75
|
* };
|
|
78
76
|
*
|
|
@@ -81,10 +79,9 @@ import type { SmartMappingSliderBaseState } from "@arcgis/core/widgets/smartMapp
|
|
|
81
79
|
* classedSizeSlider.addEventListener("arcgisPropertyChange", updateRendererFromSlider);
|
|
82
80
|
* ```
|
|
83
81
|
*
|
|
84
|
-
* @since 5.0
|
|
85
|
-
* @see [
|
|
86
|
-
* @see [
|
|
87
|
-
* @see [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html)
|
|
82
|
+
* @since 5.0
|
|
83
|
+
* @see [sizeRendererCreator](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/size/)
|
|
84
|
+
* @see [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/)
|
|
88
85
|
*/
|
|
89
86
|
export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
90
87
|
/**
|
|
@@ -113,11 +110,9 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
113
110
|
*/
|
|
114
111
|
accessor breaks: Array<SizeBreak>;
|
|
115
112
|
/**
|
|
116
|
-
* The
|
|
117
|
-
* generated using the [histogram](https://developers.arcgis.com/javascript/latest/
|
|
113
|
+
* The histogram associated with the data represented on the slider. The bins are typically
|
|
114
|
+
* generated using the [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/) statistics function.
|
|
118
115
|
*
|
|
119
|
-
* @see [histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html)
|
|
120
|
-
* @see [Histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html)
|
|
121
116
|
* @example
|
|
122
117
|
* ```js
|
|
123
118
|
* const histogramResult = await histogram({
|
|
@@ -126,10 +121,11 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
126
121
|
* numBins: 30,
|
|
127
122
|
* });
|
|
128
123
|
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
124
|
+
* slider.histogramConfig = {
|
|
125
|
+
* bins: histogramResult.bins
|
|
126
|
+
* };
|
|
127
|
+
* ```
|
|
128
|
+
* @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
|
|
133
129
|
*/
|
|
134
130
|
accessor histogramConfig: HistogramConfig | null | undefined;
|
|
135
131
|
/**
|
|
@@ -140,33 +136,34 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
140
136
|
*/
|
|
141
137
|
accessor icon: IconName;
|
|
142
138
|
/**
|
|
143
|
-
* A function used to format user inputs. As opposed to [labelFormatFunction](https://developers.arcgis.com/javascript/latest/
|
|
139
|
+
* A function used to format user inputs. As opposed to [labelFormatFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#labelFormatFunction), which formats
|
|
144
140
|
* thumb labels, the `inputFormatFunction` formats thumb values in the input element when the user begins
|
|
145
141
|
* to edit them.
|
|
146
142
|
*
|
|
147
143
|
* The image below demonstrates how slider input values resemble corresponding slider values by default
|
|
148
144
|
* and won't match the formatting set in `labelFormatFunction`.
|
|
149
145
|
*
|
|
150
|
-
* 
|
|
151
147
|
*
|
|
152
148
|
* If you want to format slider input values so they match thumb labels, you can pass the same function set in `labelFormatFunction` to
|
|
153
149
|
* `inputFormatFunction` for consistent formatting.
|
|
154
150
|
*
|
|
155
|
-
* 
|
|
156
152
|
*
|
|
157
153
|
* However, if an `inputFormatFunction` is specified, you must also write a corresponding
|
|
158
|
-
* [inputParseFunction](https://developers.arcgis.com/javascript/latest/
|
|
159
|
-
* you specify an `inputFormatFunction`, you should set the [labelFormatFunction](https://developers.arcgis.com/javascript/latest/
|
|
154
|
+
* [inputParseFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#inputParseFunction) to parse user inputs to understandable slider values. In most cases, if
|
|
155
|
+
* you specify an `inputFormatFunction`, you should set the [labelFormatFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#labelFormatFunction) to the same value
|
|
160
156
|
* for consistency between labels and inputs.
|
|
161
157
|
*
|
|
162
158
|
* This property overrides the default input formatter, which formats by calling `toString()` on the input value.
|
|
159
|
+
*
|
|
163
160
|
*
|
|
164
|
-
* @see [inputParseFunction](https://developers.arcgis.com/javascript/latest/
|
|
161
|
+
* @see [inputParseFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#inputParseFunction)
|
|
165
162
|
* @example
|
|
166
163
|
* ```js
|
|
167
164
|
* // Formats the slider input to abbreviated numbers with units
|
|
168
165
|
* // e.g. a thumb at position 1500 will render with an input label of 1.5k
|
|
169
|
-
*
|
|
166
|
+
* slider.inputFormatFunction = (value: number): string => {
|
|
170
167
|
* if (value >= 1000000) {
|
|
171
168
|
* return (value / 1000000).toPrecision(3) + "m";
|
|
172
169
|
* }
|
|
@@ -178,24 +175,24 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
178
175
|
* }
|
|
179
176
|
* return value.toFixed(0);
|
|
180
177
|
* };
|
|
181
|
-
*
|
|
178
|
+
* ```
|
|
182
179
|
*/
|
|
183
180
|
accessor inputFormatFunction: LabelFormatFunction | null | undefined;
|
|
184
181
|
/**
|
|
185
|
-
* Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/
|
|
182
|
+
* Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#inputFormatFunction).
|
|
186
183
|
* This property must be set if an `inputFormatFunction` is set. Otherwise the slider values will
|
|
187
184
|
* likely not update to their expected positions.
|
|
188
185
|
*
|
|
189
186
|
* Overrides the default input parses, which is a parsed floating point number.
|
|
190
187
|
*
|
|
191
|
-
* @see [inputFormatFunction](https://developers.arcgis.com/javascript/latest/
|
|
188
|
+
* @see [inputFormatFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#inputFormatFunction)
|
|
192
189
|
* @example
|
|
193
190
|
* ```js
|
|
194
191
|
* // Parses the slider input (a string value) to a number value understandable to the slider
|
|
195
192
|
* // This assumes the slider was already configured with an inputFormatFunction
|
|
196
193
|
* // For example, if the input is 1.5k this function will parse
|
|
197
194
|
* // it to a value of 1500
|
|
198
|
-
*
|
|
195
|
+
* colorSlider.inputParseFunction = (value: string): number => {
|
|
199
196
|
* const charLength = value.length;
|
|
200
197
|
* const valuePrefix = parseFloat(value.substring(0, charLength - 1));
|
|
201
198
|
* const finalChar = value.substring(charLength - 1);
|
|
@@ -211,27 +208,23 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
211
208
|
* }
|
|
212
209
|
* return parseFloat(value);
|
|
213
210
|
* };
|
|
214
|
-
*
|
|
211
|
+
* ```
|
|
215
212
|
*/
|
|
216
213
|
accessor inputParseFunction: InputParseFunction | null | undefined;
|
|
217
214
|
/**
|
|
218
|
-
* A
|
|
219
|
-
* [Slider#labelFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelFormatFunction),
|
|
220
|
-
* which is a custom function used to format labels on the thumbs, min, max, and average
|
|
221
|
-
* values. Overrides the default label formatter.
|
|
222
|
-
* This function also supports date formatting.
|
|
215
|
+
* A function used to format labels on the thumbs, min, max, and average values. Overrides the default label formatter. This function also supports date formatting.
|
|
223
216
|
*
|
|
224
217
|
* @example
|
|
225
218
|
* ```js
|
|
226
219
|
* // For thumb values, rounds each label to whole numbers
|
|
227
|
-
*
|
|
220
|
+
* slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
|
|
228
221
|
* return (type === "value") ? value.toFixed(0) : value.toString();
|
|
229
222
|
* };
|
|
230
|
-
*
|
|
223
|
+
* ```
|
|
231
224
|
*/
|
|
232
225
|
accessor labelFormatFunction: LabelFormatFunction | null | undefined;
|
|
233
226
|
/**
|
|
234
|
-
* The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](
|
|
227
|
+
* The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#updateFromRendererResult) method,
|
|
235
228
|
* the user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer
|
|
236
229
|
* to set up event listeners that update the breaks of the appropriate renderer.
|
|
237
230
|
*
|
|
@@ -242,7 +235,7 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
242
235
|
*/
|
|
243
236
|
accessor max: number;
|
|
244
237
|
/**
|
|
245
|
-
* The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](
|
|
238
|
+
* The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#updateFromRendererResult) method,
|
|
246
239
|
* the user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer
|
|
247
240
|
* to set up event listeners that update the breaks of the appropriate renderer.
|
|
248
241
|
*
|
|
@@ -256,13 +249,13 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
256
249
|
* Defines how slider thumb values should be rounded. This number indicates the number
|
|
257
250
|
* of decimal places slider thumb _values_ should round to when they have been moved.
|
|
258
251
|
*
|
|
259
|
-
* Keep in mind this property rounds thumb
|
|
260
|
-
* for formatting purposes.
|
|
252
|
+
* Keep in mind this property rounds thumb values and shouldn't be used exclusively for formatting purposes.
|
|
261
253
|
*
|
|
262
254
|
* @default 4
|
|
263
255
|
* @example
|
|
264
256
|
* ```js
|
|
265
|
-
*
|
|
257
|
+
* // Rounds slider thumb values to 7 decimal places
|
|
258
|
+
* slider.precision = 7;
|
|
266
259
|
* ```
|
|
267
260
|
*/
|
|
268
261
|
accessor precision: number;
|
|
@@ -273,10 +266,10 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
273
266
|
*/
|
|
274
267
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
275
268
|
/**
|
|
276
|
-
* Exposes various properties of the
|
|
269
|
+
* Exposes various properties of the component that can be styled. The result object from the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/size/#createClassBreaksRenderer)
|
|
277
270
|
* method can be used to match the `trackFillColor` to the current layer symbology.
|
|
278
271
|
*
|
|
279
|
-
* @see [Color](https://developers.arcgis.com/javascript/latest/
|
|
272
|
+
* @see [Color](https://developers.arcgis.com/javascript/latest/references/core/Color/)
|
|
280
273
|
* @example
|
|
281
274
|
* ```js
|
|
282
275
|
* classedSizeSlider.sliderStyle = {
|
|
@@ -287,20 +280,20 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
287
280
|
*/
|
|
288
281
|
accessor sliderStyle: ClassedSizeSliderStyle;
|
|
289
282
|
/** The current state of the component. */
|
|
290
|
-
|
|
283
|
+
get state(): SmartMappingSliderBaseState;
|
|
291
284
|
/** Permanently destroy the component. */
|
|
292
285
|
destroy(): Promise<void>;
|
|
293
286
|
/**
|
|
294
287
|
* A convenience function used to update the
|
|
295
|
-
* [classBreakInfos](https://developers.arcgis.com/javascript/latest/
|
|
296
|
-
* of a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/
|
|
288
|
+
* [classBreakInfos](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/#classBreakInfos)
|
|
289
|
+
* of a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/) associated with this slider.
|
|
297
290
|
*
|
|
298
291
|
* The number of breaks from the renderer must match the number of breaks in the slider.
|
|
299
292
|
* Generally, the input breaks for this method should come from the same renderer as one
|
|
300
|
-
* used to create the slider with the [
|
|
293
|
+
* used to create the slider with the [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-classed-size-legacy/#updateFromRendererResult) method.
|
|
301
294
|
*
|
|
302
295
|
* @param breakInfos - The classBreakInfos
|
|
303
|
-
* from a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/
|
|
296
|
+
* from a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/ClassBreaksRenderer/) instance to update based on
|
|
304
297
|
* the properties of the slider.
|
|
305
298
|
* @returns The updated classBreakInfos to set
|
|
306
299
|
* on a ClassBreaksRenderer object.
|
|
@@ -314,13 +307,13 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
|
|
|
314
307
|
updateClassBreakInfos(breakInfos: ClassBreakInfo[]): Promise<ClassBreakInfo[] | null | undefined>;
|
|
315
308
|
/**
|
|
316
309
|
* A convenience function used to update the properties a ClassedSizeSlider from the result
|
|
317
|
-
* of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/
|
|
310
|
+
* of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/size/#createClassBreaksRenderer) method.
|
|
318
311
|
* This method is used to configure an empty ClassedSizeSlider to be used with the layer data, and is useful for cases when the app allows the end user to switch data variables.
|
|
319
312
|
* Note that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.
|
|
320
313
|
*
|
|
321
|
-
* @param rendererResult - The result object from the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/
|
|
314
|
+
* @param rendererResult - The result object from the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/size/#createClassBreaksRenderer)
|
|
322
315
|
* method.
|
|
323
|
-
* @param histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/
|
|
316
|
+
* @param histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/#histogram)
|
|
324
317
|
* method.
|
|
325
318
|
* @example
|
|
326
319
|
* ```js
|