@arcgis/common-components 4.29.0-test.0 → 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 +17 -0
- package/README.md +13 -0
- 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 -0
- 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 -0
- 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 +40 -13
- package/arcgis-common-components/arcgis-common-components.esm.js +0 -1
- package/arcgis-common-components/index.esm.js +0 -0
- package/arcgis-common-components/p-3768a3bb.entry.js +0 -1
- package/arcgis-common-components/p-84fccaad.entry.js +0 -1
- package/arcgis-common-components/p-9625972e.js +0 -1
- package/arcgis-common-components/p-b0c98bba.js +0 -2
- package/cjs/arcgis-api-key.cjs.entry.js +0 -51
- package/cjs/arcgis-common-components.cjs.js +0 -23
- package/cjs/arcgis-identity.cjs.entry.js +0 -139
- package/cjs/index-e8c59179.js +0 -858
- package/cjs/index-f1a937af.js +0 -65
- package/cjs/index.cjs.js +0 -2
- package/cjs/loader.cjs.js +0 -22
- package/components/arcgis-api-key.d.ts +0 -11
- package/components/arcgis-api-key.js +0 -67
- package/components/arcgis-identity.d.ts +0 -11
- package/components/arcgis-identity.js +0 -165
- package/components/index.d.ts +0 -32
- package/components/index.js +0 -3
- package/components/index2.js +0 -40
- package/esm/arcgis-api-key.entry.js +0 -47
- package/esm/arcgis-common-components.js +0 -18
- package/esm/arcgis-identity.entry.js +0 -135
- package/esm/index-1f7e8e45.js +0 -831
- package/esm/index-71b437b1.js +0 -40
- package/esm/index.js +0 -1
- package/esm/loader.js +0 -18
- package/esm/polyfills/core-js.js +0 -11
- package/esm/polyfills/css-shim.js +0 -1
- package/esm/polyfills/dom.js +0 -79
- package/esm/polyfills/es5-html-element.js +0 -1
- package/esm/polyfills/index.js +0 -34
- package/esm/polyfills/system.js +0 -6
- package/index.cjs.js +0 -1
- package/index.js +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -21
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
- package/types/components/arcgis-api-key/arcgis-api-key.d.ts +0 -9
- package/types/components/arcgis-identity/arcgis-identity.d.ts +0 -31
- package/types/components/types.d.ts +0 -10
- package/types/components.d.ts +0 -85
- package/types/index.d.ts +0 -1
- package/types/stencil-public-runtime.d.ts +0 -1637
|
@@ -0,0 +1,694 @@
|
|
|
1
|
+
import { c as A } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as q, html as p } from "lit";
|
|
3
|
+
import { keyed as F } from "lit/directives/keyed.js";
|
|
4
|
+
import { ref as E } from "lit/directives/ref.js";
|
|
5
|
+
import { LitElement as L, createEvent as N, safeClassMap as T } from "@arcgis/lumina";
|
|
6
|
+
import { Task as R } from "@lit/task";
|
|
7
|
+
import { log as D, composeMissingPropertyMessage as b } from "@arcgis/toolkit/log";
|
|
8
|
+
import M from "@arcgis/core/config.js";
|
|
9
|
+
import * as _ from "@arcgis/core/core/reactiveUtils.js";
|
|
10
|
+
import * as y from "@arcgis/core/intl.js";
|
|
11
|
+
import * as I from "@arcgis/core/core/lang.js";
|
|
12
|
+
import x from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
13
|
+
import G from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
14
|
+
import { s as C } from "../../chunks/commonFunctions.js";
|
|
15
|
+
import U from "@arcgis/core/rest/support/Query.js";
|
|
16
|
+
import { u as P } from "../../chunks/useT9n.js";
|
|
17
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
18
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
19
|
+
v5.0.0-next.113 */
|
|
20
|
+
var l = /* @__PURE__ */ ((s) => (s.MISSING = "missing", s.IN_PROGRESS = "inProgress", s.SUCCESS = "success", s.FAILED = "failed", s))(l || {}), u = /* @__PURE__ */ ((s) => (s.DATE = "date", s.DATE_ONLY = "date-only", s.GUID = "guid", s.NUMBER = "number", s.OID = "oid", s.STRING = "string", s.TIME_ONLY = "time-only", s.TIMESTAMP_OFFSET = "timestamp-offset", s.UNKNOWN = "unknown", s))(u || {});
|
|
21
|
+
function g(s) {
|
|
22
|
+
return s != null;
|
|
23
|
+
}
|
|
24
|
+
function k(s) {
|
|
25
|
+
return s.type === "scene" ? s.associatedLayer?.url : s.url;
|
|
26
|
+
}
|
|
27
|
+
const Z = {
|
|
28
|
+
dateStyle: "short",
|
|
29
|
+
timeStyle: "short"
|
|
30
|
+
}, Y = {
|
|
31
|
+
timeStyle: "medium"
|
|
32
|
+
};
|
|
33
|
+
function W(s) {
|
|
34
|
+
const { layer: e, fieldName: t } = s;
|
|
35
|
+
let i;
|
|
36
|
+
const n = C(e);
|
|
37
|
+
let a;
|
|
38
|
+
"popupTemplate" in e && (a = e.popupTemplate);
|
|
39
|
+
const r = a ? a.fieldInfos : [];
|
|
40
|
+
return V(s)?.filter((d) => d.name === t).forEach((d) => {
|
|
41
|
+
const c = !n && r ? r.filter((v) => v.fieldName === d.name) : null, o = n ? e.getFieldAlias(t) : c?.length ? c[0].label : d.alias;
|
|
42
|
+
/^raster.(item|service)pixelvalue/iu.test(t) && (d.type = "double");
|
|
43
|
+
const m = {
|
|
44
|
+
layerField: d,
|
|
45
|
+
label: o || d.name
|
|
46
|
+
};
|
|
47
|
+
m.codedValues = j(t, s), H(m), m.simpleFieldType && (i = m);
|
|
48
|
+
}), i;
|
|
49
|
+
}
|
|
50
|
+
function V(s) {
|
|
51
|
+
const { layer: e } = s;
|
|
52
|
+
return e.type === "imagery-tile" || e.type === "wcs" || e.type === "imagery" && e.rasterFields.length ? e.rasterFields : e.fields;
|
|
53
|
+
}
|
|
54
|
+
async function O(s) {
|
|
55
|
+
s.statisticsStatus = l.IN_PROGRESS;
|
|
56
|
+
const { layer: e, view: t } = s;
|
|
57
|
+
if (e.type === "imagery-tile" || e.type === "wcs" || e.type === "stream" || e.type === "voxel")
|
|
58
|
+
throw new Error("could not get feature count");
|
|
59
|
+
try {
|
|
60
|
+
return await K(e, t);
|
|
61
|
+
} catch {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async function Q(s) {
|
|
66
|
+
const { layer: e, view: t, fieldName: i, fieldInfo: n } = s;
|
|
67
|
+
if (e.type === "imagery-tile" || e.type === "wcs" || e.type === "voxel")
|
|
68
|
+
throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");
|
|
69
|
+
if (!n || n.layerField.type === "oid" || n.layerField.type === "guid" || n.layerField.type === "global-id")
|
|
70
|
+
return { totalCount: await O(s), nullcount: 0 };
|
|
71
|
+
try {
|
|
72
|
+
const a = await x({
|
|
73
|
+
layer: e,
|
|
74
|
+
view: t,
|
|
75
|
+
field: i,
|
|
76
|
+
outStatisticTypes: { exclude: ["median"] }
|
|
77
|
+
});
|
|
78
|
+
if (!g(a.count))
|
|
79
|
+
throw new Error("could not get statistics");
|
|
80
|
+
const r = "sourceJSON" in e && e.sourceJSON.maxRecordCount === a.count;
|
|
81
|
+
if (g(a.nullcount) && !r)
|
|
82
|
+
return { ...a, totalCount: a.count + a.nullcount };
|
|
83
|
+
{
|
|
84
|
+
const f = await O(s);
|
|
85
|
+
return { ...a, totalCount: f };
|
|
86
|
+
}
|
|
87
|
+
} catch {
|
|
88
|
+
throw new Error("could not get statistics");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
async function B(s) {
|
|
92
|
+
const { layer: e, view: t, fieldName: i } = s;
|
|
93
|
+
if (e.type === "imagery-tile" || e.type === "wcs" || e.type === "voxel")
|
|
94
|
+
throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");
|
|
95
|
+
e.type === "feature" && !e.url && (e.outFields = ["*"]);
|
|
96
|
+
try {
|
|
97
|
+
return await G({
|
|
98
|
+
layer: e,
|
|
99
|
+
view: t,
|
|
100
|
+
field: i
|
|
101
|
+
});
|
|
102
|
+
} catch {
|
|
103
|
+
throw new Error("could not get unique values");
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function H(s) {
|
|
107
|
+
switch (s.layerField.type) {
|
|
108
|
+
case "string":
|
|
109
|
+
s.simpleFieldType = u.STRING;
|
|
110
|
+
break;
|
|
111
|
+
case "date":
|
|
112
|
+
s.simpleFieldType = u.DATE;
|
|
113
|
+
break;
|
|
114
|
+
case "timestamp-offset":
|
|
115
|
+
s.simpleFieldType = u.TIMESTAMP_OFFSET;
|
|
116
|
+
break;
|
|
117
|
+
case "date-only":
|
|
118
|
+
s.simpleFieldType = u.DATE_ONLY;
|
|
119
|
+
break;
|
|
120
|
+
case "time-only":
|
|
121
|
+
s.simpleFieldType = u.TIME_ONLY;
|
|
122
|
+
break;
|
|
123
|
+
case "oid":
|
|
124
|
+
s.simpleFieldType = u.OID;
|
|
125
|
+
break;
|
|
126
|
+
case "guid":
|
|
127
|
+
case "global-id":
|
|
128
|
+
s.simpleFieldType = u.GUID;
|
|
129
|
+
break;
|
|
130
|
+
case "small-integer":
|
|
131
|
+
case "big-integer":
|
|
132
|
+
case "integer":
|
|
133
|
+
case "single":
|
|
134
|
+
case "double":
|
|
135
|
+
case "long":
|
|
136
|
+
s.simpleFieldType = u.NUMBER;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function j(s, e) {
|
|
141
|
+
const { layer: t } = e;
|
|
142
|
+
if (t.type === "subtype-sublayer" && t.subtypeField === s) {
|
|
143
|
+
const c = t.parent?.subtypes?.find((o) => o.code === t.subtypeCode);
|
|
144
|
+
if (c)
|
|
145
|
+
return [{ code: c.code, name: c.name }];
|
|
146
|
+
}
|
|
147
|
+
if (t.type !== "feature" && t.type !== "imagery")
|
|
148
|
+
return;
|
|
149
|
+
const i = t.type === "feature" ? t.typeIdField : void 0, n = t.type === "feature" ? t.types : void 0;
|
|
150
|
+
let a;
|
|
151
|
+
const f = V(e)?.find((c) => c.name === s), d = f?.domain;
|
|
152
|
+
return t.type === "feature" && i && n ? (i === s ? a = n.map(
|
|
153
|
+
(c) => (
|
|
154
|
+
// fake coded values
|
|
155
|
+
{
|
|
156
|
+
code: c.id,
|
|
157
|
+
name: c.name
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
) : (a = [], n.forEach((c) => {
|
|
161
|
+
if (!c.domains[s] || c.domains[s].type === "inherited") {
|
|
162
|
+
const o = d;
|
|
163
|
+
o?.codedValues && o.codedValues.forEach(async (m) => {
|
|
164
|
+
let v = !1;
|
|
165
|
+
a.forEach((h) => {
|
|
166
|
+
h.code === m.code && (v = !0, `, ${h.name},`.includes(`, ${m.name},`) || (h.name += `, ${m.name}`));
|
|
167
|
+
}), v || a.push(I.clone(m));
|
|
168
|
+
});
|
|
169
|
+
} else c.domains[s].codedValues && c.domains[s].codedValues.forEach(async (o) => {
|
|
170
|
+
let m = !1;
|
|
171
|
+
a.forEach((v) => {
|
|
172
|
+
v.code === o.code && (m = !0, `, ${v.name},`.includes(`, ${o.name},`) || (v.name += `, ${o.name}`));
|
|
173
|
+
}), m || a.push(I.clone(o));
|
|
174
|
+
});
|
|
175
|
+
})), !a.length && d?.codedValues && (a = I.clone(d.codedValues))) : d?.codedValues && (a = f.domain.codedValues), a?.length ? a : null;
|
|
176
|
+
}
|
|
177
|
+
async function J(s) {
|
|
178
|
+
const { view: e, layer: t } = s;
|
|
179
|
+
if (t.type === "imagery" || t.type === "imagery-tile" || t.type === "wcs")
|
|
180
|
+
throw new Error("could not get feature");
|
|
181
|
+
if (t.type === "feature" && !t.url || t.type === "wfs") {
|
|
182
|
+
const i = t.createQuery();
|
|
183
|
+
i.start = 0, i.num = 5, i.outFields = ["*"];
|
|
184
|
+
const n = await t.queryFeatures(i);
|
|
185
|
+
if (n.features.length)
|
|
186
|
+
return n;
|
|
187
|
+
throw new Error("could not get feature");
|
|
188
|
+
} else {
|
|
189
|
+
if (!e)
|
|
190
|
+
return await w(s);
|
|
191
|
+
let i;
|
|
192
|
+
if (t.type === "subtype-sublayer" || t.type === "sublayer") {
|
|
193
|
+
let a = t.parent;
|
|
194
|
+
for (; ["subtype-group", "map-image"].includes(a.type); )
|
|
195
|
+
a = a.parent;
|
|
196
|
+
i = await e.whenLayerView(a);
|
|
197
|
+
} else
|
|
198
|
+
i = await e.whenLayerView(t);
|
|
199
|
+
if (i.availableFields.length === t.fields.length || ["stream", "ogc-feature"].includes(t.type) && i.availableFields.length > 0) {
|
|
200
|
+
const a = t.createQuery();
|
|
201
|
+
a.start = 0, a.num = 5, a.outFields = ["*"];
|
|
202
|
+
const r = await i.queryFeatures(a);
|
|
203
|
+
return r.features?.length ? r : await w(s);
|
|
204
|
+
} else
|
|
205
|
+
return await w(s);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
async function w(s) {
|
|
209
|
+
const { layer: e } = s;
|
|
210
|
+
if (["imagery", "imagery-tile", "stream", "ogc-feature"].includes(e.type))
|
|
211
|
+
throw new Error("cannot get feature from service");
|
|
212
|
+
const t = new U({
|
|
213
|
+
where: "1=1",
|
|
214
|
+
outFields: ["*"],
|
|
215
|
+
returnGeometry: !1
|
|
216
|
+
});
|
|
217
|
+
return "sourceJSON" in e && e.sourceJSON?.advancedQueryCapabilities?.supportsPagination && (t.num = 1), await e.queryFeatures(t);
|
|
218
|
+
}
|
|
219
|
+
async function K(s, e) {
|
|
220
|
+
if (s.type === "feature" && !s.url)
|
|
221
|
+
return await z(s);
|
|
222
|
+
if (s.type === "feature" || s.type === "csv" || s.type === "scene" || s.type === "wfs" || s.type === "geojson")
|
|
223
|
+
return await s.queryFeatureCount();
|
|
224
|
+
if (e && (s.type === "stream" || s.type === "ogc-feature"))
|
|
225
|
+
return await X(s, e);
|
|
226
|
+
}
|
|
227
|
+
async function z(s) {
|
|
228
|
+
const e = s.createQuery();
|
|
229
|
+
e.outFields = ["*"];
|
|
230
|
+
const t = await s.queryFeatures(e);
|
|
231
|
+
if (t.features.length)
|
|
232
|
+
return t.features.length;
|
|
233
|
+
throw new Error("could not get feature count");
|
|
234
|
+
}
|
|
235
|
+
async function X(s, e) {
|
|
236
|
+
return await (await e.whenLayerView(s)).queryFeatureCount();
|
|
237
|
+
}
|
|
238
|
+
const ee = q`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-foreground-1)}.title{font-weight:700;padding:5px 0}.missing,.data{color:#a9a9a9}.count{white-space:nowrap}.section{padding:var(--calcite-space-xs) 0}.statistics-row{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:var(--calcite-space-xs) 0;display:flex;justify-content:space-between}.statistics-row-top-values{border-top:var(--calcite-border-width-sm) solid var(--calctie-color-border-2);padding:20px 0 var(--calcite-space-xs) 0;display:flex;justify-content:space-between}`;
|
|
239
|
+
class te extends L {
|
|
240
|
+
constructor() {
|
|
241
|
+
super(...arguments), this._messages = P({ blocking: !0 }), this._propWatcherTask = new R(this, {
|
|
242
|
+
task: async ([e, t]) => {
|
|
243
|
+
const i = g(e) && g(t);
|
|
244
|
+
if (g(e) || D("error", this, b("layer")), g(t) || D("error", this, b("fieldName")), !i)
|
|
245
|
+
throw new Error();
|
|
246
|
+
await this.processProps(), this._propWatcherTask.autoRun = !1;
|
|
247
|
+
},
|
|
248
|
+
args: () => [this.layer, this.fieldName]
|
|
249
|
+
}), this.oneFeatureResponseStatus = l.MISSING, this.statisticsStatus = l.MISSING, this.uniqueValuesStatus = l.MISSING, this.hideAlias = !1, this.hideNumericFormat = !1, this.hideStatistics = !1, this.arcgisComplete = N(), this.arcgisFieldInfoComplete = N();
|
|
250
|
+
}
|
|
251
|
+
static {
|
|
252
|
+
this.properties = { oneFeatureResponseStatus: 16, oneFeatureResponse: 16, statisticsStatus: 16, statistics: 16, uniqueValuesStatus: 16, uniqueValues: 16, view: 0, layer: 0, fieldName: 1, hideAlias: 5, hideNumericFormat: 5, hideStatistics: 5 };
|
|
253
|
+
}
|
|
254
|
+
static {
|
|
255
|
+
this.styles = ee;
|
|
256
|
+
}
|
|
257
|
+
async refresh() {
|
|
258
|
+
await this.processProps(), this.requestUpdate();
|
|
259
|
+
}
|
|
260
|
+
disconnectedCallback() {
|
|
261
|
+
super.disconnectedCallback(), this.timeZoneHandle?.remove();
|
|
262
|
+
}
|
|
263
|
+
async processProps() {
|
|
264
|
+
const { view: e, layer: t, fieldName: i, hideStatistics: n } = this;
|
|
265
|
+
if (!t || !i)
|
|
266
|
+
return;
|
|
267
|
+
let a;
|
|
268
|
+
if (t.declaredClass === "esri.layers.support.Sublayer") {
|
|
269
|
+
const r = t;
|
|
270
|
+
e && await _.whenOnce(() => !e.updating), a = await r.createFeatureLayer(), await a?.load();
|
|
271
|
+
}
|
|
272
|
+
this.props = {
|
|
273
|
+
view: e,
|
|
274
|
+
layer: a ?? t,
|
|
275
|
+
fieldName: i,
|
|
276
|
+
hideStatistics: n
|
|
277
|
+
}, this.props.fieldInfo = W(this.props), t.type === "scene" && M.request.interceptors?.push({
|
|
278
|
+
urls: `${k(t)}/${t.layerId}`,
|
|
279
|
+
before(r) {
|
|
280
|
+
r.requestOptions.authMode = "no-prompt";
|
|
281
|
+
}
|
|
282
|
+
}), this.oneFeatureResponseStatus = l.IN_PROGRESS;
|
|
283
|
+
try {
|
|
284
|
+
const r = await J(this.props);
|
|
285
|
+
this.oneFeatureResponse = r, this.oneFeatureResponseStatus = l.SUCCESS;
|
|
286
|
+
} catch {
|
|
287
|
+
this.oneFeatureResponseStatus = l.FAILED;
|
|
288
|
+
}
|
|
289
|
+
if (t.type === "stream") {
|
|
290
|
+
this.uniqueValuesStatus = l.FAILED, this.statisticsStatus = l.FAILED;
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
if (n)
|
|
294
|
+
this.uniqueValuesStatus = l.FAILED;
|
|
295
|
+
else {
|
|
296
|
+
this.uniqueValuesStatus = l.IN_PROGRESS;
|
|
297
|
+
try {
|
|
298
|
+
const r = await B(this.props);
|
|
299
|
+
this.uniqueValues = r, r?.uniqueValueInfos?.length ? this.uniqueValuesStatus = l.SUCCESS : this.uniqueValuesStatus = l.FAILED;
|
|
300
|
+
} catch {
|
|
301
|
+
this.uniqueValuesStatus = l.FAILED;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
if (n)
|
|
305
|
+
this.statisticsStatus = l.FAILED;
|
|
306
|
+
else {
|
|
307
|
+
this.statisticsStatus = l.IN_PROGRESS;
|
|
308
|
+
try {
|
|
309
|
+
const r = await Q(this.props);
|
|
310
|
+
if (!g(r.totalCount) && g(r.count) && this.uniqueValuesStatus === l.SUCCESS) {
|
|
311
|
+
const f = this.uniqueValues?.uniqueValueInfos ?? [];
|
|
312
|
+
for (let d = 0; d < f.length; d++) {
|
|
313
|
+
const c = f[d];
|
|
314
|
+
if (c.value === null) {
|
|
315
|
+
r.totalCount = c.count + r.count;
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
r.totalCount ??= r.count;
|
|
320
|
+
}
|
|
321
|
+
this.statistics = r, this.statisticsStatus = l.SUCCESS;
|
|
322
|
+
} catch {
|
|
323
|
+
this.statisticsStatus = l.FAILED;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
this.setUpTimeZoneHandle();
|
|
327
|
+
}
|
|
328
|
+
setUpTimeZoneHandle() {
|
|
329
|
+
this.timeZoneHandle?.remove();
|
|
330
|
+
const { props: e } = this, { view: t, fieldInfo: i } = e;
|
|
331
|
+
[u.DATE, u.TIMESTAMP_OFFSET].includes(this._getStatisticsType(i)) && (this.timeZoneHandle = _.watch(() => t?.timeZone, () => {
|
|
332
|
+
this.requestUpdate();
|
|
333
|
+
}));
|
|
334
|
+
}
|
|
335
|
+
_getFieldTypeLabel(e) {
|
|
336
|
+
const { _messages: t } = this, i = t.fieldTypes;
|
|
337
|
+
switch (e) {
|
|
338
|
+
case "big-integer":
|
|
339
|
+
return i.bigInteger;
|
|
340
|
+
case "date":
|
|
341
|
+
return i.date;
|
|
342
|
+
case "date-only":
|
|
343
|
+
return i.dateOnly;
|
|
344
|
+
case "double":
|
|
345
|
+
return i.double;
|
|
346
|
+
case "global-id":
|
|
347
|
+
return i.globalId;
|
|
348
|
+
case "guid":
|
|
349
|
+
return i.guid;
|
|
350
|
+
case "integer":
|
|
351
|
+
return i.integer;
|
|
352
|
+
case "long":
|
|
353
|
+
return i.long;
|
|
354
|
+
case "oid":
|
|
355
|
+
return i.oid;
|
|
356
|
+
case "single":
|
|
357
|
+
return i.single;
|
|
358
|
+
case "small-integer":
|
|
359
|
+
return i.smallInteger;
|
|
360
|
+
case "string":
|
|
361
|
+
return i.string;
|
|
362
|
+
case "time-only":
|
|
363
|
+
return i.timeOnly;
|
|
364
|
+
case "timestamp-offset":
|
|
365
|
+
return i.timestampOffset;
|
|
366
|
+
default:
|
|
367
|
+
return i.string;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
_getStatisticsType(e) {
|
|
371
|
+
switch (e.layerField.type) {
|
|
372
|
+
case "big-integer":
|
|
373
|
+
case "double":
|
|
374
|
+
case "integer":
|
|
375
|
+
case "single":
|
|
376
|
+
case "small-integer": {
|
|
377
|
+
if (e.codedValues)
|
|
378
|
+
return u.STRING;
|
|
379
|
+
switch (e.layerField.valueType) {
|
|
380
|
+
case "binary":
|
|
381
|
+
case "description":
|
|
382
|
+
case "location-or-place-name":
|
|
383
|
+
case "name-or-title":
|
|
384
|
+
case "ordered-or-ranked":
|
|
385
|
+
case "type-or-category":
|
|
386
|
+
return u.STRING;
|
|
387
|
+
default:
|
|
388
|
+
return u.NUMBER;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
case "date":
|
|
392
|
+
return u.DATE;
|
|
393
|
+
case "date-only":
|
|
394
|
+
return u.DATE_ONLY;
|
|
395
|
+
case "string":
|
|
396
|
+
return u.STRING;
|
|
397
|
+
case "time-only":
|
|
398
|
+
return u.TIME_ONLY;
|
|
399
|
+
case "timestamp-offset":
|
|
400
|
+
return u.TIMESTAMP_OFFSET;
|
|
401
|
+
default:
|
|
402
|
+
return u.STRING;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
_getFieldValueTypeCamelCase(e) {
|
|
406
|
+
switch (e.layerField.valueType) {
|
|
407
|
+
case "count-or-amount":
|
|
408
|
+
return "countOrAmount";
|
|
409
|
+
case "date-and-time":
|
|
410
|
+
return "dateAndTime";
|
|
411
|
+
case "location-or-place-name":
|
|
412
|
+
return "locationOrPlaceName";
|
|
413
|
+
case "name-or-title":
|
|
414
|
+
return "nameOrTitle";
|
|
415
|
+
case "ordered-or-ranked":
|
|
416
|
+
return "orderedOrRanked";
|
|
417
|
+
case "percentage-or-ratio":
|
|
418
|
+
return "percentageOrRatio";
|
|
419
|
+
case "type-or-category":
|
|
420
|
+
return "typeOrCategory";
|
|
421
|
+
case "unique-identifier":
|
|
422
|
+
return "uniqueIdentifier";
|
|
423
|
+
case "phone-number":
|
|
424
|
+
return "phoneNumber";
|
|
425
|
+
case "email-address":
|
|
426
|
+
return "emailAddress";
|
|
427
|
+
default:
|
|
428
|
+
return e.layerField.valueType;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
_getDisplayString(e, t) {
|
|
432
|
+
const { props: i } = this, { fieldInfo: n } = i;
|
|
433
|
+
switch (n.simpleFieldType) {
|
|
434
|
+
case u.DATE:
|
|
435
|
+
return this._getDateString(e, t);
|
|
436
|
+
case u.DATE_ONLY:
|
|
437
|
+
return this._getDateOnlyString(e, t);
|
|
438
|
+
case u.GUID:
|
|
439
|
+
return this._getGuidString(e);
|
|
440
|
+
case u.NUMBER:
|
|
441
|
+
return this._getNumberString(e, t);
|
|
442
|
+
case u.TIME_ONLY:
|
|
443
|
+
return this._getTimeOnlyString(e, t);
|
|
444
|
+
case u.TIMESTAMP_OFFSET:
|
|
445
|
+
return this._getTimestampOffsetString(e, t);
|
|
446
|
+
default:
|
|
447
|
+
return `${e}`;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
_getDateString(e, t) {
|
|
451
|
+
const { view: i } = this.props;
|
|
452
|
+
return i && i.timeZone === "unknown" ? y.formatDate(e, {
|
|
453
|
+
...this.getIntlDateTimeFormattingOptions("short-date-short-time", t),
|
|
454
|
+
timeZone: "utc"
|
|
455
|
+
}) : y.formatDate(e, {
|
|
456
|
+
...this.getIntlDateTimeFormattingOptions("short-date-short-time", t),
|
|
457
|
+
timeZone: i?.timeZone || "system"
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
_getTimestampOffsetString(e, t) {
|
|
461
|
+
const { view: i } = this.props;
|
|
462
|
+
return typeof e == "string" ? i && i.timeZone === "unknown" ? y.formatTimestamp(e, {
|
|
463
|
+
...this.getIntlDateTimeFormattingOptions("short-date-short-time", t),
|
|
464
|
+
timeZone: "utc"
|
|
465
|
+
}) : y.formatTimestamp(e, {
|
|
466
|
+
...this.getIntlDateTimeFormattingOptions("short-date-short-time", t),
|
|
467
|
+
timeZone: i?.timeZone || "system"
|
|
468
|
+
}) : this._getDateString(e, t);
|
|
469
|
+
}
|
|
470
|
+
_getDateOnlyString(e, t) {
|
|
471
|
+
return y.formatDateOnly(e, this.getIntlDateTimeFormattingOptions("short-date", t));
|
|
472
|
+
}
|
|
473
|
+
_getTimeOnlyString(e, t) {
|
|
474
|
+
return typeof e == "string" ? y.formatTimeOnly(e, this.getIntlDateTimeFormattingOptions("short-date-long-time", t)) : y.formatDate(e, {
|
|
475
|
+
...this.getIntlDateTimeFormattingOptions("long-time", {
|
|
476
|
+
...t,
|
|
477
|
+
isTimeOnly: !0
|
|
478
|
+
}),
|
|
479
|
+
timeZone: "utc"
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
_getGuidString(e) {
|
|
483
|
+
return e.startsWith("{") ? e : `{${e}}`;
|
|
484
|
+
}
|
|
485
|
+
_getNumberString(e, t) {
|
|
486
|
+
const i = t?.useFieldFormatting ? e : Math.round(e * 100) / 100;
|
|
487
|
+
return y.formatNumber(i, this.getIntlNumberFormattingOptions(t));
|
|
488
|
+
}
|
|
489
|
+
_printNumValue(e, t) {
|
|
490
|
+
return g(e) ? this._getNumberString(e, t) : "--";
|
|
491
|
+
}
|
|
492
|
+
_setCompleteRef() {
|
|
493
|
+
this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit();
|
|
494
|
+
}
|
|
495
|
+
getCurrentFieldFormat() {
|
|
496
|
+
const { props: e } = this, { layer: t, fieldName: i } = e;
|
|
497
|
+
return (this.originalLayerSupportsFieldConfiguration() ? t.getFieldConfiguration(i) : void 0)?.fieldFormat;
|
|
498
|
+
}
|
|
499
|
+
getIntlNumberFormattingOptions(e) {
|
|
500
|
+
const t = this.getCurrentFieldFormat();
|
|
501
|
+
if (!e?.useFieldFormatting)
|
|
502
|
+
return t ? {
|
|
503
|
+
useGrouping: ["always", "auto"].includes(t.useGrouping)
|
|
504
|
+
} : y.convertNumberFormatToIntlOptions({
|
|
505
|
+
digitSeparator: this.getPopupTemplateFieldInfo()?.format?.digitSeparator ?? !0
|
|
506
|
+
});
|
|
507
|
+
const i = t ? {
|
|
508
|
+
minimumFractionDigits: t.minimumFractionDigits,
|
|
509
|
+
maximumFractionDigits: t.maximumFractionDigits,
|
|
510
|
+
useGrouping: ["always", "auto"].includes(t.useGrouping)
|
|
511
|
+
} : void 0;
|
|
512
|
+
if (i)
|
|
513
|
+
return i;
|
|
514
|
+
const n = this.getPopupTemplateFieldInfo();
|
|
515
|
+
return y.convertNumberFormatToIntlOptions({
|
|
516
|
+
digitSeparator: n?.format?.digitSeparator ?? !0,
|
|
517
|
+
places: n?.format?.places ?? 2
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
getIntlDateTimeFormattingOptions(e, t) {
|
|
521
|
+
const i = this.getCurrentFieldFormat();
|
|
522
|
+
if (!t?.useFieldFormatting)
|
|
523
|
+
return i ? t?.isTimeOnly ? Y : Z : y.convertDateFormatToIntlOptions(e);
|
|
524
|
+
const n = i ? {
|
|
525
|
+
dateStyle: t?.isTimeOnly ? void 0 : i.dateStyle ?? void 0,
|
|
526
|
+
// year/month is overridden if dateStyle is set
|
|
527
|
+
year: i.dateStyle ? void 0 : i.year ?? void 0,
|
|
528
|
+
month: i.dateStyle ? void 0 : i.month ?? void 0,
|
|
529
|
+
timeStyle: i.timeStyle ?? void 0,
|
|
530
|
+
hourCycle: i.hour12 === "never" ? "h23" : "h11"
|
|
531
|
+
} : void 0;
|
|
532
|
+
if (n)
|
|
533
|
+
return n;
|
|
534
|
+
const a = this.getPopupTemplateFieldInfo();
|
|
535
|
+
return y.convertDateFormatToIntlOptions(a?.format?.dateFormat ?? e);
|
|
536
|
+
}
|
|
537
|
+
originalLayerSupportsFieldConfiguration() {
|
|
538
|
+
const { layer: e } = this;
|
|
539
|
+
return C(e);
|
|
540
|
+
}
|
|
541
|
+
getPopupTemplateFieldInfo() {
|
|
542
|
+
const { props: e } = this, { layer: t, fieldName: i } = e;
|
|
543
|
+
return ("popupTemplate" in t ? t.popupTemplate : void 0)?.fieldInfos?.find((a) => a.fieldName === i);
|
|
544
|
+
}
|
|
545
|
+
render() {
|
|
546
|
+
return this._propWatcherTask.render({
|
|
547
|
+
complete: () => {
|
|
548
|
+
const { props: e } = this, { fieldInfo: t } = e;
|
|
549
|
+
return t ? p`<div class="container">${this.renderFieldType()}${this.renderFieldAlias()}${this.renderFieldDescription()}${this.renderFieldValueType()}${this.renderFieldSampleValue()}${this.renderFieldNumericFormat()}${this.renderFieldStatistics()}</div>` : "";
|
|
550
|
+
},
|
|
551
|
+
error: () => ""
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
renderFieldType() {
|
|
555
|
+
const { _messages: e, props: t } = this, { fieldInfo: i } = t, n = this._getFieldTypeLabel(i.layerField.type);
|
|
556
|
+
return p`<div class="section"><div class="title">${e.fieldType}</div><div>${n}</div></div>`;
|
|
557
|
+
}
|
|
558
|
+
renderFieldAlias() {
|
|
559
|
+
const { _messages: e, props: t, hideAlias: i } = this, { fieldInfo: n } = t;
|
|
560
|
+
return i ? "" : p`<div class="section"><div class="title">${e.fieldAlias}</div><div>${n.label}</div></div>`;
|
|
561
|
+
}
|
|
562
|
+
renderFieldDescription() {
|
|
563
|
+
const { _messages: e, props: t } = this, { layer: i } = t;
|
|
564
|
+
if (i.type !== "feature")
|
|
565
|
+
return "";
|
|
566
|
+
const { fieldInfo: n } = t, a = n.layerField.description;
|
|
567
|
+
return p`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${T({
|
|
568
|
+
missing: !a
|
|
569
|
+
})}>${a || e.fieldDescriptionNotSet}</div></div>`;
|
|
570
|
+
}
|
|
571
|
+
renderFieldValueType() {
|
|
572
|
+
const { _messages: e, props: t } = this, { layer: i } = t;
|
|
573
|
+
if (i.type !== "feature")
|
|
574
|
+
return "";
|
|
575
|
+
const { fieldInfo: n } = t, a = this._getFieldValueTypeCamelCase(n);
|
|
576
|
+
return p`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${T(a ? "" : "missing")}>${a ? e.fieldValueTypes[a] : e.fieldValueTypeNotSet}</div></div>`;
|
|
577
|
+
}
|
|
578
|
+
renderFieldSampleValue() {
|
|
579
|
+
const { oneFeatureResponse: e, oneFeatureResponseStatus: t, statisticsStatus: i, statistics: n, uniqueValuesStatus: a, uniqueValues: r, _messages: f, props: d } = this, { layer: c, fieldName: o, fieldInfo: m } = d, { statistics: v } = f;
|
|
580
|
+
let h;
|
|
581
|
+
if (["imagery-tile", "voxel"].includes(c.type) || c.type !== "stream" && [u.STRING, u.OID, u.GUID].includes(this._getStatisticsType(m)) && a !== l.FAILED)
|
|
582
|
+
return "";
|
|
583
|
+
t === l.SUCCESS ? e.features.forEach((S) => {
|
|
584
|
+
(h === void 0 || h === null && S.attributes[o] !== null) && (h = S.attributes[o]);
|
|
585
|
+
}) : i === l.SUCCESS ? h = n?.min : a === l.SUCCESS && (h = r?.uniqueValueInfos?.[0]?.value || r?.uniqueValueInfos?.[1]?.value);
|
|
586
|
+
const $ = m.codedValues;
|
|
587
|
+
return g(h) && ($ ? h = $.find((S) => h === S.code)?.name || h : h = this._getDisplayString(h, { useFieldFormatting: !0 })), p`<div class="section"><div class="title">${f.fieldSampleValue}</div><div class=${T(t === l.FAILED && i === l.FAILED && a === l.FAILED || !g(h) ? "missing" : "")}>${t === l.SUCCESS || i === l.SUCCESS || a === l.SUCCESS ? h?.toString() ?? v.allNulls : t === l.FAILED && i === l.FAILED && a === l.FAILED ? f.fieldSampleNotAvailable : f.fieldSampleRetrieving}</div></div>`;
|
|
588
|
+
}
|
|
589
|
+
renderFieldNumericFormat() {
|
|
590
|
+
const { _messages: e, props: t, hideNumericFormat: i } = this, { fieldName: n, fieldInfo: a, layer: r } = t;
|
|
591
|
+
if (i || !["double", "long", "single"].includes(a.layerField.type))
|
|
592
|
+
return "";
|
|
593
|
+
const f = this.originalLayerSupportsFieldConfiguration() ? r.getFieldConfiguration(n) : void 0;
|
|
594
|
+
if (f?.fieldFormat) {
|
|
595
|
+
const { minimumFractionDigits: c, maximumFractionDigits: o } = f.fieldFormat;
|
|
596
|
+
return p`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldMinimumFractionDigits.replace("${number}", c.toString())}</div><div>${e.fieldMaximumFractionDigits.replace("${number}", o.toString())}</div></div>`;
|
|
597
|
+
}
|
|
598
|
+
const d = "popupTemplate" in r ? r.popupTemplate : void 0;
|
|
599
|
+
if (d?.fieldInfos) {
|
|
600
|
+
const c = d.fieldInfos?.filter((o) => o.fieldName === n);
|
|
601
|
+
if (c?.length) {
|
|
602
|
+
const o = c[0];
|
|
603
|
+
if (g(o?.format?.places)) {
|
|
604
|
+
const m = o.format.places;
|
|
605
|
+
return p`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}", m.toString())}</div></div>`;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
return p`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div class="missing">${e.fieldDecimalPlacesNotAvailable}</div></div>`;
|
|
610
|
+
}
|
|
611
|
+
renderFieldStatistics() {
|
|
612
|
+
const { statisticsStatus: e, uniqueValuesStatus: t, hideStatistics: i, _messages: n, props: a } = this, { layer: r, fieldInfo: f } = a;
|
|
613
|
+
return i ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : ["stream", "imagery-tile", "voxel"].includes(r.type) || ["long"].includes(f.layerField.type) ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : p`<div class="section"><div class="title">${n.fieldStatistics}</div>${!e || e === l.MISSING || e === l.IN_PROGRESS ? F("field-info-statistics-content", p`<div class="missing">${n.fieldStatisticsRetrieving}</div>`) : e === l.FAILED && t !== l.SUCCESS ? this.renderNoStatistics() : F("field-info-statistics-content", p`<div ${E(this._setCompleteRef)}>${this.renderStatistics()}</div>`)}</div>`;
|
|
614
|
+
}
|
|
615
|
+
renderNoStatistics() {
|
|
616
|
+
const { _messages: e } = this;
|
|
617
|
+
return F("field-info-statistics-content", p`<div class="missing" ${E(this._setCompleteRef)}>${e.fieldStatisticsNotAvailable}</div>`);
|
|
618
|
+
}
|
|
619
|
+
renderStatistics() {
|
|
620
|
+
const { props: e } = this, { fieldInfo: t } = e;
|
|
621
|
+
switch (this._getStatisticsType(t)) {
|
|
622
|
+
case u.NUMBER:
|
|
623
|
+
return this.renderNumberStatistics();
|
|
624
|
+
case u.GUID:
|
|
625
|
+
case u.OID:
|
|
626
|
+
case u.STRING:
|
|
627
|
+
return this.renderStringStatistics();
|
|
628
|
+
case u.DATE:
|
|
629
|
+
case u.DATE_ONLY:
|
|
630
|
+
case u.TIME_ONLY:
|
|
631
|
+
case u.TIMESTAMP_OFFSET:
|
|
632
|
+
return this.renderDateStatistics();
|
|
633
|
+
default:
|
|
634
|
+
return "";
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
renderNumberStatistics() {
|
|
638
|
+
const { statistics: e, _messages: t } = this;
|
|
639
|
+
if (!e)
|
|
640
|
+
return this.renderNoStatistics();
|
|
641
|
+
const { statistics: i } = t;
|
|
642
|
+
return p`<div><div class="statistics-row"><div>${i.numberOfValues}</div><div class="data">${this._printNumValue(e.totalCount)}</div></div>${g(e.sum) ? p`<div class="statistics-row"><div>${i.sumOfValues}</div><div class="data">${this._printNumValue(e.sum)}</div></div>` : null}${g(e.min) ? p`<div class="statistics-row"><div>${i.minimum}</div><div class="data">${this._printNumValue(e.min)}</div></div>` : null}${g(e.max) ? p`<div class="statistics-row"><div>${i.maximum}</div><div class="data">${this._printNumValue(e.max)}</div></div>` : null}${g(e.avg) ? p`<div class="statistics-row"><div>${i.average}</div><div class="data">${this._printNumValue(e.avg)}</div></div>` : null}${g(e.stddev) ? p`<div class="statistics-row"><div>${i.standardDeviation}</div><div class="data">${this._printNumValue(e.stddev)}</div></div>` : null}${this.renderNullValues()}</div>`;
|
|
643
|
+
}
|
|
644
|
+
renderStringStatistics() {
|
|
645
|
+
const { statistics: e, uniqueValuesStatus: t, _messages: i } = this, { statistics: n } = i;
|
|
646
|
+
return p`<div><div class="statistics-row"><div>${n.numberOfValues}</div>${t !== l.SUCCESS ? p`<div class="missing">--</div>` : p`<div class="data">${this._printNumValue(e?.totalCount)}</div>`}</div>${this.renderNullValues()}${this.renderTopValues()}</div>`;
|
|
647
|
+
}
|
|
648
|
+
renderDateStatistics() {
|
|
649
|
+
const { statistics: e, view: t, props: i, _messages: n } = this, { fieldInfo: a } = i;
|
|
650
|
+
if (!e || !g(e.max) || !g(e.min))
|
|
651
|
+
return this.renderNoStatistics();
|
|
652
|
+
const { statistics: r } = n, f = e.max - e.min, d = Math.floor(f / 31536e6);
|
|
653
|
+
let c = Math.floor((f - d * 31536e6) / 2628e6), o = Math.ceil((f - c * 2628e6) / 864e5);
|
|
654
|
+
o >= 30 && (c += 1, o = 0);
|
|
655
|
+
let m = d === 1 ? r.timeSpanOptions.year : d > 1 ? r.timeSpanOptions.years.replace("${years}", d.toString()) : "";
|
|
656
|
+
m += d > 0 && (c > 0 || o > 0) ? ", " : "", m += c === 1 ? r.timeSpanOptions.month : c > 1 ? r.timeSpanOptions.months.replace("${months}", c.toString()) : "", m += c > 0 && o > 0 ? ", " : "", m += o === 1 ? r.timeSpanOptions.day : o > 1 ? r.timeSpanOptions.days.replace("${days}", o.toString()) : "";
|
|
657
|
+
const v = a.simpleFieldType !== u.TIMESTAMP_OFFSET || !t || t.timeZone !== "unknown", h = a.simpleFieldType === u.TIME_ONLY;
|
|
658
|
+
return p`<div><div class="statistics-row"><div>${r.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${v && g(e.min) ? p`<div class="statistics-row"><div>${h ? r.minimumTime : r.minimumDate}</div><div class="data">${this._getDisplayString(e.min)}</div></div>` : null}${v && g(e.max) ? p`<div class="statistics-row"><div>${h ? r.maximumTime : r.maximumDate}</div><div class="data">${this._getDisplayString(e.max)}</div></div>` : null}${v && g(e.avg) ? p`<div class="statistics-row"><div>${h ? r.averageTime : r.averageDate}</div><div class="data">${this._getDisplayString(e.avg)}</div></div>` : null}${v && !h && g(e.min) && g(e.max) && f > 0 ? p`<div class="statistics-row"><div>${r.timespan}</div><div class="data">${m}</div></div>` : null}${this.renderNullValues()}</div>`;
|
|
659
|
+
}
|
|
660
|
+
renderTopValues() {
|
|
661
|
+
const { uniqueValues: e, uniqueValuesStatus: t, _messages: i, props: n } = this, { fieldInfo: a } = n, { statistics: r } = i;
|
|
662
|
+
if (e?.uniqueValueInfos?.length) {
|
|
663
|
+
const f = e.uniqueValueInfos;
|
|
664
|
+
f.sort((o, m) => o.count < m.count ? 1 : o.count > m.count ? -1 : 0);
|
|
665
|
+
const d = a.codedValues, c = f.filter((o) => o.value !== null).filter((o, m) => o && m < 10).map((o) => {
|
|
666
|
+
let m = o.value;
|
|
667
|
+
return d ? d.forEach((v) => {
|
|
668
|
+
m === v.code && (m = v.name);
|
|
669
|
+
}) : m = this._getDisplayString(m), p`<div class="statistics-row"><div class="data">${`${m}`}</div><div class="count">${this._printNumValue(o.count)}</div></div>`;
|
|
670
|
+
});
|
|
671
|
+
return c.length ? p`<div><div class="statistics-row-top-values"><div>${f.length > 10 ? r.topTenValues : r.topValues}</div><div>${r.count}</div></div>${c}</div>` : "";
|
|
672
|
+
} else
|
|
673
|
+
return p`<div><div class="statistics-row-top-values"><div>${r.topValues}</div><div>${r.count}</div></div><div class="statistics-row"><div class="missing">${t === l.FAILED ? i.fieldUniqueValuesNotAvailable : i.fieldSampleRetrieving}</div></div></div>`;
|
|
674
|
+
}
|
|
675
|
+
renderNullValues() {
|
|
676
|
+
const { statistics: e, uniqueValues: t, _messages: i } = this, { statistics: n } = i;
|
|
677
|
+
let a = e?.nullcount;
|
|
678
|
+
if (!g(a) && t) {
|
|
679
|
+
const r = t.uniqueValueInfos;
|
|
680
|
+
for (let f = 0; f < r.length; f++) {
|
|
681
|
+
const d = r[f];
|
|
682
|
+
if (d.value === null) {
|
|
683
|
+
a = d.count;
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
return p`<div class="statistics-row"><div>${n.numberOfNulls}</div>${g(a) ? p`<div class="data">${this._printNumValue(a)}</div>` : p`<div class="missing">--</div>`}</div>`;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
A("arcgis-field-info", te);
|
|
692
|
+
export {
|
|
693
|
+
te as ArcgisFieldInfo
|
|
694
|
+
};
|