@arcgis/common-components 5.2.0-next.15 → 5.2.0-next.150
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/LICENSE.md +4 -2
- package/README.md +2 -2
- package/dist/cdn/2E2QBY2J.js +2 -0
- package/dist/cdn/2IDDI3CL.js +2 -0
- package/dist/cdn/3MYGEZOP.js +2 -0
- package/dist/cdn/4LQHU5XS.js +2 -0
- package/dist/cdn/4TZVXSQZ.js +2 -0
- package/dist/cdn/5DN7BGGJ.js +2 -0
- package/dist/cdn/5ESJPPJ3.js +2 -0
- package/dist/cdn/5IM4X2GT.js +2 -0
- package/dist/cdn/{3V5M7OHL.js → 6HVKL3BT.js} +155 -155
- package/dist/cdn/6KPYL34Q.js +2 -0
- package/dist/cdn/7YKS2UHU.js +2 -0
- package/dist/cdn/A72IJUIB.js +2 -0
- package/dist/cdn/DE72K2VB.js +2 -0
- package/dist/cdn/EPTIOSEA.js +2 -0
- package/dist/cdn/{MCZBUYS5.js → FVQ64IB5.js} +1 -1
- package/dist/cdn/H4Q2JVNO.js +2 -0
- package/dist/cdn/HS7W72ER.js +4 -0
- package/dist/cdn/HX33VLI3.js +2 -0
- package/dist/cdn/J352X4QU.js +2 -0
- package/dist/cdn/{XRARFMJ7.js → JWK6KCSN.js} +1 -1
- package/dist/cdn/{OBIWQRXY.js → KQS6BKLU.js} +1 -1
- package/dist/cdn/{L2JNUMXB.js → KWLXXTWN.js} +1 -1
- package/dist/cdn/{WEKRF34E.js → KWZ7LGK2.js} +1 -1
- package/dist/cdn/L7XGWJZF.js +2 -0
- package/dist/cdn/LON5GSEV.js +2 -0
- package/dist/cdn/LZ4RIDXD.js +2 -0
- package/dist/cdn/{JLPZ3OR2.js → M3SD6ANM.js} +1 -1
- package/dist/cdn/MXGA3EHW.js +2 -0
- package/dist/cdn/{VQLI4IE7.js → N25TUHM4.js} +1 -1
- package/dist/cdn/NCKLLNHD.js +2 -0
- package/dist/cdn/NPVQBA5D.js +2 -0
- package/dist/cdn/NZEZVGEW.js +2 -0
- package/dist/cdn/O4H2JR53.js +2 -0
- package/dist/cdn/PMV2N3L3.js +2 -0
- package/dist/cdn/QP6SIWPE.js +2 -0
- package/dist/cdn/RMIP56UK.js +2 -0
- package/dist/cdn/{5KS7T5BY.js → SQZNAETL.js} +1 -1
- package/dist/cdn/WJQZVHBV.js +2 -0
- package/dist/cdn/XMT7CNQG.js +2 -0
- package/dist/cdn/{L5RMOAO3.js → XVHY4R5V.js} +1 -1
- package/dist/cdn/{N7C4DINF.js → Y2G4R4SG.js} +1 -1
- package/dist/cdn/YHEO5776.js +2 -0
- package/dist/cdn/{3P53QRGS.js → YNJHUBFL.js} +1 -1
- package/dist/cdn/Z5QBBHLD.js +2 -0
- package/dist/cdn/ZYTTDRIG.js +2 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/slider-field/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/slider-field/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/slider-histogram-range/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/value-picker/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/value-picker/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/element-reference-controller.js +19 -0
- package/dist/chunks/layer-utils.js +52 -40
- package/dist/chunks/locale.js +14 -6
- package/dist/chunks/strategies.js +287 -0
- package/dist/chunks/toolbar.js +9 -0
- package/dist/chunks/types.js +16 -0
- package/dist/chunks/utils.js +59 -0
- package/dist/chunks/utils2.js +20 -0
- package/dist/chunks/utils3.js +7 -0
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +23 -0
- package/dist/components/arcgis-ckeditor5/customElement.js +4282 -4260
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.d.ts +2 -1
- package/dist/components/arcgis-color-input/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +23 -0
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
- package/dist/components/arcgis-field-info/customElement.d.ts +25 -23
- package/dist/components/arcgis-field-info/customElement.js +250 -225
- package/dist/components/arcgis-field-info/index.js +1 -0
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +15 -12
- package/dist/components/arcgis-field-pick-list/customElement.js +213 -122
- package/dist/components/arcgis-field-pick-list/index.js +4 -3
- package/dist/components/arcgis-histogram/customElement.d.ts +47 -2
- package/dist/components/arcgis-histogram/customElement.js +89 -69
- package/dist/components/arcgis-label-input/customElement.js +19 -15
- package/dist/components/arcgis-slider/customElement.d.ts +19 -3
- package/dist/components/arcgis-slider/customElement.js +584 -412
- package/dist/components/arcgis-slider-field/customElement.d.ts +298 -0
- package/dist/components/arcgis-slider-field/customElement.js +96 -0
- package/dist/components/arcgis-slider-field/index.d.ts +1 -0
- package/dist/components/arcgis-slider-field/index.js +2 -0
- package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +390 -0
- package/dist/components/arcgis-slider-histogram-range/customElement.js +120 -0
- package/dist/components/arcgis-slider-histogram-range/index.d.ts +1 -0
- package/dist/components/arcgis-slider-histogram-range/index.js +3 -0
- package/dist/components/arcgis-slider-histogram-range/types.d.ts +6 -0
- package/dist/components/arcgis-ticks/customElement.d.ts +25 -3
- package/dist/components/arcgis-ticks/customElement.js +103 -77
- package/dist/components/arcgis-toolbar/customElement.d.ts +67 -0
- package/dist/components/arcgis-toolbar/customElement.js +108 -0
- package/dist/components/arcgis-toolbar/index.d.ts +1 -0
- package/dist/components/arcgis-toolbar/index.js +2 -0
- package/dist/components/arcgis-toolbar/types.d.ts +41 -0
- package/dist/components/arcgis-toolbar-action/customElement.d.ts +97 -0
- package/dist/components/arcgis-toolbar-action/customElement.js +52 -0
- package/dist/components/arcgis-toolbar-action/index.d.ts +1 -0
- package/dist/components/arcgis-toolbar-action/index.js +3 -0
- package/dist/components/arcgis-toolbar-group/customElement.d.ts +38 -0
- package/dist/components/arcgis-toolbar-group/customElement.js +48 -0
- package/dist/components/arcgis-toolbar-group/index.d.ts +1 -0
- package/dist/components/arcgis-toolbar-group/index.js +2 -0
- package/dist/components/arcgis-toolbar-item/customElement.d.ts +83 -0
- package/dist/components/arcgis-toolbar-item/customElement.js +42 -0
- package/dist/components/arcgis-toolbar-item/index.d.ts +1 -0
- package/dist/components/arcgis-toolbar-item/index.js +4 -0
- package/dist/components/arcgis-toolbar-more-button/customElement.d.ts +52 -0
- package/dist/components/arcgis-toolbar-more-button/customElement.js +68 -0
- package/dist/components/arcgis-toolbar-more-button/index.d.ts +1 -0
- package/dist/components/arcgis-toolbar-more-button/index.js +6 -0
- package/dist/components/arcgis-toolbar-split-button/customElement.d.ts +51 -0
- package/dist/components/arcgis-toolbar-split-button/customElement.js +67 -0
- package/dist/components/arcgis-toolbar-split-button/index.d.ts +1 -0
- package/dist/components/arcgis-toolbar-split-button/index.js +6 -0
- package/dist/components/arcgis-toolbar-stack/customElement.d.ts +48 -0
- package/dist/components/arcgis-toolbar-stack/customElement.js +174 -0
- package/dist/components/arcgis-toolbar-stack/index.d.ts +1 -0
- package/dist/components/arcgis-toolbar-stack/index.js +1 -0
- package/dist/components/arcgis-unique-values-list/customElement.js +115 -95
- package/dist/components/arcgis-value-picker/customElement.d.ts +9 -1
- package/dist/components/arcgis-value-picker/customElement.js +26 -22
- package/dist/components/arcgis-value-picker/index.js +1 -1
- package/dist/components/arcgis-value-picker/types.d.ts +2 -4
- package/dist/components/arcgis-value-picker-label/customElement.d.ts +6 -0
- package/dist/components/arcgis-value-picker-label/customElement.js +3 -3
- package/dist/components/arcgis-value-picker-slider/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.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 +62 -0
- package/dist/index.js +2 -0
- package/dist/loader.js +16 -7
- package/dist/types/lumina.d.ts +61 -5
- package/dist/types/preact.d.ts +70 -5
- package/dist/types/react.d.ts +79 -5
- package/dist/types/stencil.d.ts +63 -7
- package/dist/utils/types.d.ts +14 -1
- package/package.json +8 -7
- package/dist/cdn/2XA6O2MP.js +0 -2
- package/dist/cdn/4BJYJUMR.js +0 -2
- package/dist/cdn/4W7JZPB6.js +0 -2
- package/dist/cdn/5U5NQ3F5.js +0 -2
- package/dist/cdn/77HZGUSC.js +0 -2
- package/dist/cdn/AFBKMYU6.js +0 -4
- package/dist/cdn/GVOQ2CB7.js +0 -2
- package/dist/cdn/IUJ4ILLQ.js +0 -2
- package/dist/cdn/JPD7Z3MB.js +0 -2
- package/dist/cdn/LB7I345F.js +0 -2
- package/dist/cdn/LBD3GPSD.js +0 -2
- package/dist/cdn/LKUOAV7B.js +0 -2
- package/dist/cdn/MCH3WQ4X.js +0 -2
- package/dist/cdn/NKMDS2IH.js +0 -2
- package/dist/cdn/PSITQBDP.js +0 -2
- package/dist/cdn/TXYPZ6MB.js +0 -2
- package/dist/cdn/WLYFLEI6.js +0 -2
- package/dist/cdn/ZDMNUSIJ.js +0 -2
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +0 -1
- /package/dist/cdn/{ECNI2A4K.js → XEK22IDA.js} +0 -0
- /package/dist/chunks/{commonFunctions.js → general.js} +0 -0
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { makeAccessorController as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
2
|
+
import { c as re } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as q } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as ie, createEvent as M, safeClassMap as S, safeStyleMap as F, nothing as P } from "@arcgis/lumina";
|
|
5
|
+
import { makeAccessorController as se } from "@arcgis/lumina-toolkit/useAccessor";
|
|
6
|
+
import { classes as le, getClosestElement as oe } from "@arcgis/toolkit/dom";
|
|
7
|
+
import { slotChangeHasAssignedElement as H } from "@arcgis/toolkit/dom/slots";
|
|
8
|
+
import { css as ce, html as w } from "lit";
|
|
9
|
+
import { map as X } from "lit/directives/map.js";
|
|
10
|
+
import { createRef as j, ref as U } from "lit/directives/ref.js";
|
|
11
|
+
import { u as de } from "../../chunks/useT9n.js";
|
|
12
|
+
import { a as ue } from "../../chunks/locale.js";
|
|
13
|
+
import he from "@arcgis/core/core/Accessor.js";
|
|
14
|
+
import { property as E, subclass as ge } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
15
|
+
import { watch as K } from "@arcgis/core/core/reactiveUtils.js";
|
|
16
|
+
import { generateGuid as W } from "@arcgis/toolkit/string";
|
|
17
|
+
const _ = {
|
|
17
18
|
increment: "ArrowUp",
|
|
18
19
|
incrementHorizontal: "ArrowRight",
|
|
19
20
|
decrement: "ArrowDown",
|
|
@@ -24,85 +25,85 @@ const p = {
|
|
|
24
25
|
jumpToEnd: "End",
|
|
25
26
|
confirmEdit: "Enter"
|
|
26
27
|
};
|
|
27
|
-
function
|
|
28
|
-
const i =
|
|
28
|
+
function Y({ key: r, shiftKey: e }, t, n) {
|
|
29
|
+
const i = me(r);
|
|
29
30
|
if (i == null)
|
|
30
31
|
return null;
|
|
31
|
-
const
|
|
32
|
+
const a = pe(r) || fe(r) && e ? ve(t) : 1;
|
|
32
33
|
return {
|
|
33
|
-
direction:
|
|
34
|
-
count:
|
|
34
|
+
direction: n ? i * -1 : i,
|
|
35
|
+
count: a
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
38
|
+
function me(r) {
|
|
39
|
+
return r === _.increment || r === _.incrementHorizontal || r === _.pageIncrement ? 1 : r === _.decrement || r === _.decrementHorizontal || r === _.pageDecrement ? -1 : null;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
41
|
+
function J(r) {
|
|
42
|
+
return r === _.jumpToEnd || r === _.jumpToStart;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
44
|
+
function fe(r) {
|
|
45
|
+
return r === _.increment || r === _.decrement || r === _.decrementHorizontal || r === _.incrementHorizontal;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
47
|
+
function pe(r) {
|
|
48
|
+
return r === _.pageIncrement || r === _.pageDecrement;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
const e = Number.isFinite(
|
|
50
|
+
function ve(r) {
|
|
51
|
+
const e = Number.isFinite(r) ? Math.floor(r) : 1;
|
|
51
52
|
return Math.max(1, e);
|
|
52
53
|
}
|
|
53
|
-
const me = re`:host{display:flex;width:100%;height:100%;font-family:Avenir Next,Helvetica Neue,helvetica,arial,sans-serif;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-slider-internal-show-range-labels: 0;--arcgis-slider-internal-show-value-labels: 0;--arcgis-slider-internal-value-labels-placement-start: 0;--arcgis-slider-internal-value-labels-placement-end: 0;--arcgis-slider-internal-range-labels-placement-center: 0;--arcgis-slider-internal-range-labels-placement-end: 0;--arcgis-slider-internal-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-slider-internal-label-input-margin: calc(var(--arcgis-slider-internal-handle-offset) + 4px);--arcgis-slider-internal-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-slider-internal-track-size: 2px}:host([show-range-labels]){--arcgis-slider-internal-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-slider-internal-show-value-labels: 1}:host([value-labels-placement="start"]){--arcgis-slider-internal-value-labels-placement-start: var(--arcgis-slider-internal-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-slider-internal-value-labels-placement-end: var(--arcgis-slider-internal-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-slider-internal-range-labels-placement-center: var(--arcgis-slider-internal-show-range-labels)}:host([range-labels-placement="end"]){--arcgis-slider-internal-range-labels-placement-end: var(--arcgis-slider-internal-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-slider-internal-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--calcite-color-border-2)}:host([layout="vertical"]){.track-effective-start{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-start{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range{background-color:var(--calcite-color-brand);&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range.interactive:after{cursor:default;pointer-events:none}}:host([layout="horizontal"]){.track-range.interactive:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-slider-internal-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}:host([layout="vertical"]){.track-range.interactive:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-slider-internal-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:.125rem;position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;position:absolute}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--calcite-color-text-3) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all var(--calcite-animation-timing, .125s) ease-in-out;position:absolute;top:calc(var(--arcgis-slider-internal-handle-offset) * -1);left:calc(var(--arcgis-slider-internal-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.label{position:absolute;will-change:transform}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-slider-internal-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-slider-internal-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-slider-internal-label-input-height) * -.5)}&:host([value-labels-placement="start"]){.label{right:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{left:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-slider-internal-content-start-min-height: calc( ((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset)) + (var(--arcgis-slider-internal-value-labels-placement-start) * var(--arcgis-slider-internal-label-input-height)) );--arcgis-slider-internal-content-end-min-height: calc( ((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset)) + (var(--arcgis-slider-internal-value-labels-placement-end) * var(--arcgis-slider-internal-label-input-height)) );column-gap:calc(var(--arcgis-slider-internal-show-range-labels) * var(--arcgis-slider-internal-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-slider-internal-content-start-min-height),auto) calc(var(--arcgis-slider-internal-show-range-labels) * calc(calc(var(--arcgis-slider-internal-label-input-height) / 2) - calc(var(--arcgis-slider-internal-track-size) / 2))) var(--arcgis-slider-internal-track-size) calc(var(--arcgis-slider-internal-show-range-labels) * calc(calc(var(--arcgis-slider-internal-label-input-height) / 2) - calc(var(--arcgis-slider-internal-track-size) / 2))) minmax(var(--arcgis-slider-internal-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-slider-internal-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="end"]){.content{--arcgis-slider-internal-content-start-min-height: calc( var(--arcgis-slider-internal-handle-offset) + var(--arcgis-slider-internal-value-labels-placement-start) * var(--arcgis-slider-internal-label-input-height) );--arcgis-slider-internal-content-end-min-height: calc( var(--arcgis-slider-internal-value-labels-placement-end) * var(--arcgis-slider-internal-label-input-height) );padding-inline:var(--arcgis-slider-internal-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto;grid-template-rows:minmax(var(--arcgis-slider-internal-content-start-min-height),auto) var(--arcgis-slider-internal-track-size) var(--arcgis-slider-internal-handle-offset) calc(var(--arcgis-slider-internal-range-labels-placement-end) * var(--arcgis-slider-internal-label-input-height)) minmax(var(--arcgis-slider-internal-content-end-min-height),auto);column-gap:var(--arcgis-slider-internal-handle-offset)}.track{flex:1;height:var(--arcgis-slider-internal-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:calc(var(--arcgis-slider-internal-label-input-margin) + var(--arcgis-slider-internal-range-labels-placement-end) * (var(--arcgis-slider-internal-label-input-height)))}}.min,.max{--arcgis-slider-internal-range-translation: calc(var(--arcgis-slider-internal-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;transform:translate(calc(var(--arcgis-slider-internal-range-translation) * -1))}.max{grid-column:3;transform:translate(var(--arcgis-slider-internal-range-translation))}}&:host([mirrored]){.min{grid-column:3;transform:translate(var(--arcgis-slider-internal-range-translation))}.max{grid-column:1;transform:translate(calc(var(--arcgis-slider-internal-range-translation) * -1))}}}`;
|
|
54
|
-
var
|
|
55
|
-
throw TypeError(
|
|
56
|
-
},
|
|
57
|
-
for (var i =
|
|
58
|
-
(o =
|
|
59
|
-
return
|
|
60
|
-
},
|
|
61
|
-
function
|
|
54
|
+
const be = ce`:host{display:flex;width:100%;height:100%;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-internal-slider-show-range-labels: 0;--arcgis-internal-slider-show-value-labels: 0;--arcgis-internal-slider-value-labels-placement-start: 0;--arcgis-internal-slider-value-labels-placement-end: 0;--arcgis-internal-slider-range-labels-placement-center: 0;--arcgis-internal-slider-range-labels-placement-end: 0;--arcgis-internal-slider-handle-color: var(--calcite-color-text-3);--arcgis-internal-slider-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-internal-slider-label-input-margin: calc(var(--arcgis-internal-slider-handle-offset) + 4px);--arcgis-internal-slider-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-brand);--arcgis-internal-slider-track-size: 2px}:host([show-range-labels]){--arcgis-internal-slider-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-internal-slider-show-value-labels: 1}:host([value-labels-placement="start"]){--arcgis-internal-slider-value-labels-placement-start: var(--arcgis-internal-slider-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-internal-slider-value-labels-placement-end: var(--arcgis-internal-slider-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-internal-slider-range-labels-placement-center: var(--arcgis-internal-slider-show-range-labels)}:host([range-labels-placement="end"]){--arcgis-internal-slider-range-labels-placement-end: var(--arcgis-internal-slider-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-internal-slider-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--arcgis-slider-track-background-color)}:host([layout="vertical"]){.track-effective-start{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-start{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range-interactive{&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-border-2)}&.filled.active{outline-color:var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}.track-range{background-color:var(--arcgis-internal-slider-track-range-background-color);pointer-events:none}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range-interactive.interactive:after{cursor:default;pointer-events:none}}:host([layout="horizontal"]){.track-range-interactive.interactive:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}:host([layout="vertical"]){.track-range-interactive.interactive:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:var(--arcgis-internal-slider-track-size);position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;width:2px;height:2px;margin:-1px;position:absolute}.thumb-content{width:0;height:0;position:absolute;top:50%;left:50%}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.thumb.labels-only .handle{visibility:hidden;pointer-events:none}.thumb.labels-only{background-color:transparent}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--arcgis-internal-slider-handle-color) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all var(--arcgis-internal-slider-transition-duration, var(--calcite-animation-timing, .125s)) ease-in-out;position:absolute;top:calc(var(--arcgis-internal-slider-handle-offset) * -1);left:calc(var(--arcgis-internal-slider-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}:host([layout="vertical"]) .fixed-thumb .handle{width:calc(var(--arcgis-slider-handle-size) / 1.5);height:calc(var(--arcgis-slider-handle-size) * 1.5);cursor:ns-resize}.fixed-thumb .handle{width:calc(var(--arcgis-slider-handle-size) * 1.5);height:calc(var(--arcgis-slider-handle-size) / 1.5);top:0;left:0;transform:translate(-50%,-50%);cursor:ew-resize}.label{position:absolute;will-change:transform}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:dir(rtl){.content-start,.content-end,.label,.max,.min,.popover{direction:rtl}}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-internal-slider-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-internal-slider-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-internal-slider-label-input-height) * -.5)}&:host([value-labels-placement="start"]){.label{right:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{left:var(--arcgis-internal-slider-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-internal-slider-content-start-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height)) );--arcgis-internal-slider-content-end-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) );column-gap:calc(var(--arcgis-internal-slider-show-range-labels) * var(--arcgis-internal-slider-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) var(--arcgis-internal-slider-track-size) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label,.label-separator{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label,.label-separator{top:var(--arcgis-internal-slider-label-input-margin)}}}.label-separator{position:absolute;width:1em;height:var(--arcgis-internal-slider-label-input-height);margin:0;padding:0;pointer-events:none;text-align:center;z-index:0}.label-separator:before{content:"—"}:host([layout="horizontal"]) .label-separator{transform:translate(-50%)}:host([layout="horizontal"][range-labels-placement="end"]){min-inline-size:min-content;.content{--arcgis-internal-slider-content-start-min-height: calc( var(--arcgis-internal-slider-handle-offset) + var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height) );--arcgis-internal-slider-content-end-min-height: calc( var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height) );padding-inline:var(--arcgis-internal-slider-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto 0 auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) var(--arcgis-internal-slider-track-size) var(--arcgis-internal-slider-handle-offset) calc(var(--arcgis-internal-slider-range-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label,.label-separator{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label,.label-separator{top:calc(var(--arcgis-internal-slider-label-input-margin) + var(--arcgis-internal-slider-range-labels-placement-end) * (var(--arcgis-internal-slider-label-input-height)))}}.min,.max{--arcgis-internal-slider-range-translation: calc(var(--arcgis-internal-slider-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;margin-inline-start:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:3;margin-inline-end:calc(var(--arcgis-internal-slider-range-translation) * -1)}}&:host([mirrored]){.min{grid-column:3;margin-inline-end:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:1;margin-inline-start:calc(var(--arcgis-internal-slider-range-translation) * -1)}}}`;
|
|
55
|
+
var _e = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, ee = (r) => {
|
|
56
|
+
throw TypeError(r);
|
|
57
|
+
}, V = (r, e, t, n) => {
|
|
58
|
+
for (var i = n > 1 ? void 0 : n ? xe(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
59
|
+
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
60
|
+
return n && i && _e(e, t, i), i;
|
|
61
|
+
}, te = (r, e, t) => e.has(r) || ee("Cannot " + t), we = (r, e, t) => (te(r, e, "read from private field"), e.get(r)), ye = (r, e, t) => e.has(r) ? ee("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), ke = (r, e, t, n) => (te(r, e, "write to private field"), e.set(r, t), t), A;
|
|
62
|
+
function De() {
|
|
62
63
|
return {
|
|
63
64
|
min: 0,
|
|
64
65
|
max: 100,
|
|
65
66
|
values: []
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
|
-
let
|
|
69
|
+
let k = class extends he {
|
|
69
70
|
//--------------------------------------------------------------------------
|
|
70
71
|
//
|
|
71
72
|
// Lifecycle
|
|
72
73
|
//
|
|
73
74
|
//--------------------------------------------------------------------------
|
|
74
|
-
constructor(
|
|
75
|
-
super({ ...
|
|
75
|
+
constructor(r = {}) {
|
|
76
|
+
super({ ...De(), properties: r }), this._entries = /* @__PURE__ */ new Map(), this.precision = 4, this.ready = !1, ye(this, A);
|
|
76
77
|
}
|
|
77
78
|
startup() {
|
|
78
|
-
const { precision:
|
|
79
|
-
let { min: e, max: t, values:
|
|
80
|
-
t =
|
|
81
|
-
const i = new Map(
|
|
82
|
-
this._entries = i,
|
|
79
|
+
const { precision: r } = this;
|
|
80
|
+
let { min: e, max: t, values: n } = this;
|
|
81
|
+
t = y(t, r), e = y(e, r), n = n?.map((a) => L(y(a, r), e, t)).sort((a, o) => a - o), this._set("min", e), this._set("max", t), this._set("values", n);
|
|
82
|
+
const i = new Map(n?.map((a) => [W(), a]));
|
|
83
|
+
this._entries = i, K(
|
|
83
84
|
() => this.min,
|
|
84
|
-
(
|
|
85
|
+
(a) => {
|
|
85
86
|
const o = this.values;
|
|
86
|
-
|
|
87
|
-
s <
|
|
87
|
+
a != null && o?.length && o.some((s) => s < a) && (this._entries.forEach((s, l) => {
|
|
88
|
+
s < a && this._entries.set(l, a);
|
|
88
89
|
}), this._updatesValues());
|
|
89
90
|
},
|
|
90
91
|
{ sync: !0 }
|
|
91
|
-
),
|
|
92
|
+
), K(
|
|
92
93
|
() => this.max,
|
|
93
|
-
(
|
|
94
|
+
(a) => {
|
|
94
95
|
const o = this.values;
|
|
95
|
-
|
|
96
|
-
s >
|
|
96
|
+
a != null && o?.length && o.some((s) => s > a) && (this._entries.forEach((s, l) => {
|
|
97
|
+
s > a && this._entries.set(l, a);
|
|
97
98
|
}), this._updatesValues());
|
|
98
99
|
},
|
|
99
100
|
{ sync: !0 }
|
|
100
|
-
),
|
|
101
|
+
), K(
|
|
101
102
|
() => this.precision,
|
|
102
|
-
(
|
|
103
|
+
(a) => {
|
|
103
104
|
const { min: o, max: s, values: l } = this;
|
|
104
|
-
this._set("min",
|
|
105
|
-
this._entries.set(d,
|
|
105
|
+
this._set("min", y(o, a)), this._set("max", y(s, a)), l?.length && (this._entries.forEach((c, d) => {
|
|
106
|
+
this._entries.set(d, y(c, a));
|
|
106
107
|
}), this._updatesValues());
|
|
107
108
|
},
|
|
108
109
|
{ sync: !0 }
|
|
@@ -111,42 +112,42 @@ let y = class extends oe {
|
|
|
111
112
|
get entries() {
|
|
112
113
|
return this._entries;
|
|
113
114
|
}
|
|
114
|
-
set max(
|
|
115
|
+
set max(r) {
|
|
115
116
|
if (!this.ready) {
|
|
116
|
-
this._set("max",
|
|
117
|
+
this._set("max", r);
|
|
117
118
|
return;
|
|
118
119
|
}
|
|
119
|
-
const e = this._get("max"), t =
|
|
120
|
+
const e = this._get("max"), t = y(r, this.precision);
|
|
120
121
|
e !== t && this._set("max", t);
|
|
121
122
|
}
|
|
122
|
-
set min(
|
|
123
|
+
set min(r) {
|
|
123
124
|
if (!this.ready) {
|
|
124
|
-
this._set("min",
|
|
125
|
+
this._set("min", r);
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
|
-
const e = this._get("min"), t =
|
|
128
|
+
const e = this._get("min"), t = y(r, this.precision);
|
|
128
129
|
e !== t && this._set("min", t);
|
|
129
130
|
}
|
|
130
|
-
set values(
|
|
131
|
-
if (
|
|
131
|
+
set values(r) {
|
|
132
|
+
if (we(this, A) === r)
|
|
132
133
|
return;
|
|
133
|
-
if (
|
|
134
|
-
this._set("values",
|
|
134
|
+
if (ke(this, A, r), !this.ready) {
|
|
135
|
+
this._set("values", r);
|
|
135
136
|
return;
|
|
136
137
|
}
|
|
137
138
|
const e = this._get("values");
|
|
138
|
-
if (
|
|
139
|
+
if (r = r?.map((n) => L(y(n, this.precision), this.min, this.max)).sort((n, i) => n - i), e?.length === r?.length && e.every((n, i) => n === r[i]))
|
|
139
140
|
return;
|
|
140
|
-
const t = new Map(
|
|
141
|
-
this._entries = t, this._set("values",
|
|
141
|
+
const t = new Map(r?.map((n) => [W(), n]));
|
|
142
|
+
this._entries = t, this._set("values", r);
|
|
142
143
|
}
|
|
143
144
|
//--------------------------------------------------------------------------
|
|
144
145
|
//
|
|
145
146
|
// Public Methods
|
|
146
147
|
//
|
|
147
148
|
//--------------------------------------------------------------------------
|
|
148
|
-
getValue(
|
|
149
|
-
return this._entries.get(
|
|
149
|
+
getValue(r) {
|
|
150
|
+
return this._entries.get(r);
|
|
150
151
|
}
|
|
151
152
|
/**
|
|
152
153
|
* Updates a thumb [value](#values) based on the provided index. The provided value
|
|
@@ -155,304 +156,313 @@ let y = class extends oe {
|
|
|
155
156
|
*
|
|
156
157
|
* @returns `true` if the value was changed, otherwise `false`.
|
|
157
158
|
*/
|
|
158
|
-
setValue(
|
|
159
|
+
setValue(r, e) {
|
|
159
160
|
if (this.values == null)
|
|
160
161
|
return !1;
|
|
161
|
-
const { min: t, max:
|
|
162
|
-
return i ===
|
|
162
|
+
const { min: t, max: n } = this, i = this._entries.get(r), a = L(y(e, this.precision), t, n);
|
|
163
|
+
return i === a ? !1 : (this._entries.set(r, a), this._updatesValues(), !0);
|
|
163
164
|
}
|
|
164
|
-
setValues(
|
|
165
|
+
setValues(r) {
|
|
165
166
|
if (this.values == null)
|
|
166
167
|
return !1;
|
|
167
168
|
let e = !1;
|
|
168
|
-
const { min: t, max:
|
|
169
|
-
for (const [i,
|
|
170
|
-
const o = this._entries.get(i), s =
|
|
169
|
+
const { min: t, max: n } = this;
|
|
170
|
+
for (const [i, a] of r) {
|
|
171
|
+
const o = this._entries.get(i), s = L(y(a, this.precision), t, n);
|
|
171
172
|
o !== s && (e = !0, this._entries.set(i, s));
|
|
172
173
|
}
|
|
173
174
|
return e ? (this._updatesValues(), !0) : !1;
|
|
174
175
|
}
|
|
175
176
|
_updatesValues() {
|
|
176
|
-
const
|
|
177
|
-
this._set("values",
|
|
177
|
+
const r = Array.from(this._entries.values()).sort((e, t) => e - t);
|
|
178
|
+
this._set("values", r);
|
|
178
179
|
}
|
|
179
180
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
],
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
],
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
],
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
],
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
],
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
],
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
],
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
],
|
|
205
|
-
function
|
|
206
|
-
return Math.min(Math.max(
|
|
207
|
-
}
|
|
208
|
-
function
|
|
209
|
-
return Number.parseFloat(
|
|
210
|
-
}
|
|
211
|
-
class
|
|
181
|
+
A = /* @__PURE__ */ new WeakMap();
|
|
182
|
+
V([
|
|
183
|
+
E()
|
|
184
|
+
], k.prototype, "_entries", 2);
|
|
185
|
+
V([
|
|
186
|
+
E({ readOnly: !0 })
|
|
187
|
+
], k.prototype, "entries", 1);
|
|
188
|
+
V([
|
|
189
|
+
E()
|
|
190
|
+
], k.prototype, "max", 1);
|
|
191
|
+
V([
|
|
192
|
+
E()
|
|
193
|
+
], k.prototype, "min", 1);
|
|
194
|
+
V([
|
|
195
|
+
E({ cast: (r) => L(r, 0, 20) })
|
|
196
|
+
], k.prototype, "precision", 2);
|
|
197
|
+
V([
|
|
198
|
+
E({ readOnly: !0 })
|
|
199
|
+
], k.prototype, "ready", 2);
|
|
200
|
+
V([
|
|
201
|
+
E()
|
|
202
|
+
], k.prototype, "values", 1);
|
|
203
|
+
k = V([
|
|
204
|
+
ge("esri.widgets.Slider.SliderData")
|
|
205
|
+
], k);
|
|
206
|
+
function L(r, e, t) {
|
|
207
|
+
return Math.min(Math.max(r, e), t);
|
|
208
|
+
}
|
|
209
|
+
function y(r, e) {
|
|
210
|
+
return Number.parseFloat(r.toFixed(e));
|
|
211
|
+
}
|
|
212
|
+
class Ie {
|
|
212
213
|
constructor(e) {
|
|
213
214
|
this.steps = e, this.minIndex = 0, this.maxIndex = this.steps.length - 1;
|
|
214
215
|
}
|
|
215
216
|
indexToValue(e) {
|
|
216
|
-
return this.steps[
|
|
217
|
+
return this.steps[I(e, this.minIndex, this.maxIndex)];
|
|
217
218
|
}
|
|
218
219
|
valueToIndex(e) {
|
|
219
220
|
const t = this.steps.indexOf(e);
|
|
220
221
|
return t !== -1 ? t : this.steps.reduce(
|
|
221
|
-
(
|
|
222
|
+
(n, i, a, o) => Math.abs(i - e) < Math.abs(o[n] - e) ? a : n,
|
|
222
223
|
0
|
|
223
224
|
);
|
|
224
225
|
}
|
|
225
226
|
getClosestStepDistances(e, t) {
|
|
226
227
|
if (t <= 0)
|
|
227
228
|
return [];
|
|
228
|
-
const
|
|
229
|
+
const n = [];
|
|
229
230
|
for (let i = this.minIndex; i <= this.maxIndex; i++) {
|
|
230
|
-
const
|
|
231
|
+
const a = this.indexToValue(i), o = Math.abs(a - e);
|
|
231
232
|
let s = !1;
|
|
232
|
-
for (let l = 0; l <
|
|
233
|
-
if (o <
|
|
234
|
-
|
|
233
|
+
for (let l = 0; l < n.length; l++)
|
|
234
|
+
if (o < n[l].dist) {
|
|
235
|
+
n.splice(l, 0, { idx: i, value: a, dist: o }), s = !0;
|
|
235
236
|
break;
|
|
236
237
|
}
|
|
237
|
-
!s &&
|
|
238
|
+
!s && n.length < t && n.push({ idx: i, value: a, dist: o }), n.length > t && (n.length = t);
|
|
238
239
|
}
|
|
239
|
-
return
|
|
240
|
+
return n;
|
|
240
241
|
}
|
|
241
242
|
}
|
|
242
|
-
class
|
|
243
|
-
constructor(e, t,
|
|
244
|
-
this.min = e, this.max = t, this.stepSize =
|
|
243
|
+
class Ve {
|
|
244
|
+
constructor(e, t, n) {
|
|
245
|
+
this.min = e, this.max = t, this.stepSize = n, this.minIndex = 0, this.maxIndex = Math.round((this.max - this.min) / this.stepSize);
|
|
245
246
|
}
|
|
246
247
|
indexToValue(e) {
|
|
247
|
-
return this.min +
|
|
248
|
+
return this.min + I(e, this.minIndex, this.maxIndex) * this.stepSize;
|
|
248
249
|
}
|
|
249
250
|
valueToIndex(e) {
|
|
250
|
-
return e =
|
|
251
|
+
return e = I(e, this.min, this.max), Math.round((e - this.min) / this.stepSize);
|
|
251
252
|
}
|
|
252
253
|
getClosestStepDistances(e, t) {
|
|
253
254
|
if (t <= 0)
|
|
254
255
|
return [];
|
|
255
|
-
const
|
|
256
|
+
const n = [], i = this.minIndex, a = this.maxIndex, s = (I(e, this.min, this.max) - this.min) / this.stepSize;
|
|
256
257
|
let l = Math.floor(s), c = l + 1;
|
|
257
|
-
for (;
|
|
258
|
+
for (; n.length < t && (l >= i || c <= a); ) {
|
|
258
259
|
if (l < i) {
|
|
259
|
-
const
|
|
260
|
-
|
|
260
|
+
const m = this.indexToValue(c);
|
|
261
|
+
n.push({ idx: c, value: m, dist: Math.abs(m - e) }), c++;
|
|
261
262
|
continue;
|
|
262
263
|
}
|
|
263
|
-
if (c >
|
|
264
|
-
const
|
|
265
|
-
|
|
264
|
+
if (c > a) {
|
|
265
|
+
const m = this.indexToValue(l);
|
|
266
|
+
n.push({ idx: l, value: m, dist: Math.abs(m - e) }), l--;
|
|
266
267
|
continue;
|
|
267
268
|
}
|
|
268
|
-
const d = this.indexToValue(l), h = this.indexToValue(c),
|
|
269
|
-
|
|
269
|
+
const d = this.indexToValue(l), h = this.indexToValue(c), u = Math.abs(d - e), f = Math.abs(h - e);
|
|
270
|
+
u <= f ? (n.push({ idx: l, value: d, dist: u }), l--) : (n.push({ idx: c, value: h, dist: f }), c++);
|
|
270
271
|
}
|
|
271
|
-
return
|
|
272
|
+
return n;
|
|
272
273
|
}
|
|
273
274
|
}
|
|
274
|
-
function
|
|
275
|
-
if (
|
|
275
|
+
function Ee(r) {
|
|
276
|
+
if (r.steps == null)
|
|
276
277
|
return null;
|
|
277
|
-
const e =
|
|
278
|
-
return Array.isArray(e) ? e.length === 0 ? null : new
|
|
278
|
+
const e = r.steps;
|
|
279
|
+
return Array.isArray(e) ? e.length === 0 ? null : new Ie(e) : e <= 0 ? null : new Ve(r.min, r.max, e);
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
-
if (
|
|
281
|
+
function Ce(r, e, t) {
|
|
282
|
+
if (r == null) {
|
|
282
283
|
const s = /* @__PURE__ */ new Map();
|
|
283
284
|
for (const [l, c] of e.entries())
|
|
284
285
|
s.set(l, c + t);
|
|
285
286
|
return s;
|
|
286
287
|
}
|
|
287
|
-
const
|
|
288
|
-
const c = l + t, d =
|
|
288
|
+
const n = e.size, i = Array.from(e.entries()).map(([s, l]) => {
|
|
289
|
+
const c = l + t, d = r.getClosestStepDistances(c, n);
|
|
289
290
|
return { uuid: s, stepDistances: d };
|
|
290
|
-
}),
|
|
291
|
+
}), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
291
292
|
i.sort((s, l) => s.stepDistances[0].dist - l.stepDistances[0].dist);
|
|
292
293
|
for (const s of i) {
|
|
293
|
-
const l = s.stepDistances.find((c) => !
|
|
294
|
-
l ? (
|
|
294
|
+
const l = s.stepDistances.find((c) => !a.has(c.idx));
|
|
295
|
+
l ? (a.add(l.idx), o.set(s.uuid, l.value)) : o.set(s.uuid, e.get(s.uuid));
|
|
295
296
|
}
|
|
296
297
|
return o;
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
const v
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
299
|
+
function O(r, e, t, n, i) {
|
|
300
|
+
const { allowValuesOverlap: a, precision: o, min: s, max: l } = i, c = e.get(t) ?? 0, d = c + n, h = n >= 0 ? -1 : 1;
|
|
301
|
+
let u, f, m;
|
|
302
|
+
if (r) {
|
|
303
|
+
const p = /* @__PURE__ */ new Set();
|
|
304
|
+
if (!a)
|
|
305
|
+
for (const [v, x] of e.entries())
|
|
306
|
+
v !== t && p.add(r.valueToIndex(x));
|
|
307
|
+
const b = r.getClosestStepDistances(d, e.size + 1);
|
|
308
|
+
b.sort((v, x) => z(v.dist, o) - z(x.dist, o) || h * (x.value - v.value));
|
|
309
|
+
let g = 0;
|
|
310
|
+
u = b[g].value, m = (v) => !a && p.has(r.valueToIndex(v)), f = () => (g++, b[g]?.value);
|
|
311
|
+
} else {
|
|
312
|
+
const p = /* @__PURE__ */ new Set();
|
|
313
|
+
for (const [g, v] of e.entries())
|
|
314
|
+
g !== t && p.add(z(v, o));
|
|
315
|
+
const b = 1 / Math.pow(10, o);
|
|
316
|
+
u = I(z(d, o), s, l), m = (g) => !a && p.has(g), f = () => {
|
|
317
|
+
const g = z(u + h * b, o);
|
|
318
|
+
return g === u || g < s || g > l ? void 0 : g;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
if (!m(u))
|
|
322
|
+
return u;
|
|
323
|
+
for (; ; ) {
|
|
324
|
+
const p = f();
|
|
325
|
+
if (p === void 0)
|
|
326
|
+
return c;
|
|
327
|
+
if (u = p, !m(u))
|
|
328
|
+
return u;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function z(r, e) {
|
|
332
|
+
return Number.parseFloat(r.toFixed(e));
|
|
333
|
+
}
|
|
334
|
+
function Pe(r, e, t, n = 1) {
|
|
335
|
+
const i = ne(n);
|
|
336
|
+
let a = e, o = !1;
|
|
330
337
|
for (let s = 0; s < i; s++) {
|
|
331
|
-
const l =
|
|
332
|
-
if (o ||= l.changed,
|
|
338
|
+
const l = Se(r, a, t);
|
|
339
|
+
if (o ||= l.changed, a = l.entries, !l.changed)
|
|
333
340
|
break;
|
|
334
341
|
}
|
|
335
|
-
return { changed: o, entries:
|
|
342
|
+
return { changed: o, entries: a };
|
|
336
343
|
}
|
|
337
|
-
function
|
|
338
|
-
const
|
|
339
|
-
if (
|
|
340
|
-
return
|
|
344
|
+
function Te(r, e, t, n, i = 1) {
|
|
345
|
+
const a = ne(i);
|
|
346
|
+
if (a === 1)
|
|
347
|
+
return N(r, e, t, n);
|
|
341
348
|
const o = new Map(e);
|
|
342
349
|
let s = o.get(t);
|
|
343
|
-
for (let l = 0; l <
|
|
344
|
-
const c =
|
|
350
|
+
for (let l = 0; l < a; l++) {
|
|
351
|
+
const c = N(r, o, t, n);
|
|
345
352
|
if (c === s)
|
|
346
353
|
break;
|
|
347
354
|
s = c, o.set(t, s);
|
|
348
355
|
}
|
|
349
356
|
return s;
|
|
350
357
|
}
|
|
351
|
-
function
|
|
352
|
-
const e = Number.isFinite(
|
|
358
|
+
function ne(r) {
|
|
359
|
+
const e = Number.isFinite(r) ? Math.floor(r) : 1;
|
|
353
360
|
return Math.max(1, e);
|
|
354
361
|
}
|
|
355
|
-
function
|
|
356
|
-
const
|
|
362
|
+
function Se(r, e, t) {
|
|
363
|
+
const n = /* @__PURE__ */ new Map(), i = t > 0 ? Re : ae, a = Array.from(e).sort((l, c) => i(l[1], c[1]));
|
|
357
364
|
let o = !1, s = !0;
|
|
358
|
-
for (const [l, c] of
|
|
359
|
-
if (
|
|
360
|
-
const d =
|
|
361
|
-
c === d && (s = !1), o ||= s,
|
|
365
|
+
for (const [l, c] of a)
|
|
366
|
+
if (n.set(l, c), s) {
|
|
367
|
+
const d = N(r, n, l, t);
|
|
368
|
+
c === d && (s = !1), o ||= s, n.set(l, d);
|
|
362
369
|
}
|
|
363
|
-
return { changed: o, entries:
|
|
370
|
+
return { changed: o, entries: n };
|
|
364
371
|
}
|
|
365
|
-
function
|
|
366
|
-
const { allowValuesOverlap: i, stepsProvider:
|
|
367
|
-
if (
|
|
368
|
-
let
|
|
372
|
+
function N(r, e, t, n) {
|
|
373
|
+
const { allowValuesOverlap: i, stepsProvider: a, resolution: o, min: s, max: l } = r, c = e.get(t);
|
|
374
|
+
if (n = n > 0 ? 1 : -1, !a) {
|
|
375
|
+
let g = I(c + n * o, s, l);
|
|
369
376
|
if (i)
|
|
370
|
-
return
|
|
371
|
-
const
|
|
372
|
-
for (const [
|
|
373
|
-
|
|
374
|
-
for (;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
return g;
|
|
378
|
+
const v = /* @__PURE__ */ new Set();
|
|
379
|
+
for (const [x, D] of e)
|
|
380
|
+
x !== t && v.add(D);
|
|
381
|
+
for (; v.has(g) && g <= l && g >= s; ) {
|
|
382
|
+
const x = g;
|
|
383
|
+
if (g = I(g + n * o, s, l), g === x)
|
|
384
|
+
return c;
|
|
385
|
+
}
|
|
386
|
+
return v.has(g) || g > l || g < s ? c : g;
|
|
387
|
+
}
|
|
388
|
+
const d = a.valueToIndex(c);
|
|
379
389
|
if (d === -1)
|
|
380
390
|
return c;
|
|
381
391
|
if (i) {
|
|
382
|
-
const
|
|
383
|
-
return
|
|
392
|
+
const g = I(d + n, a.minIndex, a.maxIndex);
|
|
393
|
+
return a.indexToValue(g);
|
|
384
394
|
}
|
|
385
395
|
const h = /* @__PURE__ */ new Set();
|
|
386
|
-
for (const [
|
|
387
|
-
|
|
388
|
-
let
|
|
389
|
-
const
|
|
390
|
-
let
|
|
391
|
-
for (;
|
|
392
|
-
if (!h.has(
|
|
396
|
+
for (const [g, v] of e)
|
|
397
|
+
g !== t && h.add(a.valueToIndex(v));
|
|
398
|
+
let u = d, f = !1;
|
|
399
|
+
const m = a.minIndex, p = a.maxIndex;
|
|
400
|
+
let b = 0;
|
|
401
|
+
for (; b < Math.abs(p - m) && (u += n, !(u < m || u > p)); ) {
|
|
402
|
+
if (!h.has(u)) {
|
|
393
403
|
f = !0;
|
|
394
404
|
break;
|
|
395
405
|
}
|
|
396
|
-
|
|
406
|
+
b++;
|
|
397
407
|
}
|
|
398
|
-
return f ?
|
|
408
|
+
return f ? a.indexToValue(u) : c;
|
|
399
409
|
}
|
|
400
|
-
function
|
|
401
|
-
const { allowValuesOverlap: i, stepsProvider:
|
|
402
|
-
if (
|
|
410
|
+
function ze(r, e, t, n) {
|
|
411
|
+
const { allowValuesOverlap: i, stepsProvider: a, resolution: o, min: s, max: l } = r, c = e.get(t);
|
|
412
|
+
if (n = n > 0 ? 1 : -1, !a) {
|
|
403
413
|
const f = new Set(
|
|
404
|
-
Array.from(e).filter(([
|
|
414
|
+
Array.from(e).filter(([p]) => p !== t).map(([, p]) => p)
|
|
405
415
|
);
|
|
406
|
-
let
|
|
416
|
+
let m = n > 0 ? l : s;
|
|
407
417
|
if (i)
|
|
408
|
-
return
|
|
409
|
-
for (; f.has(
|
|
410
|
-
if (
|
|
411
|
-
|
|
418
|
+
return m;
|
|
419
|
+
for (; f.has(m); )
|
|
420
|
+
if (m -= n * o, n > 0 && m > l || n < 0 && m < s) {
|
|
421
|
+
m = c;
|
|
412
422
|
break;
|
|
413
423
|
}
|
|
414
|
-
return
|
|
424
|
+
return m;
|
|
415
425
|
}
|
|
416
426
|
if (i)
|
|
417
|
-
return
|
|
418
|
-
const d =
|
|
427
|
+
return n > 0 ? a.indexToValue(a.maxIndex) : a.indexToValue(a.minIndex);
|
|
428
|
+
const d = a.valueToIndex(c);
|
|
419
429
|
if (d === -1)
|
|
420
430
|
return c;
|
|
421
431
|
const h = new Set(
|
|
422
|
-
Array.from(e).filter(([f]) => f !== t).map(([, f]) =>
|
|
432
|
+
Array.from(e).filter(([f]) => f !== t).map(([, f]) => a.valueToIndex(f))
|
|
423
433
|
);
|
|
424
|
-
let
|
|
425
|
-
for (; h.has(
|
|
426
|
-
if (
|
|
427
|
-
|
|
434
|
+
let u = n > 0 ? a.maxIndex : a.minIndex;
|
|
435
|
+
for (; h.has(u); )
|
|
436
|
+
if (u -= n, n > 0 && u > l || n < 0 && u < s) {
|
|
437
|
+
u = d;
|
|
428
438
|
break;
|
|
429
439
|
}
|
|
430
|
-
return
|
|
440
|
+
return a.indexToValue(u);
|
|
431
441
|
}
|
|
432
|
-
function
|
|
433
|
-
const { stepsProvider:
|
|
434
|
-
if (
|
|
442
|
+
function $e(r, e, t) {
|
|
443
|
+
const { stepsProvider: n, min: i, max: a } = r, o = /* @__PURE__ */ new Map(), s = Array.from(e).sort((c, d) => ae(c[1], d[1]));
|
|
444
|
+
if (n) {
|
|
435
445
|
let c = 0;
|
|
436
446
|
if (t > 0) {
|
|
437
|
-
const d = s[s.length - 1], h =
|
|
438
|
-
c =
|
|
447
|
+
const d = s[s.length - 1], h = n.valueToIndex(d[1]);
|
|
448
|
+
c = n.maxIndex - h;
|
|
439
449
|
} else {
|
|
440
|
-
const d = s[0], h =
|
|
441
|
-
c =
|
|
450
|
+
const d = s[0], h = n.valueToIndex(d[1]);
|
|
451
|
+
c = n.minIndex - h;
|
|
442
452
|
}
|
|
443
453
|
if (c === 0)
|
|
444
454
|
for (const [d, h] of s)
|
|
445
455
|
o.set(d, h);
|
|
446
456
|
for (const [d, h] of s) {
|
|
447
|
-
const
|
|
448
|
-
o.set(d,
|
|
457
|
+
const u = n.indexToValue(n.valueToIndex(h) + c);
|
|
458
|
+
o.set(d, u);
|
|
449
459
|
}
|
|
450
460
|
return o;
|
|
451
461
|
}
|
|
452
462
|
let l = 0;
|
|
453
463
|
if (t > 0) {
|
|
454
464
|
const c = s[s.length - 1];
|
|
455
|
-
l =
|
|
465
|
+
l = a - c[1];
|
|
456
466
|
} else {
|
|
457
467
|
const c = s[0];
|
|
458
468
|
l = i - c[1];
|
|
@@ -461,39 +471,39 @@ function Ce(n, e, t) {
|
|
|
461
471
|
o.set(c, d + l);
|
|
462
472
|
return o;
|
|
463
473
|
}
|
|
464
|
-
function
|
|
465
|
-
return
|
|
474
|
+
function ae(r, e) {
|
|
475
|
+
return r - e;
|
|
466
476
|
}
|
|
467
|
-
function
|
|
468
|
-
return e -
|
|
477
|
+
function Re(r, e) {
|
|
478
|
+
return e - r;
|
|
469
479
|
}
|
|
470
|
-
function
|
|
471
|
-
return Math.max(e, Math.min(t,
|
|
480
|
+
function I(r, e, t) {
|
|
481
|
+
return Math.max(e, Math.min(t, r));
|
|
472
482
|
}
|
|
473
|
-
const
|
|
474
|
-
class
|
|
483
|
+
const Le = se(k);
|
|
484
|
+
class Me extends ie {
|
|
475
485
|
constructor() {
|
|
476
|
-
super(...arguments), this._stepsProvider = null, this._popoverElement =
|
|
486
|
+
super(...arguments), this._stepsProvider = null, this._popoverElement = j(), this._trackElement = j(), this.messages = de({}), this._onPointerMoveDragUpdate = (e) => {
|
|
477
487
|
this._updateDrag(this._mapEventToRange(e));
|
|
478
488
|
}, this._onPointerUpDragEnd = (e) => {
|
|
479
|
-
|
|
489
|
+
R(e) && this._endDrag();
|
|
480
490
|
}, this._onPointerCancelDragEnd = () => {
|
|
481
491
|
this._endDrag();
|
|
482
|
-
}, this._formatLabel = (e, t,
|
|
483
|
-
const i =
|
|
484
|
-
if (!
|
|
485
|
-
return i.format(
|
|
486
|
-
const o =
|
|
487
|
-
return o ?? i.format(
|
|
492
|
+
}, this._formatLabel = (e, t, n) => {
|
|
493
|
+
const i = ue(this.messages._lang, t), a = this.labelFormatter;
|
|
494
|
+
if (!a)
|
|
495
|
+
return i.format(n);
|
|
496
|
+
const o = a(n, e, (s) => i.format(s));
|
|
497
|
+
return o ?? i.format(n);
|
|
488
498
|
}, this._numberFormatOptions = {}, this._createFormatter = (e, t) => this._formatLabel.bind(this, e, t), this._minFormatter = this._createFormatter("min", this._numberFormatOptions), this._maxFormatter = this._createFormatter("max", this._numberFormatOptions), this._valueFormatter = this._createFormatter("value", this._numberFormatOptions), this._resizeObserver = new ResizeObserver(() => {
|
|
489
|
-
this._layoutLabelInputs();
|
|
490
|
-
}), this._labelInputsUpdateComplete = null, this._dragInfo = null, this._hasPopoverContent = !1, this._hasContentStart = !1, this._hasContentEnd = !1, this._activePart = null, this._sliderData =
|
|
499
|
+
this._layoutLabelInputs(), this._updatePopoverReferenceElement();
|
|
500
|
+
}), this._labelInputsUpdateComplete = null, this._dragInfo = null, this._hasPopoverContent = !1, this._hasContentStart = !1, this._hasContentEnd = !1, this._measurablePopoverReferenceElement = "", this._activePart = null, this._sliderData = Le(this), this.allowValuesOverlap = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.fillPlacement = "start", this.layout = "horizontal", this.max = this._sliderData.max, this.min = this._sliderData.min, this.mirrored = !1, this.popoverDisplay = "auto", this.popoverLabel = "", this.popoverPlacement = "start", this.precision = this._sliderData.precision, this.valuesDraggingDisabled = !1, this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.segmentsDraggingDisabled = !1, this.showRangeLabels = !1, this.valueLabelsDisplay = "hidden", this.valueLabelsPlacement = "start", this.valueLabelsEditingEnabled = !1, this.keyboardLargeStep = 10, this.values = this._sliderData.values, this.arcgisActiveValueChange = M({ cancelable: !1 }), this.arcgisChange = M({ cancelable: !1 }), this.arcgisInput = M({ cancelable: !1 }), this.arcgisRangeChange = M({ cancelable: !1 });
|
|
491
501
|
}
|
|
492
502
|
static {
|
|
493
|
-
this.properties = { _dragInfo: 16, _hasPopoverContent: 16, _hasContentStart: 16, _hasContentEnd: 16, _activePart: 16, _sliderData: 16, activeValue: 32, allowValuesOverlap: 5, autoDestroyDisabled: 5, disabled: 7, fullRangeMax: 11, fullRangeMin: 11, fillPlacement: 1, labelFormatter: 0, layout: 3, max: 11, min: 11, mirrored: 7, popoverLabel: 1, popoverPlacement: 3, precision: 11, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 3, segmentsDraggingDisabled: 5, showRangeLabels: 7, steps: [9, { converter: {
|
|
503
|
+
this.properties = { _dragInfo: 16, _hasPopoverContent: 16, _hasContentStart: 16, _hasContentEnd: 16, _measurablePopoverReferenceElement: 16, _activePart: 16, _sliderData: 16, activeValue: 32, allowValuesOverlap: 5, autoDestroyDisabled: 5, disabled: 7, fullRangeMax: 11, fullRangeMin: 11, fillPlacement: 1, labelFormatter: 0, layout: 3, max: 11, min: 11, mirrored: 7, popoverDisplay: 1, popoverLabel: 1, popoverPlacement: 3, precision: 11, valuesDraggingDisabled: 7, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 3, segmentsDraggingDisabled: 5, showRangeLabels: 7, steps: [9, { converter: {
|
|
494
504
|
fromAttribute(e) {
|
|
495
505
|
if (e.includes(","))
|
|
496
|
-
return e.split(",").filter((
|
|
506
|
+
return e.split(",").filter((n) => n.trim() !== "").map(parseFloat).filter((n) => Number.isFinite(n));
|
|
497
507
|
const t = parseFloat(e);
|
|
498
508
|
return Number.isFinite(t) ? t : void 0;
|
|
499
509
|
}
|
|
@@ -504,7 +514,7 @@ class Pe extends ee {
|
|
|
504
514
|
} }], messageOverrides: 0 };
|
|
505
515
|
}
|
|
506
516
|
static {
|
|
507
|
-
this.styles =
|
|
517
|
+
this.styles = be;
|
|
508
518
|
}
|
|
509
519
|
static {
|
|
510
520
|
this.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|
|
@@ -529,8 +539,8 @@ class Pe extends ee {
|
|
|
529
539
|
return this.disabled || this.values.length === 0 || this._invalid;
|
|
530
540
|
}
|
|
531
541
|
get _invalid() {
|
|
532
|
-
const e = this.fullRangeMin == null || this.fullRangeMax == null || this.fullRangeMin < this.fullRangeMax, t = this.fullRangeMin == null || this.fullRangeMin <= this.min,
|
|
533
|
-
return this.min >= this.max || !e || !t || !
|
|
542
|
+
const e = this.fullRangeMin == null || this.fullRangeMax == null || this.fullRangeMin < this.fullRangeMax, t = this.fullRangeMin == null || this.fullRangeMin <= this.min, n = this.fullRangeMax == null || this.fullRangeMax >= this.max;
|
|
543
|
+
return this.min >= this.max || !e || !t || !n;
|
|
534
544
|
}
|
|
535
545
|
get resolution() {
|
|
536
546
|
const e = (this._sliderData.max - this._sliderData.min) / this._trackWidthOrHeight;
|
|
@@ -547,10 +557,18 @@ class Pe extends ee {
|
|
|
547
557
|
this._sliderData.startup();
|
|
548
558
|
}
|
|
549
559
|
willUpdate(e) {
|
|
550
|
-
if ((e.has("steps") || e.has("min") || e.has("max")) && (this._stepsProvider =
|
|
560
|
+
if ((e.has("steps") || e.has("min") || e.has("max")) && (this._stepsProvider = Ee(this)), (e.has("values") || e.has("steps") || e.has("min") || e.has("max") || e.has("precision") || e.has("allowValuesOverlap")) && !this.allowValuesOverlap) {
|
|
561
|
+
const t = this._resolveOverlappingValues();
|
|
562
|
+
t && this._setValues(t);
|
|
563
|
+
}
|
|
564
|
+
if (e.has("messages") || e.has("min") || e.has("max") || e.has("precision") || e.has("labelFormatter")) {
|
|
551
565
|
const t = this.max != null && this.min != null && this.max - this.min > 10 ? 2 : this.precision;
|
|
552
566
|
this._numberFormatOptions = { maximumFractionDigits: t }, this._minFormatter = this._createFormatter("min", this._numberFormatOptions), this._maxFormatter = this._createFormatter("max", this._numberFormatOptions), this._valueFormatter = this._createFormatter("value", this._numberFormatOptions);
|
|
553
567
|
}
|
|
568
|
+
if (e.has("values")) {
|
|
569
|
+
const t = this._resolveFillPlacement(this.values.length > 1);
|
|
570
|
+
t !== this.fillPlacement && (this.fillPlacement = t);
|
|
571
|
+
}
|
|
554
572
|
}
|
|
555
573
|
updated(e) {
|
|
556
574
|
this._layoutLabelInputs();
|
|
@@ -558,7 +576,7 @@ class Pe extends ee {
|
|
|
558
576
|
t && (e.has("values") || e.has("min") || e.has("max")) && t.reposition();
|
|
559
577
|
}
|
|
560
578
|
loaded() {
|
|
561
|
-
this._resizeObserver.observe(this.el);
|
|
579
|
+
this._resizeObserver.observe(this.el), this._updatePopoverReferenceElement();
|
|
562
580
|
}
|
|
563
581
|
disconnectedCallback() {
|
|
564
582
|
super.disconnectedCallback(), this._removeDragListeners();
|
|
@@ -570,28 +588,89 @@ class Pe extends ee {
|
|
|
570
588
|
};
|
|
571
589
|
}
|
|
572
590
|
async _layoutLabelInputs() {
|
|
573
|
-
if (
|
|
591
|
+
if (!this._trackElement.value || this.valueLabelsDisplay === "hidden")
|
|
574
592
|
return;
|
|
575
|
-
const e = this.renderRoot.querySelectorAll("arcgis-label-input"), t = this.componentOnReady().then(() => Promise.all(Array.from(e, (
|
|
593
|
+
const e = this.renderRoot.querySelectorAll("arcgis-label-input"), t = this.componentOnReady().then(() => Promise.all(Array.from(e, (s) => s.updateComplete)));
|
|
576
594
|
if (this._labelInputsUpdateComplete = t, await t, t !== this._labelInputsUpdateComplete)
|
|
577
595
|
return;
|
|
578
596
|
this._labelInputsUpdateComplete = null;
|
|
579
|
-
const
|
|
580
|
-
if (!
|
|
597
|
+
const n = this._trackElement.value;
|
|
598
|
+
if (!n)
|
|
581
599
|
return;
|
|
582
|
-
const i =
|
|
583
|
-
for (const
|
|
584
|
-
const
|
|
585
|
-
if (this.valueLabelsDisplay === "always" ||
|
|
586
|
-
const
|
|
587
|
-
if (!
|
|
600
|
+
const i = n.getBoundingClientRect(), a = [], o = this.isHorizontal;
|
|
601
|
+
for (const s of this._sliderData.entries.keys()) {
|
|
602
|
+
const l = this._activePart === "range" || this._activePart === s;
|
|
603
|
+
if (this.valueLabelsDisplay === "always" || l) {
|
|
604
|
+
const d = Be(this, s), h = Z(this, s);
|
|
605
|
+
if (!d || !h)
|
|
588
606
|
continue;
|
|
589
|
-
const
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
607
|
+
const u = d.getBoundingClientRect(), f = o ? u.left + u.width / 2 : u.top + u.height / 2;
|
|
608
|
+
if (o) {
|
|
609
|
+
const m = h.getBoundingClientRect(), p = h.getLabelBoundingClientRect(), b = u.width / 2, g = Math.round(p.width / 2);
|
|
610
|
+
let v = m.width / 2;
|
|
611
|
+
const x = i.left - b, D = i.right + b, C = f - g, G = f + g;
|
|
612
|
+
C < x ? v += C - x : G > D && (v += G - D), h.style.transform = `translateX(${-Math.round(v)}px)`;
|
|
613
|
+
} else
|
|
614
|
+
h.style.removeProperty("transform");
|
|
615
|
+
a.push({
|
|
616
|
+
handleBounds: u,
|
|
617
|
+
handleCenter: f,
|
|
618
|
+
labelInput: h
|
|
619
|
+
});
|
|
593
620
|
}
|
|
594
621
|
}
|
|
622
|
+
this._layoutCollidingLabelInputs(a);
|
|
623
|
+
}
|
|
624
|
+
_layoutCollidingLabelInputs(e) {
|
|
625
|
+
const t = this.isHorizontal, n = Array.from(this.renderRoot.querySelectorAll(".label-separator")), i = e.slice().sort((s, l) => s.handleCenter - l.handleCenter);
|
|
626
|
+
if (i.length === 0)
|
|
627
|
+
return;
|
|
628
|
+
const a = this._trackElement.value?.getBoundingClientRect(), o = i.map((s) => [s]);
|
|
629
|
+
for (let s = 0; s < i.length; s++) {
|
|
630
|
+
for (const c of n)
|
|
631
|
+
c.hidden = !0, c.style.removeProperty("left");
|
|
632
|
+
let l = 0;
|
|
633
|
+
for (const c of o) {
|
|
634
|
+
const d = (c[0].handleCenter + c[c.length - 1].handleCenter) / 2, h = c.reduce((f, m) => f + (t ? m.labelInput.getBoundingClientRect().width : m.labelInput.getBoundingClientRect().height), 0);
|
|
635
|
+
let u = c.length === 1 ? t ? c[0].labelInput.getBoundingClientRect().left : c[0].labelInput.getBoundingClientRect().top : d - h / 2;
|
|
636
|
+
if (a && c.length > 1) {
|
|
637
|
+
const f = c[0], m = c[c.length - 1];
|
|
638
|
+
if (t) {
|
|
639
|
+
const p = f.labelInput.getLabelBoundingClientRect().left - f.labelInput.getBoundingClientRect().left, b = m.labelInput.getBoundingClientRect().right - m.labelInput.getLabelBoundingClientRect().right, g = a.left - f.handleBounds.width / 2 - p, v = a.right + m.handleBounds.width / 2 + b - h;
|
|
640
|
+
u = T(u, g, v);
|
|
641
|
+
} else {
|
|
642
|
+
const p = f.labelInput.getBoundingClientRect().height / 2, b = m.labelInput.getBoundingClientRect().height / 2, g = a.top - p, v = a.bottom + b - h;
|
|
643
|
+
u = T(u, g, v);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
for (let f = 0; f < c.length; f++) {
|
|
647
|
+
const m = c[f], p = m.labelInput.getBoundingClientRect(), b = t ? p.width : p.height, g = (t ? p.left : p.top) + b / 2, v = this._getLabelTranslate(m.labelInput, t), x = u + b / 2, D = `${t ? "translateX" : "translateY"}(${Math.round(v + x - g)}px)`;
|
|
648
|
+
if (m.labelInput.style.transform !== D && (m.labelInput.style.transform = D), u += b, t && f < c.length - 1) {
|
|
649
|
+
const C = n[l++];
|
|
650
|
+
if (!C)
|
|
651
|
+
continue;
|
|
652
|
+
C.hidden = !1, C.style.left = `${u - (a?.left ?? 0)}px`;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
if (!this._mergeCollidingLabelGroups(o))
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
_mergeCollidingLabelGroups(e) {
|
|
661
|
+
const t = this.isHorizontal;
|
|
662
|
+
for (let n = 0; n < e.length - 1; ) {
|
|
663
|
+
const i = e[n], a = e[n + 1], o = i[i.length - 1], s = a[0], l = o.labelInput.getBoundingClientRect(), c = s.labelInput.getBoundingClientRect(), d = t ? l.right : l.bottom;
|
|
664
|
+
if ((t ? c.left : c.top) > d)
|
|
665
|
+
n++;
|
|
666
|
+
else
|
|
667
|
+
return i.push(...a), e.splice(n + 1, 1), !0;
|
|
668
|
+
}
|
|
669
|
+
return !1;
|
|
670
|
+
}
|
|
671
|
+
_getLabelTranslate(e, t) {
|
|
672
|
+
const n = t ? /translateX\((-?\d+(?:\.\d+)?)px\)/u : /translateY\((-?\d+(?:\.\d+)?)px\)/u, i = e.style.transform.match(n);
|
|
673
|
+
return i ? Number.parseFloat(i[1]) : 0;
|
|
595
674
|
}
|
|
596
675
|
_onTrackFocus() {
|
|
597
676
|
this._setActivePart("range");
|
|
@@ -600,31 +679,39 @@ class Pe extends ee {
|
|
|
600
679
|
this._setActivePart(null);
|
|
601
680
|
}
|
|
602
681
|
_onTrackRangePointerDown(e) {
|
|
603
|
-
this._disabledOrInvalid || !
|
|
682
|
+
this._disabledOrInvalid || !R(e) || (e.preventDefault(), e.currentTarget.focus(), this._startDrag("range", this._mapEventToRange(e)));
|
|
604
683
|
}
|
|
605
684
|
async _onPointerDown(e) {
|
|
606
|
-
if (this._disabledOrInvalid || !
|
|
685
|
+
if (this._disabledOrInvalid || !R(e))
|
|
607
686
|
return;
|
|
608
687
|
const t = this.renderRoot.querySelector("arcgis-label-input[editing]");
|
|
609
688
|
if (e.target === t)
|
|
610
689
|
return;
|
|
611
690
|
if (t) {
|
|
612
|
-
t.blur(), this._focusEntry(
|
|
691
|
+
t.blur(), this._focusEntry($(t));
|
|
613
692
|
return;
|
|
614
693
|
}
|
|
615
|
-
if (
|
|
694
|
+
if (Fe(e.target) || this.values?.length > 1)
|
|
616
695
|
return;
|
|
617
|
-
const
|
|
696
|
+
const n = this._mapEventToRange(e), [i, a] = this._sliderData.entries.entries().next().value, o = n * this._fullRange + this._fullMin - a, s = B(this._fullMin, this._fullMax, a) / 100;
|
|
618
697
|
this._startDrag(i, s);
|
|
619
|
-
const l =
|
|
698
|
+
const l = O(this._stepsProvider, this._sliderData.entries, i, o, {
|
|
699
|
+
allowValuesOverlap: this.allowValuesOverlap,
|
|
700
|
+
precision: this.precision,
|
|
701
|
+
min: this.min,
|
|
702
|
+
max: this.max
|
|
703
|
+
});
|
|
620
704
|
this._setValue(i, l), this._focusEntry(i);
|
|
621
705
|
}
|
|
622
706
|
_onThumbPointerDown(e) {
|
|
623
|
-
const t =
|
|
624
|
-
if (!
|
|
707
|
+
const t = $(e.currentTarget);
|
|
708
|
+
if (!R(e) || this._disabledOrInvalid || !t)
|
|
625
709
|
return;
|
|
626
|
-
const
|
|
627
|
-
e.target ===
|
|
710
|
+
const n = Z(this, t);
|
|
711
|
+
e.target === n && n?.editing || (e.stopPropagation(), e.preventDefault(), this._focusEntry(t), this._startDrag(t, this._mapEventToRange(e)));
|
|
712
|
+
}
|
|
713
|
+
_onFixedThumbPointerDown(e) {
|
|
714
|
+
this._disabledOrInvalid || !R(e) || (e.preventDefault(), e.currentTarget.focus());
|
|
628
715
|
}
|
|
629
716
|
_endDrag() {
|
|
630
717
|
if (this._disabledOrInvalid)
|
|
@@ -633,8 +720,8 @@ class Pe extends ee {
|
|
|
633
720
|
let e = !1;
|
|
634
721
|
if (this._dragInfo) {
|
|
635
722
|
const { entries: t } = this._dragInfo;
|
|
636
|
-
for (const [
|
|
637
|
-
if (this._sliderData.getValue(
|
|
723
|
+
for (const [n, i] of t)
|
|
724
|
+
if (this._sliderData.getValue(n) !== i) {
|
|
638
725
|
e = !0;
|
|
639
726
|
break;
|
|
640
727
|
}
|
|
@@ -644,12 +731,12 @@ class Pe extends ee {
|
|
|
644
731
|
_startDrag(e, t) {
|
|
645
732
|
if (this._disabledOrInvalid)
|
|
646
733
|
return;
|
|
647
|
-
const { min:
|
|
648
|
-
let o =
|
|
734
|
+
const { min: n, max: i, values: a } = this;
|
|
735
|
+
let o = n, s = i;
|
|
649
736
|
if (this._setActivePart(e), e === "range") {
|
|
650
737
|
if (this.segmentsDraggingDisabled)
|
|
651
738
|
return;
|
|
652
|
-
o =
|
|
739
|
+
o = n - a[0], s = i - a[a.length - 1];
|
|
653
740
|
}
|
|
654
741
|
this._dragInfo = {
|
|
655
742
|
position: t,
|
|
@@ -661,21 +748,26 @@ class Pe extends ee {
|
|
|
661
748
|
_updateDrag(e) {
|
|
662
749
|
if (!this._dragInfo || !this._activePart)
|
|
663
750
|
return;
|
|
664
|
-
const { _activePart: t, _dragInfo: { position:
|
|
665
|
-
if (
|
|
751
|
+
const { _activePart: t, _dragInfo: { position: n, entries: i, minDiff: a, maxDiff: o } } = this;
|
|
752
|
+
if (n === e)
|
|
666
753
|
return;
|
|
667
|
-
let s = (e -
|
|
754
|
+
let s = (e - n) * this._fullRange;
|
|
668
755
|
if (t === "range") {
|
|
669
|
-
s = Math.min(o, Math.max(
|
|
670
|
-
const l =
|
|
756
|
+
s = Math.min(o, Math.max(a, s));
|
|
757
|
+
const l = Ce(this._stepsProvider, i, s);
|
|
671
758
|
this._setValues(l);
|
|
672
759
|
} else {
|
|
673
|
-
const l =
|
|
760
|
+
const l = O(this._stepsProvider, i, t, s, {
|
|
761
|
+
allowValuesOverlap: this.allowValuesOverlap,
|
|
762
|
+
precision: this.precision,
|
|
763
|
+
min: this.min,
|
|
764
|
+
max: this.max
|
|
765
|
+
});
|
|
674
766
|
this._setValue(t, l);
|
|
675
767
|
}
|
|
676
768
|
}
|
|
677
769
|
_focusEntry(e) {
|
|
678
|
-
e &&
|
|
770
|
+
e && Q(this, e)?.focus();
|
|
679
771
|
}
|
|
680
772
|
_addDragListeners() {
|
|
681
773
|
document.addEventListener("pointerup", this._onPointerUpDragEnd), document.addEventListener("pointermove", this._onPointerMoveDragUpdate), document.addEventListener("pointercancel", this._onPointerCancelDragEnd);
|
|
@@ -689,92 +781,118 @@ class Pe extends ee {
|
|
|
689
781
|
_setValue(e, t) {
|
|
690
782
|
this._sliderData.setValue(e, t) && (this._dragInfo || this.arcgisChange.emit(), this.arcgisInput.emit());
|
|
691
783
|
}
|
|
784
|
+
_resolveOverlappingValues() {
|
|
785
|
+
const e = new Map(this._sliderData.entries), t = Array.from(e.entries()).sort((i, a) => i[1] - a[1]);
|
|
786
|
+
let n = !1;
|
|
787
|
+
for (const [i, a] of t) {
|
|
788
|
+
const o = T(a, this.min, this.max);
|
|
789
|
+
if (!Array.from(e).some(([c, d]) => c !== i && T(d, this.min, this.max) === o))
|
|
790
|
+
continue;
|
|
791
|
+
const l = O(this._stepsProvider, e, i, o - a, {
|
|
792
|
+
allowValuesOverlap: !1,
|
|
793
|
+
precision: this.precision,
|
|
794
|
+
min: this.min,
|
|
795
|
+
max: this.max
|
|
796
|
+
});
|
|
797
|
+
l !== a && (n = !0), e.set(i, l);
|
|
798
|
+
}
|
|
799
|
+
return n ? e : null;
|
|
800
|
+
}
|
|
692
801
|
_onThumbFocus(e) {
|
|
693
|
-
const t =
|
|
802
|
+
const t = $(e.currentTarget);
|
|
694
803
|
this._setActivePart(t);
|
|
695
804
|
}
|
|
696
805
|
_onThumbBlur() {
|
|
697
806
|
this._setActivePart(null);
|
|
698
807
|
}
|
|
699
808
|
_onRangeInputChange(e) {
|
|
700
|
-
const t = e.currentTarget,
|
|
701
|
-
let
|
|
809
|
+
const t = e.currentTarget, n = t.value, i = t.dataset.type;
|
|
810
|
+
let a = !1;
|
|
702
811
|
switch (e.stopPropagation(), i) {
|
|
703
812
|
case "min": {
|
|
704
|
-
|
|
813
|
+
n < this.max ? (this.min = n, a = !0) : t.value = this.min;
|
|
705
814
|
break;
|
|
706
815
|
}
|
|
707
816
|
case "max": {
|
|
708
|
-
|
|
817
|
+
n > this.min ? (this.max = n, a = !0) : t.value = this.max;
|
|
709
818
|
break;
|
|
710
819
|
}
|
|
711
820
|
}
|
|
712
|
-
|
|
821
|
+
a && this.arcgisRangeChange.emit();
|
|
713
822
|
}
|
|
714
823
|
_onValueInputChange(e) {
|
|
715
|
-
const t = e.currentTarget,
|
|
716
|
-
|
|
824
|
+
const t = e.currentTarget, n = $(t), i = t.value;
|
|
825
|
+
if (n) {
|
|
826
|
+
e.stopPropagation();
|
|
827
|
+
const a = this._sliderData.getValue(n), o = O(this._stepsProvider, this._sliderData.entries, n, i - a, {
|
|
828
|
+
allowValuesOverlap: this.allowValuesOverlap,
|
|
829
|
+
precision: this.precision,
|
|
830
|
+
min: this.min,
|
|
831
|
+
max: this.max
|
|
832
|
+
});
|
|
833
|
+
this._setValue(n, o), t.value = this._sliderData.getValue(n);
|
|
834
|
+
}
|
|
717
835
|
}
|
|
718
836
|
_mapEventToRange(e) {
|
|
719
837
|
const t = this._trackElement.value?.getBoundingClientRect();
|
|
720
838
|
if (!t)
|
|
721
839
|
return 0;
|
|
722
|
-
const
|
|
723
|
-
return this.mirrored ? 1 -
|
|
840
|
+
const n = this.isHorizontal ? (e.clientX - t.left) / t.width : 1 - (e.clientY - t.top) / t.height;
|
|
841
|
+
return this.mirrored ? 1 - n : n;
|
|
724
842
|
}
|
|
725
843
|
_getPositionStyleForElement(e) {
|
|
726
|
-
const t =
|
|
844
|
+
const t = B(this._fullMin, this._fullMax, e);
|
|
727
845
|
return {
|
|
728
846
|
[this.isHorizontal ? this.mirrored ? "right" : "left" : this.mirrored ? "top" : "bottom"]: `${t}%`
|
|
729
847
|
};
|
|
730
848
|
}
|
|
731
849
|
_popoverSlotChange(e) {
|
|
732
|
-
this._hasPopoverContent =
|
|
850
|
+
this._hasPopoverContent = H(e), this._updatePopoverReferenceElement();
|
|
733
851
|
}
|
|
734
852
|
_onContentStartSlotChange(e) {
|
|
735
|
-
this._hasContentStart =
|
|
853
|
+
this._hasContentStart = H(e);
|
|
736
854
|
}
|
|
737
855
|
_onContentEndSlotChange(e) {
|
|
738
|
-
this._hasContentEnd =
|
|
856
|
+
this._hasContentEnd = H(e);
|
|
739
857
|
}
|
|
740
858
|
_onThumbKeyDown(e) {
|
|
741
|
-
const t =
|
|
859
|
+
const t = $(e.currentTarget);
|
|
742
860
|
if (!t)
|
|
743
861
|
return;
|
|
744
|
-
const
|
|
745
|
-
if (!
|
|
862
|
+
const n = e.currentTarget.querySelector("arcgis-label-input");
|
|
863
|
+
if (!n || n.editing)
|
|
746
864
|
return;
|
|
747
|
-
if (e.key ===
|
|
748
|
-
|
|
865
|
+
if (e.key === _.confirmEdit) {
|
|
866
|
+
n.edit();
|
|
749
867
|
return;
|
|
750
868
|
}
|
|
751
|
-
const i =
|
|
869
|
+
const i = Y(e, this.keyboardLargeStep, this.mirrored);
|
|
752
870
|
if (i) {
|
|
753
871
|
e.preventDefault();
|
|
754
|
-
const
|
|
755
|
-
this._setValue(t,
|
|
872
|
+
const a = Te(this._getStepsConfiguration(), this._sliderData.entries, t, i.direction, i.count);
|
|
873
|
+
this._setValue(t, a);
|
|
756
874
|
return;
|
|
757
875
|
}
|
|
758
|
-
if (
|
|
876
|
+
if (J(e.key)) {
|
|
759
877
|
e.preventDefault();
|
|
760
|
-
const
|
|
761
|
-
this._setValue(t,
|
|
878
|
+
const a = ze(this._getStepsConfiguration(), this._sliderData.entries, t, this._getDirectionForHomeEndKey(e.key));
|
|
879
|
+
this._setValue(t, a);
|
|
762
880
|
}
|
|
763
881
|
}
|
|
764
882
|
_onTrackRangeKeyDown(e) {
|
|
765
883
|
if (this._disabledOrInvalid)
|
|
766
884
|
return;
|
|
767
|
-
const t =
|
|
885
|
+
const t = Y(e, this.keyboardLargeStep, this.mirrored);
|
|
768
886
|
if (t) {
|
|
769
887
|
e.preventDefault();
|
|
770
|
-
const { entries:
|
|
771
|
-
this._setValues(
|
|
888
|
+
const { entries: n } = Pe(this._getStepsConfiguration(), this._sliderData.entries, t.direction, t.count);
|
|
889
|
+
this._setValues(n);
|
|
772
890
|
return;
|
|
773
891
|
}
|
|
774
|
-
if (
|
|
892
|
+
if (J(e.key)) {
|
|
775
893
|
e.preventDefault();
|
|
776
|
-
const
|
|
777
|
-
this._setValues(
|
|
894
|
+
const n = $e(this._getStepsConfiguration(), this._sliderData.entries, this._getDirectionForHomeEndKey(e.key));
|
|
895
|
+
this._setValues(n);
|
|
778
896
|
}
|
|
779
897
|
}
|
|
780
898
|
_getStepsConfiguration() {
|
|
@@ -787,21 +905,38 @@ class Pe extends ee {
|
|
|
787
905
|
};
|
|
788
906
|
}
|
|
789
907
|
_getDirectionForHomeEndKey(e) {
|
|
790
|
-
return this.isHorizontal && this.mirrored || this.layout === "vertical" ? e ===
|
|
908
|
+
return this.isHorizontal && this.mirrored || this.layout === "vertical" ? e === _.jumpToEnd ? -1 : 1 : e === _.jumpToStart ? -1 : 1;
|
|
791
909
|
}
|
|
792
910
|
_setActivePart(e) {
|
|
793
|
-
this._activePart !== e && (this._activePart = e, this.arcgisActiveValueChange.emit());
|
|
911
|
+
this._activePart !== e && (this._activePart = e, this._updatePopoverReferenceElement(), this.arcgisActiveValueChange.emit());
|
|
912
|
+
}
|
|
913
|
+
_resolveFillPlacement(e) {
|
|
914
|
+
const { fillPlacement: t } = this;
|
|
915
|
+
return e ? t === "between" || t === "not-between" || t === "none" ? t : "between" : t === "start" || t === "end" || t === "none" ? t : "start";
|
|
916
|
+
}
|
|
917
|
+
_updatePopoverReferenceElement() {
|
|
918
|
+
const { _activePart: e, popoverDisplay: t } = this;
|
|
919
|
+
let n = "";
|
|
920
|
+
if (this._hasPopoverContent)
|
|
921
|
+
if (t === "always" && this.values.length > 1) {
|
|
922
|
+
const s = Array.from(this._sliderData.entries), [l, c] = s[0];
|
|
923
|
+
n = s.every(([, h]) => h === c) ? l : "track-range";
|
|
924
|
+
} else e && Oe(e) ? n = e : this.values.length > 1 ? n = "track-range" : n = this._sliderData.entries.keys().next().value ?? "";
|
|
925
|
+
let i = null;
|
|
926
|
+
n && (n === "track-range" ? i = this.renderRoot.querySelector("#track-range") : i = Q(this, n));
|
|
927
|
+
const a = i?.getBoundingClientRect(), o = !!a && a.width > 0 && a.height > 0;
|
|
928
|
+
this._measurablePopoverReferenceElement = o ? n : "";
|
|
794
929
|
}
|
|
795
930
|
render() {
|
|
796
|
-
return w`<div class=${
|
|
931
|
+
return w`<div class=${S({
|
|
797
932
|
content: !0,
|
|
798
933
|
disabled: this._disabledOrInvalid
|
|
799
934
|
})} @pointerdown=${this._onPointerDown}>${this._renderContentStart()}${this._renderContentEnd()}${this._renderRangeLabel("min")}${this._renderTrackRange()}${this._renderRangeLabel("max")}${this._renderPopover()}</div>`;
|
|
800
935
|
}
|
|
801
936
|
_renderPopover() {
|
|
802
|
-
const { _activePart: e, layout: t,
|
|
803
|
-
let
|
|
804
|
-
return
|
|
937
|
+
const { _activePart: e, layout: t, popoverDisplay: n, popoverLabel: i, popoverPlacement: a, valueLabelsDisplay: o, valueLabelsPlacement: s } = this, l = this._measurablePopoverReferenceElement, c = this._hasPopoverContent && !!l && (n === "always" || !!e), d = t === "horizontal" ? a === "start" ? "top" : "bottom" : a === "start" ? "left" : "right";
|
|
938
|
+
let h = 14;
|
|
939
|
+
return l && l !== "track-range" && (h -= 1), o !== "hidden" && a === s && (h += 24), w`<calcite-popover class="popover" focus-trap-disabled .label=${i} .open=${c} .offsetDistance=${h} .placement=${d} .referenceElement=${l} scale=s trigger-disabled ${U(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`;
|
|
805
940
|
}
|
|
806
941
|
_renderContentStart() {
|
|
807
942
|
return w`<div class="content-start" .hidden=${!this._hasContentStart}><slot name=content-start @slotchange=${this._onContentStartSlotChange}></slot></div>`;
|
|
@@ -810,52 +945,67 @@ class Pe extends ee {
|
|
|
810
945
|
return w`<div class="content-end" .hidden=${!this._hasContentEnd}><slot name=content-end @slotchange=${this._onContentEndSlotChange}></slot></div>`;
|
|
811
946
|
}
|
|
812
947
|
_renderTrackRange() {
|
|
813
|
-
return w`<div class="track-container">${this._renderTrack()}
|
|
948
|
+
return w`<div class="track-container">${this._renderTrack()}<slot name=track-overlay></slot>${this._renderThumbs()}${this._renderLabelSeparators()}</div>`;
|
|
949
|
+
}
|
|
950
|
+
_renderLabelSeparators() {
|
|
951
|
+
const e = Math.max(0, this.values.length - 1);
|
|
952
|
+
return Array.from({ length: e }, (t, n) => q(n, w`<div aria-hidden=true class="label-separator" hidden></div>`));
|
|
814
953
|
}
|
|
815
954
|
_renderTrack() {
|
|
816
|
-
return w`<div class="track" ${
|
|
955
|
+
return w`<div class="track" ${U(this._trackElement)}>${this._renderTrackBackground()}${this._renderFillSegment()}</div>`;
|
|
817
956
|
}
|
|
818
957
|
_renderTrackBackground() {
|
|
819
|
-
const { max: e, min: t, fillPlacement:
|
|
958
|
+
const { max: e, min: t, fillPlacement: n, values: i } = this, a = i.length > 1;
|
|
820
959
|
let o = this._fullMin, s = this._fullMax;
|
|
821
960
|
const l = [];
|
|
822
|
-
return this._invalid ? w`<div class="segment track-bounds" style=${
|
|
961
|
+
return this._invalid ? w`<div class="segment track-bounds" style=${F({ left: "0%", right: "0%", top: "0%", bottom: "0%" })}></div>` : (o < t && (l.push(this._renderSegment(o, t, [
|
|
823
962
|
this.mirrored ? "track-effective-end" : "track-effective-start",
|
|
824
|
-
!
|
|
963
|
+
!a && n === "start" ? "track-fill" : null
|
|
825
964
|
])), o = t), s > e && (l.push(this._renderSegment(e, s, [
|
|
826
965
|
this.mirrored ? "track-effective-start" : "track-effective-end",
|
|
827
|
-
!
|
|
966
|
+
!a && n === "end" ? "track-fill" : null
|
|
828
967
|
])), s = e), l.push(this._renderSegment(o, s, ["track-bounds"])), l);
|
|
829
968
|
}
|
|
830
969
|
_renderFillSegment() {
|
|
831
|
-
const { values: e,
|
|
970
|
+
const { values: e, min: t, max: n } = this;
|
|
832
971
|
if (!e?.length || this._invalid)
|
|
833
972
|
return;
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
973
|
+
const i = [...e].sort((h, u) => h - u), a = i[0], o = i[i.length - 1], s = this._resolveFillPlacement(i.length > 1);
|
|
974
|
+
let l;
|
|
975
|
+
switch (s) {
|
|
976
|
+
case "start":
|
|
977
|
+
t < a && (l = this._renderSegment(t, a, ["track-range"]));
|
|
978
|
+
break;
|
|
979
|
+
case "end":
|
|
980
|
+
n > o && (l = this._renderSegment(o, n, ["track-range"]));
|
|
981
|
+
break;
|
|
982
|
+
case "between":
|
|
983
|
+
i.length > 1 && (l = this._renderSegment(a, o, ["track-range"]));
|
|
984
|
+
break;
|
|
985
|
+
case "not-between":
|
|
986
|
+
i.length > 1 && (l = [this._renderSegment(t, a, ["track-range"]), this._renderSegment(o, n, ["track-range"])]);
|
|
987
|
+
break;
|
|
988
|
+
}
|
|
989
|
+
if (!(i.length > 1))
|
|
990
|
+
return l;
|
|
991
|
+
const c = this.segmentsDraggingDisabled, d = this._renderSegment(a, o, [
|
|
992
|
+
"track-range-interactive",
|
|
993
|
+
s === "between" ? "filled" : null,
|
|
994
|
+
c ? null : "interactive",
|
|
995
|
+
this._activePart === "range" && !this.segmentsDraggingDisabled ? "active" : null
|
|
996
|
+
], {
|
|
848
997
|
id: "track-range",
|
|
849
|
-
onFocus:
|
|
850
|
-
onBlur:
|
|
851
|
-
onPointerDown:
|
|
852
|
-
onKeyDown:
|
|
998
|
+
onFocus: c ? void 0 : this._onTrackFocus,
|
|
999
|
+
onBlur: c ? void 0 : this._onTrackBlur,
|
|
1000
|
+
onPointerDown: c ? void 0 : this._onTrackRangePointerDown,
|
|
1001
|
+
onKeyDown: c ? void 0 : this._onTrackRangeKeyDown
|
|
853
1002
|
});
|
|
1003
|
+
return [l, d];
|
|
854
1004
|
}
|
|
855
|
-
_renderSegment(e, t,
|
|
856
|
-
const { _fullMin:
|
|
857
|
-
|
|
858
|
-
100 -
|
|
1005
|
+
_renderSegment(e, t, n, i) {
|
|
1006
|
+
const { _fullMin: a, _fullMax: o, mirrored: s } = this, l = [
|
|
1007
|
+
B(a, o, T(e, a, o)),
|
|
1008
|
+
100 - B(a, o, T(t, a, o))
|
|
859
1009
|
];
|
|
860
1010
|
s && l.reverse();
|
|
861
1011
|
const c = this.isHorizontal ? {
|
|
@@ -864,59 +1014,81 @@ class Pe extends ee {
|
|
|
864
1014
|
} : {
|
|
865
1015
|
top: `${l[1]}%`,
|
|
866
1016
|
bottom: `${l[0]}%`
|
|
867
|
-
}, d =
|
|
868
|
-
return w`<div id=${i?.id ??
|
|
1017
|
+
}, d = le("segment", ...n);
|
|
1018
|
+
return w`<div id=${i?.id ?? P} class=${S(d)} style=${F(c)} .tabIndex=${i?.onPointerDown ? 0 : -1} @focus=${i?.onFocus} @blur=${i?.onBlur} @pointerdown=${i?.onPointerDown} @keydown=${i?.onKeyDown}></div>`;
|
|
869
1019
|
}
|
|
870
1020
|
_renderThumbs() {
|
|
871
|
-
const { _sliderData: e } = this, t = Array.from(e.entries).filter(([,
|
|
872
|
-
|
|
1021
|
+
const { _sliderData: e } = this, t = Array.from(e.entries).filter(([, i]) => i >= this._fullMin && i <= this._fullMax), n = t.map(([, i]) => i).sort((i, a) => i - a);
|
|
1022
|
+
if (this.valuesDraggingDisabled && n.length > 1) {
|
|
1023
|
+
const i = n[0], a = n.at(-1);
|
|
1024
|
+
if (i != null && a != null) {
|
|
1025
|
+
const o = (i + a) / 2;
|
|
1026
|
+
return [
|
|
1027
|
+
this._renderFixedThumb(o),
|
|
1028
|
+
X(t, ([s, l]) => this._renderThumb(s, l, !0))
|
|
1029
|
+
];
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
return X(t, ([i, a]) => this._renderThumb(i, a, !1));
|
|
873
1033
|
}
|
|
874
|
-
|
|
875
|
-
const {
|
|
876
|
-
return
|
|
1034
|
+
_renderFixedThumb(e) {
|
|
1035
|
+
const { _disabledOrInvalid: t, segmentsDraggingDisabled: n, isHorizontal: i } = this;
|
|
1036
|
+
return w`<div .ariaLabel=${this.messages.sliderValue} .ariaOrientation=${i ? "horizontal" : "vertical"} .ariaValueMax=${this.max} .ariaValueMin=${this.min} .ariaValueNow=${e} class=${S({
|
|
1037
|
+
thumb: !0,
|
|
1038
|
+
"fixed-thumb": !0,
|
|
1039
|
+
active: this._activePart === "range"
|
|
1040
|
+
})} @blur=${this._onTrackBlur} @focus=${this._onTrackFocus} @keydown=${n ? void 0 : this._onTrackRangeKeyDown} @pointerdown=${n ? this._onFixedThumbPointerDown : this._onTrackRangePointerDown} role=slider style=${F({
|
|
1041
|
+
...this._getPositionStyleForElement(e),
|
|
1042
|
+
"z-index": this._activePart === "range" ? 1 : 0
|
|
1043
|
+
})} .tabIndex=${t ? -1 : 0}><div class="thumb-content"><span class="handle"></span></div></div>`;
|
|
1044
|
+
}
|
|
1045
|
+
_renderThumb(e, t, n) {
|
|
1046
|
+
const { valueLabelsDisplay: i } = this, a = this._disabledOrInvalid, o = !n && (this._activePart === e || this._activePart === "range"), s = !n && (this._activePart === "range" || this._activePart === e), l = i === "always" || i === "auto" && (s || n && this._activePart === "range"), c = this.isHorizontal, d = c ? "horizontal" : "vertical", h = `label-${e}`, u = c ? "center" : this.valueLabelsPlacement === "start" ? "end" : "start";
|
|
1047
|
+
return q(e, w`<div id=${e ?? P} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(i ? h : void 0) ?? P} .ariaOrientation=${d} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${S({
|
|
877
1048
|
thumb: !0,
|
|
878
|
-
active:
|
|
879
|
-
|
|
1049
|
+
active: o,
|
|
1050
|
+
"labels-only": n
|
|
1051
|
+
})} data-entry=${e ?? P} @pointerdown=${n ? void 0 : this._onThumbPointerDown} @focus=${n ? void 0 : this._onThumbFocus} @blur=${n ? void 0 : this._onThumbBlur} @keydown=${n ? void 0 : this._onThumbKeyDown} role=slider style=${F({
|
|
880
1052
|
...this._getPositionStyleForElement(t),
|
|
881
|
-
"z-index": this._activePart === e ?
|
|
882
|
-
})} .tabIndex=${
|
|
1053
|
+
"z-index": this._activePart === e ? 2 : 1
|
|
1054
|
+
})} .tabIndex=${n || a ? -1 : 0}><div class="thumb-content"><span class="handle"></span><arcgis-label-input .alignment=${u} class="label" .hidden=${!l} id=${h ?? P} .labelFormatter=${this._valueFormatter} @focus=${a ? void 0 : this._onThumbFocus} @blur=${a ? void 0 : this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${U(this._makeResizeRef())}></arcgis-label-input></div></div>`);
|
|
883
1055
|
}
|
|
884
1056
|
_renderRangeLabel(e) {
|
|
885
1057
|
let t = "center";
|
|
886
|
-
return this.isHorizontal && (t = e === "min" ? "end" : "start", this.rangeLabelsPlacement === "end" && (t = t === "end" ? "start" : "end"), this.mirrored && (t = t === "end" ? "start" : "end")), w`<arcgis-label-input .alignment=${t} class=${
|
|
1058
|
+
return this.isHorizontal && (t = e === "min" ? "end" : "start", this.rangeLabelsPlacement === "end" && (t = t === "end" ? "start" : "end"), this.mirrored && (t = t === "end" ? "start" : "end")), w`<arcgis-label-input .alignment=${t} class=${S(e)} data-type=${e ?? P} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`;
|
|
887
1059
|
}
|
|
888
1060
|
}
|
|
889
|
-
function
|
|
890
|
-
return "dataset" in
|
|
1061
|
+
function Fe(r) {
|
|
1062
|
+
return "dataset" in r && r.tagName === "ARCGIS-LABEL-INPUT" && (r.dataset.type === "min" || r.dataset.type === "max");
|
|
891
1063
|
}
|
|
892
|
-
function
|
|
893
|
-
const e =
|
|
1064
|
+
function $(r) {
|
|
1065
|
+
const e = oe(r, "[data-entry]");
|
|
894
1066
|
return e && "dataset" in e ? e.dataset.entry : null;
|
|
895
1067
|
}
|
|
896
|
-
function
|
|
897
|
-
return typeof
|
|
1068
|
+
function Oe(r) {
|
|
1069
|
+
return typeof r != null && r !== "range";
|
|
898
1070
|
}
|
|
899
|
-
function
|
|
900
|
-
return e ?
|
|
1071
|
+
function Q(r, e) {
|
|
1072
|
+
return e ? r.renderRoot.querySelector(`div[data-entry="${e}"]`) : null;
|
|
901
1073
|
}
|
|
902
|
-
function
|
|
903
|
-
return e ?
|
|
1074
|
+
function Be(r, e) {
|
|
1075
|
+
return e ? r.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`) : null;
|
|
904
1076
|
}
|
|
905
|
-
function
|
|
906
|
-
return e ?
|
|
1077
|
+
function Z(r, e) {
|
|
1078
|
+
return e ? r.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`) : null;
|
|
907
1079
|
}
|
|
908
|
-
function
|
|
909
|
-
return
|
|
1080
|
+
function R(r) {
|
|
1081
|
+
return r.isPrimary && r.button === 0;
|
|
910
1082
|
}
|
|
911
|
-
const
|
|
912
|
-
function
|
|
913
|
-
const
|
|
914
|
-
return Number.parseFloat(i.toFixed(
|
|
1083
|
+
const Ae = 5;
|
|
1084
|
+
function B(r, e, t) {
|
|
1085
|
+
const n = e - r, i = (t - r) / n * 100;
|
|
1086
|
+
return Number.parseFloat(i.toFixed(Ae));
|
|
915
1087
|
}
|
|
916
|
-
function
|
|
917
|
-
return Math.max(e, Math.min(t,
|
|
1088
|
+
function T(r, e, t) {
|
|
1089
|
+
return Math.max(e, Math.min(t, r));
|
|
918
1090
|
}
|
|
919
|
-
|
|
1091
|
+
re("arcgis-slider", Me);
|
|
920
1092
|
export {
|
|
921
|
-
|
|
1093
|
+
Me as ArcgisSlider
|
|
922
1094
|
};
|