@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
|
@@ -3,24 +3,24 @@ import { c as m } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as u, html as o } from "lit";
|
|
4
4
|
import { watch as y } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import { LitElement as v, createEvent as r, nothing as h } from "@arcgis/lumina";
|
|
6
|
-
import { usePropertyChange as
|
|
7
|
-
import { getSlotAssignedElements as
|
|
6
|
+
import { usePropertyChange as p } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { getSlotAssignedElements as g } from "@arcgis/toolkit/dom/slots";
|
|
8
8
|
import { u as f } from "../../chunks/useT9n.js";
|
|
9
9
|
import { r as d } from "../../chunks/maybe.js";
|
|
10
|
-
const A = u`:host{min-width:var(--arcgis-internal-panel-width, 300px)}calcite-action-bar{width:100%}.selection-notice-container{padding:var(--calcite-spacing-md)}.selection-notice-list{margin-block:0;padding-inline-start:var(--calcite-spacing-lg)}.measurement-content{--arcgis-internal-padding: var(--calcite-space-md) var(--calcite-space-none);margin-block-end:var(--calcite-space-none)}.measurement-content,slot::slotted(*){width:100%}.footer{display:grid;grid-template-columns:1fr 2fr;gap:var(--calcite-spacing-md);width:100%}`, b = [
|
|
10
|
+
const A = u`:host{--arcgis-internal-exploratory-analysis-width: fit-content;display:flex;justify-content:flex-end;width:var(--arcgis-internal-exploratory-analysis-width)}:host(:is([data-content-open],[show-heading])){--arcgis-internal-exploratory-analysis-width: var(--arcgis-internal-panel-width, 300px);calcite-panel{min-width:var(--arcgis-internal-panel-width, 300px)}calcite-action-bar{width:100%}}calcite-panel{flex:none;width:fit-content}calcite-action-bar{width:fit-content}.selection-notice-container{padding:var(--calcite-spacing-md)}.selection-notice-list{margin-block:0;padding-inline-start:var(--calcite-spacing-lg)}.measurement-content{--arcgis-internal-padding: var(--calcite-space-md) var(--calcite-space-none);margin-block-end:var(--calcite-space-none)}.measurement-content,slot::slotted(*){width:100%}.footer{display:grid;grid-template-columns:1fr 2fr;gap:var(--calcite-spacing-md);width:100%}`, b = [
|
|
11
11
|
"arcgis-area-measurement-2d",
|
|
12
12
|
"arcgis-area-measurement-3d",
|
|
13
13
|
"arcgis-direct-line-measurement-3d",
|
|
14
14
|
"arcgis-distance-measurement-2d",
|
|
15
15
|
"arcgis-elevation-profile",
|
|
16
16
|
"arcgis-volume-measurement"
|
|
17
|
-
],
|
|
17
|
+
], w = b.join(",");
|
|
18
18
|
class C extends v {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(), this._messages = f({ blocking: !0 }), this.#i = !1, this.#t = /* @__PURE__ */ new WeakMap(), this._activeAnalysisHasInput = !1, this._measurements = [], this.autoDestroyDisabled = !1, this.autoStartDisabled = !1, this.closed = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showHeading = !1, this.arcgisClose = r(), this.arcgisPropertyChange =
|
|
20
|
+
super(), this._messages = f({ blocking: !0 }), this.#i = !1, this.#t = /* @__PURE__ */ new WeakMap(), this._activeAnalysisHasInput = !1, this._measurements = [], this.autoDestroyDisabled = !1, this.autoStartDisabled = !1, this.closed = !1, this.icon = "measure", this.preserveAnalysisOnChange = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showHeading = !1, this.arcgisClose = r(), this.arcgisPropertyChange = p()("activeAnalysis"), this.arcgisReady = r(), this.listen("arcgisPropertyChange", this.#r.bind(this)), this.listen("arcgisReady", this.#r.bind(this));
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.properties = { _activeAnalysisHasInput: 16, _activeAnalysisState: 16, _measurements: 16, activeAnalysis: 1, autoDestroyDisabled: 5, autoStartDisabled: 5, closed: 5, messageOverrides: 0, showCloseButton: 5, showCollapseButton: 5, showHeading:
|
|
23
|
+
this.properties = { _activeAnalysisHasInput: 16, _activeAnalysisState: 16, _measurements: 16, activeAnalysis: 1, autoDestroyDisabled: 5, autoStartDisabled: 5, closed: 5, icon: 1, messageOverrides: 0, preserveAnalysisOnChange: 5, showCloseButton: 5, showCollapseButton: 5, showHeading: 7 };
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
26
|
this.styles = A;
|
|
@@ -35,17 +35,17 @@ class C extends v {
|
|
|
35
35
|
return this.#a;
|
|
36
36
|
}
|
|
37
37
|
set activeAnalysis(e) {
|
|
38
|
-
this.#e = typeof e == "string" ? e : void 0, this.#
|
|
38
|
+
this.#e = typeof e == "string" ? e : void 0, this.#c(typeof e == "string" ? this._measurements.find((s) => s.localName === e) : e ?? void 0);
|
|
39
39
|
}
|
|
40
40
|
async destroy() {
|
|
41
41
|
await this.manager.destroy();
|
|
42
42
|
}
|
|
43
43
|
load() {
|
|
44
|
-
this.manager.onLifecycle(() => (this.#
|
|
44
|
+
this.manager.onLifecycle(() => (this.#o(), () => {
|
|
45
45
|
this.#s = d(this.#s), this.#n = void 0;
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
|
-
async #
|
|
48
|
+
async #l() {
|
|
49
49
|
await this.activeAnalysis?.clear();
|
|
50
50
|
}
|
|
51
51
|
#m() {
|
|
@@ -54,17 +54,17 @@ class C extends v {
|
|
|
54
54
|
async #u({ target: e }) {
|
|
55
55
|
const s = Number(e.selectedActions.at(0)?.dataset.measurementIndex), i = this._measurements[s];
|
|
56
56
|
if (i) {
|
|
57
|
-
if (this.#h(i), this.autoStartDisabled || i.interactionDisabled)
|
|
57
|
+
if (i !== this.activeAnalysis && !this.preserveAnalysisOnChange && await this.#l(), this.#h(i), this.autoStartDisabled || i.interactionDisabled || this.preserveAnalysisOnChange && i.analysis?.valid)
|
|
58
58
|
return;
|
|
59
59
|
await i.start();
|
|
60
60
|
} else
|
|
61
|
-
await this.#
|
|
61
|
+
await this.#l(), this.#h(void 0);
|
|
62
62
|
}
|
|
63
63
|
#r() {
|
|
64
|
-
this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#
|
|
64
|
+
this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#o(), this.#d(), this.requestUpdate();
|
|
65
65
|
}
|
|
66
66
|
#y({ currentTarget: e }) {
|
|
67
|
-
const s =
|
|
67
|
+
const s = g(e, w), i = this._measurements.filter((t) => !s.includes(t));
|
|
68
68
|
for (const t of i) {
|
|
69
69
|
const n = this.#t.get(t);
|
|
70
70
|
t.hidden = n?.hidden ?? !1, t.hideStartButton = n?.hideStartButton ?? !1, "hideClearButton" in t && (t.hideClearButton = n?.hideClearButton ?? !1), "hideHeader" in t && (t.hideHeader = n?.hideHeader ?? !1), this.#t.delete(t);
|
|
@@ -84,26 +84,26 @@ class C extends v {
|
|
|
84
84
|
let c;
|
|
85
85
|
!this.#e && s.length === 1 && (c = s[0]);
|
|
86
86
|
let a;
|
|
87
|
-
this.#e ? a = l : this.#i && s.length > 1 ? a = void 0 : this.activeAnalysis && s.includes(this.activeAnalysis) ? a = this.activeAnalysis : a = c, this.#
|
|
87
|
+
this.#e ? a = l : this.#i && s.length > 1 ? a = void 0 : this.activeAnalysis && s.includes(this.activeAnalysis) ? a = this.activeAnalysis : a = c, this.#c(a), this.#i = !!c;
|
|
88
88
|
}
|
|
89
89
|
#h(e) {
|
|
90
|
-
this.#e = void 0, this.#i = !1, this.#
|
|
90
|
+
this.#e = void 0, this.#i = !1, this.#c(e);
|
|
91
91
|
}
|
|
92
|
-
#
|
|
92
|
+
#c(e) {
|
|
93
93
|
const s = this.#a;
|
|
94
|
-
this.#a = e, this.requestUpdate("activeAnalysis", s), this.#v();
|
|
94
|
+
this.#a = e, this.el.toggleAttribute("data-content-open", !!e), this.requestUpdate("activeAnalysis", s), this.#v();
|
|
95
95
|
}
|
|
96
96
|
#v() {
|
|
97
|
-
this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#
|
|
97
|
+
this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#o(), this.#d();
|
|
98
98
|
}
|
|
99
99
|
#d() {
|
|
100
100
|
for (const e of this._measurements)
|
|
101
101
|
e.hidden = e !== this.activeAnalysis || (this.#t.get(e)?.hidden ?? !1) || e === this.activeAnalysis && this._activeAnalysisState === "ready";
|
|
102
102
|
}
|
|
103
|
-
async #
|
|
103
|
+
async #p() {
|
|
104
104
|
await this.activeAnalysis?.start();
|
|
105
105
|
}
|
|
106
|
-
#
|
|
106
|
+
#o() {
|
|
107
107
|
const e = this.activeAnalysis?.analysis;
|
|
108
108
|
if (!(e === this.#n && (e == null || this.#s))) {
|
|
109
109
|
if (this.#s = d(this.#s), this.#n = e, !e) {
|
|
@@ -115,7 +115,7 @@ class C extends v {
|
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
117
|
const { showCloseButton: e, showCollapseButton: s, showHeading: i } = this, l = this._activeAnalysisState === "disabled", c = this._measurements.length > 1, a = this.activeAnalysis?.label || this._messages.componentLabel;
|
|
118
|
-
return o`<calcite-panel .closed=${this.closed} .heading=${i ? this._messages.componentLabel : void 0} .collapsible=${s} .closable=${e} @calcitePanelClose=${this.#m}><div .hidden=${!c}><calcite-action-bar expand-toggle-disabled layout=horizontal><calcite-action-group .label=${this._messages.toolbarLabel} @calciteActionGroupChange=${this.#u} selection-mode=single>${this._measurements.map((t, n) => o`<calcite-action .active=${t === this.activeAnalysis} data-measurement-index=${n ?? h} .icon=${t.icon} .label=${t.label} .text=${t.label ?? ""} title=${t.label ?? h}></calcite-action>`)}</calcite-action-group></calcite-action-bar></div><div class="measurement-container" .hidden=${!this.activeAnalysis || l}><calcite-block class="measurement-content" .expanded=${this.isConnected && !!this.activeAnalysis && !l} .heading=${a}><slot @slotchange=${this.#y}></slot></calcite-block></div>${this.activeAnalysis ? o`<div class="footer" slot=footer><calcite-button appearance=transparent .disabled=${!this._activeAnalysisHasInput} kind=danger @click=${this.#
|
|
118
|
+
return o`<calcite-panel .closed=${this.closed} .heading=${i ? this._messages.componentLabel : void 0} .collapsible=${s} .closable=${e} @calcitePanelClose=${this.#m}><div .hidden=${!c}><calcite-action-bar expand-toggle-disabled layout=horizontal .overflowMode=${!i && !this.activeAnalysis ? "none" : "collapse"}><calcite-action-group .label=${this._messages.toolbarLabel} @calciteActionGroupChange=${this.#u} selection-mode=single>${this._measurements.map((t, n) => o`<calcite-action .active=${t === this.activeAnalysis} data-measurement-index=${n ?? h} .icon=${t.icon} .label=${t.label} .text=${t.label ?? ""} title=${t.label ?? h}></calcite-action>`)}</calcite-action-group></calcite-action-bar></div><div class="measurement-container" .hidden=${!this.activeAnalysis || l}><calcite-block class="measurement-content" .expanded=${this.isConnected && !!this.activeAnalysis && !l} .heading=${a}><slot @slotchange=${this.#y.bind(this)}></slot></calcite-block></div>${this.activeAnalysis ? o`<div class="footer" slot=footer><calcite-button appearance=transparent .disabled=${!this._activeAnalysisHasInput} kind=danger @click=${this.#l} width=full>${this._messages.clear}</calcite-button><calcite-button .disabled=${this.activeAnalysis.interactionDisabled || this._activeAnalysisState !== "ready" && !this._activeAnalysisHasInput} @click=${this.#p} width=full>${this.activeAnalysis?.matches("arcgis-elevation-profile") ? this._messages.newProfile : this._messages.newMeasurement}</calcite-button></div>` : null}</calcite-panel>`;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
m("arcgis-exploratory-analysis", C);
|
|
@@ -4,8 +4,8 @@ import { css as I, html as a } from "lit";
|
|
|
4
4
|
import _ from "@arcgis/core/rest/query/support/AttachmentInfo.js";
|
|
5
5
|
import L from "@arcgis/core/rest/support/AttachmentQuery.js";
|
|
6
6
|
import z from "@arcgis/core/core/Collection.js";
|
|
7
|
-
import
|
|
8
|
-
import { LitElement as S, nothing as u, safeClassMap as
|
|
7
|
+
import w from "@arcgis/core/core/Error.js";
|
|
8
|
+
import { LitElement as S, nothing as u, safeClassMap as A, safeStyleMap as $ } from "@arcgis/lumina";
|
|
9
9
|
import { bypassReadOnly as P } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { classes as v } from "@arcgis/toolkit/dom";
|
|
11
11
|
import { g as b } from "../../chunks/feature-utils.js";
|
|
@@ -17,7 +17,7 @@ function y(i) {
|
|
|
17
17
|
function x(i) {
|
|
18
18
|
return i ? i === "text/plain" ? "file-text" : i === "application/pdf" ? "file-pdf" : i === "text/csv" ? "file-csv" : i === "application/gpx+xml" ? "file-gpx" : i === "application/x-dwf" ? "file-cad" : i === "application/postscript" || i === "application/json" || i === "text/xml" || i === "model/vrml" ? "file-code" : i === "application/x-zip-compressed" || i === "application/x-7z-compressed" || i === "application/x-gzip" || i === "application/x-tar" || i === "application/x-gtar" || i === "application/x-bzip2" || i === "application/gzip" || i === "application/x-compress" || i === "application/x-apple-diskimage" || i === "application/x-rar-compressed" || i === "application/zip" ? "file-zip" : i.includes("image/") ? "file-image" : i.includes("audio/") ? "file-sound" : i.includes("video/") ? "file-video" : i.includes("msexcel") || i.includes("ms-excel") || i.includes("spreadsheetml") ? "file-excel" : i.includes("msword") || i.includes("ms-word") || i.includes("wordprocessingml") ? "file-word" : i.includes("powerpoint") || i.includes("presentationml") ? "file-report" : "file" : "file";
|
|
19
19
|
}
|
|
20
|
-
const j = I`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}`, E = z.ofType(_);
|
|
20
|
+
const j = I`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}calcite-card:hover,calcite-card:focus,calcite-card:focus-within{--calcite-card-border-color: var(--calcite-color-text-1)}`, E = z.ofType(_);
|
|
21
21
|
class R extends S {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments), this._attachmentLayer = null, this._supportsImageOrientation = window?.CSS?.supports("image-orientation", "from-image"), this.hideSection = !1, this._attachmentInfos = new E(), this.headingLevel = 2, this.hidePreviewImageAttachmentName = !1, this.empty = !1;
|
|
@@ -55,22 +55,22 @@ class R extends S {
|
|
|
55
55
|
]);
|
|
56
56
|
}
|
|
57
57
|
async getAttachments() {
|
|
58
|
-
const { _attachmentLayer: t, _attachmentInfos: e, orderByFields: r, attachmentTypes:
|
|
58
|
+
const { _attachmentLayer: t, _attachmentInfos: e, orderByFields: r, attachmentTypes: n, attachmentKeywords: l, _supportsTypeWildcard: o } = this;
|
|
59
59
|
if (!t || typeof t.queryAttachments != "function")
|
|
60
|
-
throw new
|
|
60
|
+
throw new w("invalid-layer", "getAttachments(): A valid layer is required.");
|
|
61
61
|
const m = this.graphic?.getObjectId();
|
|
62
62
|
if (typeof m != "number")
|
|
63
|
-
throw new
|
|
64
|
-
const g = r?.map((s) => `${s.field} ${s.order === "descending" ? "DESC" : "ASC"}`),
|
|
63
|
+
throw new w("invalid-object-id", "getAttachments(): Numeric object id is required");
|
|
64
|
+
const g = r?.map((s) => `${s.field} ${s.order === "descending" ? "DESC" : "ASC"}`), c = new L({
|
|
65
65
|
objectIds: [m],
|
|
66
66
|
returnMetadata: !0,
|
|
67
67
|
orderByFields: g,
|
|
68
|
-
attachmentTypes: o ?
|
|
68
|
+
attachmentTypes: o ? n?.filter(Boolean).map((s) => `${s}/*`) : void 0,
|
|
69
69
|
keywords: l
|
|
70
|
-
}), h = [],
|
|
71
|
-
this.getAttachmentsPromise =
|
|
72
|
-
const
|
|
73
|
-
e.destroyAll(),
|
|
70
|
+
}), h = [], d = t.queryAttachments(c).then((s) => s[m] || h).catch(() => h);
|
|
71
|
+
this.getAttachmentsPromise = d, this._setEmpty(!1);
|
|
72
|
+
const p = await d;
|
|
73
|
+
e.destroyAll(), p.length && e.addMany(p), this.getAttachmentsPromise = null, this._setEmpty(!this._hasContent);
|
|
74
74
|
}
|
|
75
75
|
_setEmpty(t) {
|
|
76
76
|
P(() => this.empty = t);
|
|
@@ -113,14 +113,14 @@ class R extends S {
|
|
|
113
113
|
return t === "carousel" ? this.renderAttachmentsCarousel(e) : t === "preview" ? this.renderAttachmentsPreview(e) : this.renderAttachmentsList(e);
|
|
114
114
|
}
|
|
115
115
|
renderAttachmentListItem(t) {
|
|
116
|
-
const { supportsResizeAttachments: e } = this, { contentType: r, name:
|
|
117
|
-
"item-link--list-icon": !
|
|
118
|
-
}))} slot=content-start href=${l ?? void 0 ?? u} rel=noreferrer target=_blank>${
|
|
116
|
+
const { supportsResizeAttachments: e } = this, { contentType: r, name: n, url: l, size: o } = t, m = 64, g = n || this.messages?.noTitle, c = x(r), h = this.getCSSTransform(t), d = h ? { transform: h, "image-orientation": "none" } : {}, p = e && y(r), s = a`<a class=${A(v("item-link", "item-link--list", {
|
|
117
|
+
"item-link--list-icon": !p
|
|
118
|
+
}))} slot=content-start href=${l ?? void 0 ?? u} rel=noreferrer target=_blank>${p ? a`<img alt=${n ?? u} src=${`${l}${l?.includes("?") ? "&" : "?"}w=${m}&s=${o}`} style=${$(d)} title=${n ?? u}>` : a`<calcite-icon .icon=${c}></calcite-icon>`}</a>`, f = a`<calcite-link slot=content .href=${l ?? void 0} rel=noreferrer target=_blank>${g}</calcite-link>`;
|
|
119
119
|
return a`<calcite-list-item .label=${g}>${s}${f}</calcite-list-item>`;
|
|
120
120
|
}
|
|
121
121
|
renderAttachmentPreviewItem(t, e = !1) {
|
|
122
|
-
const { supportsResizeAttachments: r } = this, { contentType:
|
|
123
|
-
return a`<calcite-card .label=${
|
|
122
|
+
const { supportsResizeAttachments: r } = this, { contentType: n, name: l, url: o, size: m } = t, g = 225, c = l || this.messages?.noTitle, h = x(n), d = this.getCSSTransform(t), p = d ? { transform: d, "image-orientation": "none" } : {}, s = r && y(n), f = a`<a class=${A(v("item-link", "item-link--preview"))} slot=thumbnail href=${o ?? void 0 ?? u} rel=noreferrer target=_blank aria-label=${c ?? u} title=${c ?? u}>${s ? a`<img alt=${c ?? u} src=${`${o}${o?.includes("?") ? "&" : "?"}w=${g}&s=${m}`} style=${$(p)}>` : a`<calcite-icon scale=l .icon=${h}></calcite-icon>`}</a>`;
|
|
123
|
+
return a`<calcite-card .label=${c}>${f}${(e || this.hidePreviewImageAttachmentName) && s ? null : a`<span class="item-description" slot=description>${c}</span>`}</calcite-card>`;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
k("arcgis-feature-attachments", R);
|
|
@@ -8,10 +8,42 @@ export abstract class ArcgisFeatureFormField extends LitElement {
|
|
|
8
8
|
/** @internal */
|
|
9
9
|
protected _messages: Partial<{
|
|
10
10
|
componentLabel: string;
|
|
11
|
+
components: { attachments: { "attachment-validation-view": { validations: {
|
|
12
|
+
errorFileUnsupported: string;
|
|
13
|
+
maximumAudioLength: string;
|
|
14
|
+
maximumImageSize: string;
|
|
15
|
+
maximumFileSize: string;
|
|
16
|
+
maximumNumberOfFiles: string;
|
|
17
|
+
maximumVideoLength: string;
|
|
18
|
+
minimumNumberOfFiles: string;
|
|
19
|
+
}; }; }; };
|
|
20
|
+
units: { bytes: {
|
|
21
|
+
B: string;
|
|
22
|
+
kB: string;
|
|
23
|
+
MB: string;
|
|
24
|
+
GB: string;
|
|
25
|
+
TB: string;
|
|
26
|
+
}; };
|
|
11
27
|
differentValuesPlaceholder: string;
|
|
12
28
|
empty: string;
|
|
13
29
|
}> & T9nMeta<{
|
|
14
30
|
componentLabel: string;
|
|
31
|
+
components: { attachments: { "attachment-validation-view": { validations: {
|
|
32
|
+
errorFileUnsupported: string;
|
|
33
|
+
maximumAudioLength: string;
|
|
34
|
+
maximumImageSize: string;
|
|
35
|
+
maximumFileSize: string;
|
|
36
|
+
maximumNumberOfFiles: string;
|
|
37
|
+
maximumVideoLength: string;
|
|
38
|
+
minimumNumberOfFiles: string;
|
|
39
|
+
}; }; }; };
|
|
40
|
+
units: { bytes: {
|
|
41
|
+
B: string;
|
|
42
|
+
kB: string;
|
|
43
|
+
MB: string;
|
|
44
|
+
GB: string;
|
|
45
|
+
TB: string;
|
|
46
|
+
}; };
|
|
15
47
|
differentValuesPlaceholder: string;
|
|
16
48
|
empty: string;
|
|
17
49
|
}>;
|
|
@@ -25,6 +57,22 @@ export abstract class ArcgisFeatureFormField extends LitElement {
|
|
|
25
57
|
accessor input: FieldInput | undefined;
|
|
26
58
|
accessor messageOverrides: {
|
|
27
59
|
componentLabel?: string | undefined;
|
|
60
|
+
components?: { attachments?: { "attachment-validation-view"?: { validations?: {
|
|
61
|
+
errorFileUnsupported?: string | undefined;
|
|
62
|
+
maximumAudioLength?: string | undefined;
|
|
63
|
+
maximumImageSize?: string | undefined;
|
|
64
|
+
maximumFileSize?: string | undefined;
|
|
65
|
+
maximumNumberOfFiles?: string | undefined;
|
|
66
|
+
maximumVideoLength?: string | undefined;
|
|
67
|
+
minimumNumberOfFiles?: string | undefined;
|
|
68
|
+
} | undefined; } | undefined; } | undefined; } | undefined;
|
|
69
|
+
units?: { bytes?: {
|
|
70
|
+
B?: string | undefined;
|
|
71
|
+
kB?: string | undefined;
|
|
72
|
+
MB?: string | undefined;
|
|
73
|
+
GB?: string | undefined;
|
|
74
|
+
TB?: string | undefined;
|
|
75
|
+
} | undefined; } | undefined;
|
|
28
76
|
differentValuesPlaceholder?: string | undefined;
|
|
29
77
|
empty?: string | undefined;
|
|
30
78
|
};
|
package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js
CHANGED
|
@@ -7,7 +7,7 @@ import { stripHTML as l } from "@arcgis/core/applications/Components/stringUtils
|
|
|
7
7
|
import { formatNumber as f, substitute as y } from "@arcgis/core/intl.js";
|
|
8
8
|
import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
9
|
import { ArcgisUtilityNetworkAssociationList as v } from "../arcgis-utility-network-association-list/customElement.js";
|
|
10
|
-
import {
|
|
10
|
+
import { f as $ } from "../../chunks/layer-utils.js";
|
|
11
11
|
import { u as b } from "../../chunks/useT9n.js";
|
|
12
12
|
import { H as F } from "../../chunks/heading.js";
|
|
13
13
|
const _ = p`:host{background-color:var(--calcite-color-surface-2)}.feature-observer{position:relative;bottom:var(--calcite-space-2xl);z-index:2;text-align:center}.header{calcite-block{margin-block-start:calc(var(--calcite-size-3xs) * -1.5);margin-inline:calc(var(--calcite-size-xs) * -1)}}.header>*{margin-block-end:var(--calcite-size-3xs)}.header>:last-child{color:var(--calcite-color-text-3)}.heading-content{display:flex;align-items:center;calcite-icon{margin-inline-end:var(--calcite-size-3xs)}}.list-container{display:flex;flex-direction:column;min-height:var(--calcite-space-3xl);calcite-fab{align-self:center;margin-block:var(--calcite-space-md)}}`;
|
|
@@ -9,7 +9,7 @@ import { property as l, subclass as S } from "@arcgis/core/core/accessorSupport/
|
|
|
9
9
|
import _ from "@arcgis/core/core/Accessor.js";
|
|
10
10
|
import u from "@arcgis/core/editing/templates/TemplateListItem.js";
|
|
11
11
|
import { getAllStandardFeatureTemplatesForLayer as $, getTemplatesForLayers as x } from "@arcgis/core/applications/Components/templateUtils.js";
|
|
12
|
-
import { i as y,
|
|
12
|
+
import { i as y, d as v } from "../../chunks/layer-utils.js";
|
|
13
13
|
import { isTable as m, getEffectiveLayerCapabilities as B } from "@arcgis/core/applications/Components/layerUtils.js";
|
|
14
14
|
import { usePropertyChange as D } from "@arcgis/lumina/controllers";
|
|
15
15
|
import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as i, createEvent as a,
|
|
2
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as c, html as r } from "lit";
|
|
4
|
+
import { LitElement as i, createEvent as a, nothing as u, safeClassMap as m } from "@arcgis/lumina";
|
|
5
5
|
import { usePropertyChange as d } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { getClosestElement as f, classes as h } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { u as g } from "../../chunks/useT9n.js";
|
|
8
8
|
import { u as p } from "../../chunks/useView.js";
|
|
9
9
|
import { g as v } from "../../chunks/globalCss.js";
|
|
10
|
-
const b =
|
|
10
|
+
const b = c`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}`;
|
|
11
11
|
function E(s) {
|
|
12
12
|
return s.includes("#") || s.includes(".") || s.includes("[") ? s : `#${s}`;
|
|
13
13
|
}
|
|
@@ -22,8 +22,7 @@ class x extends i {
|
|
|
22
22
|
this.styles = b;
|
|
23
23
|
}
|
|
24
24
|
get fullscreenTitle() {
|
|
25
|
-
|
|
26
|
-
return e === "active" ? this.messages.exit : e === "ready" ? this.messages.enter : "";
|
|
25
|
+
return this.state === "active" ? this.messages.exit : this.messages.enter;
|
|
27
26
|
}
|
|
28
27
|
#e;
|
|
29
28
|
get element() {
|
|
@@ -50,14 +49,14 @@ class x extends i {
|
|
|
50
49
|
return this.element ?? e?.parentElement ?? l ?? null;
|
|
51
50
|
}
|
|
52
51
|
_toggle() {
|
|
53
|
-
document.fullscreenElement ? document.exitFullscreen() : this._getElement()?.requestFullscreen();
|
|
52
|
+
this.state !== "unsupported" && (document.fullscreenElement ? document.exitFullscreen() : this._getElement()?.requestFullscreen());
|
|
54
53
|
}
|
|
55
54
|
render() {
|
|
56
|
-
const { fullscreenTitle: e, state: t } = this, l = t === "unsupported",
|
|
57
|
-
return
|
|
55
|
+
const { fullscreenTitle: e, state: t } = this, l = t === "unsupported", n = t === "ready" || t === "disabled" || t === "unsupported" ? "zoom-out-fixed" : "zoom-in-fixed";
|
|
56
|
+
return r`<div class=${m(h("root", v.arcgisButton))}><calcite-button .disabled=${t === "disabled" || l} .iconStart=${n} kind=neutral .label=${e} @click=${this._toggle} .scale=${this.visualScale} title=${e ?? u}></calcite-button></div>`;
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
|
-
|
|
59
|
+
o("arcgis-fullscreen", x);
|
|
61
60
|
export {
|
|
62
61
|
x as ArcgisFullscreen
|
|
63
62
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type ActiveLayerInfo from "@arcgis/core/
|
|
2
|
+
import type ActiveLayerInfo from "@arcgis/core/legend/ActiveLayerInfo.js";
|
|
3
3
|
import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
|
|
4
4
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
8
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
9
|
-
import type { LayerInfo } from "@arcgis/core/
|
|
10
|
-
import type { LegendViewModelState } from "@arcgis/core/widgets/Legend/LegendViewModel.js";
|
|
9
|
+
import type { LayerInfo, LegendContentState } from "@arcgis/core/legend/types.js";
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* The Legend component displays the symbols and labels used to represent layers in an [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/) or [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/).
|
|
@@ -89,9 +88,9 @@ import type { LegendViewModelState } from "@arcgis/core/widgets/Legend/LegendVie
|
|
|
89
88
|
*/
|
|
90
89
|
export abstract class ArcgisLegend extends LitElement {
|
|
91
90
|
/**
|
|
92
|
-
* Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/
|
|
91
|
+
* Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) objects used by the legend view to
|
|
93
92
|
* display data in the legend. The legend component watches this property to hide or display the layer's legend when
|
|
94
|
-
* an [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/
|
|
93
|
+
* an [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) is removed from or added to this collection.
|
|
95
94
|
*/
|
|
96
95
|
accessor activeLayerInfos: Collection<ActiveLayerInfo>;
|
|
97
96
|
/**
|
|
@@ -445,7 +444,7 @@ export abstract class ArcgisLegend extends LitElement {
|
|
|
445
444
|
*
|
|
446
445
|
* @default "disabled"
|
|
447
446
|
*/
|
|
448
|
-
get state():
|
|
447
|
+
get state(): LegendContentState;
|
|
449
448
|
/**
|
|
450
449
|
* The view associated with the component.
|
|
451
450
|
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-legend component will be associated with a map or scene component rather than using the `view` property.
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as g, html as o } from "lit";
|
|
4
4
|
import { on as a, watch as n } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
-
import h from "@arcgis/core/
|
|
5
|
+
import h from "@arcgis/core/legend/LegendContent.js";
|
|
6
6
|
import { LitElement as p, createEvent as f, safeClassMap as u } from "@arcgis/lumina";
|
|
7
7
|
import { usePropertyChange as m } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { classes as v } from "@arcgis/toolkit/dom";
|
|
9
|
-
import { u as
|
|
10
|
-
import { m as
|
|
9
|
+
import { u as _ } from "../../chunks/useT9n.js";
|
|
10
|
+
import { m as w } from "../../chunks/useViewModel.js";
|
|
11
11
|
import { g as l } from "../../chunks/globalCss.js";
|
|
12
|
-
const y = g`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--arcgis-internal-legend-heading-margin: 0 0 var(--calcite-space-xs);--arcgis-internal-legend-layer-padding: var(--calcite-space-md);--arcgis-internal-legend-layer-gap: var(--calcite-space-xl);--arcgis-internal-legend-layer-element-gap: var(--calcite-space-md);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`, b =
|
|
12
|
+
const y = g`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--arcgis-internal-legend-heading-margin: 0 0 var(--calcite-space-xs);--arcgis-internal-legend-layer-padding: var(--calcite-space-md);--arcgis-internal-legend-layer-gap: var(--calcite-space-xl);--arcgis-internal-legend-layer-element-gap: var(--calcite-space-md);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`, b = w(h);
|
|
13
13
|
class x extends p {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.messages =
|
|
15
|
+
super(...arguments), this.messages = _({}), this.viewModel = b(this), this._isCardStyle = !1, this.view = this.viewModel.view, this.icon = "legend", this.activeLayerInfos = this.viewModel.activeLayerInfos, this.basemapLegendVisible = this.viewModel.basemapLegendVisible, this.headingLevel = 3, this.hideLayersNotInCurrentView = this.viewModel.hideLayersNotInCurrentView, this.respectLayerDefinitionExpression = this.viewModel.respectLayerDefinitionExpression, this.layerInfos = this.viewModel.layerInfos, this.loading = this.viewModel.loading, this.legendStyle = "classic", this.autoDestroyDisabled = !1, this.label = this.messages?.componentLabel, this.state = this.viewModel.state, this.arcgisPropertyChange = m()("state"), this.arcgisReady = f();
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.properties = { _isCardStyle: 16, view: 0, referenceElement: 1, icon: 1, activeLayerInfos: 0, basemapLegendVisible: 5, headingLevel: 9, hideLayersNotInCurrentView: 5, respectLayerDefinitionExpression: 5, ignoreLayerVisibility: 5, layerInfos: 0, loading: 39, cardStyleLayout: 1, legendStyle: 1, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as x } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as k, html as t } from "lit";
|
|
4
4
|
import y from "@arcgis/core/Color.js";
|
|
5
|
-
import { LitElement as L, safeClassMap as
|
|
6
|
-
import { classes as
|
|
5
|
+
import { LitElement as L, safeClassMap as n, safeStyleMap as u, nothing as b } from "@arcgis/lumina";
|
|
6
|
+
import { classes as c } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { H as w } from "../../chunks/heading.js";
|
|
8
8
|
import { g as f } from "../../chunks/globalCss.js";
|
|
9
9
|
import { a as _, g as v } from "../../chunks/titleUtils.js";
|
|
10
|
-
import { s as $, i as C, g as
|
|
10
|
+
import { s as $, i as C, g as E } from "../../chunks/utils3.js";
|
|
11
11
|
const z = k`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.section{word-break:break-word;word-wrap:break-word;padding:var(--calcite-space-sm) var(--calcite-space-md);min-width:250px;max-width:500px;overflow:auto;font-size:var(--calcite-font-size-sm)}.carousel-title-container{margin-bottom:var(--calcite-space-sm)}.carousel-title{margin:0}.section-title{font-weight:var(--calcite-font-weight-regular)}.layer-caption{padding:var(--calcite-space-2xs) 0;margin:0;font-weight:var(--calcite-font-weight-regular)}.imagery-layer-stretched-image{display:block;margin-bottom:-2px}.image-label{padding-inline-start:var(--calcite-space-xs)}.label-element{margin:.1em;padding:.5em 1em;min-width:2em;min-height:1em;text-align:center;display:flex;align-items:center;justify-content:center;flex:1}.layer-row{display:flex;align-items:center}.symbol{display:block;margin:auto}.pie-chart-ramp-preview{display:flex;justify-content:center}.relationship-container{display:flex;flex-direction:column}.relationship-container .layer-row{padding-bottom:.5em}.relationship-container .layer-row:last-child{padding-bottom:0}.container{display:flex;gap:var(--calcite-space-sm);flex-wrap:wrap}.background-styles-container{display:flex;flex-wrap:wrap}:host([stacked]) .container{display:table}:host([stacked]) .symbol-row{display:table-row;width:100%}:host([stacked]) .symbol-row:not(:last-child) .label-cell,:host([stacked]) .symbol-row:not(:last-child) .symbol-cell{padding-bottom:var(--calcite-space-xs)}:host([stacked]) .label-cell{display:table-cell;vertical-align:middle}:host([stacked]) .symbol-cell{display:table-cell;vertical-align:middle;text-align:center}:host([stacked]) .symbol-cell div{display:flex;align-items:center;justify-content:center}`;
|
|
12
12
|
function F(m) {
|
|
13
13
|
return m ? m.r * 0.299 + m.g * 0.587 + m.b * 0.114 >= 127 : void 0;
|
|
@@ -23,21 +23,21 @@ class S extends L {
|
|
|
23
23
|
this.styles = z;
|
|
24
24
|
}
|
|
25
25
|
_getBackgroundStyles(e) {
|
|
26
|
-
const
|
|
26
|
+
const i = e.symbol, s = i.color, r = !!s?.a, l = "outline" in i ? i.outline : null, a = !!l?.color?.a, o = r && s ? new y([s.r, s.g, s.b, s.a * this.layer.opacity]) : new y([255, 255, 255, 0]), d = a && l.color ? new y([l.color.r, l.color.g, l.color.b, l.color.a * this.layer.opacity]) : new y([255, 255, 255, 0]), g = F(e.symbol.color) ?? !0, h = g ? "black" : "white", p = g ? "rgba(255, 255, 255, .6)" : "rgba(0, 0, 0, .6)";
|
|
27
27
|
return {
|
|
28
|
-
background:
|
|
28
|
+
background: r ? o.toCss(!0) : "none",
|
|
29
29
|
color: h,
|
|
30
30
|
textShadow: `-1px -1px 0 ${p},
|
|
31
31
|
1px -1px 0 ${p},
|
|
32
32
|
-1px 1px 0 ${p},
|
|
33
33
|
1px 1px 0 ${p}`,
|
|
34
|
-
border:
|
|
34
|
+
border: a ? `1px solid ${d.toCss(!0)}` : "none",
|
|
35
35
|
filter: this.cssEffectFilter ?? ""
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
const e = this._renderLegendElement(),
|
|
40
|
-
return t`<section class="section" role=tabpanel tabindex=0>${
|
|
39
|
+
const e = this._renderLegendElement(), i = this.activeLayerInfo.legendElements.includes(this.legendElement), s = _(this.legendElement, this.messages), r = this.stacked && i ? t`<div class="carousel-title-container">${w({ class: c("carousel-title", f.heading), level: this.headingLevel, children: this.activeLayerInfo.title })}${s ? t`<p class="layer-caption">${s}</p>` : null}</div>` : s ? w({ class: c("section-title", f.heading), level: this.headingLevel, children: s }) : null;
|
|
40
|
+
return t`<section class="section" role=tabpanel tabindex=0>${r}${e}</section>`;
|
|
41
41
|
}
|
|
42
42
|
_renderLegendElement() {
|
|
43
43
|
switch (this.legendElement.type) {
|
|
@@ -65,24 +65,24 @@ class S extends L {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
_renderSymbolTable(e) {
|
|
68
|
-
const
|
|
69
|
-
if (!
|
|
68
|
+
const i = e.infos.map((a) => this._renderElementInfo(a, e.legendType)).filter(Boolean);
|
|
69
|
+
if (!i.length)
|
|
70
70
|
return null;
|
|
71
|
-
const s = e.infos.some((
|
|
72
|
-
return t`<div class=${
|
|
71
|
+
const s = e.infos.some((a) => "symbol" in a && a.symbol?.type.includes("simple-fill")), l = this.activeLayerInfo.legendElements.some(({ type: a }) => a === "relationship-ramp") ? "relationship-container" : s ? "background-styles-container" : "container";
|
|
72
|
+
return t`<div class=${n(l)}>${i}</div>`;
|
|
73
73
|
}
|
|
74
|
-
_renderElementInfo(e,
|
|
75
|
-
const { layer: s } = this,
|
|
74
|
+
_renderElementInfo(e, i) {
|
|
75
|
+
const { layer: s } = this, r = "label" in e ? e.label : null;
|
|
76
76
|
if ("type" in e && e.type)
|
|
77
|
-
return t`<arcgis-legend-card-element .activeLayerInfo=${this.activeLayerInfo} .cssEffectFilter=${this.cssEffectFilter} .
|
|
77
|
+
return t`<arcgis-legend-card-element .activeLayerInfo=${this.activeLayerInfo} .cssEffectFilter=${this.cssEffectFilter} .headingLevel=${this.headingLevel} .layer=${s} .legendElement=${e} .messages=${this.messages} .stacked=${this.stacked}></arcgis-legend-card-element>`;
|
|
78
78
|
if (!("preview" in e && e.preview) && !("src" in e && e.src))
|
|
79
79
|
return null;
|
|
80
|
-
const l = C(s,
|
|
80
|
+
const l = C(s, i), a = v(this.messages, r, !1) || "";
|
|
81
81
|
if ("src" in e && e.src) {
|
|
82
82
|
const o = {
|
|
83
83
|
"symbol-cell": this.stacked
|
|
84
84
|
};
|
|
85
|
-
return t`<div class=${c(
|
|
85
|
+
return t`<div class=${n(c("layer-row", { "symbol-row": this.stacked }))}><div class=${n(c(o))}>${this._renderImage(e, s, l)}</div><div class=${n(c("image-label", { "label-cell": this.stacked }))}>${a}</div></div>`;
|
|
86
86
|
}
|
|
87
87
|
if ("symbol" in e && e.preview) {
|
|
88
88
|
if (!e.symbol?.type.includes("simple-fill")) {
|
|
@@ -91,23 +91,23 @@ class S extends L {
|
|
|
91
91
|
const o = {
|
|
92
92
|
"symbol-cell": this.stacked
|
|
93
93
|
}, { preview: d } = e, g = "previewAriaLabel" in e ? e.previewAriaLabel : null, h = "label" in e ? v(this.messages, e.label, !1) : null;
|
|
94
|
-
return $(d,
|
|
94
|
+
return $(d, E(this.messages, g || h)), t`<div class=${n(c("layer-row", { "symbol-row": this.stacked }))}><div class=${n(c(o))}>${d}</div><div class=${n(c("image-label", { "label-cell": this.stacked }))}>${a}</div></div>`;
|
|
95
95
|
}
|
|
96
|
-
return t`<div class="layer-row"><div class="label-element" style=${u(this._getBackgroundStyles(e))}>${
|
|
96
|
+
return t`<div class="layer-row"><div class="label-element" style=${u(this._getBackgroundStyles(e))}>${a}</div></div>`;
|
|
97
97
|
}
|
|
98
98
|
return null;
|
|
99
99
|
}
|
|
100
|
-
_renderImage(e,
|
|
101
|
-
const { previewAriaLabel:
|
|
100
|
+
_renderImage(e, i, s) {
|
|
101
|
+
const { previewAriaLabel: r, src: l, opacity: a } = e, o = v(this.messages, e.label, !1), d = {
|
|
102
102
|
"imagery-layer-stretched-image": s,
|
|
103
103
|
symbol: !s
|
|
104
104
|
}, g = {
|
|
105
|
-
opacity: `${
|
|
106
|
-
}, h =
|
|
107
|
-
return t`<img alt=${h ?? b} .ariaLabel=${h} class=${c(
|
|
105
|
+
opacity: `${a ?? i.opacity}`
|
|
106
|
+
}, h = E(this.messages, r || o);
|
|
107
|
+
return t`<img alt=${h ?? b} .ariaLabel=${h} class=${n(c(d))} height=${e.height ?? void 0 ?? b} src=${l ?? b} style=${u(g)} width=${e.width ?? void 0 ?? b}>`;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
x("arcgis-legend-card-element", S);
|
|
111
111
|
export {
|
|
112
112
|
S as ArcgisLegendCardElement
|
|
113
113
|
};
|
|
@@ -16,6 +16,7 @@ import type Error from "@arcgis/core/core/Error.js";
|
|
|
16
16
|
import type HighlightOptions from "@arcgis/core/views/support/HighlightOptions.js";
|
|
17
17
|
import type Magnifier from "@arcgis/core/views/Magnifier.js";
|
|
18
18
|
import type Navigation from "@arcgis/core/views/navigation/Navigation.js";
|
|
19
|
+
import type ViewOptions from "@arcgis/core/views/interactive/options/ViewOptions.js";
|
|
19
20
|
import type Popup from "@arcgis/core/widgets/Popup.js";
|
|
20
21
|
import type SelectionManager from "@arcgis/core/views/SelectionManager.js";
|
|
21
22
|
import type SpatialReference from "@arcgis/core/geometry/SpatialReference.js";
|
|
@@ -443,6 +444,14 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
443
444
|
* });
|
|
444
445
|
*/
|
|
445
446
|
accessor navigation: Navigation;
|
|
447
|
+
/**
|
|
448
|
+
* Configures snapping, tooltips, and measurement units for supported components and analyses configured to inherit these options from the view.
|
|
449
|
+
* See [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/) for details.
|
|
450
|
+
*
|
|
451
|
+
* @since 5.2
|
|
452
|
+
* @beta
|
|
453
|
+
*/
|
|
454
|
+
accessor options: ViewOptions;
|
|
446
455
|
/**
|
|
447
456
|
* Use the padding property to make the [center](https://developers.arcgis.com/javascript/latest/references/core/views/LinkChartView/#center),
|
|
448
457
|
* and [extent](https://developers.arcgis.com/javascript/latest/references/core/views/LinkChartView/#extent), etc. work off a
|