@arcgis/map-components 5.2.0-next.120 → 5.2.0-next.122
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/33C5FBRZ.js +2 -0
- package/dist/cdn/{JD46SR26.js → 34E7N7GU.js} +1 -1
- package/dist/cdn/{IR2RGKT4.js → 3E36QFXG.js} +2 -2
- package/dist/cdn/3FRV7BIJ.js +2 -0
- package/dist/cdn/{Z4FIADPO.js → 3TR7QOHP.js} +1 -1
- package/dist/cdn/464EB67Q.js +2 -0
- package/dist/cdn/{W5B2F2LI.js → 4DENNWA5.js} +1 -1
- package/dist/cdn/{POEFPML6.js → 55AZTWOF.js} +1 -1
- package/dist/cdn/{2DDAZ3QO.js → 56PUZWIU.js} +1 -1
- package/dist/cdn/{YZUEPMQZ.js → 5IFQI7ML.js} +1 -1
- package/dist/cdn/{JMWMN4DG.js → 5SLLYIWJ.js} +1 -1
- package/dist/cdn/{7QH5PIWM.js → 6EQW3YHG.js} +1 -1
- package/dist/cdn/{U35IJFNU.js → 6VR7MKOM.js} +1 -1
- package/dist/cdn/6XJFRQ75.js +2 -0
- package/dist/cdn/7WBDTHNZ.js +2 -0
- package/dist/cdn/{RRC7AD75.js → AXFCL6D2.js} +1 -1
- package/dist/cdn/{LBVSFCZG.js → B4QA6HTE.js} +1 -1
- package/dist/cdn/BAV6JF4F.js +2 -0
- package/dist/cdn/{HNMWTX7W.js → BEZWJEYM.js} +1 -1
- package/dist/cdn/{LCNYVSCF.js → BTQUD5J4.js} +1 -1
- package/dist/cdn/CCFGYVBQ.js +2 -0
- package/dist/cdn/{FAN45DMA.js → CNYKQYK2.js} +1 -1
- package/dist/cdn/DOR5MVML.js +2 -0
- package/dist/cdn/E4JAHCCG.js +2 -0
- package/dist/cdn/{JD562WMM.js → EDMWGUZ2.js} +1 -1
- package/dist/cdn/{JKZMOIRA.js → EEHSPW4M.js} +1 -1
- package/dist/cdn/{GN4BH6SY.js → EMJLCAFX.js} +1 -1
- package/dist/cdn/{FAFDJABP.js → ESAIFZ6N.js} +1 -1
- package/dist/cdn/{2L6YCWXJ.js → EUV2XFUO.js} +1 -1
- package/dist/cdn/{GPIHHNP7.js → F46CTQWP.js} +1 -1
- package/dist/cdn/F5LP5CU2.js +2 -0
- package/dist/cdn/FKCRBOFP.js +2 -0
- package/dist/cdn/G3KYGRHM.js +2 -0
- package/dist/cdn/{3VGRIUOZ.js → G4HKU5PR.js} +1 -1
- package/dist/cdn/{Y5Q3Q4GW.js → GIOUZTHM.js} +1 -1
- package/dist/cdn/{4DWURRQB.js → GLH5GJZC.js} +1 -1
- package/dist/cdn/{BFGF2JTH.js → GLOUXFQV.js} +1 -1
- package/dist/cdn/{3VBI4PPT.js → H3CCHIXN.js} +1 -1
- package/dist/cdn/{W5O3OCTG.js → H5FV4C72.js} +1 -1
- package/dist/cdn/{ACIG6774.js → HH5GEJCC.js} +1 -1
- package/dist/cdn/{P2X5UYZB.js → I2IBXGQM.js} +1 -1
- package/dist/cdn/{VFSWB7LJ.js → IWOKTFPQ.js} +1 -1
- package/dist/cdn/{XO3NPMHQ.js → J4BQSA3J.js} +1 -1
- package/dist/cdn/{Z3JADSL3.js → J4TWDZII.js} +1 -1
- package/dist/cdn/{23KFFLAG.js → JBGNMAZ7.js} +1 -1
- package/dist/cdn/{3OQZ3SMG.js → JSYLRK26.js} +1 -1
- package/dist/cdn/{5FBX5V2M.js → KHHVCV55.js} +1 -1
- package/dist/cdn/{ZSQCIUGN.js → KIHX5LRN.js} +1 -1
- package/dist/cdn/{LBJMKYT2.js → KM2GXXBO.js} +1 -1
- package/dist/cdn/{F5EC22X4.js → KRYDKCJG.js} +1 -1
- package/dist/cdn/{46ZZWK6X.js → KY3ND2AY.js} +1 -1
- package/dist/cdn/KYWVUIH5.js +2 -0
- package/dist/cdn/{UJVNCEXT.js → LAY2RKKS.js} +1 -1
- package/dist/cdn/{REDWVTQJ.js → LP2PF2VT.js} +1 -1
- package/dist/cdn/LV5KLLVW.js +2 -0
- package/dist/cdn/{4IB44LRA.js → LWW6FUI2.js} +1 -1
- package/dist/cdn/{B6JX5OWP.js → M3EXGLNJ.js} +1 -1
- package/dist/cdn/{TOBWMRET.js → M3EZM5X5.js} +1 -1
- package/dist/cdn/{LH33ZRF7.js → MFBQRTJ3.js} +1 -1
- package/dist/cdn/{5RBUI62E.js → MLJ5RYY3.js} +1 -1
- package/dist/cdn/{2JMMBI2U.js → MV2EKVMR.js} +1 -1
- package/dist/cdn/{WWGWIJMC.js → NZSCPBS7.js} +1 -1
- package/dist/cdn/{PQTX5YLB.js → OKW62U6T.js} +1 -1
- package/dist/cdn/{3EYHGXI5.js → PLTLRYBF.js} +1 -1
- package/dist/cdn/PR6OAZWA.js +2 -0
- package/dist/cdn/{UNP7N3DO.js → PUYZDQHZ.js} +1 -1
- package/dist/cdn/{KKDZFKGV.js → PYP3U5W5.js} +1 -1
- package/dist/cdn/{OMZESNEM.js → Q4AJYCNY.js} +1 -1
- package/dist/cdn/{HGYJFGKA.js → QGFWUN5S.js} +1 -1
- package/dist/cdn/{X7KSMNND.js → QIEX43LK.js} +1 -1
- package/dist/cdn/{HH4T6PVP.js → QMQV37ML.js} +1 -1
- package/dist/cdn/QXVHT3RD.js +5 -0
- package/dist/cdn/{MZZGKPLV.js → R7E5VLXC.js} +1 -1
- package/dist/cdn/{CWQN57H6.js → RJSFDOIW.js} +1 -1
- package/dist/cdn/{TNY5ERJS.js → RKAZH2LM.js} +1 -1
- package/dist/cdn/{5IQQ6P2J.js → RU7PGLLB.js} +1 -1
- package/dist/cdn/{4W6PAHFY.js → S62FQUEJ.js} +1 -1
- package/dist/cdn/S7T2NPCW.js +2 -0
- package/dist/cdn/{NK74ZCP7.js → SXQRPAPL.js} +1 -1
- package/dist/cdn/{2KN3VFRG.js → TH6TT77M.js} +1 -1
- package/dist/cdn/{MU54WQG6.js → TILA2OKK.js} +1 -1
- package/dist/cdn/TJDMX7ZL.js +2 -0
- package/dist/cdn/TMJX7DFH.js +2 -0
- package/dist/cdn/{6XZKWBWD.js → TVZZB4KV.js} +1 -1
- package/dist/cdn/TZHXSIXK.js +2 -0
- package/dist/cdn/{SEMVPT7E.js → UJUD6U2G.js} +1 -1
- package/dist/cdn/US6PRR7S.js +2 -0
- package/dist/cdn/{TL7OKFLN.js → V7BQUMJL.js} +1 -1
- package/dist/cdn/VSH4WLRS.js +2 -0
- package/dist/cdn/{Q6MJXAPZ.js → WNLOSRMS.js} +1 -1
- package/dist/cdn/X6EQMX6U.js +2 -0
- package/dist/cdn/{6SKPV2U5.js → XGZ36AOT.js} +1 -1
- package/dist/cdn/{D3F6S7NU.js → XQKZNHH7.js} +1 -1
- package/dist/cdn/{CONE7FEI.js → YG4HDEP3.js} +1 -1
- package/dist/cdn/{NEQHSO5U.js → YRZRKOE3.js} +1 -1
- package/dist/cdn/YZ55QJUM.js +2 -0
- package/dist/cdn/{EZVWEV6T.js → ZSVZL6PT.js} +1 -1
- package/dist/cdn/ZUAZUUTW.js +2 -0
- package/dist/cdn/assets/feature-form-next/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/selection-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/selection-toolbar/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/async-utils.js +3 -3
- package/dist/chunks/layer-utils.js +48 -44
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +81 -0
- package/dist/components/arcgis-attachment-validation-view/customElement.js +109 -0
- package/dist/components/arcgis-attachment-validation-view/index.d.ts +1 -0
- package/dist/components/arcgis-attachment-validation-view/index.js +2 -0
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +10 -9
- package/dist/components/arcgis-basemap-gallery/customElement.js +39 -28
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +30 -30
- package/dist/components/arcgis-editor/customElement.d.ts +10 -2
- package/dist/components/arcgis-editor/customElement.js +2 -2
- package/dist/components/arcgis-expand/customElement.d.ts +9 -0
- package/dist/components/arcgis-expand/customElement.js +47 -41
- package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +23 -0
- package/dist/components/arcgis-exploratory-analysis/customElement.js +21 -21
- package/dist/components/arcgis-feature-attachments/customElement.js +17 -17
- package/dist/components/arcgis-feature-form-field/customElement.d.ts +48 -0
- package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +9 -10
- package/dist/components/arcgis-legend/customElement.d.ts +5 -6
- package/dist/components/arcgis-legend/customElement.js +5 -5
- package/dist/components/arcgis-legend-card-element/customElement.js +26 -26
- package/dist/components/arcgis-link-chart/customElement.d.ts +9 -0
- package/dist/components/arcgis-link-chart/customElement.js +14 -11
- package/dist/components/arcgis-map/customElement.d.ts +9 -0
- package/dist/components/arcgis-map/customElement.js +9 -6
- package/dist/components/arcgis-paste/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.js +62 -62
- package/dist/components/arcgis-presentation-slide-list/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +8 -8
- package/dist/components/arcgis-scene/customElement.d.ts +9 -0
- package/dist/components/arcgis-scene/customElement.js +5 -2
- package/dist/components/arcgis-selection-list/customElement.d.ts +33 -12
- package/dist/components/arcgis-selection-list/customElement.js +79 -63
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +42 -2
- package/dist/components/arcgis-selection-toolbar/customElement.js +60 -37
- package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +84 -0
- package/dist/components/arcgis-sketch/configuration.d.ts +33 -0
- package/dist/components/arcgis-sketch/customElement.d.ts +3 -2
- package/dist/components/arcgis-sketch/customElement.js +25 -21
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +18 -3
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +63 -53
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +11 -3
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +107 -53
- package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -0
- package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +5 -1
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +19 -11
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +124 -110
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +29 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +31 -17
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +63 -14
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +245 -55
- package/dist/components/arcgis-utility-network-trace-results/index.js +1 -2
- package/dist/components/arcgis-utility-network-trace-results-pane/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +12 -11
- package/dist/types/lumina.d.ts +20 -10
- package/dist/types/preact.d.ts +21 -10
- package/dist/types/react.d.ts +22 -10
- package/dist/types/stencil.d.ts +20 -10
- package/package.json +8 -8
- package/dist/cdn/2OGEVHBC.js +0 -2
- package/dist/cdn/4FADGEJD.js +0 -2
- package/dist/cdn/5DV4N5DK.js +0 -2
- package/dist/cdn/5PNAHYUT.js +0 -2
- package/dist/cdn/7AKMHKTT.js +0 -2
- package/dist/cdn/A2FK4TED.js +0 -2
- package/dist/cdn/BOEHQXPR.js +0 -2
- package/dist/cdn/C2HB2U6P.js +0 -2
- package/dist/cdn/CRWARUC7.js +0 -2
- package/dist/cdn/CST7D7GR.js +0 -2
- package/dist/cdn/DDSMWDPS.js +0 -2
- package/dist/cdn/DOHO6T7Z.js +0 -2
- package/dist/cdn/GJZCVU6G.js +0 -5
- package/dist/cdn/IDE4IFH7.js +0 -2
- package/dist/cdn/IJTCIWOA.js +0 -2
- package/dist/cdn/IXVJQIMH.js +0 -2
- package/dist/cdn/KGBACXRG.js +0 -2
- package/dist/cdn/KWJAKUM4.js +0 -2
- package/dist/cdn/MRC7R44N.js +0 -2
- package/dist/cdn/MT6BTCFR.js +0 -2
- package/dist/cdn/QD7ELNLS.js +0 -2
- package/dist/cdn/TBSKBHHL.js +0 -2
- package/dist/cdn/WU7R423Z.js +0 -2
- package/dist/cdn/ZB6W452H.js +0 -2
- /package/dist/cdn/{ZU6D3YMF.js → 27MP6TEF.js} +0 -0
- /package/dist/cdn/{3XRSSDOC.js → 3JCF73F4.js} +0 -0
- /package/dist/cdn/{RLTZHJ26.js → 3XEPXV4Q.js} +0 -0
- /package/dist/cdn/{IMINWWQN.js → 43IOCYG5.js} +0 -0
- /package/dist/cdn/{HMZDI4HQ.js → 45JO7F4Y.js} +0 -0
- /package/dist/cdn/{232VF5GS.js → 4W35GLNO.js} +0 -0
- /package/dist/cdn/{7HQJTIYO.js → 5CER2N5T.js} +0 -0
- /package/dist/cdn/{33AEAI5T.js → 5M56ZA46.js} +0 -0
- /package/dist/cdn/{W6X34YBZ.js → 6NWR2Z4F.js} +0 -0
- /package/dist/cdn/{KMODOE6H.js → 7FVXPOAG.js} +0 -0
- /package/dist/cdn/{2PRRRGTC.js → AYJQLWX4.js} +0 -0
- /package/dist/cdn/{HJP2DQC3.js → AZ73DBU3.js} +0 -0
- /package/dist/cdn/{CQW2542N.js → B4CANXID.js} +0 -0
- /package/dist/cdn/{HLHFT3VN.js → BEFZSVBT.js} +0 -0
- /package/dist/cdn/{55Q2U4HS.js → BIWQEPK4.js} +0 -0
- /package/dist/cdn/{N5NLF7RI.js → BLYJE76S.js} +0 -0
- /package/dist/cdn/{2Q7J34UP.js → CESFJ6AD.js} +0 -0
- /package/dist/cdn/{5ZZ7JN5X.js → COKGOKO2.js} +0 -0
- /package/dist/cdn/{7Y65HW7Z.js → D3LYSFXK.js} +0 -0
- /package/dist/cdn/{FZATLDJD.js → EAM45WZP.js} +0 -0
- /package/dist/cdn/{6VBFCBUV.js → EDTGV4YF.js} +0 -0
- /package/dist/cdn/{62XRQDSI.js → FMBY3L4S.js} +0 -0
- /package/dist/cdn/{TKC3X6S6.js → GQ6SYNZS.js} +0 -0
- /package/dist/cdn/{YUZAZ3CJ.js → H4FH2RBM.js} +0 -0
- /package/dist/cdn/{P3MLJ7YL.js → I5ZESLWO.js} +0 -0
- /package/dist/cdn/{MM6LPGBW.js → KO7RD6SS.js} +0 -0
- /package/dist/cdn/{2LEEKX4J.js → LQ76PRWK.js} +0 -0
- /package/dist/cdn/{CTHAODQE.js → MUWOF7W4.js} +0 -0
- /package/dist/cdn/{G5DB24SO.js → OCLOCCB6.js} +0 -0
- /package/dist/cdn/{2UG26OVP.js → OJXNUBIA.js} +0 -0
- /package/dist/cdn/{ANRJPTRX.js → OUXE3CSQ.js} +0 -0
- /package/dist/cdn/{AKKV6RKF.js → PXAY7IM4.js} +0 -0
- /package/dist/cdn/{4PMOT2RS.js → QMYL4UM7.js} +0 -0
- /package/dist/cdn/{UCFBAQVW.js → QPFX5XH3.js} +0 -0
- /package/dist/cdn/{EGN54PEX.js → RFSBZHJD.js} +0 -0
- /package/dist/cdn/{4TZLBS5N.js → RYYBMDGS.js} +0 -0
- /package/dist/cdn/{CDGKQKVU.js → T2DT5I33.js} +0 -0
- /package/dist/cdn/{EJ5KLAEE.js → UINNR6FV.js} +0 -0
- /package/dist/cdn/{KWL3F4UP.js → UPZVIKOH.js} +0 -0
- /package/dist/cdn/{KXCLNNE5.js → VCRVQMYT.js} +0 -0
- /package/dist/cdn/{COSLSZXO.js → VWN2LORT.js} +0 -0
- /package/dist/cdn/{3NKJ4HFO.js → XAMLHDWZ.js} +0 -0
- /package/dist/cdn/{N43ZQ4C7.js → ZWN6DXNO.js} +0 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { substitute as
|
|
6
|
-
import
|
|
7
|
-
import { LitElement as b, createEvent as
|
|
2
|
+
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as T, html as s } from "lit";
|
|
4
|
+
import { keyed as p } from "lit/directives/keyed.js";
|
|
5
|
+
import { substitute as h, formatNumber as y } from "@arcgis/core/intl.js";
|
|
6
|
+
import m from "@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js";
|
|
7
|
+
import { LitElement as b, createEvent as u, nothing as a } from "@arcgis/lumina";
|
|
8
8
|
import { usePropertyChange as w } from "@arcgis/lumina/controllers";
|
|
9
9
|
import { reEmitEvent as d } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
10
10
|
import { u as M } from "../../chunks/useT9n.js";
|
|
11
11
|
import { m as O } from "../../chunks/useViewModel.js";
|
|
12
|
-
const
|
|
12
|
+
const C = T`:host{width:100%;display:flex;>*{align-items:center;align-self:center;height:100%;width:100%}}.root{display:flex;flex-direction:column}calcite-action-bar[layout=horizontal]{width:100%;calcite-chip{margin-inline-start:auto}}calcite-action-bar[layout=vertical]{height:100%;calcite-chip{margin-block-start:auto}}calcite-action-bar slot{align-items:center}calcite-dropdown:has(calcite-action:not([text-enabled])){align-self:center}calcite-action:not([text-enabled]){align-self:center}calcite-chip{display:flex;align-self:center;line-height:initial}calcite-dropdown{calcite-icon{margin-inline-start:var(--calcite-space-2xs)}}calcite-chip[closed]{display:inline-flex}calcite-progress{--calcite-progress-background-color: transparent}`, g = {
|
|
13
13
|
replace: "overwrite-features",
|
|
14
14
|
add: "cursor-plus",
|
|
15
15
|
remove: "cursor-minus"
|
|
16
|
-
},
|
|
17
|
-
class
|
|
16
|
+
}, S = O(m);
|
|
17
|
+
class $ extends b {
|
|
18
18
|
constructor() {
|
|
19
|
-
super(...arguments), this.viewModel =
|
|
19
|
+
super(...arguments), this.viewModel = S(this), this.messages = M(), this.autoDestroyDisabled = !1, this.disabled = !1, this.icon = "selection-set", this.view = this.viewModel.view, this.activeOperation = this.viewModel.activeOperation, this.availableOperationTypes = ["replace", "add", "remove"], this.continuousSelectionEnabled = this.viewModel.continuousSelectionEnabled, this.defaultLassoToolOptions = this.viewModel.defaultLassoToolOptions, this.defaultOperationType = this.viewModel.defaultOperationType, this.defaultPolygonToolOptions = this.viewModel.defaultPolygonToolOptions, this.defaultPointToolOptions = this.viewModel.defaultPointToolOptions, this.defaultRectangleToolOptions = this.viewModel.defaultRectangleToolOptions, this.effectiveSelectionManager = this.viewModel.effectiveSelectionManager, this.effectiveSources = this.viewModel.effectiveSources, this.hideChip = !1, this.hideChipCloseButton = !1, this.hideLassoTool = !1, this.hideOperationTypeControls = !1, this.hidePanTool = !1, this.hidePolygonTool = !1, this.hidePointTool = !1, this.hideProgress = !1, this.hideRectangleTool = !1, this.layout = "horizontal", this.returnFeatureTitleFields = this.viewModel.returnFeatureTitleFields, this.selectionManager = this.viewModel.selectionManager, this.showTextLabels = !1, this.sources = this.viewModel.sources, this.toolConfigs = this.viewModel.toolConfigs, this.visualScale = "m", this.arcgisBeforeActivate = d(() => this.viewModel, "before-activate"), this.arcgisClear = u(), this.arcgisComplete = d(() => this.viewModel, "complete"), this.arcgisPropertyChange = w()("activeOperation", "state"), this.arcgisReady = u(), this.arcgisSelectionChange = d(() => this.viewModel, "selection-change");
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
this.properties = { _effectiveDisabled: 16, _effectiveOperationType: 16, _processing: 16, autoDestroyDisabled: 5, disabled: 7, icon: 1, label: 1, referenceElement: 1, view: 0, activeOperation: 32, availableOperationTypes: 0, continuousSelectionEnabled: 5, defaultLassoToolOptions: 0, defaultOperationType: 1, defaultPointToolOptions: 0, defaultRectangleToolOptions: 0, effectiveSelectionManager: 32, effectiveSources: 32, hideChip: 5, hideLassoTool: 5, hideOperationTypeControls: 5, hidePanTool: 5, hidePointTool: 5, hideProgress: 5, hideRectangleTool: 5, layerViewPreferenceDisabled: 5, layout: 1, returnFeatureTitleFields: 5, returnGeometryDisabled: 5, selectionManager: 0, showTextLabels: 5, sources: 0, state: 32, syncResultsDisabled: 5, syncWhileDrawing: 5, toolConfigs: 0, visualScale: 1 };
|
|
22
|
+
this.properties = { _effectiveDisabled: 16, _effectiveOperationType: 16, _processing: 16, autoDestroyDisabled: 5, disabled: 7, icon: 1, label: 1, referenceElement: 1, view: 0, activeOperation: 32, availableOperationTypes: 0, continuousSelectionEnabled: 5, defaultLassoToolOptions: 0, defaultOperationType: 1, defaultPolygonToolOptions: 0, defaultPointToolOptions: 0, defaultRectangleToolOptions: 0, effectiveSelectionManager: 32, effectiveSources: 32, hideChip: 5, hideChipCloseButton: 5, hideLassoTool: 5, hideOperationTypeControls: 5, hidePanTool: 5, hidePolygonTool: 5, hidePointTool: 5, hideProgress: 5, hideRectangleTool: 5, layerViewPreferenceDisabled: 5, layout: 1, returnFeatureTitleFields: 5, returnGeometryDisabled: 5, selectionManager: 0, showTextLabels: 5, sources: 0, state: 32, syncResultsDisabled: 5, syncWhileDrawing: 5, toolConfigs: 0, visualScale: 1 };
|
|
23
23
|
}
|
|
24
24
|
static {
|
|
25
|
-
this.styles =
|
|
25
|
+
this.styles = C;
|
|
26
26
|
}
|
|
27
27
|
get _effectiveDisabled() {
|
|
28
28
|
return this.disabled || this.state === "disabled";
|
|
@@ -81,6 +81,9 @@ class D extends b {
|
|
|
81
81
|
if (!this._effectiveDisabled)
|
|
82
82
|
return this.viewModel.toggleTool(e);
|
|
83
83
|
}
|
|
84
|
+
_handleClearSelection() {
|
|
85
|
+
this.effectiveSelectionManager?.clear(), this.arcgisClear.emit();
|
|
86
|
+
}
|
|
84
87
|
_getLabelForSelectionOperationType(e) {
|
|
85
88
|
const { messages: t } = this;
|
|
86
89
|
switch (e) {
|
|
@@ -103,28 +106,38 @@ class D extends b {
|
|
|
103
106
|
return t?.remove;
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
|
-
_getTextForChip() {
|
|
107
|
-
const {
|
|
108
|
-
return i.countTruncated &&
|
|
109
|
+
_getTextForChip(e) {
|
|
110
|
+
const { layout: t, messages: i, visualScale: o } = this, l = o === "l" ? 999 : 99;
|
|
111
|
+
return i.countTruncated && e > l && t === "vertical" ? h(i.countTruncated, {
|
|
109
112
|
count: l
|
|
110
|
-
}) :
|
|
113
|
+
}) : y(e);
|
|
114
|
+
}
|
|
115
|
+
_getTooltipForChip(e) {
|
|
116
|
+
const { messages: t } = this;
|
|
117
|
+
return !t?.selectionCount || !t?.clearSelectionCount ? "" : this.hideChipCloseButton || e === 0 ? h(t.selectionCount, { count: e }) : h(t.clearSelectionCount, { count: e });
|
|
111
118
|
}
|
|
112
119
|
#i() {
|
|
113
120
|
if (this.hideProgress)
|
|
114
121
|
return;
|
|
115
122
|
const e = this.messages.processing;
|
|
116
|
-
return
|
|
123
|
+
return s`<calcite-progress aria-label=${e ?? a} .label=${e} .type=${this._processing ? "indeterminate" : "determinate"}></calcite-progress>`;
|
|
117
124
|
}
|
|
118
125
|
#o() {
|
|
119
|
-
return
|
|
126
|
+
return p("tools-group", s`<calcite-action-group>${this.#s()}${this.#l()}</calcite-action-group>`);
|
|
120
127
|
}
|
|
121
128
|
#s() {
|
|
122
|
-
return [
|
|
129
|
+
return [
|
|
130
|
+
this.#a(),
|
|
131
|
+
this.#r(),
|
|
132
|
+
this.#c(),
|
|
133
|
+
this.#d(),
|
|
134
|
+
this.#h()
|
|
135
|
+
];
|
|
123
136
|
}
|
|
124
|
-
#
|
|
137
|
+
#l() {
|
|
125
138
|
return this.toolConfigs.map(({ toolName: e, icon: t }) => this.#e(e, t));
|
|
126
139
|
}
|
|
127
|
-
#
|
|
140
|
+
#a() {
|
|
128
141
|
if (this.hidePanTool)
|
|
129
142
|
return;
|
|
130
143
|
const e = this.messages.pan ?? "";
|
|
@@ -132,24 +145,32 @@ class D extends b {
|
|
|
132
145
|
active: !this.activeOperation,
|
|
133
146
|
disabled: this._effectiveDisabled,
|
|
134
147
|
icon: "pan",
|
|
135
|
-
onclick: () =>
|
|
148
|
+
onclick: () => {
|
|
149
|
+
this.cancel();
|
|
150
|
+
},
|
|
136
151
|
text: e,
|
|
137
152
|
title: e
|
|
138
153
|
});
|
|
139
154
|
}
|
|
140
|
-
#
|
|
155
|
+
#n() {
|
|
141
156
|
if (this.hideChip)
|
|
142
157
|
return;
|
|
143
|
-
const { effectiveSelectionManager: e
|
|
144
|
-
return
|
|
158
|
+
const { effectiveSelectionManager: e } = this, t = e?.count ?? 0, i = this._getTextForChip(t), o = !this.hideChipCloseButton && t > 0;
|
|
159
|
+
return s`<calcite-chip appearance=outline .closable=${o} .disabled=${this._effectiveDisabled || t === 0} .label=${i} .scale=${this.visualScale} title=${this._getTooltipForChip(t) ?? a} @calciteChipClose=${this._handleClearSelection}>${i}</calcite-chip>`;
|
|
145
160
|
}
|
|
146
|
-
#
|
|
161
|
+
#r() {
|
|
147
162
|
if (this.hidePointTool)
|
|
148
163
|
return;
|
|
149
164
|
const { messages: e } = this;
|
|
150
165
|
return this.#e("point", "selection-set", e.point, e.selectByPoint);
|
|
151
166
|
}
|
|
152
167
|
#c() {
|
|
168
|
+
if (this.hidePolygonTool)
|
|
169
|
+
return;
|
|
170
|
+
const { messages: e } = this;
|
|
171
|
+
return this.#e("polygon", "polygon-select", e.polygon, e.selectByPolygon);
|
|
172
|
+
}
|
|
173
|
+
#h() {
|
|
153
174
|
if (this.hideLassoTool)
|
|
154
175
|
return;
|
|
155
176
|
const { messages: e } = this;
|
|
@@ -161,35 +182,37 @@ class D extends b {
|
|
|
161
182
|
const { messages: e } = this;
|
|
162
183
|
return this.#e("rectangle", "cursor-marquee", e.rectangle, e.selectByRectangle);
|
|
163
184
|
}
|
|
164
|
-
#
|
|
185
|
+
#p() {
|
|
165
186
|
const { availableOperationTypes: e } = this;
|
|
166
187
|
if (this.hideOperationTypeControls || !e.length)
|
|
167
188
|
return;
|
|
168
|
-
const { _effectiveOperationType: t, showTextLabels: i, visualScale: o } = this,
|
|
169
|
-
return
|
|
189
|
+
const { _effectiveOperationType: t, showTextLabels: i, visualScale: o } = this, l = g[t], n = this._getTextForSelectionOperationType(t), r = this._getLabelForSelectionOperationType(t);
|
|
190
|
+
return p("toggle-group", s`<calcite-action-group><calcite-dropdown overlay-positioning=fixed placement=bottom-start .scale=${o}><calcite-action class=tool-button .disabled=${this._effectiveDisabled} .icon=${l} .scale=${o} slot=trigger .text=${n ?? ""} .textEnabled=${i} title=${r ?? a}><calcite-icon icon=chevron-down scale=s></calcite-icon></calcite-action><calcite-dropdown-group>${e.map((c) => this.#u(c))}</calcite-dropdown-group></calcite-dropdown></calcite-action-group>`);
|
|
170
191
|
}
|
|
171
|
-
#
|
|
172
|
-
return
|
|
192
|
+
#u(e) {
|
|
193
|
+
return s`<calcite-dropdown-item .iconStart=${g[e]} .selected=${this.defaultOperationType === e} @calciteDropdownItemSelect=${() => this.defaultOperationType = e}>${this._getLabelForSelectionOperationType(e)}</calcite-dropdown-item>`;
|
|
173
194
|
}
|
|
174
195
|
#e(e, t = "selection", i = e, o = i) {
|
|
175
196
|
return this.#t({
|
|
176
197
|
active: this.activeOperation?.toolName === e,
|
|
177
198
|
disabled: this._effectiveDisabled,
|
|
178
199
|
icon: t,
|
|
179
|
-
onclick: () =>
|
|
200
|
+
onclick: () => {
|
|
201
|
+
this.toggleTool(e);
|
|
202
|
+
},
|
|
180
203
|
text: i,
|
|
181
204
|
title: o
|
|
182
205
|
});
|
|
183
206
|
}
|
|
184
207
|
#t(e) {
|
|
185
|
-
const { active: t, disabled: i, icon: o, onclick:
|
|
186
|
-
return
|
|
208
|
+
const { active: t, disabled: i, icon: o, onclick: l, text: n, title: r } = e, { showTextLabels: c, visualScale: f } = this;
|
|
209
|
+
return s`<calcite-action .active=${t} class=tool-button .disabled=${i} .icon=${o} @click=${l} .text=${n} .textEnabled=${c} title=${r ?? a} .scale=${f}></calcite-action>`;
|
|
187
210
|
}
|
|
188
211
|
render() {
|
|
189
|
-
return
|
|
212
|
+
return s`<div><calcite-action-bar expand-toggle-disabled .layout=${this.layout} overflow-mode=none .scale=${this.visualScale}>${this.#p()}${this.#o()}${this.#n()}</calcite-action-bar>${this.#i()}</div>`;
|
|
190
213
|
}
|
|
191
214
|
}
|
|
192
|
-
|
|
215
|
+
v("arcgis-selection-toolbar", $);
|
|
193
216
|
export {
|
|
194
|
-
|
|
217
|
+
$ as ArcgisSelectionToolbar
|
|
195
218
|
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type Accessor from "@arcgis/core/core/Accessor.js";
|
|
2
|
+
import type VisibleElements from "@arcgis/core/widgets/Sketch/VisibleElements.js";
|
|
3
|
+
import type SelectionToolbarViewModel from "@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js";
|
|
4
|
+
import type Graphic from "@arcgis/core/Graphic.js";
|
|
5
|
+
import type SelectionOperation from "@arcgis/core/views/selection/SelectionOperation.js";
|
|
6
|
+
import type { EventedAccessor } from "@arcgis/core/core/Evented.js";
|
|
7
|
+
import type { default as SketchViewModel } from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
8
|
+
import type { CreateOptions, CreateTool, CustomActionProperties, CustomToolOptions, SelectionTool, SketchTool } from "@arcgis/core/widgets/Sketch/types.js";
|
|
9
|
+
import type { PluginConfiguration } from "@arcgis/core/views/draw/support/types.js";
|
|
10
|
+
import type { SelectionToolOptions } from "@arcgis/core/widgets/support/SelectionToolbar/types.js";
|
|
11
|
+
import type { KnownActionGroup } from "./configuration.js";
|
|
12
|
+
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
13
|
+
|
|
14
|
+
export interface SketchComponentViewModelProperties extends Partial<Pick<SketchComponentViewModel, "availableCreateTools" | "selectionViewModel" | "settingsPopoverOpen" | "sketchViewModel" | "view" | "visibleElements">> {}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Internal ViewModel to support rendering and separation of concerns for the Sketch component.
|
|
18
|
+
* Traditionally this would be called `SketchViewModel`, but that has taken on a life of its own
|
|
19
|
+
* and needs to maintain a stable public API; it is unfortunately lower level than we'd like
|
|
20
|
+
* for optimal use in our UI.
|
|
21
|
+
*
|
|
22
|
+
* This component encompasses all transformations from the state of SketchViewModel and
|
|
23
|
+
* SelectionToolbarViewModel and VisibleElements to state that can be trivially rendered by the view layer.
|
|
24
|
+
*/
|
|
25
|
+
export class SketchComponentViewModel extends Accessor {
|
|
26
|
+
constructor(properties?: SketchComponentViewModelProperties);
|
|
27
|
+
get _activeSelectionTool(): "lasso-selection" | "rectangle-selection" | undefined;
|
|
28
|
+
get activePluginIds(): Set<PluginConfiguration["uniqueId"]> | undefined;
|
|
29
|
+
get activeTool(): SelectionTool | SketchTool | undefined;
|
|
30
|
+
accessor availableCreateTools: CreateTool[] | undefined;
|
|
31
|
+
get groupedActions(): KnownActionGroup[];
|
|
32
|
+
accessor selectionViewModel: SelectionViewModelLike;
|
|
33
|
+
/** @default false */
|
|
34
|
+
accessor settingsPopoverOpen: boolean;
|
|
35
|
+
accessor sketchViewModel: SketchViewModelLike | undefined;
|
|
36
|
+
get state(): SketchViewModelLike["state"];
|
|
37
|
+
get test(): {
|
|
38
|
+
activeCustomToolOptions: CustomToolOptions | undefined;
|
|
39
|
+
activeSelectionTool: "lasso-selection" | "rectangle-selection" | undefined;
|
|
40
|
+
selectionViewModel: SelectionViewModelLike;
|
|
41
|
+
};
|
|
42
|
+
accessor view: ViewLike | undefined;
|
|
43
|
+
accessor visibleElements: VisibleElements;
|
|
44
|
+
/**
|
|
45
|
+
* Guards against taking certain actions while geometry simplification is in progress.
|
|
46
|
+
*
|
|
47
|
+
* @param command
|
|
48
|
+
*/
|
|
49
|
+
_executeWhenReady(command: () => Promise<void> | void): Promise<void>;
|
|
50
|
+
/** Cancels all operations, restoring a neutral, ready state. */
|
|
51
|
+
cancelAll(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Initiates interactive creation of a sketch/drawing using the provided tool and options.
|
|
54
|
+
*
|
|
55
|
+
* @param tool - Tool to use for the drawing
|
|
56
|
+
* @param createOptions - Optional configuration of the drawling experience.
|
|
57
|
+
*/
|
|
58
|
+
create(tool: CreateTool, createOptions?: CreateOptions): Promise<void>;
|
|
59
|
+
destroy(): void;
|
|
60
|
+
initialize(): void;
|
|
61
|
+
/**
|
|
62
|
+
* @param createToolOptions
|
|
63
|
+
* @param customActionOptions
|
|
64
|
+
*/
|
|
65
|
+
setCustomTools(createToolOptions?: CustomToolOptions[] | null, customActionOptions?: CustomActionProperties[] | null): void;
|
|
66
|
+
toggleSettingsPopover(): void;
|
|
67
|
+
/**
|
|
68
|
+
* @param graphic
|
|
69
|
+
* @param updateOptions
|
|
70
|
+
*/
|
|
71
|
+
update(graphic: Graphic | Graphic[], updateOptions?: Parameters<SketchViewModelLike["update"]>[1]): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type ViewLike = Pick<MapViewOrSceneView, "focus" | "type">;
|
|
75
|
+
|
|
76
|
+
export type SketchViewModelLike = EventedAccessor
|
|
77
|
+
& Pick<SketchViewModel, "@eventTypes" | "activeCreateToolDrawMode" | "activePluginConfigurations" | "activeTool" | "cancel" | "canRedo" | "canUndo" | "complete" | "create" | "creationMode" | "delete" | "duplicate" | "effectiveAvailablePlugins" | "firstPluginWithSwappableLeaf" | "geometrySimplificationInProgress" | "layer" | "multiplePluginsActive" | "redo" | "replaceLeaf" | "rootPlugins" | "state" | "toolTransitionInProgress" | "undo" | "update" | "updateGraphics" | "updateOnGraphicClick">;
|
|
78
|
+
|
|
79
|
+
export type SelectionViewModelLike = EventedAccessor
|
|
80
|
+
& Pick<SelectionToolbarViewModel, "@eventTypes" | "cancel" | "sources" | "view">
|
|
81
|
+
& {
|
|
82
|
+
activeOperation?: Pick<SelectionOperation, "toolName"> | null;
|
|
83
|
+
activate?: (options: SelectionToolOptions) => Pick<SelectionOperation, "toolName" | "type">;
|
|
84
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { SketchGroupName } from "@arcgis/core/applications/ExperienceBuilder/sketchUtils.js";
|
|
2
|
+
import type { CustomActionProperties } from "@arcgis/core/widgets/Sketch/types.js";
|
|
3
|
+
import type { IconName } from "../types.js";
|
|
4
|
+
import type { ArcgisToolbarAction as ArcgisToolbarAction } from "@arcgis/common-components/components/arcgis-toolbar-action";
|
|
5
|
+
|
|
6
|
+
export interface KnownActionGroup {
|
|
7
|
+
name: SketchComponentGroupName;
|
|
8
|
+
commands: SketchAction[];
|
|
9
|
+
visible: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type SketchComponentGroupName = SketchGroupName | "geometrySimplification";
|
|
13
|
+
|
|
14
|
+
export interface SketchAction {
|
|
15
|
+
active: boolean;
|
|
16
|
+
afterCreate?: CustomActionProperties["afterCreate"];
|
|
17
|
+
afterRemoved?: CustomActionProperties["afterRemoved"];
|
|
18
|
+
afterUpdate?: CustomActionProperties["afterUpdate"];
|
|
19
|
+
appearance?: ArcgisToolbarAction["appearance"];
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
icon?: IconName;
|
|
22
|
+
id?: string;
|
|
23
|
+
kind?: ArcgisToolbarAction["kind"];
|
|
24
|
+
labelKey: string;
|
|
25
|
+
labelParameters?: Record<string, number | string>;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
tooltipKey?: string;
|
|
28
|
+
iconFlipRTL?: boolean;
|
|
29
|
+
refKey?: string;
|
|
30
|
+
textEnabled?: boolean;
|
|
31
|
+
renderAsAction?: boolean;
|
|
32
|
+
onClick: () => void;
|
|
33
|
+
}
|
|
@@ -13,8 +13,9 @@ import type Collection from "@arcgis/core/core/Collection.js";
|
|
|
13
13
|
import type { SketchGroupName } from "@arcgis/core/applications/ExperienceBuilder/sketchUtils.js";
|
|
14
14
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
15
15
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
16
|
-
import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, DuplicateEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties,
|
|
16
|
+
import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, DuplicateEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, CreationMode, UpdateOptions, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol } from "@arcgis/core/widgets/Sketch/types.js";
|
|
17
17
|
import type { RelativePosition } from "./support.js";
|
|
18
|
+
import type { SketchComponentViewModel } from "./SketchComponentViewModel.js";
|
|
18
19
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
19
20
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
20
21
|
import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
|
|
@@ -182,7 +183,7 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
182
183
|
* To opt in to freehandPolyline and freehandPolygon tools, include them when setting availableCreateTools,
|
|
183
184
|
* and hideCreateTools* properties.
|
|
184
185
|
*/
|
|
185
|
-
get activeTool():
|
|
186
|
+
get activeTool(): SketchComponentViewModel["activeTool"];
|
|
186
187
|
/**
|
|
187
188
|
* If true, the component will not be destroyed automatically when it is
|
|
188
189
|
* disconnected from the document. This is useful when you want to move the
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as F } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as H, noChange as R, html as
|
|
3
|
+
import { css as H, noChange as R, html as v } from "lit";
|
|
4
4
|
import { substitute as q } from "@arcgis/core/intl.js";
|
|
5
5
|
import { usePropertyChange as z, useWatchAttributes as N } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { reEmitEvent as f } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
7
7
|
import j from "@arcgis/core/layers/GraphicsLayer.js";
|
|
8
8
|
import J from "@arcgis/core/symbols/TextSymbol.js";
|
|
9
9
|
import { LitElement as Q, createEvent as X, nothing as x } from "@arcgis/lumina";
|
|
10
|
-
import { watch as
|
|
10
|
+
import { watch as m, on as Y, whenOnce as Z } from "@arcgis/core/core/reactiveUtils.js";
|
|
11
11
|
import { u as ee } from "../../chunks/useT9n.js";
|
|
12
12
|
import { m as te } from "../../chunks/useViewModel.js";
|
|
13
13
|
import { V as T } from "../../chunks/visible-element.js";
|
|
@@ -106,7 +106,7 @@ function Te({
|
|
|
106
106
|
}, n);
|
|
107
107
|
}
|
|
108
108
|
r(i());
|
|
109
|
-
const p =
|
|
109
|
+
const p = m(
|
|
110
110
|
i,
|
|
111
111
|
(n) => {
|
|
112
112
|
s(), n ? h(Ce, !0) : h(t == null ? 0 : be - (Date.now() - t), !1);
|
|
@@ -137,7 +137,7 @@ let l = class extends ne {
|
|
|
137
137
|
}
|
|
138
138
|
initialize() {
|
|
139
139
|
this.selectionViewModel ??= new re({ persistSelection: !1 }), this.addHandles([
|
|
140
|
-
|
|
140
|
+
m(
|
|
141
141
|
() => this.sketchViewModel,
|
|
142
142
|
(i, e) => {
|
|
143
143
|
i !== e && this._effectiveRenderStateCache.clear();
|
|
@@ -150,7 +150,7 @@ let l = class extends ne {
|
|
|
150
150
|
this._effectiveGeometrySimplificationInProgress = i;
|
|
151
151
|
}
|
|
152
152
|
}),
|
|
153
|
-
|
|
153
|
+
m(
|
|
154
154
|
() => this.view,
|
|
155
155
|
(i) => {
|
|
156
156
|
this.selectionViewModel.view = i;
|
|
@@ -158,7 +158,7 @@ let l = class extends ne {
|
|
|
158
158
|
{ initial: !0, sync: !0 }
|
|
159
159
|
),
|
|
160
160
|
// Ensure the SelectionViewModel always has the latest layer
|
|
161
|
-
|
|
161
|
+
m(
|
|
162
162
|
() => this.sketchViewModel?.layer,
|
|
163
163
|
(i) => this.selectionViewModel.sources = i ? [i] : [],
|
|
164
164
|
{ initial: !0, sync: !0 }
|
|
@@ -167,7 +167,7 @@ let l = class extends ne {
|
|
|
167
167
|
i.length && this.update(i);
|
|
168
168
|
}),
|
|
169
169
|
// Cancel active tool when selection activates
|
|
170
|
-
|
|
170
|
+
m(
|
|
171
171
|
() => this.selectionViewModel.activeOperation,
|
|
172
172
|
(i) => {
|
|
173
173
|
i && (this.sketchViewModel?.cancel(), this._activeCustomToolOptions = void 0);
|
|
@@ -181,7 +181,7 @@ let l = class extends ne {
|
|
|
181
181
|
i.state === "complete" && this.sketchViewModel?.creationMode !== "continuous" && (this._activeCustomToolOptions = void 0);
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
|
-
|
|
184
|
+
m(
|
|
185
185
|
() => this.visibleElements.settingsMenu,
|
|
186
186
|
(i) => {
|
|
187
187
|
i || (this.settingsPopoverOpen = !1);
|
|
@@ -720,22 +720,23 @@ class Me extends Q {
|
|
|
720
720
|
constructor() {
|
|
721
721
|
super(), this.#t = new l(), this.#o = _(), this.#s = _(), this._defaultGraphicsLayer = null, this._messages = ee(), this.test = {
|
|
722
722
|
componentViewModel: this.#t
|
|
723
|
-
}, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = se(), this.viewModel = Ee(this), this.view = this.viewModel.view, this.
|
|
723
|
+
}, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = se(), this.viewModel = Ee(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.createGraphic = this.viewModel.createGraphic, this.creationMode = this.viewModel.creationMode, this.defaultCreateOptions = this.viewModel.defaultCreateOptions, this.defaultGraphicsLayerDisabled = !1, this.defaultUpdateOptions = this.viewModel.defaultUpdateOptions, this.geometrySimplificationInProgress = this.viewModel.geometrySimplificationInProgress, this.icon = "pencil", this.label = this._messages?.componentLabel, this.labelOptions = this.viewModel.labelOptions, this.layer = this.viewModel.layer, this.layout = "horizontal", this.pointSymbol = this.viewModel.pointSymbol, this.polygonSymbol = this.viewModel.polygonSymbol, this.polylineSymbol = this.viewModel.polylineSymbol, this.visualScale = "m", this.snappingOptions = this.viewModel.snappingOptions, this.textSymbol = this.viewModel.textSymbol, this.toolbarKind = "floating", this.tooltipOptions = this.viewModel.tooltipOptions, this.valueOptions = this.viewModel.valueOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.viewModel.updateGraphics, this.arcgisCreate = f(() => this.viewModel, "create"), this.arcgisDelete = f(() => this.viewModel, "delete"), this.arcgisDuplicate = f(() => this.viewModel, "duplicate"), this.arcgisPropertyChange = z()("activeTool", "geometrySimplificationInProgress", "state"), this.arcgisReady = X(), this.arcgisRedo = f(() => this.viewModel, "redo"), this.arcgisUndo = f(() => this.viewModel, "undo"), this.arcgisUpdate = f(() => this.viewModel, "update"), N(["slot"], () => {
|
|
724
724
|
this.requestUpdate();
|
|
725
725
|
}), this.manager.onLifecycle(() => [
|
|
726
|
-
|
|
726
|
+
m(() => this.el.view?.map, (e, t) => {
|
|
727
727
|
const o = this._defaultGraphicsLayer;
|
|
728
728
|
o && (t?.allLayers.includes(o) && t.remove(o), o && !e?.allLayers.includes(o) && e?.add(o));
|
|
729
729
|
}),
|
|
730
|
-
|
|
730
|
+
m(() => this.el.view, (e) => {
|
|
731
731
|
this.viewModel.view = e, this.#t.view = e ?? void 0;
|
|
732
732
|
}, { initial: !0 }),
|
|
733
|
-
|
|
733
|
+
m(() => this.viewModel, (e) => {
|
|
734
734
|
this.#t.sketchViewModel = e, this.viewModel.pluginManager.sketch = this;
|
|
735
735
|
}, { initial: !0 }),
|
|
736
|
-
|
|
736
|
+
m(() => this.#t.state, (e, t) => {
|
|
737
737
|
this.requestUpdate("state", t);
|
|
738
|
-
}, { initial: !0 })
|
|
738
|
+
}, { initial: !0 }),
|
|
739
|
+
m(() => this.#t.activeTool, () => this.arcgisPropertyChange.emit({ name: "activeTool" }), { sync: !0 })
|
|
739
740
|
]), this.manager.onDestroy(() => {
|
|
740
741
|
this._defaultGraphicsLayer && this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.el.view?.map?.remove(this._defaultGraphicsLayer), this._defaultGraphicsLayer?.destroy(), this._defaultGraphicsLayer = null, this.#t.destroy();
|
|
741
742
|
});
|
|
@@ -753,6 +754,9 @@ class Me extends Q {
|
|
|
753
754
|
#i;
|
|
754
755
|
#o;
|
|
755
756
|
#s;
|
|
757
|
+
get activeTool() {
|
|
758
|
+
return this.#t.activeTool;
|
|
759
|
+
}
|
|
756
760
|
get visibleElements() {
|
|
757
761
|
return this.#t.visibleElements;
|
|
758
762
|
}
|
|
@@ -1044,11 +1048,11 @@ class Me extends Q {
|
|
|
1044
1048
|
}
|
|
1045
1049
|
render() {
|
|
1046
1050
|
const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: r, relativePosition: h, _contextualToolLocation: p } = this, n = t.find(({ name: u }) => u === "selectionSet"), g = t.filter(({ name: u }) => u !== "selectionSet");
|
|
1047
|
-
return
|
|
1051
|
+
return v`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${r} .relativePosition=${h} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${E(this.#o)}>${T({ hidden: !n?.visible || p !== "inline", children: this._renderActionGroup(n) })}${g.map((u) => this._renderActionGroup(u))}${T({ hidden: !n?.visible || p !== "inline-end", children: this._renderActionGroup(n) })}</arcgis-toolbar>${T({ hidden: !n?.visible || p !== "separate", children: v`<arcgis-toolbar>${this._renderActionGroup(n)}</arcgis-toolbar>` })}</arcgis-toolbar-stack></div>${T({ hidden: this.hideSettingsMenu, children: v`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${(u) => this.#t.settingsPopoverOpen = u.target.open ?? !1} .view=${this.view ?? void 0}>${this._renderSettings()}</arcgis-view-popover>` })}`;
|
|
1048
1052
|
}
|
|
1049
1053
|
_renderSettings() {
|
|
1050
1054
|
const { autoDestroyDisabled: e, hideLabelsToggle: t, hideSnappingControls: o, hideTooltipsToggle: s, showSnappingControlsElementsHeader: r, view: h, viewModel: p } = this;
|
|
1051
|
-
return
|
|
1055
|
+
return v`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${s} .directionMode=${p.valueOptions.directionMode} .labelsEnabled=${p.labelOptions.enabled} .tooltipsEnabled=${p.tooltipOptions.enabled} @arcgisPropertyChange=${(n) => {
|
|
1052
1056
|
n.stopPropagation();
|
|
1053
1057
|
const { labelsEnabled: g, tooltipsEnabled: u, directionMode: d } = n.currentTarget, b = this.viewModel;
|
|
1054
1058
|
switch (n.detail.name) {
|
|
@@ -1062,7 +1066,7 @@ class Me extends Q {
|
|
|
1062
1066
|
b.tooltipOptions.enabled = u;
|
|
1063
1067
|
break;
|
|
1064
1068
|
}
|
|
1065
|
-
}}></arcgis-sketch-tooltip-controls>${o ? void 0 :
|
|
1069
|
+
}}></arcgis-sketch-tooltip-controls>${o ? void 0 : v`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${h} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${p.snappingOptions} .showHeader=${r} @arcgisPropertyChange=${(n) => n.stopPropagation()}></arcgis-snapping-controls>`}</div>`;
|
|
1066
1070
|
}
|
|
1067
1071
|
_renderActionGroup({ visible: e, commands: t, name: o }) {
|
|
1068
1072
|
if (!e || !t.length)
|
|
@@ -1070,16 +1074,16 @@ class Me extends Q {
|
|
|
1070
1074
|
const { defaultPriority: s, groupKind: r, overflowLabel: h } = ye[o], n = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, g = t.map((d) => this._renderCommand(d)), u = I(`more.${h}`, this._messages);
|
|
1071
1075
|
switch (r) {
|
|
1072
1076
|
case "more-button":
|
|
1073
|
-
return
|
|
1077
|
+
return v`<arcgis-toolbar-group .priority=${n}><arcgis-toolbar-more-button .overflowActionLabel=${u} .priority=${n}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;
|
|
1074
1078
|
case "split-button":
|
|
1075
|
-
return
|
|
1079
|
+
return v`<arcgis-toolbar-group .priority=${n}><arcgis-toolbar-split-button .overflowActionLabel=${u} .priority=${n}>${g}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;
|
|
1076
1080
|
case "actions":
|
|
1077
|
-
return
|
|
1081
|
+
return v`<arcgis-toolbar-group .priority=${n}>${g}</arcgis-toolbar-group>`;
|
|
1078
1082
|
}
|
|
1079
1083
|
}
|
|
1080
1084
|
_renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance: r, icon: h, disabled: p, id: n, kind: g, labelKey: u, labelParameters: d, loading: b, tooltipKey: W, iconFlipRTL: M, onClick: P, refKey: k, textEnabled: A, renderAsAction: K }) {
|
|
1081
1085
|
const { _messages: O, _refMap: U, layout: L } = this, w = I(u, O), S = w === void 0 ? u : d ? q(w, d) : w, G = O?.[W] ?? S, $ = k ? B(U, k, _) : this.#s, V = { afterCreate: t, afterRemoved: o, afterUpdate: s };
|
|
1082
|
-
return K ?
|
|
1086
|
+
return K ? v`<arcgis-toolbar-action .active=${e} .appearance=${r} .disabled=${p} .icon=${h} .iconFlipRtl=${M} id=${n ?? x} .kind=${g} .loading=${b} .labelText=${L === "horizontal" ? S : ""} .textEnabled=${A} .tooltipText=${L === "horizontal" && A ? "" : G} @arcgisToolbarItemSelected=${P} ${D(V)} ${E($)}></arcgis-toolbar-action>` : v`<arcgis-toolbar-item .active=${e} .disabled=${p} .icon=${h} id=${n ?? x} .iconFlipRtl=${M} .labelText=${S} .tooltipText=${G} @arcgisItemSelected=${P} ${D(V)} ${E($)}></arcgis-toolbar-item>`;
|
|
1083
1087
|
}
|
|
1084
1088
|
}
|
|
1085
1089
|
F("arcgis-sketch", Me);
|
|
@@ -5,6 +5,7 @@ import type GraphicsLayer from "@arcgis/core/layers/GraphicsLayer.js";
|
|
|
5
5
|
import type TraceResult from "@arcgis/core/rest/networks/support/TraceResult.js";
|
|
6
6
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
7
7
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
8
|
+
import type { UtilityNetworkTraceResultItemState } from "../arcgis-utility-network-trace-analysis/types.js";
|
|
8
9
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -56,6 +57,13 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
|
|
|
56
57
|
* @default 12
|
|
57
58
|
*/
|
|
58
59
|
accessor defaultSelectionSize: number;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the component emits event [@arcgisResultReady](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#event-arcgisResultReady).
|
|
62
|
+
* This property is always `true` for [arcgis-utility-network-trace-aggregated-geometry-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/).
|
|
63
|
+
*
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
get emitsArcgisResultReady(): true;
|
|
59
67
|
/** The graphics which represent the aggregated geometry results from the trace. */
|
|
60
68
|
get geometryGraphics(): Graphic[];
|
|
61
69
|
/**
|
|
@@ -77,6 +85,12 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
|
|
|
77
85
|
* @default false
|
|
78
86
|
*/
|
|
79
87
|
accessor hideGraphics: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the component has finished adding aggregated geometry graphics to the map.
|
|
90
|
+
*
|
|
91
|
+
* @default "ready"
|
|
92
|
+
*/
|
|
93
|
+
get state(): UtilityNetworkTraceResultItemState;
|
|
80
94
|
/**
|
|
81
95
|
* The trace result containing the aggregated geometry result to render graphics for.
|
|
82
96
|
*
|
|
@@ -91,13 +105,14 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
|
|
|
91
105
|
*/
|
|
92
106
|
accessor view: MapView | undefined;
|
|
93
107
|
/**
|
|
94
|
-
* Removes the
|
|
95
|
-
*
|
|
108
|
+
* Removes the aggregated geometry graphics from the
|
|
109
|
+
* [graphicsLayer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#graphicsLayer).
|
|
110
|
+
* If the layer was created by the component, it is also removed from the map.
|
|
96
111
|
*/
|
|
97
112
|
clearResult(): void;
|
|
98
113
|
/** Permanently destroy the component. */
|
|
99
114
|
destroy(): Promise<void>;
|
|
100
|
-
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "defaultSelectionSize" | "
|
|
115
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "defaultSelectionSize" | "hideGraphics" | "geometryGraphics" | "graphicsColor" | "state"; }>;
|
|
101
116
|
/**
|
|
102
117
|
* Fires when the component finishes processing the aggregated geometry results.
|
|
103
118
|
*
|