@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
|
@@ -1,831 +0,0 @@
|
|
|
1
|
-
const NAMESPACE = 'arcgis-common-components';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Virtual DOM patching algorithm based on Snabbdom by
|
|
5
|
-
* Simon Friis Vindum (@paldepind)
|
|
6
|
-
* Licensed under the MIT License
|
|
7
|
-
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
|
8
|
-
*
|
|
9
|
-
* Modified for Stencil's renderer and slot projection
|
|
10
|
-
*/
|
|
11
|
-
let queuePending = false;
|
|
12
|
-
const createTime = (fnName, tagName = '') => {
|
|
13
|
-
{
|
|
14
|
-
return () => {
|
|
15
|
-
return;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
const uniqueTime = (key, measureText) => {
|
|
20
|
-
{
|
|
21
|
-
return () => {
|
|
22
|
-
return;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
|
|
27
|
-
const isComplexType = (o) => {
|
|
28
|
-
// https://jsperf.com/typeof-fn-object/5
|
|
29
|
-
o = typeof o;
|
|
30
|
-
return o === 'object' || o === 'function';
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Helper method for querying a `meta` tag that contains a nonce value
|
|
34
|
-
* out of a DOM's head.
|
|
35
|
-
*
|
|
36
|
-
* @param doc The DOM containing the `head` to query against
|
|
37
|
-
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
38
|
-
* exists or the tag has no content.
|
|
39
|
-
*/
|
|
40
|
-
function queryNonceMetaTagContent(doc) {
|
|
41
|
-
var _a, _b, _c;
|
|
42
|
-
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Parse a new property value for a given property type.
|
|
46
|
-
*
|
|
47
|
-
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
48
|
-
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
49
|
-
* 1. `any`, the type given to `propValue` in the function signature
|
|
50
|
-
* 2. the type stored from `propType`.
|
|
51
|
-
*
|
|
52
|
-
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
53
|
-
*
|
|
54
|
-
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
55
|
-
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
56
|
-
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
57
|
-
* ```tsx
|
|
58
|
-
* <my-cmp prop-val={0}></my-cmp>
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* HTML prop values on the other hand, will always a string
|
|
62
|
-
*
|
|
63
|
-
* @param propValue the new value to coerce to some type
|
|
64
|
-
* @param propType the type of the prop, expressed as a binary number
|
|
65
|
-
* @returns the parsed/coerced value
|
|
66
|
-
*/
|
|
67
|
-
const parsePropertyValue = (propValue, propType) => {
|
|
68
|
-
// ensure this value is of the correct prop type
|
|
69
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
70
|
-
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
71
|
-
// per the HTML spec, any string value means it is a boolean true value
|
|
72
|
-
// but we'll cheat here and say that the string "false" is the boolean false
|
|
73
|
-
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
74
|
-
}
|
|
75
|
-
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
76
|
-
// force it to be a number
|
|
77
|
-
return parseFloat(propValue);
|
|
78
|
-
}
|
|
79
|
-
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
80
|
-
// could have been passed as a number or boolean
|
|
81
|
-
// but we still want it as a string
|
|
82
|
-
return String(propValue);
|
|
83
|
-
}
|
|
84
|
-
// redundant return here for better minification
|
|
85
|
-
return propValue;
|
|
86
|
-
}
|
|
87
|
-
// not sure exactly what type we want
|
|
88
|
-
// so no need to change to a different type
|
|
89
|
-
return propValue;
|
|
90
|
-
};
|
|
91
|
-
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
92
|
-
const createEvent = (ref, name, flags) => {
|
|
93
|
-
const elm = getElement(ref);
|
|
94
|
-
return {
|
|
95
|
-
emit: (detail) => {
|
|
96
|
-
return emitEvent(elm, name, {
|
|
97
|
-
bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
|
|
98
|
-
composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
|
|
99
|
-
cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
|
|
100
|
-
detail,
|
|
101
|
-
});
|
|
102
|
-
},
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
107
|
-
* @param elm the target of the Event
|
|
108
|
-
* @param name the name to give the custom Event
|
|
109
|
-
* @param opts options for configuring a custom Event
|
|
110
|
-
* @returns the custom Event
|
|
111
|
-
*/
|
|
112
|
-
const emitEvent = (elm, name, opts) => {
|
|
113
|
-
const ev = plt.ce(name, opts);
|
|
114
|
-
elm.dispatchEvent(ev);
|
|
115
|
-
return ev;
|
|
116
|
-
};
|
|
117
|
-
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
118
|
-
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
119
|
-
let style = styles.get(scopeId);
|
|
120
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
121
|
-
style = (style || new CSSStyleSheet());
|
|
122
|
-
if (typeof style === 'string') {
|
|
123
|
-
style = cssText;
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
style.replaceSync(cssText);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
style = cssText;
|
|
131
|
-
}
|
|
132
|
-
styles.set(scopeId, style);
|
|
133
|
-
};
|
|
134
|
-
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
135
|
-
var _a;
|
|
136
|
-
let scopeId = getScopeId(cmpMeta);
|
|
137
|
-
const style = styles.get(scopeId);
|
|
138
|
-
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
139
|
-
// so the fallback is to always use the document for the root node in those cases
|
|
140
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
141
|
-
if (style) {
|
|
142
|
-
if (typeof style === 'string') {
|
|
143
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
144
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
145
|
-
let styleElm;
|
|
146
|
-
if (!appliedStyles) {
|
|
147
|
-
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
148
|
-
}
|
|
149
|
-
if (!appliedStyles.has(scopeId)) {
|
|
150
|
-
{
|
|
151
|
-
{
|
|
152
|
-
styleElm = doc.createElement('style');
|
|
153
|
-
styleElm.innerHTML = style;
|
|
154
|
-
}
|
|
155
|
-
// Apply CSP nonce to the style tag if it exists
|
|
156
|
-
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
157
|
-
if (nonce != null) {
|
|
158
|
-
styleElm.setAttribute('nonce', nonce);
|
|
159
|
-
}
|
|
160
|
-
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
161
|
-
}
|
|
162
|
-
if (appliedStyles) {
|
|
163
|
-
appliedStyles.add(scopeId);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
168
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
return scopeId;
|
|
172
|
-
};
|
|
173
|
-
const attachStyles = (hostRef) => {
|
|
174
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
175
|
-
const elm = hostRef.$hostElement$;
|
|
176
|
-
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
177
|
-
addStyle(elm.getRootNode(), cmpMeta);
|
|
178
|
-
endAttachStyles();
|
|
179
|
-
};
|
|
180
|
-
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
181
|
-
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
182
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
183
|
-
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
187
|
-
{
|
|
188
|
-
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
189
|
-
}
|
|
190
|
-
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
191
|
-
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
195
|
-
// there is no ancestor component or the ancestor component
|
|
196
|
-
// has already fired off its lifecycle update then
|
|
197
|
-
// fire off the initial update
|
|
198
|
-
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
199
|
-
return writeTask(dispatch) ;
|
|
200
|
-
};
|
|
201
|
-
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
202
|
-
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
203
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
204
|
-
let promise;
|
|
205
|
-
endSchedule();
|
|
206
|
-
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
207
|
-
};
|
|
208
|
-
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
209
|
-
// updateComponent
|
|
210
|
-
const elm = hostRef.$hostElement$;
|
|
211
|
-
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
212
|
-
const rc = elm['s-rc'];
|
|
213
|
-
if (isInitialLoad) {
|
|
214
|
-
// DOM WRITE!
|
|
215
|
-
attachStyles(hostRef);
|
|
216
|
-
}
|
|
217
|
-
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
218
|
-
{
|
|
219
|
-
callRender(hostRef, instance);
|
|
220
|
-
}
|
|
221
|
-
if (rc) {
|
|
222
|
-
// ok, so turns out there are some child host elements
|
|
223
|
-
// waiting on this parent element to load
|
|
224
|
-
// let's fire off all update callbacks waiting
|
|
225
|
-
rc.map((cb) => cb());
|
|
226
|
-
elm['s-rc'] = undefined;
|
|
227
|
-
}
|
|
228
|
-
endRender();
|
|
229
|
-
endUpdate();
|
|
230
|
-
{
|
|
231
|
-
const childrenPromises = elm['s-p'];
|
|
232
|
-
const postUpdate = () => postUpdateComponent(hostRef);
|
|
233
|
-
if (childrenPromises.length === 0) {
|
|
234
|
-
postUpdate();
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
238
|
-
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
239
|
-
childrenPromises.length = 0;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
const callRender = (hostRef, instance, elm) => {
|
|
244
|
-
try {
|
|
245
|
-
instance = instance.render && instance.render();
|
|
246
|
-
{
|
|
247
|
-
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
248
|
-
}
|
|
249
|
-
{
|
|
250
|
-
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
catch (e) {
|
|
254
|
-
consoleError(e, hostRef.$hostElement$);
|
|
255
|
-
}
|
|
256
|
-
return null;
|
|
257
|
-
};
|
|
258
|
-
const postUpdateComponent = (hostRef) => {
|
|
259
|
-
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
260
|
-
const elm = hostRef.$hostElement$;
|
|
261
|
-
const endPostUpdate = createTime('postUpdate', tagName);
|
|
262
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
263
|
-
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
264
|
-
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
265
|
-
{
|
|
266
|
-
// DOM WRITE!
|
|
267
|
-
addHydratedFlag(elm);
|
|
268
|
-
}
|
|
269
|
-
endPostUpdate();
|
|
270
|
-
{
|
|
271
|
-
hostRef.$onReadyResolve$(elm);
|
|
272
|
-
if (!ancestorComponent) {
|
|
273
|
-
appDidLoad();
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
endPostUpdate();
|
|
279
|
-
}
|
|
280
|
-
{
|
|
281
|
-
hostRef.$onInstanceResolve$(elm);
|
|
282
|
-
}
|
|
283
|
-
// load events fire from bottom to top
|
|
284
|
-
// the deepest elements load first then bubbles up
|
|
285
|
-
{
|
|
286
|
-
if (hostRef.$onRenderResolve$) {
|
|
287
|
-
hostRef.$onRenderResolve$();
|
|
288
|
-
hostRef.$onRenderResolve$ = undefined;
|
|
289
|
-
}
|
|
290
|
-
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
291
|
-
nextTick(() => scheduleUpdate(hostRef, false));
|
|
292
|
-
}
|
|
293
|
-
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
294
|
-
}
|
|
295
|
-
// ( •_•)
|
|
296
|
-
// ( •_•)>⌐■-■
|
|
297
|
-
// (⌐■_■)
|
|
298
|
-
};
|
|
299
|
-
const appDidLoad = (who) => {
|
|
300
|
-
// on appload
|
|
301
|
-
// we have finish the first big initial render
|
|
302
|
-
{
|
|
303
|
-
addHydratedFlag(doc.documentElement);
|
|
304
|
-
}
|
|
305
|
-
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
306
|
-
};
|
|
307
|
-
const safeCall = (instance, method, arg) => {
|
|
308
|
-
if (instance && instance[method]) {
|
|
309
|
-
try {
|
|
310
|
-
return instance[method](arg);
|
|
311
|
-
}
|
|
312
|
-
catch (e) {
|
|
313
|
-
consoleError(e);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
return undefined;
|
|
317
|
-
};
|
|
318
|
-
const then = (promise, thenFn) => {
|
|
319
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
320
|
-
};
|
|
321
|
-
const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
|
|
322
|
-
;
|
|
323
|
-
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
324
|
-
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
325
|
-
// check our new property value against our internal value
|
|
326
|
-
const hostRef = getHostRef(ref);
|
|
327
|
-
const elm = hostRef.$hostElement$ ;
|
|
328
|
-
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
329
|
-
const flags = hostRef.$flags$;
|
|
330
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
331
|
-
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
332
|
-
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
333
|
-
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
334
|
-
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
335
|
-
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
336
|
-
// gadzooks! the property's value has changed!!
|
|
337
|
-
// set our new value!
|
|
338
|
-
hostRef.$instanceValues$.set(propName, newVal);
|
|
339
|
-
if (instance) {
|
|
340
|
-
// get an array of method names of watch functions to call
|
|
341
|
-
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
|
342
|
-
const watchMethods = cmpMeta.$watchers$[propName];
|
|
343
|
-
if (watchMethods) {
|
|
344
|
-
// this instance is watching for when this property changed
|
|
345
|
-
watchMethods.map((watchMethodName) => {
|
|
346
|
-
try {
|
|
347
|
-
// fire off each of the watch methods that are watching this property
|
|
348
|
-
instance[watchMethodName](newVal, oldVal, propName);
|
|
349
|
-
}
|
|
350
|
-
catch (e) {
|
|
351
|
-
consoleError(e, elm);
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
357
|
-
// looks like this value actually changed, so we've got work to do!
|
|
358
|
-
// but only if we've already rendered, otherwise just chill out
|
|
359
|
-
// queue that we need to do an update, but don't worry about queuing
|
|
360
|
-
// up millions cuz this function ensures it only runs once
|
|
361
|
-
scheduleUpdate(hostRef, false);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
/**
|
|
367
|
-
* Attach a series of runtime constructs to a compiled Stencil component
|
|
368
|
-
* constructor, including getters and setters for the `@Prop` and `@State`
|
|
369
|
-
* decorators, callbacks for when attributes change, and so on.
|
|
370
|
-
*
|
|
371
|
-
* @param Cstr the constructor for a component that we need to process
|
|
372
|
-
* @param cmpMeta metadata collected previously about the component
|
|
373
|
-
* @param flags a number used to store a series of bit flags
|
|
374
|
-
* @returns a reference to the same constructor passed in (but now mutated)
|
|
375
|
-
*/
|
|
376
|
-
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
377
|
-
if (cmpMeta.$members$) {
|
|
378
|
-
if (Cstr.watchers) {
|
|
379
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
380
|
-
}
|
|
381
|
-
// It's better to have a const than two Object.entries()
|
|
382
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
383
|
-
const prototype = Cstr.prototype;
|
|
384
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
385
|
-
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
386
|
-
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
387
|
-
// proxyComponent - prop
|
|
388
|
-
Object.defineProperty(prototype, memberName, {
|
|
389
|
-
get() {
|
|
390
|
-
// proxyComponent, get value
|
|
391
|
-
return getValue(this, memberName);
|
|
392
|
-
},
|
|
393
|
-
set(newValue) {
|
|
394
|
-
// proxyComponent, set value
|
|
395
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
396
|
-
},
|
|
397
|
-
configurable: true,
|
|
398
|
-
enumerable: true,
|
|
399
|
-
});
|
|
400
|
-
}
|
|
401
|
-
else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
|
|
402
|
-
memberFlags & 64 /* MEMBER_FLAGS.Method */) {
|
|
403
|
-
// proxyComponent - method
|
|
404
|
-
Object.defineProperty(prototype, memberName, {
|
|
405
|
-
value(...args) {
|
|
406
|
-
const ref = getHostRef(this);
|
|
407
|
-
return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
|
|
408
|
-
},
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
413
|
-
const attrNameToPropName = new Map();
|
|
414
|
-
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
415
|
-
plt.jmp(() => {
|
|
416
|
-
const propName = attrNameToPropName.get(attrName);
|
|
417
|
-
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
418
|
-
// in the case where an attribute was set inline.
|
|
419
|
-
// ```html
|
|
420
|
-
// <my-component some-attribute="some-value"></my-component>
|
|
421
|
-
// ```
|
|
422
|
-
//
|
|
423
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
424
|
-
// programmatically changes it before it has been upgraded as shown below:
|
|
425
|
-
//
|
|
426
|
-
// ```html
|
|
427
|
-
// <!-- this component has _not_ been upgraded yet -->
|
|
428
|
-
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
429
|
-
// <script>
|
|
430
|
-
// // grab non-upgraded component
|
|
431
|
-
// el = document.querySelector("#test");
|
|
432
|
-
// el.someAttribute = "another-value";
|
|
433
|
-
// // upgrade component
|
|
434
|
-
// customElements.define('my-component', MyComponent);
|
|
435
|
-
// </script>
|
|
436
|
-
// ```
|
|
437
|
-
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
438
|
-
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
439
|
-
// to the value that was set inline i.e. "some-value" from above example. When
|
|
440
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
441
|
-
//
|
|
442
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
443
|
-
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
444
|
-
//
|
|
445
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
446
|
-
//
|
|
447
|
-
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
448
|
-
// properties here given that this goes against best practices outlined here
|
|
449
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
450
|
-
if (this.hasOwnProperty(propName)) {
|
|
451
|
-
newValue = this[propName];
|
|
452
|
-
delete this[propName];
|
|
453
|
-
}
|
|
454
|
-
else if (prototype.hasOwnProperty(propName) &&
|
|
455
|
-
typeof this[propName] === 'number' &&
|
|
456
|
-
this[propName] == newValue) {
|
|
457
|
-
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
458
|
-
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
459
|
-
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
463
|
-
});
|
|
464
|
-
};
|
|
465
|
-
// create an array of attributes to observe
|
|
466
|
-
// and also create a map of html attribute name to js property name
|
|
467
|
-
Cstr.observedAttributes = members
|
|
468
|
-
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
469
|
-
.map(([propName, m]) => {
|
|
470
|
-
const attrName = m[1] || propName;
|
|
471
|
-
attrNameToPropName.set(attrName, propName);
|
|
472
|
-
return attrName;
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
return Cstr;
|
|
477
|
-
};
|
|
478
|
-
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
479
|
-
// initializeComponent
|
|
480
|
-
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
481
|
-
{
|
|
482
|
-
// we haven't initialized this element yet
|
|
483
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
484
|
-
// lazy loaded components
|
|
485
|
-
// request the component's implementation to be
|
|
486
|
-
// wired up with the host element
|
|
487
|
-
Cstr = loadModule(cmpMeta);
|
|
488
|
-
if (Cstr.then) {
|
|
489
|
-
// Await creates a micro-task avoid if possible
|
|
490
|
-
const endLoad = uniqueTime();
|
|
491
|
-
Cstr = await Cstr;
|
|
492
|
-
endLoad();
|
|
493
|
-
}
|
|
494
|
-
if (!Cstr.isProxied) {
|
|
495
|
-
// we've never proxied this Constructor before
|
|
496
|
-
// let's add the getters/setters to its prototype before
|
|
497
|
-
// the first time we create an instance of the implementation
|
|
498
|
-
{
|
|
499
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
500
|
-
}
|
|
501
|
-
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
502
|
-
Cstr.isProxied = true;
|
|
503
|
-
}
|
|
504
|
-
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
505
|
-
// ok, time to construct the instance
|
|
506
|
-
// but let's keep track of when we start and stop
|
|
507
|
-
// so that the getters/setters don't incorrectly step on data
|
|
508
|
-
{
|
|
509
|
-
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
510
|
-
}
|
|
511
|
-
// construct the lazy-loaded component implementation
|
|
512
|
-
// passing the hostRef is very important during
|
|
513
|
-
// construction in order to directly wire together the
|
|
514
|
-
// host element and the lazy-loaded instance
|
|
515
|
-
try {
|
|
516
|
-
new Cstr(hostRef);
|
|
517
|
-
}
|
|
518
|
-
catch (e) {
|
|
519
|
-
consoleError(e);
|
|
520
|
-
}
|
|
521
|
-
{
|
|
522
|
-
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
523
|
-
}
|
|
524
|
-
{
|
|
525
|
-
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
526
|
-
}
|
|
527
|
-
endNewInstance();
|
|
528
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
529
|
-
}
|
|
530
|
-
if (Cstr.style) {
|
|
531
|
-
// this component has styles but we haven't registered them yet
|
|
532
|
-
let style = Cstr.style;
|
|
533
|
-
const scopeId = getScopeId(cmpMeta);
|
|
534
|
-
if (!styles.has(scopeId)) {
|
|
535
|
-
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
536
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
537
|
-
endRegisterStyles();
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
// we've successfully created a lazy instance
|
|
542
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
543
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
544
|
-
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
545
|
-
// this is the initial load and this component it has an ancestor component
|
|
546
|
-
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
547
|
-
// so let's just cool our jets and wait for the ancestor to continue first
|
|
548
|
-
// this will get fired off when the ancestor component
|
|
549
|
-
// finally gets around to rendering its lazy self
|
|
550
|
-
// fire off the initial update
|
|
551
|
-
ancestorComponent['s-rc'].push(schedule);
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
schedule();
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
const fireConnectedCallback = (instance) => {
|
|
558
|
-
{
|
|
559
|
-
safeCall(instance, 'connectedCallback');
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
const connectedCallback = (elm) => {
|
|
563
|
-
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
564
|
-
const hostRef = getHostRef(elm);
|
|
565
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
566
|
-
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
567
|
-
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
568
|
-
// first time this component has connected
|
|
569
|
-
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
570
|
-
{
|
|
571
|
-
// find the first ancestor component (if there is one) and register
|
|
572
|
-
// this component as one of the actively loading child components for its ancestor
|
|
573
|
-
let ancestorComponent = elm;
|
|
574
|
-
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
575
|
-
// climb up the ancestors looking for the first
|
|
576
|
-
// component that hasn't finished its lifecycle update yet
|
|
577
|
-
if (ancestorComponent['s-p']) {
|
|
578
|
-
// we found this components first ancestor component
|
|
579
|
-
// keep a reference to this component's ancestor component
|
|
580
|
-
attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
|
|
581
|
-
break;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
// Lazy properties
|
|
586
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
587
|
-
if (cmpMeta.$members$) {
|
|
588
|
-
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
589
|
-
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
590
|
-
const value = elm[memberName];
|
|
591
|
-
delete elm[memberName];
|
|
592
|
-
elm[memberName] = value;
|
|
593
|
-
}
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
{
|
|
597
|
-
initializeComponent(elm, hostRef, cmpMeta);
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
else {
|
|
601
|
-
// fire off connectedCallback() on component instance
|
|
602
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
603
|
-
}
|
|
604
|
-
endConnected();
|
|
605
|
-
}
|
|
606
|
-
};
|
|
607
|
-
const disconnectedCallback = (elm) => {
|
|
608
|
-
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
609
|
-
getHostRef(elm);
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
|
-
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
613
|
-
var _a;
|
|
614
|
-
const endBootstrap = createTime();
|
|
615
|
-
const cmpTags = [];
|
|
616
|
-
const exclude = options.exclude || [];
|
|
617
|
-
const customElements = win.customElements;
|
|
618
|
-
const head = doc.head;
|
|
619
|
-
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
|
620
|
-
const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
|
|
621
|
-
const deferredConnectedCallbacks = [];
|
|
622
|
-
let appLoadFallback;
|
|
623
|
-
let isBootstrapping = true;
|
|
624
|
-
Object.assign(plt, options);
|
|
625
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
626
|
-
lazyBundles.map((lazyBundle) => {
|
|
627
|
-
lazyBundle[1].map((compactMeta) => {
|
|
628
|
-
const cmpMeta = {
|
|
629
|
-
$flags$: compactMeta[0],
|
|
630
|
-
$tagName$: compactMeta[1],
|
|
631
|
-
$members$: compactMeta[2],
|
|
632
|
-
$listeners$: compactMeta[3],
|
|
633
|
-
};
|
|
634
|
-
{
|
|
635
|
-
cmpMeta.$members$ = compactMeta[2];
|
|
636
|
-
}
|
|
637
|
-
{
|
|
638
|
-
cmpMeta.$watchers$ = {};
|
|
639
|
-
}
|
|
640
|
-
const tagName = cmpMeta.$tagName$;
|
|
641
|
-
const HostElement = class extends HTMLElement {
|
|
642
|
-
// StencilLazyHost
|
|
643
|
-
constructor(self) {
|
|
644
|
-
// @ts-ignore
|
|
645
|
-
super(self);
|
|
646
|
-
self = this;
|
|
647
|
-
registerHost(self, cmpMeta);
|
|
648
|
-
}
|
|
649
|
-
connectedCallback() {
|
|
650
|
-
if (appLoadFallback) {
|
|
651
|
-
clearTimeout(appLoadFallback);
|
|
652
|
-
appLoadFallback = null;
|
|
653
|
-
}
|
|
654
|
-
if (isBootstrapping) {
|
|
655
|
-
// connectedCallback will be processed once all components have been registered
|
|
656
|
-
deferredConnectedCallbacks.push(this);
|
|
657
|
-
}
|
|
658
|
-
else {
|
|
659
|
-
plt.jmp(() => connectedCallback(this));
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
disconnectedCallback() {
|
|
663
|
-
plt.jmp(() => disconnectedCallback(this));
|
|
664
|
-
}
|
|
665
|
-
componentOnReady() {
|
|
666
|
-
return getHostRef(this).$onReadyPromise$;
|
|
667
|
-
}
|
|
668
|
-
};
|
|
669
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
670
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
671
|
-
cmpTags.push(tagName);
|
|
672
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
673
|
-
}
|
|
674
|
-
});
|
|
675
|
-
});
|
|
676
|
-
{
|
|
677
|
-
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
678
|
-
visibilityStyle.setAttribute('data-styles', '');
|
|
679
|
-
// Apply CSP nonce to the style tag if it exists
|
|
680
|
-
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
681
|
-
if (nonce != null) {
|
|
682
|
-
visibilityStyle.setAttribute('nonce', nonce);
|
|
683
|
-
}
|
|
684
|
-
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
685
|
-
}
|
|
686
|
-
// Process deferred connectedCallbacks now all components have been registered
|
|
687
|
-
isBootstrapping = false;
|
|
688
|
-
if (deferredConnectedCallbacks.length) {
|
|
689
|
-
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
690
|
-
}
|
|
691
|
-
else {
|
|
692
|
-
{
|
|
693
|
-
plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
// Fallback appLoad event
|
|
697
|
-
endBootstrap();
|
|
698
|
-
};
|
|
699
|
-
/**
|
|
700
|
-
* Assigns the given value to the nonce property on the runtime platform object.
|
|
701
|
-
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
702
|
-
* @param nonce The value to be assigned to the platform nonce property.
|
|
703
|
-
* @returns void
|
|
704
|
-
*/
|
|
705
|
-
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
706
|
-
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
707
|
-
const getHostRef = (ref) => hostRefs.get(ref);
|
|
708
|
-
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
709
|
-
const registerHost = (elm, cmpMeta) => {
|
|
710
|
-
const hostRef = {
|
|
711
|
-
$flags$: 0,
|
|
712
|
-
$hostElement$: elm,
|
|
713
|
-
$cmpMeta$: cmpMeta,
|
|
714
|
-
$instanceValues$: new Map(),
|
|
715
|
-
};
|
|
716
|
-
{
|
|
717
|
-
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
|
718
|
-
}
|
|
719
|
-
{
|
|
720
|
-
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
721
|
-
elm['s-p'] = [];
|
|
722
|
-
elm['s-rc'] = [];
|
|
723
|
-
}
|
|
724
|
-
return hostRefs.set(elm, hostRef);
|
|
725
|
-
};
|
|
726
|
-
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
727
|
-
const cmpModules = /*@__PURE__*/ new Map();
|
|
728
|
-
const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
729
|
-
// loadModuleImport
|
|
730
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
|
|
731
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
732
|
-
const module = cmpModules.get(bundleId) ;
|
|
733
|
-
if (module) {
|
|
734
|
-
return module[exportName];
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
738
|
-
const processMod = importedModule => {
|
|
739
|
-
cmpModules.set(bundleId, importedModule);
|
|
740
|
-
return importedModule[exportName];
|
|
741
|
-
}
|
|
742
|
-
switch(bundleId) {
|
|
743
|
-
|
|
744
|
-
case 'arcgis-api-key':
|
|
745
|
-
return import(
|
|
746
|
-
/* webpackMode: "lazy" */
|
|
747
|
-
'./arcgis-api-key.entry.js').then(processMod, consoleError);
|
|
748
|
-
case 'arcgis-identity':
|
|
749
|
-
return import(
|
|
750
|
-
/* webpackMode: "lazy" */
|
|
751
|
-
'./arcgis-identity.entry.js').then(processMod, consoleError);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
return import(
|
|
755
|
-
/* @vite-ignore */
|
|
756
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
757
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
758
|
-
/* webpackMode: "lazy" */
|
|
759
|
-
`./${bundleId}.entry.js${''}`).then((importedModule) => {
|
|
760
|
-
{
|
|
761
|
-
cmpModules.set(bundleId, importedModule);
|
|
762
|
-
}
|
|
763
|
-
return importedModule[exportName];
|
|
764
|
-
}, consoleError);
|
|
765
|
-
};
|
|
766
|
-
const styles = /*@__PURE__*/ new Map();
|
|
767
|
-
const win = typeof window !== 'undefined' ? window : {};
|
|
768
|
-
const doc = win.document || { head: {} };
|
|
769
|
-
const plt = {
|
|
770
|
-
$flags$: 0,
|
|
771
|
-
$resourcesUrl$: '',
|
|
772
|
-
jmp: (h) => h(),
|
|
773
|
-
raf: (h) => requestAnimationFrame(h),
|
|
774
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
775
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
776
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
777
|
-
};
|
|
778
|
-
const promiseResolve = (v) => Promise.resolve(v);
|
|
779
|
-
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
780
|
-
try {
|
|
781
|
-
new CSSStyleSheet();
|
|
782
|
-
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
783
|
-
}
|
|
784
|
-
catch (e) { }
|
|
785
|
-
return false;
|
|
786
|
-
})()
|
|
787
|
-
;
|
|
788
|
-
const queueDomReads = [];
|
|
789
|
-
const queueDomWrites = [];
|
|
790
|
-
const queueTask = (queue, write) => (cb) => {
|
|
791
|
-
queue.push(cb);
|
|
792
|
-
if (!queuePending) {
|
|
793
|
-
queuePending = true;
|
|
794
|
-
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
795
|
-
nextTick(flush);
|
|
796
|
-
}
|
|
797
|
-
else {
|
|
798
|
-
plt.raf(flush);
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
const consume = (queue) => {
|
|
803
|
-
for (let i = 0; i < queue.length; i++) {
|
|
804
|
-
try {
|
|
805
|
-
queue[i](performance.now());
|
|
806
|
-
}
|
|
807
|
-
catch (e) {
|
|
808
|
-
consoleError(e);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
queue.length = 0;
|
|
812
|
-
};
|
|
813
|
-
const flush = () => {
|
|
814
|
-
// always force a bunch of medium callbacks to run, but still have
|
|
815
|
-
// a throttle on how many can run in a certain time
|
|
816
|
-
// DOM READS!!!
|
|
817
|
-
consume(queueDomReads);
|
|
818
|
-
// DOM WRITES!!!
|
|
819
|
-
{
|
|
820
|
-
consume(queueDomWrites);
|
|
821
|
-
if ((queuePending = queueDomReads.length > 0)) {
|
|
822
|
-
// still more to do yet, but we've run out of time
|
|
823
|
-
// let's let this thing cool off and try again in the next tick
|
|
824
|
-
plt.raf(flush);
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
};
|
|
828
|
-
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
829
|
-
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
830
|
-
|
|
831
|
-
export { bootstrapLazy as b, createEvent as c, getElement as g, promiseResolve as p, registerInstance as r, setNonce as s };
|