@arcgis/common-components 4.29.0-beta.9 → 5.0.0-next.113
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 +10 -6
- package/README.md +7 -11
- package/dist/cdn/3IMC7WPT.js +4 -0
- package/dist/cdn/5YNVMDND.js +8210 -0
- package/dist/cdn/7HSGIYZ3.js +4 -0
- package/dist/cdn/A6KSEB4L.js +4 -0
- package/dist/cdn/ATTDNMPR.js +4 -0
- package/dist/cdn/BUBHWLN6.js +4 -0
- package/dist/cdn/DT5IKYJ7.js +4 -0
- package/dist/cdn/EUIIBBJB.js +4 -0
- package/dist/cdn/FCI2DINK.js +4 -0
- package/dist/cdn/HKDSSYVB.js +6 -0
- package/dist/cdn/K5FO4RN2.js +4 -0
- package/dist/cdn/KAU7KW7G.js +4 -0
- package/dist/cdn/KERFLAZ3.js +4 -0
- package/dist/cdn/KHLEMIHM.js +4 -0
- package/dist/cdn/LA42IFVD.js +4 -0
- package/dist/cdn/NSRCPYHV.js +4 -0
- package/dist/cdn/OWSGKCTS.js +4 -0
- package/dist/cdn/QTJ7N5AN.js +4 -0
- package/dist/cdn/R55YNF3U.js +4 -0
- package/dist/cdn/RHTIRANW.js +4 -0
- package/dist/cdn/UBSKN7TI.js +4 -0
- package/dist/cdn/UIW36VKA.js +4 -0
- package/dist/cdn/YCMZKETE.js +4 -0
- package/dist/cdn/assets/ckeditor5/translations/af.js +112 -0
- package/dist/cdn/assets/ckeditor5/translations/ar.js +321 -0
- package/dist/cdn/assets/ckeditor5/translations/ast.js +171 -0
- package/dist/cdn/assets/ckeditor5/translations/az.js +292 -0
- package/dist/cdn/assets/ckeditor5/translations/bg.js +319 -0
- package/dist/cdn/assets/ckeditor5/translations/bn.js +314 -0
- package/dist/cdn/assets/ckeditor5/translations/bs.js +163 -0
- package/dist/cdn/assets/ckeditor5/translations/ca.js +318 -0
- package/dist/cdn/assets/ckeditor5/translations/cs.js +314 -0
- package/dist/cdn/assets/ckeditor5/translations/da.js +314 -0
- package/dist/cdn/assets/ckeditor5/translations/de-ch.js +295 -0
- package/dist/cdn/assets/ckeditor5/translations/de.js +319 -0
- package/dist/cdn/assets/ckeditor5/translations/el.js +320 -0
- package/dist/cdn/assets/ckeditor5/translations/en-au.js +299 -0
- package/dist/cdn/assets/ckeditor5/translations/en-gb.js +279 -0
- package/dist/cdn/assets/ckeditor5/translations/eo.js +180 -0
- package/dist/cdn/assets/ckeditor5/translations/es-co.js +158 -0
- package/dist/cdn/assets/ckeditor5/translations/es.js +321 -0
- package/dist/cdn/assets/ckeditor5/translations/et.js +311 -0
- package/dist/cdn/assets/ckeditor5/translations/eu.js +181 -0
- package/dist/cdn/assets/ckeditor5/translations/fa.js +293 -0
- package/dist/cdn/assets/ckeditor5/translations/fi.js +316 -0
- package/dist/cdn/assets/ckeditor5/translations/fr.js +323 -0
- package/dist/cdn/assets/ckeditor5/translations/gl.js +300 -0
- package/dist/cdn/assets/ckeditor5/translations/gu.js +48 -0
- package/dist/cdn/assets/ckeditor5/translations/he.js +309 -0
- package/dist/cdn/assets/ckeditor5/translations/hi.js +315 -0
- package/dist/cdn/assets/ckeditor5/translations/hr.js +306 -0
- package/dist/cdn/assets/ckeditor5/translations/hu.js +318 -0
- package/dist/cdn/assets/ckeditor5/translations/hy.js +131 -0
- package/dist/cdn/assets/ckeditor5/translations/id.js +315 -0
- package/dist/cdn/assets/ckeditor5/translations/it.js +322 -0
- package/dist/cdn/assets/ckeditor5/translations/ja.js +319 -0
- package/dist/cdn/assets/ckeditor5/translations/jv.js +194 -0
- package/dist/cdn/assets/ckeditor5/translations/kk.js +14 -0
- package/dist/cdn/assets/ckeditor5/translations/km.js +187 -0
- package/dist/cdn/assets/ckeditor5/translations/kn.js +181 -0
- package/dist/cdn/assets/ckeditor5/translations/ko.js +309 -0
- package/dist/cdn/assets/ckeditor5/translations/ku.js +292 -0
- package/dist/cdn/assets/ckeditor5/translations/lt.js +325 -0
- package/dist/cdn/assets/ckeditor5/translations/lv.js +314 -0
- package/dist/cdn/assets/ckeditor5/translations/ms.js +314 -0
- package/dist/cdn/assets/ckeditor5/translations/nb.js +262 -0
- package/dist/cdn/assets/ckeditor5/translations/ne.js +279 -0
- package/dist/cdn/assets/ckeditor5/translations/nl.js +318 -0
- package/dist/cdn/assets/ckeditor5/translations/no.js +310 -0
- package/dist/cdn/assets/ckeditor5/translations/oc.js +47 -0
- package/dist/cdn/assets/ckeditor5/translations/pl.js +325 -0
- package/dist/cdn/assets/ckeditor5/translations/pt-br.js +317 -0
- package/dist/cdn/assets/ckeditor5/translations/pt.js +322 -0
- package/dist/cdn/assets/ckeditor5/translations/ro.js +321 -0
- package/dist/cdn/assets/ckeditor5/translations/ru.js +325 -0
- package/dist/cdn/assets/ckeditor5/translations/si.js +112 -0
- package/dist/cdn/assets/ckeditor5/translations/sk.js +316 -0
- package/dist/cdn/assets/ckeditor5/translations/sl.js +192 -0
- package/dist/cdn/assets/ckeditor5/translations/sq.js +292 -0
- package/dist/cdn/assets/ckeditor5/translations/sr-latn.js +299 -0
- package/dist/cdn/assets/ckeditor5/translations/sr.js +316 -0
- package/dist/cdn/assets/ckeditor5/translations/sv.js +315 -0
- package/dist/cdn/assets/ckeditor5/translations/th.js +311 -0
- package/dist/cdn/assets/ckeditor5/translations/tk.js +295 -0
- package/dist/cdn/assets/ckeditor5/translations/tr.js +318 -0
- package/dist/cdn/assets/ckeditor5/translations/tt.js +235 -0
- package/dist/cdn/assets/ckeditor5/translations/ug.js +279 -0
- package/dist/cdn/assets/ckeditor5/translations/uk.js +322 -0
- package/dist/cdn/assets/ckeditor5/translations/ur.js +297 -0
- package/dist/cdn/assets/ckeditor5/translations/uz.js +296 -0
- package/dist/cdn/assets/ckeditor5/translations/vi.js +316 -0
- package/dist/cdn/assets/ckeditor5/translations/zh-cn.js +308 -0
- package/dist/cdn/assets/ckeditor5/translations/zh.js +308 -0
- package/dist/cdn/assets/color-input/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/color-input/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/histogram/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/slider/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/unique-values-list/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +4 -0
- package/dist/cdn/main.css +1 -0
- package/dist/chunks/commonEnums.js +7 -0
- package/dist/chunks/commonFunctions.js +19 -0
- package/dist/chunks/resources.js +15 -0
- package/dist/chunks/runtime.js +17 -0
- package/dist/chunks/useT9n.js +9 -0
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +100 -0
- package/dist/components/arcgis-ckeditor5/customElement.js +36781 -0
- package/dist/components/arcgis-ckeditor5/index.d.ts +1 -0
- package/dist/components/arcgis-ckeditor5/index.js +1 -0
- package/dist/components/arcgis-ckeditor5/resources.d.ts +9 -0
- package/dist/components/arcgis-ckeditor5/types.d.ts +9 -0
- package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +40 -0
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +60 -0
- package/dist/components/arcgis-ckeditor5-popover/index.d.ts +3 -0
- package/dist/components/arcgis-ckeditor5-popover/index.js +3 -0
- package/dist/components/arcgis-color-input/customElement.d.ts +84 -0
- package/dist/components/arcgis-color-input/customElement.js +137 -0
- package/dist/components/arcgis-color-input/index.d.ts +6 -0
- package/dist/components/arcgis-color-input/index.js +6 -0
- package/dist/components/arcgis-field-info/customElement.d.ts +42 -0
- package/dist/components/arcgis-field-info/customElement.js +694 -0
- package/dist/components/arcgis-field-info/index.d.ts +1 -0
- package/dist/components/arcgis-field-info/index.js +1 -0
- package/dist/components/arcgis-field-info/utils/basic.d.ts +52 -0
- package/dist/components/arcgis-field-info/utils/feature.d.ts +21 -0
- package/dist/components/arcgis-field-info/utils/field.d.ts +30 -0
- package/dist/components/arcgis-field-info/utils/index.d.ts +3 -0
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +181 -0
- package/dist/components/arcgis-field-pick-list/customElement.js +267 -0
- package/dist/components/arcgis-field-pick-list/index.d.ts +14 -0
- package/dist/components/arcgis-field-pick-list/index.js +14 -0
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +8 -0
- package/dist/components/arcgis-histogram/css.d.ts +8 -0
- package/dist/components/arcgis-histogram/customElement.d.ts +239 -0
- package/dist/components/arcgis-histogram/customElement.js +198 -0
- package/dist/components/arcgis-histogram/histogramSample.d.ts +25 -0
- package/dist/components/arcgis-histogram/index.d.ts +1 -0
- package/dist/components/arcgis-histogram/index.js +1 -0
- package/dist/components/arcgis-histogram/types.d.ts +46 -0
- package/dist/components/arcgis-histogram/utils.d.ts +19 -0
- package/dist/components/arcgis-label-input/customElement.d.ts +47 -0
- package/dist/components/arcgis-label-input/customElement.js +113 -0
- package/dist/components/arcgis-label-input/index.d.ts +3 -0
- package/dist/components/arcgis-label-input/index.js +3 -0
- package/dist/components/arcgis-picker-input/customElement.d.ts +43 -0
- package/dist/components/arcgis-picker-input/customElement.js +59 -0
- package/dist/components/arcgis-picker-input/index.d.ts +5 -0
- package/dist/components/arcgis-picker-input/index.js +5 -0
- package/dist/components/arcgis-ramp-color/customElement.d.ts +20 -0
- package/dist/components/arcgis-ramp-color/customElement.js +84 -0
- package/dist/components/arcgis-ramp-color/index.d.ts +1 -0
- package/dist/components/arcgis-ramp-color/index.js +1 -0
- package/dist/components/arcgis-ramp-color-break/customElement.d.ts +21 -0
- package/dist/components/arcgis-ramp-color-break/customElement.js +40 -0
- package/dist/components/arcgis-ramp-color-break/index.d.ts +2 -0
- package/dist/components/arcgis-ramp-color-break/index.js +2 -0
- package/dist/components/arcgis-ramp-opacity/customElement.d.ts +20 -0
- package/dist/components/arcgis-ramp-opacity/customElement.js +35 -0
- package/dist/components/arcgis-ramp-opacity/index.d.ts +2 -0
- package/dist/components/arcgis-ramp-opacity/index.js +2 -0
- package/dist/components/arcgis-slider/SliderData.d.ts +37 -0
- package/dist/components/arcgis-slider/customElement.d.ts +288 -0
- package/dist/components/arcgis-slider/customElement.js +851 -0
- package/dist/components/arcgis-slider/index.d.ts +3 -0
- package/dist/components/arcgis-slider/index.js +3 -0
- package/dist/components/arcgis-slider/stepsUtils.d.ts +52 -0
- package/dist/components/arcgis-slider-input/customElement.d.ts +60 -0
- package/dist/components/arcgis-slider-input/customElement.js +31 -0
- package/dist/components/arcgis-slider-input/index.d.ts +3 -0
- package/dist/components/arcgis-slider-input/index.js +3 -0
- package/dist/components/arcgis-ticks/css.d.ts +11 -0
- package/dist/components/arcgis-ticks/customElement.d.ts +97 -0
- package/dist/components/arcgis-ticks/customElement.js +143 -0
- package/dist/components/arcgis-ticks/index.d.ts +1 -0
- package/dist/components/arcgis-ticks/index.js +1 -0
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +91 -0
- package/dist/components/arcgis-unique-values-list/customElement.js +299 -0
- package/dist/components/arcgis-unique-values-list/index.d.ts +8 -0
- package/dist/components/arcgis-unique-values-list/index.js +8 -0
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +10 -0
- package/dist/components/arcgis-unique-values-list/utils/date.d.ts +7 -0
- package/dist/components/arcgis-unique-values-list/utils/domain.d.ts +5 -0
- package/dist/components/arcgis-unique-values-list/utils/field.d.ts +3 -0
- package/dist/components/arcgis-unique-values-list/utils/index.d.ts +4 -0
- package/dist/controllers/useT9n.d.ts +1 -0
- package/dist/docs/api.json +7246 -0
- package/dist/docs/docs.json +6072 -0
- package/dist/docs/vscode.css-custom-data.json +27 -0
- package/dist/docs/vscode.html-custom-data.json +1185 -0
- package/dist/docs/web-types.json +2387 -0
- package/dist/index.d.ts +162 -0
- package/dist/index.js +11 -1
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +25 -0
- package/dist/runtime.d.ts +6 -0
- package/dist/types/components.d.ts +1 -85
- package/dist/types/lumina.d.ts +123 -0
- package/dist/types/preact.d.ts +143 -0
- package/dist/types/react.d.ts +166 -0
- package/dist/types/stencil.d.ts +130 -0
- package/dist/utils/commonEnums.d.ts +5 -0
- package/dist/utils/commonFunctions.d.ts +28 -0
- package/dist/utils/dom.d.ts +7 -0
- package/dist/utils/functional.d.ts +16 -0
- package/dist/utils/functionalComponents/FieldIcons.d.ts +6 -0
- package/dist/utils/storage.d.ts +3 -0
- package/dist/utils/style.d.ts +1 -0
- package/dist/utils/types.d.ts +40 -0
- package/package.json +38 -67
- package/dist/arcgis-common-components/arcgis-common-components.esm.js +0 -1
- package/dist/arcgis-common-components/index.esm.js +0 -0
- package/dist/arcgis-common-components/p-3768a3bb.entry.js +0 -1
- package/dist/arcgis-common-components/p-84fccaad.entry.js +0 -1
- package/dist/arcgis-common-components/p-9625972e.js +0 -1
- package/dist/arcgis-common-components/p-b0c98bba.js +0 -2
- package/dist/cjs/arcgis-api-key.cjs.entry.js +0 -51
- package/dist/cjs/arcgis-common-components.cjs.js +0 -23
- package/dist/cjs/arcgis-identity.cjs.entry.js +0 -139
- package/dist/cjs/index-e8c59179.js +0 -858
- package/dist/cjs/index-f1a937af.js +0 -65
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/components/arcgis-api-key.d.ts +0 -11
- package/dist/components/arcgis-api-key.js +0 -67
- package/dist/components/arcgis-identity.d.ts +0 -11
- package/dist/components/arcgis-identity.js +0 -165
- package/dist/components/index.d.ts +0 -32
- package/dist/components/index.js +0 -3
- package/dist/components/index2.js +0 -40
- package/dist/esm/arcgis-api-key.entry.js +0 -47
- package/dist/esm/arcgis-common-components.js +0 -18
- package/dist/esm/arcgis-identity.entry.js +0 -135
- package/dist/esm/index-1f7e8e45.js +0 -831
- package/dist/esm/index-71b437b1.js +0 -40
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- package/dist/types/components/arcgis-api-key/arcgis-api-key.d.ts +0 -9
- package/dist/types/components/arcgis-identity/arcgis-identity.d.ts +0 -31
- package/dist/types/components/types.d.ts +0 -10
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1637
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
export declare enum Status {
|
|
3
|
+
MISSING = "missing",
|
|
4
|
+
IN_PROGRESS = "inProgress",
|
|
5
|
+
SUCCESS = "success",
|
|
6
|
+
FAILED = "failed"
|
|
7
|
+
}
|
|
8
|
+
export declare enum SimpleFieldTypes {
|
|
9
|
+
DATE = "date",
|
|
10
|
+
DATE_ONLY = "date-only",
|
|
11
|
+
GUID = "guid",
|
|
12
|
+
NUMBER = "number",
|
|
13
|
+
OID = "oid",
|
|
14
|
+
STRING = "string",
|
|
15
|
+
TIME_ONLY = "time-only",
|
|
16
|
+
TIMESTAMP_OFFSET = "timestamp-offset",
|
|
17
|
+
UNKNOWN = "unknown"
|
|
18
|
+
}
|
|
19
|
+
export interface CompFieldInfo {
|
|
20
|
+
layerField: __esri.Field;
|
|
21
|
+
simpleFieldType?: SimpleFieldTypes;
|
|
22
|
+
label: string;
|
|
23
|
+
codedValues?: __esri.CodedValue[];
|
|
24
|
+
}
|
|
25
|
+
export type ComponentProps = {
|
|
26
|
+
view?: __esri.View;
|
|
27
|
+
layer: FieldInfoLayer;
|
|
28
|
+
fieldName: string;
|
|
29
|
+
fieldInfo?: CompFieldInfo;
|
|
30
|
+
statisticsStatus?: Status;
|
|
31
|
+
hideStatistics: boolean;
|
|
32
|
+
};
|
|
33
|
+
export type FieldInfoLayer = __esri.CatalogFootprintLayer | __esri.CatalogLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.ImageryLayer | __esri.ImageryTileLayer | __esri.KnowledgeGraphSublayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.ParquetLayer | __esri.SceneLayer | __esri.StreamLayer | __esri.Sublayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.VoxelLayer | __esri.WCSLayer | __esri.WFSLayer;
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the value is defined
|
|
36
|
+
*
|
|
37
|
+
* @param value - value to check
|
|
38
|
+
*/
|
|
39
|
+
export declare function isDefined<T>(value: T | null | undefined): value is T;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the URL used for queries.
|
|
42
|
+
* E.g. SceneLayers need to use the FeatureLayer URL for queries.
|
|
43
|
+
*
|
|
44
|
+
* @param value - value to check
|
|
45
|
+
*/
|
|
46
|
+
export declare function getQueryURL(layer: __esri.FeatureLayer | __esri.OGCFeatureLayer | __esri.SceneLayer): nullish | string;
|
|
47
|
+
export type FormattingOptions = {
|
|
48
|
+
useFieldFormatting?: boolean;
|
|
49
|
+
isTimeOnly?: boolean;
|
|
50
|
+
};
|
|
51
|
+
export declare const defaultIntlDateFormattingOptions: Intl.DateTimeFormatOptions;
|
|
52
|
+
export declare const defaultIntlTimeFormatingOptions: Intl.DateTimeFormatOptions;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
import { ComponentProps, FieldInfoLayer } from './';
|
|
3
|
+
/**
|
|
4
|
+
* Returns up to 5 features from the layer to get sample data
|
|
5
|
+
*
|
|
6
|
+
* @param props - properties containing layer and view
|
|
7
|
+
*/
|
|
8
|
+
export declare function getOneFeature(props: ComponentProps): Promise<__esri.FeatureSet>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns feature count of layer
|
|
11
|
+
*
|
|
12
|
+
* @param layer - FeatureLayer | WFSLayer | OGCFeatureLayer | StreamLayer | CSVLayer
|
|
13
|
+
* @param mapView - View
|
|
14
|
+
*/
|
|
15
|
+
export declare function getFeatureCountCommon(layer: FieldInfoLayer, view?: __esri.View): Promise<number | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns feature count of feature collection layer
|
|
18
|
+
*
|
|
19
|
+
* @param layer - FeatureLayer
|
|
20
|
+
*/
|
|
21
|
+
export declare function getFeatureCountForCollection(layer: __esri.FeatureLayer): Promise<number>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
import { ComponentProps, CompFieldInfo } from './';
|
|
3
|
+
export type StatisticsResult = __esri.SummaryStatisticsResult & {
|
|
4
|
+
totalCount: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Returns additional field information from layer
|
|
8
|
+
*
|
|
9
|
+
* @param props - properties containing layer and fieldName
|
|
10
|
+
*/
|
|
11
|
+
export declare function getFieldInfo(props: ComponentProps): CompFieldInfo | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Returns feature count in layer
|
|
14
|
+
*
|
|
15
|
+
* @param props - properties containing layer and fieldName
|
|
16
|
+
*/
|
|
17
|
+
export declare function getFeatureCount(props: ComponentProps): Promise<number | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Returns summary statistics
|
|
20
|
+
*
|
|
21
|
+
* @param props - properties containing layer and fieldName
|
|
22
|
+
*/
|
|
23
|
+
export declare function getStatistics(props: ComponentProps): Promise<StatisticsResult>;
|
|
24
|
+
/**
|
|
25
|
+
* Returns unique values
|
|
26
|
+
*
|
|
27
|
+
* @param props - properties containing layer and fieldName
|
|
28
|
+
*/
|
|
29
|
+
export declare function getUniqueValues(props: ComponentProps): Promise<__esri.UniqueValuesResult>;
|
|
30
|
+
export declare function getCodedValues(fieldName: string, props: ComponentProps): any;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference path="../../index.d.ts" />
|
|
3
|
+
import { PublicLitElement as LitElement, TargetedEvent, JsxNode } from '@arcgis/lumina';
|
|
4
|
+
import { PropertyValues } from 'lit';
|
|
5
|
+
import { IPickListFieldInfo, IPickListGroupInfo, IPopoverProps, LastSortBy } from '../../utils/types';
|
|
6
|
+
import { FieldPickListLayer } from './utils/types';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A component that displays a list of fields for selection, inside a popover (default) or just as a list.
|
|
10
|
+
*
|
|
11
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-field-pick-list/)
|
|
12
|
+
*
|
|
13
|
+
* @slot [content-top] - A slot for content on top of the search filter and list, non-scrollable. Valid only if listOnly is not set to true.
|
|
14
|
+
* @slot [content-center] - A slot for content below the search filter and above the list items, will scroll with the list.
|
|
15
|
+
* @slot [content-bottom] - A slot for content below the list, non-scrollable. Valid only if listOnly is not set to true.
|
|
16
|
+
* @slot [content-footer] - A slot for content below the list inside the panel's footer, non-scrollable. Valid only if listOnly is not set to true.
|
|
17
|
+
* @slot [no-fields] - A slot for content, e.g. a message, that displays if the list of fields is empty.
|
|
18
|
+
*/
|
|
19
|
+
export declare class ArcgisFieldPickList extends LitElement {
|
|
20
|
+
/** @deprecated use view instead */
|
|
21
|
+
mapView?: __esri.View;
|
|
22
|
+
/** View instance. */
|
|
23
|
+
view?: __esri.View;
|
|
24
|
+
/** Layer instance. */
|
|
25
|
+
layer?: FieldPickListLayer;
|
|
26
|
+
/**
|
|
27
|
+
* All display fields with name, alias, type, and description, sorted by default order.
|
|
28
|
+
* A field with type "none" will always show at the bottom of the list without an info action.
|
|
29
|
+
*/
|
|
30
|
+
fields: IPickListFieldInfo[] | IPickListGroupInfo[];
|
|
31
|
+
/** The initially selected fields. Will use selectedFields[0] when multiple is set to false. */
|
|
32
|
+
selectedFields: string[];
|
|
33
|
+
/**
|
|
34
|
+
* If true, renders without a popover.
|
|
35
|
+
*
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
listOnly: boolean;
|
|
39
|
+
/** Convenience prop to specify common popover props, `popoverProps.refElement` is required. Valid only if listOnly is not set to true. */
|
|
40
|
+
popoverProps?: IPopoverProps;
|
|
41
|
+
/**
|
|
42
|
+
* If true, displays the field info button. Valid only if listOnly is not set to true.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
showFieldInfo: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* If true, displays an icon corresponding to the field's type.
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
showFieldTypeIcon: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* If true, displays field name. By default only displays field alias.
|
|
55
|
+
*
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
showFieldName: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* If true, displays description. By default only displays field alias.
|
|
61
|
+
*
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
showDescription: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* If true, displays a 'Select All' button on top of the list. Valid only if multiple is set to true.
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
showSelectionAll: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated use hideCancel instead
|
|
73
|
+
* @default true
|
|
74
|
+
*/
|
|
75
|
+
showCancel: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* If true, hides the cancel button. Valid only if listOnly is not set to true.
|
|
78
|
+
*
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
hideCancel: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated use hideSort instead
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
showSort: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* If true, hides the sort menu button.
|
|
89
|
+
*
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
hideSort: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* If true, displays the filter option based on the number of fields.
|
|
95
|
+
*
|
|
96
|
+
* @default 10
|
|
97
|
+
*/
|
|
98
|
+
showFilterLength: number;
|
|
99
|
+
/**
|
|
100
|
+
* If true, allows for multiple selection. If false, the
|
|
101
|
+
* popover will close once an item has been selected.
|
|
102
|
+
*
|
|
103
|
+
* @default false
|
|
104
|
+
*/
|
|
105
|
+
multiple: boolean;
|
|
106
|
+
/** Heading text. Valid only if listOnly is not set to true. */
|
|
107
|
+
heading?: string;
|
|
108
|
+
/** Ok button text. Ok button only shows when multiple set to true. Valid only if listOnly is not set to true. */
|
|
109
|
+
okBtnText?: string;
|
|
110
|
+
/** Filter placeholder text. */
|
|
111
|
+
filterPlaceholderText?: string;
|
|
112
|
+
/** Filter no results text. If empty string ("") no text will be shown. */
|
|
113
|
+
filterNoResultsText?: string;
|
|
114
|
+
/**
|
|
115
|
+
* The initial sort order.
|
|
116
|
+
*
|
|
117
|
+
* @default "default"
|
|
118
|
+
*/
|
|
119
|
+
sortBy: LastSortBy;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated
|
|
122
|
+
* Pass in grouped lists of fields instead.
|
|
123
|
+
* If true, fields and expressions are placed in separate groups.
|
|
124
|
+
* @default false
|
|
125
|
+
*/
|
|
126
|
+
groupFieldsAndExpressions?: boolean | undefined;
|
|
127
|
+
/** Header text for group containing fields, if 'groupFieldsAndExpressions' is set to true. */
|
|
128
|
+
fieldsGroupHeading?: string;
|
|
129
|
+
/** Header text for group containing expressions, if 'groupFieldsAndExpressions' is set to true. */
|
|
130
|
+
expressionsGroupHeading?: string;
|
|
131
|
+
/** Custom function to distinguish expressions from fields. */
|
|
132
|
+
customExpressionCheck?: (field: IPickListFieldInfo) => boolean;
|
|
133
|
+
/** Reposition the component. */
|
|
134
|
+
reposition(): Promise<void>;
|
|
135
|
+
/** Set focus on the component. */
|
|
136
|
+
setFocus(): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Control whether the component is disabled.
|
|
139
|
+
*
|
|
140
|
+
* @param disable
|
|
141
|
+
*/
|
|
142
|
+
setDisabled(disable: boolean): Promise<void>;
|
|
143
|
+
/** Emitted when the selected fields have changed. selectedFields contains fields in order of the user's selection. */
|
|
144
|
+
readonly arcgisChange: TargetedEvent<this, {
|
|
145
|
+
selectedFields: string[];
|
|
146
|
+
}>;
|
|
147
|
+
/** Emitted when the pick list has been closed. */
|
|
148
|
+
readonly arcgisClose: TargetedEvent<this, void | {
|
|
149
|
+
selectedFields: string[];
|
|
150
|
+
}>;
|
|
151
|
+
/** @deprecated use arcgisChange instead */
|
|
152
|
+
readonly arcgisFieldPickListChange: TargetedEvent<this, {
|
|
153
|
+
selectedFields: string[];
|
|
154
|
+
}>;
|
|
155
|
+
/** @deprecated use arcgisClose instead */
|
|
156
|
+
readonly arcgisFieldPickListDismissed: TargetedEvent<this, void | {
|
|
157
|
+
selectedFields: string[];
|
|
158
|
+
}>;
|
|
159
|
+
/** @deprecated use arcgisSortByChange instead */
|
|
160
|
+
readonly arcgisFieldPickListSortByChange: TargetedEvent<this, LastSortBy>;
|
|
161
|
+
/** Emitted when the field pick list sort order has changed. */
|
|
162
|
+
readonly arcgisSortByChange: TargetedEvent<this, LastSortBy>;
|
|
163
|
+
/** Emitted when the edit icon of a field has been clicked. The field must have IPickListFieldInfo.showEditAction set to true. */
|
|
164
|
+
readonly arcgisEditField: TargetedEvent<this, {
|
|
165
|
+
fieldName: string;
|
|
166
|
+
}>;
|
|
167
|
+
/** Emitted when the delete icon of a field has been clicked. The field must have IPickListFieldInfo.showDeleteAction set to true. */
|
|
168
|
+
readonly arcgisDeleteField: TargetedEvent<this, {
|
|
169
|
+
fieldName: string;
|
|
170
|
+
}>;
|
|
171
|
+
"@eventTypes": {
|
|
172
|
+
"arcgisChange": ArcgisFieldPickList["arcgisChange"]["detail"];
|
|
173
|
+
"arcgisClose": ArcgisFieldPickList["arcgisClose"]["detail"];
|
|
174
|
+
"arcgisDeleteField": ArcgisFieldPickList["arcgisDeleteField"]["detail"];
|
|
175
|
+
"arcgisEditField": ArcgisFieldPickList["arcgisEditField"]["detail"];
|
|
176
|
+
"arcgisFieldPickListChange": ArcgisFieldPickList["arcgisFieldPickListChange"]["detail"];
|
|
177
|
+
"arcgisFieldPickListDismissed": ArcgisFieldPickList["arcgisFieldPickListDismissed"]["detail"];
|
|
178
|
+
"arcgisFieldPickListSortByChange": ArcgisFieldPickList["arcgisFieldPickListSortByChange"]["detail"];
|
|
179
|
+
"arcgisSortByChange": ArcgisFieldPickList["arcgisSortByChange"]["detail"];
|
|
180
|
+
};
|
|
181
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
2
|
+
import { keyed as F } from "lit/directives/keyed.js";
|
|
3
|
+
import { LitElement as w, createEvent as n, renderElement as $, safeStyleMap as g, nothing as d, safeClassMap as S } from "@arcgis/lumina";
|
|
4
|
+
import { createRef as r, ref as h } from "lit/directives/ref.js";
|
|
5
|
+
import { html as l, css as C } from "lit";
|
|
6
|
+
import { Task as v } from "@lit/task";
|
|
7
|
+
import { log as u, composeMissingPropertyMessage as k } from "@arcgis/toolkit/log";
|
|
8
|
+
import { f } from "../../chunks/commonEnums.js";
|
|
9
|
+
import { i as B } from "../../chunks/commonFunctions.js";
|
|
10
|
+
import { u as x } from "../../chunks/useT9n.js";
|
|
11
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
13
|
+
v5.0.0-next.113 */
|
|
14
|
+
const o = /* @__PURE__ */ new Map();
|
|
15
|
+
o.set("oid", "key");
|
|
16
|
+
o.set("guid", "key");
|
|
17
|
+
o.set("global-id", "key");
|
|
18
|
+
o.set("blob", "binary");
|
|
19
|
+
o.set("integer", "integer");
|
|
20
|
+
o.set("small-integer", "integer");
|
|
21
|
+
o.set("big-integer", "integer");
|
|
22
|
+
o.set("single", "number");
|
|
23
|
+
o.set("double", "number");
|
|
24
|
+
o.set("long", "number");
|
|
25
|
+
o.set("number", "number");
|
|
26
|
+
o.set("date", "date-time");
|
|
27
|
+
o.set("date-only", "calendar");
|
|
28
|
+
o.set("time-only", "clock");
|
|
29
|
+
o.set("timestamp-offset", "time-zone");
|
|
30
|
+
o.set("string", "string");
|
|
31
|
+
const b = ({ fieldType: p }) => l`<calcite-icon scale=s .icon=${o.get(p)}></calcite-icon>`, E = C`.panel{min-height:250px}.content{max-height:50vh}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`;
|
|
32
|
+
class L extends w {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments), this._messages = x({ blocking: !0 }), this.popoverNode = r(), this.listNode = r(), this.flowElement = r(), this.panelElement = r(), this.dropdownNode = r(), this.fieldInfoFlowItemEl = r(), this.allLists = [], this.filterText = "", this.panelCutOffHeight = 0, this._propWatcherTask = new v(this, {
|
|
35
|
+
task: async ([e]) => {
|
|
36
|
+
if (!this.listOnly && !B(e?.refElement))
|
|
37
|
+
throw u("error", this, k("popoverProps")), new Error();
|
|
38
|
+
this._propWatcherTask.autoRun = !1;
|
|
39
|
+
},
|
|
40
|
+
args: () => [this.popoverProps]
|
|
41
|
+
}), this.fields = [], this.selectedFields = [], this.listOnly = !1, this.showFieldInfo = !1, this.showFieldTypeIcon = !1, this.showFieldName = !1, this.showDescription = !1, this.showSelectionAll = !1, this.showCancel = !0, this.hideCancel = !1, this.showSort = !0, this.hideSort = !1, this.showFilterLength = 10, this.multiple = !1, this.sortBy = "default", this.groupFieldsAndExpressions = !1, this.arcgisChange = n(), this.arcgisClose = n(), this.arcgisFieldPickListChange = n(), this.arcgisFieldPickListDismissed = n(), this.arcgisFieldPickListSortByChange = n(), this.arcgisSortByChange = n(), this.arcgisEditField = n(), this.arcgisDeleteField = n();
|
|
42
|
+
}
|
|
43
|
+
static {
|
|
44
|
+
this.properties = { lastSortBy: 16, filterFields: 16, mapView: 0, view: 0, layer: 0, fields: 0, selectedFields: 0, listOnly: 5, popoverProps: 0, showFieldInfo: 5, showFieldTypeIcon: 5, showFieldName: 5, showDescription: 5, showSelectionAll: 5, showCancel: 5, hideCancel: 5, showSort: 5, hideSort: 5, showFilterLength: 9, multiple: 5, heading: 1, okBtnText: 1, filterPlaceholderText: 1, filterNoResultsText: 1, sortBy: 1, groupFieldsAndExpressions: 5, fieldsGroupHeading: 1, expressionsGroupHeading: 1, customExpressionCheck: 0 };
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
this.styles = E;
|
|
48
|
+
}
|
|
49
|
+
async reposition() {
|
|
50
|
+
await this.popoverNode.value?.reposition();
|
|
51
|
+
}
|
|
52
|
+
async setFocus() {
|
|
53
|
+
setTimeout(() => requestAnimationFrame(() => {
|
|
54
|
+
this.listOnly ? this.listNode.value?.setFocus() : this.panelElement.value?.setFocus();
|
|
55
|
+
}), 1);
|
|
56
|
+
}
|
|
57
|
+
async setDisabled(e) {
|
|
58
|
+
this.panelElement.value && (this.panelElement.value.disabled = e);
|
|
59
|
+
}
|
|
60
|
+
load() {
|
|
61
|
+
!this.view && this.mapView && (this.view = this.mapView), !this.showCancel && !this.hideCancel && (this.hideCancel = !0), !this.showSort && !this.hideSort && (this.hideSort = !0), this.listOnly && this.showFieldInfo && (this.showFieldInfo = !1, u("info", this, "showFieldInfo is not supported if listOnly is true.")), !this.multiple && this.selectedFields.length > 1 && (this.selectedFields = [this.selectedFields[0]]), this.lastSortBy = this.sortBy ?? this.lastSortBy, this.updateGroupedLists();
|
|
62
|
+
}
|
|
63
|
+
willUpdate(e) {
|
|
64
|
+
(e.has("fields") || e.has("lastSortBy") || e.has("customExpressionCheck")) && this.updateGroupedLists();
|
|
65
|
+
}
|
|
66
|
+
loaded() {
|
|
67
|
+
this.setUpObserver(), this.listOnly ? this.listNode.value?.setFocus() : (this.flowElement.value?.setFocus(), this.checkMaxHeight());
|
|
68
|
+
}
|
|
69
|
+
disconnectedCallback() {
|
|
70
|
+
super.disconnectedCallback(), this.observer?.disconnect();
|
|
71
|
+
}
|
|
72
|
+
setUpObserver() {
|
|
73
|
+
this.observer = new MutationObserver((e) => {
|
|
74
|
+
for (const t of e)
|
|
75
|
+
t.attributeName === "style" && this.popoverNode.value && this.dropdownNode.value && this.popoverNode.value.style.visibility === "hidden" && (this.dropdownNode.value.open = !1);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
checkMaxHeight() {
|
|
79
|
+
setTimeout(() => this.checkPanelMaxHeight(), 200), setTimeout(() => this.checkPanelMaxHeight(), 500), setTimeout(() => this.checkPanelMaxHeight(), 1e3), setTimeout(() => this.checkPanelMaxHeight(), 1500);
|
|
80
|
+
}
|
|
81
|
+
checkPanelMaxHeight() {
|
|
82
|
+
if (this.panelCutOffHeight === 0) {
|
|
83
|
+
const e = this.panelElement.value?.getBoundingClientRect();
|
|
84
|
+
if (e && e.bottom > window.innerHeight) {
|
|
85
|
+
this.panelCutOffHeight = e.height - (e.bottom - window.innerHeight) - 5;
|
|
86
|
+
const t = this.listNode.value?.getBoundingClientRect();
|
|
87
|
+
t && (this.listNode.value.style.maxHeight = `${t.height - (e.bottom - window.innerHeight) - 5}px`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
getSortedList(e) {
|
|
92
|
+
let t = [...e];
|
|
93
|
+
const s = t.filter((i) => i.type === "none");
|
|
94
|
+
return t = t.filter((i) => i.type !== "none"), this.lastSortBy === "display" ? t.sort((i, a) => i.alias.localeCompare(a.alias)) : this.lastSortBy === "field" ? t.sort((i, a) => i.name.localeCompare(a.name)) : this.lastSortBy === "type" && t.sort((i, a) => i.type.localeCompare(a.type)), t = t.concat(s), t;
|
|
95
|
+
}
|
|
96
|
+
isExpression(e) {
|
|
97
|
+
return this.customExpressionCheck ? this.customExpressionCheck(e) : e.name.includes(f.expression);
|
|
98
|
+
}
|
|
99
|
+
canDeselectAll() {
|
|
100
|
+
const e = this.getAllFields();
|
|
101
|
+
return this.filterFields?.length ? this.filterContainsAll() : this.selectedFields.length === e.length;
|
|
102
|
+
}
|
|
103
|
+
filterContainsAll() {
|
|
104
|
+
return !!this.filterFields?.every((e) => this.selectedFields.some((t) => t === e));
|
|
105
|
+
}
|
|
106
|
+
showFieldInfoCheck(e) {
|
|
107
|
+
const { layer: t } = this;
|
|
108
|
+
return this.showFieldInfo ? !(!t || this.isExpression(e) || e.name.includes(f.relationship) || e.type === "none") : !1;
|
|
109
|
+
}
|
|
110
|
+
updateGroupedLists() {
|
|
111
|
+
if (!this.fields)
|
|
112
|
+
return;
|
|
113
|
+
if (this.allLists = [], this.usingCustomGroups())
|
|
114
|
+
for (const t of this.fields)
|
|
115
|
+
this.allLists.push({
|
|
116
|
+
title: t.title,
|
|
117
|
+
fields: [...this.getSortedList(t.fields)]
|
|
118
|
+
});
|
|
119
|
+
else
|
|
120
|
+
this.allLists = this.groupFieldsAndExpressions ? [
|
|
121
|
+
{
|
|
122
|
+
title: this.expressionsGroupHeading,
|
|
123
|
+
fields: [...this.getSortedList(this.fields)].filter((t) => this.isExpression(t))
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
title: this.fieldsGroupHeading,
|
|
127
|
+
fields: [...this.getSortedList(this.fields)].filter((t) => !this.isExpression(t))
|
|
128
|
+
}
|
|
129
|
+
] : [
|
|
130
|
+
{
|
|
131
|
+
title: void 0,
|
|
132
|
+
fields: [...this.getSortedList(this.fields)]
|
|
133
|
+
}
|
|
134
|
+
];
|
|
135
|
+
}
|
|
136
|
+
addFieldInfoFlowItem(e, t) {
|
|
137
|
+
const s = this.flowElement.value, i = $(l`<calcite-flow-item selected .heading=${e.alias ?? e.name} .description=${e.name} class="panel" style=${g(this.panelCutOffHeight > 0 ? `max-height: ${this.panelCutOffHeight}px` : "max-height: 50vh")} @calciteFlowItemBack=${(a) => {
|
|
138
|
+
a.currentTarget.remove(), this.fieldInfoFlowItemEl.value.selected = !1, this.panelElement.value.selected = !0, setTimeout(() => {
|
|
139
|
+
t.setFocus();
|
|
140
|
+
}, 300);
|
|
141
|
+
}} ${h(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang ?? d} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);
|
|
142
|
+
s.appendChild(i), this.panelElement.value.selected = !1, this.fieldInfoFlowItemEl?.value.setFocus();
|
|
143
|
+
}
|
|
144
|
+
usingCustomGroups() {
|
|
145
|
+
return !!this.fields.length && "fields" in this.fields[0];
|
|
146
|
+
}
|
|
147
|
+
getAllFields() {
|
|
148
|
+
return this.allLists.map((e) => e.fields).flat();
|
|
149
|
+
}
|
|
150
|
+
render() {
|
|
151
|
+
return this._propWatcherTask.render({
|
|
152
|
+
complete: () => {
|
|
153
|
+
if (this.listOnly)
|
|
154
|
+
return this.renderList();
|
|
155
|
+
const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.popoverProps;
|
|
156
|
+
return this.el.classList.add("js-app-flyout"), l`<calcite-popover .placement=${t.placement ?? "leading-start"} open pointer-disabled .referenceElement=${t.refElement} .offsetDistance=${t.offsetDistance ?? -Math.round(t.refElement.getBoundingClientRect().width)} .offsetSkidding=${t.offsetSkidding ?? 0} .overlayPositioning=${t.overlayPositioning} trigger-disabled .autoClose=${t.autoClose} .label=${this.heading ?? (this.multiple ? this._messages.headerSelect : this._messages.header) ?? ""} @calcitePopoverClose=${() => {
|
|
157
|
+
this.arcgisClose.emit(), this.arcgisFieldPickListDismissed.emit();
|
|
158
|
+
}} ${h(this.popoverNode)}><calcite-flow style=${g({
|
|
159
|
+
width: `${t.popoverWidth ?? t.refElement.getBoundingClientRect().width}px`,
|
|
160
|
+
...t.maxHeight && { maxHeight: t.maxHeight }
|
|
161
|
+
})} ${h(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${() => {
|
|
162
|
+
this.arcgisClose.emit(), this.arcgisFieldPickListDismissed.emit();
|
|
163
|
+
}} ${h(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot><div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple && !this.hideCancel ? l`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>` : l`${this.renderAddButton()}${this.renderCancelButton()}`}</div></calcite-flow-item></calcite-flow></calcite-popover>`;
|
|
164
|
+
},
|
|
165
|
+
error: () => ""
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
renderList() {
|
|
169
|
+
const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.getAllFields(), s = t.length >= this.showFilterLength;
|
|
170
|
+
return l`${t.length ? l`<calcite-list .label=${e} .selectionMode=${this.multiple ? "multiple" : "single"} class=${S(this.listOnly ? "" : "content")} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholderText ?? this._messages.filter} @calciteListChange=${() => {
|
|
171
|
+
const i = this.listNode.value.selectedItems.map((c) => c.value), a = this.selectedFields.filter((c) => i.includes(c)), m = i.filter((c) => !this.selectedFields.includes(c));
|
|
172
|
+
this.selectedFields = [.../* @__PURE__ */ new Set([...a, ...m])], this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields }), this.multiple || (this.arcgisClose.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListDismissed.emit({ selectedFields: this.selectedFields }));
|
|
173
|
+
}} @calciteListFilter=${(i) => {
|
|
174
|
+
i.stopPropagation(), this.filterFields = this.listNode.value.filteredItems?.map((a) => a.value), this.filterText = this.listNode.value.filterText;
|
|
175
|
+
}} ${h(this.listNode)}>${this.renderSortButton()}<slot name=content-center></slot>${this.multiple && this.showSelectionAll && (!s || !this.filterText || this.filterFields?.length) ? this.renderSelectionButton() : null}${this.renderListItems()}</calcite-list>` : l`<slot name=no-fields></slot>`}${this.filterFields && !this.filterFields.length && this.listNode.value && this.filterNoResultsText?.length !== 0 ? l`<div class="no-match-text">${this.filterNoResultsText ?? this._messages.noMatches}</div>` : null}`;
|
|
176
|
+
}
|
|
177
|
+
renderSortButton() {
|
|
178
|
+
const e = this.getAllFields();
|
|
179
|
+
if (!(e.length >= this.showFilterLength && !this.hideSort))
|
|
180
|
+
return;
|
|
181
|
+
const s = e.every((i) => !!i.type);
|
|
182
|
+
return l`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed .disabled=${this.filterFields ? this.filterFields.length < 4 : !1} @calciteDropdownOpen=${() => {
|
|
183
|
+
this.observer?.disconnect(), this.popoverNode.value && this.observer?.observe(this.popoverNode.value, { attributes: !0 });
|
|
184
|
+
}} @calciteDropdownClose=${() => this.observer?.disconnect()} ${h(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort ?? ""} title=${this._messages.sort ?? d}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy === "default"} @click=${() => {
|
|
185
|
+
this.lastSortBy = "default", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
|
|
186
|
+
}} @keydown=${(i) => {
|
|
187
|
+
i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "default", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
|
|
188
|
+
}}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy === "display"} @click=${() => {
|
|
189
|
+
this.lastSortBy = "display", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
|
|
190
|
+
}} @keydown=${(i) => {
|
|
191
|
+
i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "display", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
|
|
192
|
+
}}>${this._messages.displayName}</calcite-dropdown-item>${s && l`<calcite-dropdown-item .selected=${this.lastSortBy === "type"} @click=${() => {
|
|
193
|
+
this.lastSortBy = "type", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
|
|
194
|
+
}} @keydown=${(i) => {
|
|
195
|
+
i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "type", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
|
|
196
|
+
}}>${this._messages.type}</calcite-dropdown-item>` || ""}<calcite-dropdown-item .selected=${this.lastSortBy === "field"} @click=${() => {
|
|
197
|
+
this.lastSortBy = "field", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
|
|
198
|
+
}} @keydown=${(i) => {
|
|
199
|
+
i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "field", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
|
|
200
|
+
}}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`;
|
|
201
|
+
}
|
|
202
|
+
renderSelectionButton() {
|
|
203
|
+
return l`<div class="selection-button-div"><calcite-button appearance=transparent scale=s width=full @click=${() => {
|
|
204
|
+
if (this.canDeselectAll())
|
|
205
|
+
this.selectedFields = this.filterFields?.length ? this.selectedFields.filter((e) => !this.filterFields?.includes(e)) : [];
|
|
206
|
+
else if (this.filterFields?.length)
|
|
207
|
+
this.selectedFields = [.../* @__PURE__ */ new Set([...this.selectedFields, ...this.filterFields])];
|
|
208
|
+
else {
|
|
209
|
+
const t = this.getAllFields();
|
|
210
|
+
this.selectedFields = t.map((s) => s.name);
|
|
211
|
+
}
|
|
212
|
+
this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields });
|
|
213
|
+
}}>${this.canDeselectAll() ? this._messages.deselectAll : this._messages.selectAll}</calcite-button></div>`;
|
|
214
|
+
}
|
|
215
|
+
renderListItems() {
|
|
216
|
+
const e = this.allLists.filter((t) => !!t.fields.length);
|
|
217
|
+
return e.length === 1 && !e[0].title ? e[0].fields.map((t) => this.renderCalciteListItem(t)) : e.map((s) => l`<calcite-list-item-group .heading=${s.title}>${s.fields.map((i) => this.renderCalciteListItem(i))}</calcite-list-item-group>`);
|
|
218
|
+
}
|
|
219
|
+
renderCalciteListItem(e) {
|
|
220
|
+
const t = this.showFieldInfoCheck(e), s = this.showFieldTypeIcon && !!e.type;
|
|
221
|
+
return F(e.name, l`<calcite-list-item .label=${e.alias || e.name} .description=${(() => {
|
|
222
|
+
if (this.showFieldName && e.hideFieldName !== !0)
|
|
223
|
+
return `{${e.name}}`;
|
|
224
|
+
if (this.showDescription && e.hideDescription !== !0 && e.description)
|
|
225
|
+
return e.description;
|
|
226
|
+
})()} .value=${e.name} .selected=${!this.multiple && e.name === this.selectedFields[0] || this.multiple && this.selectedFields.includes(e.name)} .metadata=${{
|
|
227
|
+
label: e.alias,
|
|
228
|
+
fieldName: e.name
|
|
229
|
+
}}>${s && l`<div slot=actions-end class="field-icons">${b({ fieldType: e.type })}</div>` || ""}${this.renderInfoAction(e, t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`);
|
|
230
|
+
}
|
|
231
|
+
renderInfoAction(e, t) {
|
|
232
|
+
const { _messages: s } = this;
|
|
233
|
+
return t ? l`<calcite-action slot=actions-end .text=${s.info} title=${s.info ?? d} scale=s icon=information @click=${(i) => {
|
|
234
|
+
i.stopPropagation();
|
|
235
|
+
const a = i.currentTarget;
|
|
236
|
+
this.addFieldInfoFlowItem(e, a);
|
|
237
|
+
}}></calcite-action>` : "";
|
|
238
|
+
}
|
|
239
|
+
renderEditAction(e) {
|
|
240
|
+
const { _messages: t } = this;
|
|
241
|
+
return e.showEditAction ? l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit ?? d} scale=s icon=pencil @click=${(s) => {
|
|
242
|
+
s.stopPropagation(), this.arcgisEditField.emit({ fieldName: e.name });
|
|
243
|
+
}}></calcite-action>` : "";
|
|
244
|
+
}
|
|
245
|
+
renderDeleteAction(e) {
|
|
246
|
+
const { _messages: t } = this;
|
|
247
|
+
return e.showDeleteAction ? l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete ?? d} scale=s icon=trash @click=${(s) => {
|
|
248
|
+
s.stopPropagation(), this.arcgisDeleteField.emit({ fieldName: e.name });
|
|
249
|
+
}}></calcite-action>` : "";
|
|
250
|
+
}
|
|
251
|
+
renderAddButton() {
|
|
252
|
+
if (this.multiple)
|
|
253
|
+
return l`<calcite-button .appearance=${this.hideCancel ? "outline-fill" : "solid"} .width=${this.hideCancel ? "full" : "half"} @click=${() => {
|
|
254
|
+
this.arcgisClose.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListDismissed.emit({ selectedFields: this.selectedFields });
|
|
255
|
+
}}>${this.okBtnText || (this.multiple ? this._messages.done : this._messages.ok)}</calcite-button>`;
|
|
256
|
+
}
|
|
257
|
+
renderCancelButton() {
|
|
258
|
+
if (!this.hideCancel)
|
|
259
|
+
return l`<calcite-button appearance=outline-fill .width=${this.multiple ? "half" : "full"} @click=${() => {
|
|
260
|
+
this.arcgisClose.emit(), this.arcgisFieldPickListDismissed.emit();
|
|
261
|
+
}}>${this._messages.cancel}</calcite-button>`;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
y("arcgis-field-pick-list", L);
|
|
265
|
+
export {
|
|
266
|
+
L as ArcgisFieldPickList
|
|
267
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-flow-item";
|
|
3
|
+
import "../arcgis-field-info/index.js";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-popover";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-flow";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-dropdown";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
9
|
+
import "@esri/calcite-components/components/calcite-dropdown-group";
|
|
10
|
+
import "@esri/calcite-components/components/calcite-dropdown-item";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-button";
|
|
12
|
+
import "@esri/calcite-components/components/calcite-list-item-group";
|
|
13
|
+
import "@esri/calcite-components/components/calcite-list-item";
|
|
14
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-flow-item";
|
|
3
|
+
import "../arcgis-field-info/index.js";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-popover";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-flow";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-dropdown";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
9
|
+
import "@esri/calcite-components/components/calcite-dropdown-group";
|
|
10
|
+
import "@esri/calcite-components/components/calcite-dropdown-item";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-button";
|
|
12
|
+
import "@esri/calcite-components/components/calcite-list-item-group";
|
|
13
|
+
import "@esri/calcite-components/components/calcite-list-item";
|
|
14
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/** All supported layer types */
|
|
3
|
+
export type FieldPickListLayer = __esri.CatalogFootprintLayer | __esri.CatalogLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.ImageryLayer | __esri.ImageryTileLayer | __esri.KnowledgeGraphSublayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.ParquetLayer | __esri.SceneLayer | __esri.StreamLayer | __esri.Sublayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.VoxelLayer | __esri.WCSLayer | __esri.WFSLayer;
|
|
4
|
+
export declare enum FieldInfoPrefix {
|
|
5
|
+
expression = "expression/",
|
|
6
|
+
relationship = "relationships/",
|
|
7
|
+
raster = "Raster."
|
|
8
|
+
}
|