@arcgis/coding-components 4.29.0-beta.11 → 4.29.0-beta.111
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 +1 -1
- package/README.md +6 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ar.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.bg.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.bs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ca.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.cs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.da.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.de.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.el.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.es.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.et.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.fi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.fr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.he.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.hr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.hu.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.id.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.it.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ja.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ko.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.lt.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.lv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.nb.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.nl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.pl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.pt-BR.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.pt-PT.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ro.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ru.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.sk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.sl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.sr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.sv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.th.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.tr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.uk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.vi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.zh-CN.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.zh-HK.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.zh-TW.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ar.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.bg.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.bs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ca.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.cs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.da.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.de.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.el.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.es.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.et.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.fi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.fr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.he.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.hr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.hu.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.id.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.it.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ja.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ko.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.lt.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.lv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.nb.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.nl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.pl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.pt-BR.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.pt-PT.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ro.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ru.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.sk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.sl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.sr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.sv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.th.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.tr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.uk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.vi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.zh-CN.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.zh-HK.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.zh-TW.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ar.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.bg.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.bs.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ca.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.cs.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.da.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.de.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.el.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.en.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.es.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.et.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.fi.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.fr.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.he.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.hr.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.hu.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.id.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.it.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ja.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ko.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.lt.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.lv.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.nb.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.nl.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.pl.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.pt-BR.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.pt-PT.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ro.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ru.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.sk.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.sl.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.sr.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.sv.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.th.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.tr.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.uk.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.vi.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.zh-CN.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.zh-HK.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.zh-TW.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ar.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.bg.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.bs.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ca.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.cs.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.da.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.de.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.el.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.en.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.es.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.et.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.fi.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.fr.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.he.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.hr.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.hu.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.id.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.it.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ja.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ko.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.lt.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.lv.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.nb.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.nl.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.pl.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.pt-BR.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.pt-PT.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ro.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ru.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.sk.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.sl.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.sr.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.sv.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.th.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.tr.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.uk.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.vi.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.zh-CN.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.zh-HK.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.zh-TW.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ar.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.bg.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.bs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ca.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.cs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.da.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.de.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.el.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.es.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.et.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.fi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.fr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.he.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.hr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.hu.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.id.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.it.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ja.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ko.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.lt.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.lv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.nb.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.nl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.pl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.pt-BR.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.pt-PT.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ro.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ru.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.sk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.sl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.sr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.sv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.th.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.tr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.uk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.vi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.zh-CN.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.zh-HK.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.zh-TW.json +8 -8
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +30 -31
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +30 -34
- package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +7 -8
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +18 -20
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +21 -22
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +79 -80
- package/dist/arcgis-coding-components/index.esm.js +6 -1
- package/dist/arcgis-coding-components/p-048612c6.js +7 -0
- package/dist/arcgis-coding-components/p-1d4f926f.js +6 -0
- package/dist/arcgis-coding-components/{p-443fe20e.js → p-4344b240.js} +7 -2
- package/dist/arcgis-coding-components/{p-9a164b63.js → p-43b95b3a.js} +8 -3
- package/dist/arcgis-coding-components/{p-cfff9500.js → p-5ca96f1c.js} +6 -1
- package/dist/arcgis-coding-components/{p-9dd33d3e.js → p-6f61a758.js} +7 -2
- package/dist/arcgis-coding-components/p-9c1279fa.js +68 -0
- package/dist/arcgis-coding-components/p-be21051e.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-ff06e912.js → p-daef9c50.js} +7 -2
- package/dist/arcgis-coding-components/{p-b83db734.js → p-dfb57db2.js} +7 -2
- package/dist/arcgis-coding-components/{p-b3500466.js → p-e5c84ef0.js} +7 -2
- package/dist/arcgis-coding-components/{p-310f0408.js → p-e625cdc1.js} +7 -2
- package/dist/cjs/{arcade-defaults-e128d6d9.js → arcade-defaults-4a4ff48e.js} +13204 -11292
- package/dist/cjs/arcade-mode-e8a048dc.js +604 -0
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1484 -1408
- package/dist/cjs/arcgis-coding-components.cjs.js +8 -3
- package/dist/cjs/{css-7229b372.js → css-66caa3cb.js} +6 -1
- package/dist/cjs/{cssMode-8c1d563a.js → cssMode-82651023.js} +8 -3
- package/dist/cjs/{html-ead03bbb.js → html-2c47fd86.js} +8 -3
- package/dist/cjs/{htmlMode-5e1a0115.js → htmlMode-9582a9b2.js} +8 -3
- package/dist/cjs/{index-f8a85eb8.js → index-7156ebfa.js} +395 -101
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-3fe2de06.js → javascript-f35b0dc5.js} +9 -4
- package/dist/cjs/{jsonMode-8b4b19f9.js → jsonMode-632b6048.js} +8 -3
- package/dist/cjs/loader.cjs.js +8 -12
- package/dist/cjs/{tsMode-b9491227.js → tsMode-c6f1ab1f.js} +8 -3
- package/dist/cjs/{typescript-524fddbc.js → typescript-9e1f35cb.js} +8 -3
- package/dist/components/arcade-api.js +170 -162
- package/dist/components/arcade-contribution.js +75 -65
- package/dist/components/arcade-defaults.js +1425 -1270
- package/dist/components/arcade-mode.js +521 -515
- package/dist/components/arcade-results.js +479 -426
- package/dist/components/arcade-suggestions.js +138 -131
- package/dist/components/arcade-variables.js +167 -153
- package/dist/components/arcgis-arcade-api.d.ts +2 -2
- package/dist/components/arcgis-arcade-api.js +5 -0
- package/dist/components/arcgis-arcade-editor.d.ts +2 -2
- package/dist/components/arcgis-arcade-editor.js +413 -387
- package/dist/components/arcgis-arcade-results.d.ts +2 -2
- package/dist/components/arcgis-arcade-results.js +5 -0
- package/dist/components/arcgis-arcade-suggestions.d.ts +2 -2
- package/dist/components/arcgis-arcade-suggestions.js +5 -0
- package/dist/components/arcgis-arcade-variables.d.ts +2 -2
- package/dist/components/arcgis-arcade-variables.js +5 -0
- package/dist/components/arcgis-code-editor.d.ts +2 -2
- package/dist/components/arcgis-code-editor.js +5 -0
- package/dist/components/code-editor.js +255 -250
- package/dist/components/fields.js +104 -77
- package/dist/components/functional-components.js +6 -1
- package/dist/components/index.d.ts +5 -8
- package/dist/components/index.js +6 -7
- package/dist/components/index2.js +7 -2
- package/dist/components/markdown.js +33 -28
- package/dist/components/utilities.js +26 -21
- package/dist/esm/{arcade-defaults-a34c2e51.js → arcade-defaults-0f350eac.js} +13196 -11284
- package/dist/esm/arcade-mode-e87281c6.js +600 -0
- package/dist/esm/arcgis-arcade-api_6.entry.js +1484 -1408
- package/dist/esm/arcgis-coding-components.js +9 -4
- package/dist/esm/{css-ff1e9f8c.js → css-368560db.js} +6 -1
- package/dist/esm/{cssMode-cb48c437.js → cssMode-9c59d807.js} +8 -3
- package/dist/esm/{html-e7c0bd60.js → html-1ffd663e.js} +8 -3
- package/dist/esm/{htmlMode-46638b7f.js → htmlMode-341ef75a.js} +8 -3
- package/dist/esm/{index-d4ec142a.js → index-585dc89e.js} +395 -101
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-2229cd63.js → javascript-91416769.js} +9 -4
- package/dist/esm/{jsonMode-08a2f0d2.js → jsonMode-ccf7e27b.js} +8 -3
- package/dist/esm/loader.js +8 -12
- package/dist/esm/{tsMode-46d0d8e8.js → tsMode-45a0fdf5.js} +8 -3
- package/dist/esm/{typescript-88a09694.js → typescript-7ab173c1.js} +8 -3
- package/dist/loader/cdn.js +5 -1
- package/dist/loader/index.cjs.js +5 -1
- package/dist/loader/index.d.ts +2 -2
- package/dist/loader/index.es2017.js +5 -1
- package/dist/loader/index.js +5 -1
- package/dist/types/components/arcade-api/arcade-api.d.ts +42 -41
- package/dist/types/components/arcade-api/t9n-types.d.ts +6 -6
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +129 -133
- package/dist/types/components/arcade-editor/t9n-types.d.ts +6 -6
- package/dist/types/components/arcade-results/arcade-results.d.ts +46 -50
- package/dist/types/components/arcade-results/t9n-types.d.ts +11 -11
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +37 -36
- package/dist/types/components/arcade-suggestions/t9n-types.d.ts +4 -4
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +42 -42
- package/dist/types/components/arcade-variables/t9n-types.d.ts +6 -6
- package/dist/types/components/code-editor/code-editor.d.ts +74 -74
- package/dist/types/components.d.ts +87 -12
- package/dist/types/index.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +61 -17
- package/dist/types/utils/arcade-executor.d.ts +89 -81
- package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +1 -1
- package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +69 -68
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +27 -26
- package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +10 -10
- package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +9 -8
- package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +11 -11
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +16 -14
- package/dist/types/utils/arcade-monaco/types.d.ts +31 -33
- package/dist/types/utils/colorize.d.ts +1 -1
- package/dist/types/utils/editor-suggestions.d.ts +24 -24
- package/dist/types/utils/fields.d.ts +1 -0
- package/dist/types/utils/functional-components.d.ts +2 -2
- package/dist/types/utils/markdown.d.ts +1 -1
- package/dist/types/utils/profile/editor-profile.d.ts +187 -196
- package/dist/types/utils/profile/types.d.ts +230 -109
- package/dist/types/utils/profile/utils.d.ts +31 -14
- package/dist/types/utils/utilities.d.ts +2 -2
- package/package.json +26 -42
- package/dist/arcgis-coding-components/p-0fa0a06d.js +0 -2
- package/dist/arcgis-coding-components/p-1b0246cd.entry.js +0 -1
- package/dist/arcgis-coding-components/p-236ce4a1.js +0 -62
- package/dist/arcgis-coding-components/p-3664ab2a.js +0 -1
- package/dist/cjs/arcade-mode-8bf7a14b.js +0 -598
- package/dist/esm/arcade-mode-c5a69066.js +0 -594
- package/dist/esm/polyfills/css-shim.js +0 -1
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
* v4.29.0-beta.111
|
|
5
|
+
*/
|
|
1
6
|
import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
7
|
+
import { g as importArcade, s as supportedFields } from './fields.js';
|
|
8
|
+
import { B, H, K, Q } from './index2.js';
|
|
9
|
+
import '@esri/calcite-components/dist/components/calcite-tree.js';
|
|
10
|
+
import '@esri/calcite-components/dist/components/calcite-tree-item.js';
|
|
4
11
|
import '@esri/calcite-components/dist/components/calcite-loader.js';
|
|
5
12
|
import '@esri/calcite-components/dist/components/calcite-list.js';
|
|
6
13
|
import '@esri/calcite-components/dist/components/calcite-list-item.js';
|
|
7
14
|
import '@esri/calcite-components/dist/components/calcite-icon.js';
|
|
8
|
-
import '@esri/calcite-components/dist/components/calcite-tree.js';
|
|
9
|
-
import '@esri/calcite-components/dist/components/calcite-tree-item.js';
|
|
10
15
|
import '@esri/calcite-components/dist/components/calcite-action-bar.js';
|
|
11
16
|
import '@esri/calcite-components/dist/components/calcite-action-group.js';
|
|
12
17
|
import '@esri/calcite-components/dist/components/calcite-action.js';
|
|
@@ -16,489 +21,537 @@ const MaxArrayItems = 100;
|
|
|
16
21
|
const BatchSize = 100;
|
|
17
22
|
|
|
18
23
|
function isArcadeFeatureSet(value) {
|
|
19
|
-
|
|
24
|
+
return (!!value &&
|
|
25
|
+
typeof value === "object" &&
|
|
26
|
+
"declaredRootClass" in value &&
|
|
27
|
+
typeof value.declaredRootClass === "string" &&
|
|
28
|
+
value.declaredRootClass === "esri.arcade.featureset.support.FeatureSet");
|
|
20
29
|
}
|
|
21
30
|
function isArcadeFeature(value) {
|
|
22
|
-
|
|
31
|
+
return (!!value &&
|
|
32
|
+
typeof value === "object" &&
|
|
33
|
+
"arcadeDeclaredClass" in value &&
|
|
34
|
+
typeof value.arcadeDeclaredClass === "string" &&
|
|
35
|
+
value.arcadeDeclaredClass === "esri.arcade.Feature");
|
|
23
36
|
}
|
|
24
37
|
function isArcadeDictionary(value) {
|
|
25
|
-
|
|
38
|
+
return (!!value &&
|
|
39
|
+
typeof value === "object" &&
|
|
40
|
+
"declaredClass" in value &&
|
|
41
|
+
typeof value.declaredClass === "string" &&
|
|
42
|
+
value.declaredClass === "esri.arcade.Dictionary");
|
|
26
43
|
}
|
|
27
44
|
function isGeometry(value) {
|
|
28
|
-
|
|
29
|
-
|
|
45
|
+
return (!!value &&
|
|
46
|
+
typeof value === "object" &&
|
|
47
|
+
"declaredClass" in value &&
|
|
48
|
+
typeof value.declaredClass === "string" &&
|
|
49
|
+
value.declaredClass.startsWith("esri.geometry."));
|
|
50
|
+
}
|
|
51
|
+
function isKnowledgeGraph(value) {
|
|
52
|
+
return (!!value &&
|
|
53
|
+
typeof value === "object" &&
|
|
54
|
+
"declaredClass" in value &&
|
|
55
|
+
typeof value.declaredClass === "string" &&
|
|
56
|
+
value.declaredClass.startsWith("esri.rest.knowledgeGraph.KnowledgeGraph"));
|
|
30
57
|
}
|
|
31
58
|
function isArcadePortal(value) {
|
|
32
|
-
|
|
33
|
-
|
|
59
|
+
return (!!value &&
|
|
60
|
+
typeof value === "object" &&
|
|
61
|
+
"declaredClass" in value &&
|
|
62
|
+
typeof value.declaredClass === "string" &&
|
|
63
|
+
value.declaredClass === "esri.arcade.Portal");
|
|
34
64
|
}
|
|
35
65
|
function isArcadeAttachment(value) {
|
|
36
|
-
|
|
37
|
-
|
|
66
|
+
return (!!value &&
|
|
67
|
+
typeof value === "object" &&
|
|
68
|
+
"declaredClass" in value &&
|
|
69
|
+
typeof value.declaredClass === "string" &&
|
|
70
|
+
value.declaredClass === "esri.arcade.Attachment");
|
|
38
71
|
}
|
|
39
72
|
function isArcadeDate(value) {
|
|
40
|
-
|
|
41
|
-
|
|
73
|
+
return (!!value &&
|
|
74
|
+
typeof value === "object" &&
|
|
75
|
+
"declaredRootClass" in value &&
|
|
76
|
+
typeof value.declaredRootClass === "string" &&
|
|
77
|
+
value.declaredRootClass === "esri.arcade.arcadedate");
|
|
42
78
|
}
|
|
43
79
|
function isArcadeDateOnly(value) {
|
|
44
|
-
|
|
45
|
-
|
|
80
|
+
return (!!value &&
|
|
81
|
+
typeof value === "object" &&
|
|
82
|
+
"declaredRootClass" in value &&
|
|
83
|
+
typeof value.declaredRootClass === "string" &&
|
|
84
|
+
value.declaredRootClass === "esri.core.sql.dateonly");
|
|
46
85
|
}
|
|
47
86
|
function isArcadeTimeOnly(value) {
|
|
48
|
-
|
|
49
|
-
|
|
87
|
+
return (!!value &&
|
|
88
|
+
typeof value === "object" &&
|
|
89
|
+
"declaredRootClass" in value &&
|
|
90
|
+
typeof value.declaredRootClass === "string" &&
|
|
91
|
+
value.declaredRootClass === "esri.core.sql.timeonly");
|
|
50
92
|
}
|
|
51
93
|
function isArcadeImmutableArray(value) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
94
|
+
return (!!value &&
|
|
95
|
+
typeof value === "object" &&
|
|
96
|
+
"length" in value &&
|
|
97
|
+
typeof value.length === "function" &&
|
|
98
|
+
"get" in value &&
|
|
99
|
+
typeof value.get === "function" &&
|
|
100
|
+
"toArray" in value &&
|
|
101
|
+
typeof value.toArray === "function" &&
|
|
102
|
+
"_elements" in value &&
|
|
103
|
+
Array.isArray(value._elements));
|
|
56
104
|
}
|
|
57
105
|
function valueToArcadeResult(value) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
106
|
+
if (value === null || value === undefined) {
|
|
107
|
+
return { type: "null" };
|
|
108
|
+
}
|
|
109
|
+
if (Array.isArray(value)) {
|
|
110
|
+
return { type: "array", value };
|
|
111
|
+
}
|
|
112
|
+
if (isArcadeImmutableArray(value)) {
|
|
113
|
+
return { type: "array", value: value.toArray() };
|
|
114
|
+
}
|
|
115
|
+
if (value instanceof Date) {
|
|
116
|
+
return { type: "date", value };
|
|
117
|
+
}
|
|
118
|
+
if (typeof value === "string") {
|
|
119
|
+
return { type: "text", value };
|
|
120
|
+
}
|
|
121
|
+
if (typeof value === "number") {
|
|
122
|
+
return { type: "number", value };
|
|
123
|
+
}
|
|
124
|
+
if (typeof value === "boolean") {
|
|
125
|
+
return { type: "boolean", value };
|
|
126
|
+
}
|
|
127
|
+
if (typeof value !== "object") {
|
|
128
|
+
return { type: "unknown" };
|
|
129
|
+
}
|
|
130
|
+
if (isArcadeDate(value)) {
|
|
131
|
+
return { type: "date", value };
|
|
132
|
+
}
|
|
133
|
+
if (isArcadeDateOnly(value)) {
|
|
134
|
+
return { type: "dateOnly", value };
|
|
135
|
+
}
|
|
136
|
+
if (isArcadeTimeOnly(value)) {
|
|
137
|
+
return { type: "time", value };
|
|
138
|
+
}
|
|
139
|
+
if (isArcadeAttachment(value)) {
|
|
140
|
+
return { type: "attachment", value };
|
|
141
|
+
}
|
|
142
|
+
if (isArcadePortal(value)) {
|
|
143
|
+
return { type: "portal", value };
|
|
144
|
+
}
|
|
145
|
+
if (isArcadeFeatureSet(value)) {
|
|
146
|
+
return { type: "featureSet", value, features: [], iterator: null };
|
|
147
|
+
}
|
|
148
|
+
if (isArcadeFeature(value)) {
|
|
149
|
+
return { type: "feature", value };
|
|
150
|
+
}
|
|
151
|
+
if (isArcadeDictionary(value)) {
|
|
152
|
+
return { type: "dictionary", value };
|
|
153
|
+
}
|
|
154
|
+
if (isGeometry(value)) {
|
|
155
|
+
return { type: "geometry", value };
|
|
156
|
+
}
|
|
157
|
+
if (isKnowledgeGraph(value)) {
|
|
158
|
+
return { type: "knowledgeGraph", value };
|
|
159
|
+
}
|
|
80
160
|
return { type: "unknown" };
|
|
81
|
-
}
|
|
82
|
-
if (isArcadeDate(value)) {
|
|
83
|
-
return { type: "date", value };
|
|
84
|
-
}
|
|
85
|
-
if (isArcadeDateOnly(value)) {
|
|
86
|
-
return { type: "dateOnly", value };
|
|
87
|
-
}
|
|
88
|
-
if (isArcadeTimeOnly(value)) {
|
|
89
|
-
return { type: "time", value };
|
|
90
|
-
}
|
|
91
|
-
if (isArcadeAttachment(value)) {
|
|
92
|
-
return { type: "attachment", value };
|
|
93
|
-
}
|
|
94
|
-
if (isArcadePortal(value)) {
|
|
95
|
-
return { type: "portal", value };
|
|
96
|
-
}
|
|
97
|
-
if (isArcadeFeatureSet(value)) {
|
|
98
|
-
return { type: "featureSet", value, features: [], iterator: null };
|
|
99
|
-
}
|
|
100
|
-
if (isArcadeFeature(value)) {
|
|
101
|
-
return { type: "feature", value };
|
|
102
|
-
}
|
|
103
|
-
if (isArcadeDictionary(value)) {
|
|
104
|
-
return { type: "dictionary", value };
|
|
105
|
-
}
|
|
106
|
-
if (isGeometry(value)) {
|
|
107
|
-
return { type: "geometry", value };
|
|
108
|
-
}
|
|
109
|
-
return { type: "unknown" };
|
|
110
161
|
}
|
|
111
162
|
function formatArcadeResultDate(dateObject, lang = "en") {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
163
|
+
// Default to english
|
|
164
|
+
if (dateObject.value instanceof Date) {
|
|
165
|
+
return new Intl.DateTimeFormat(lang, { dateStyle: "medium", timeStyle: "long" }).format(dateObject.value);
|
|
166
|
+
}
|
|
167
|
+
return dateObject.value
|
|
168
|
+
.toDateTime()
|
|
169
|
+
.setLocale(lang)
|
|
170
|
+
.toFormat(dateObject.value.isUnknownTimeZone ? "FF" : "FF ZZZZZ");
|
|
120
171
|
}
|
|
121
172
|
function formatArcadeResultDateOnly(dateObject) {
|
|
122
|
-
|
|
173
|
+
return dateObject.value.toString();
|
|
123
174
|
}
|
|
124
175
|
function formatArcadeResultTimeOnly(dateObject) {
|
|
125
|
-
|
|
176
|
+
return dateObject.value.toString();
|
|
126
177
|
}
|
|
127
178
|
async function loadArcadeResult(result, timeZone = "system") {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
179
|
+
if (result.type !== "featureSet") {
|
|
180
|
+
return result;
|
|
181
|
+
}
|
|
182
|
+
// Feature Set needs to be loaded
|
|
183
|
+
await result.value.load();
|
|
184
|
+
// Create the first iterator
|
|
185
|
+
result.iterator = result.value.iterator({ aborted: false });
|
|
186
|
+
// Load the first batch of items
|
|
187
|
+
result.features = (await result.iterator.nextBatchAsArcadeFeatures(BatchSize, timeZone)) ?? [];
|
|
136
188
|
return result;
|
|
137
|
-
}
|
|
138
|
-
// Load the first batch of items
|
|
139
|
-
result.features = (await result.iterator.nextBatchAsArcadeFeatures(BatchSize, timeZone)) ?? [];
|
|
140
|
-
return result;
|
|
141
189
|
}
|
|
142
190
|
async function executeScript(editorProfile, script, testContext, console) {
|
|
143
|
-
//
|
|
144
|
-
const timeStamp = new Date();
|
|
145
|
-
// Provide a default console function is missing
|
|
146
|
-
console = console ?? (() => undefined);
|
|
147
|
-
try {
|
|
148
|
-
// We want to measure compilation time
|
|
149
|
-
const t0 = performance.now();
|
|
150
|
-
// Setup an executor with the script
|
|
151
|
-
const arcade = await importArcade();
|
|
152
|
-
const executor = await arcade.createArcadeExecutor(script ?? "", {
|
|
153
|
-
variables: editorProfile?.variables ?? []
|
|
154
|
-
});
|
|
155
|
-
// We want to measure the execution time
|
|
156
|
-
const t1 = performance.now();
|
|
157
|
-
// Manufacture our execution context
|
|
158
|
-
const { profileVariableInstances, spatialReference, timeZone } = testContext;
|
|
159
|
-
const executeContext = {
|
|
160
|
-
spatialReference,
|
|
161
|
-
timeZone,
|
|
162
|
-
rawOutput: true,
|
|
163
|
-
console
|
|
164
|
-
};
|
|
165
|
-
// Execute the script
|
|
166
|
-
const scriptOutput = await executor.executeAsync(profileVariableInstances ?? {}, executeContext);
|
|
167
|
-
// Convert script output to arcade result object and load data if necessary
|
|
168
|
-
const scriptResult = await loadArcadeResult(valueToArcadeResult(scriptOutput), timeZone);
|
|
169
|
-
// Timestamp and measure cost
|
|
170
|
-
scriptResult.timeStamp = timeStamp;
|
|
171
|
-
scriptResult.compilationTime = t1 - t0;
|
|
172
|
-
scriptResult.executionTime = performance.now() - t1;
|
|
173
|
-
return scriptResult;
|
|
174
191
|
//
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
192
|
+
const timeStamp = new Date();
|
|
193
|
+
// Provide a default console function if missing
|
|
194
|
+
console ?? (console = () => undefined);
|
|
195
|
+
try {
|
|
196
|
+
// We want to measure compilation time
|
|
197
|
+
const t0 = performance.now();
|
|
198
|
+
// Setup an executor with the script
|
|
199
|
+
const arcade = await importArcade();
|
|
200
|
+
const executor = await arcade.createArcadeExecutor(script ?? "", {
|
|
201
|
+
variables: editorProfile?.variables ?? []
|
|
202
|
+
});
|
|
203
|
+
// We want to measure the execution time
|
|
204
|
+
const t1 = performance.now();
|
|
205
|
+
// Manufacture our execution context
|
|
206
|
+
const { profileVariableInstances, spatialReference, timeZone } = testContext;
|
|
207
|
+
const executeContext = {
|
|
208
|
+
spatialReference,
|
|
209
|
+
timeZone,
|
|
210
|
+
rawOutput: true,
|
|
211
|
+
console
|
|
212
|
+
};
|
|
213
|
+
// Execute the script
|
|
214
|
+
const scriptOutput = await executor.executeAsync(profileVariableInstances, executeContext);
|
|
215
|
+
// Convert script output to arcade result object and load data if necessary
|
|
216
|
+
const scriptResult = await loadArcadeResult(valueToArcadeResult(scriptOutput), timeZone);
|
|
217
|
+
// Timestamp and measure cost
|
|
218
|
+
scriptResult.timeStamp = timeStamp;
|
|
219
|
+
scriptResult.compilationTime = t1 - t0;
|
|
220
|
+
scriptResult.executionTime = performance.now() - t1;
|
|
221
|
+
return scriptResult;
|
|
222
|
+
//
|
|
223
|
+
}
|
|
224
|
+
catch (error) {
|
|
225
|
+
let message = "Unknown Error";
|
|
226
|
+
if (error instanceof Error) {
|
|
227
|
+
message = error.message;
|
|
228
|
+
}
|
|
229
|
+
return {
|
|
230
|
+
type: "error",
|
|
231
|
+
value: message,
|
|
232
|
+
error,
|
|
233
|
+
timeStamp,
|
|
234
|
+
compilationTime: 0,
|
|
235
|
+
executionTime: 0
|
|
236
|
+
};
|
|
237
|
+
}
|
|
190
238
|
}
|
|
191
239
|
|
|
192
240
|
const indentSpecs = { char: " ", size: 2 };
|
|
193
241
|
const indentType = new Array(indentSpecs.size + 1).join(indentSpecs.char);
|
|
194
242
|
function createPushFunc(p) {
|
|
195
|
-
|
|
243
|
+
return (substring) => `\\${p.push(substring)}\\`;
|
|
196
244
|
}
|
|
197
245
|
function createPopFunc(p) {
|
|
198
|
-
|
|
246
|
+
return (_, offset) => p[offset - 1] ?? "";
|
|
199
247
|
}
|
|
200
248
|
function indent(index, indentType) {
|
|
201
|
-
|
|
249
|
+
return new Array(index + 1).join(indentType);
|
|
202
250
|
}
|
|
203
251
|
function jsonFormat(json) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
return
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
252
|
+
// Convert to string and extract backslashes and strings
|
|
253
|
+
const p = [];
|
|
254
|
+
const pushFunc = createPushFunc(p);
|
|
255
|
+
const jsonString = JSON.stringify(json)
|
|
256
|
+
.replace(/\\./gu, pushFunc)
|
|
257
|
+
.replace(/(".*?"|'.*?')/gu, pushFunc)
|
|
258
|
+
.replace(/\s+/u, "");
|
|
259
|
+
// Indent and insert newlines
|
|
260
|
+
let indentIndex = 0;
|
|
261
|
+
let out = "";
|
|
262
|
+
for (let i = 0; i < jsonString.length; i++) {
|
|
263
|
+
const c = jsonString.charAt(i);
|
|
264
|
+
switch (c) {
|
|
265
|
+
case "{":
|
|
266
|
+
case "[":
|
|
267
|
+
indentIndex += 1;
|
|
268
|
+
out += `${c}\n${indent(indentIndex, indentType)}`;
|
|
269
|
+
break;
|
|
270
|
+
case "}":
|
|
271
|
+
case "]":
|
|
272
|
+
indentIndex -= 1;
|
|
273
|
+
out += `\n${indent(indentIndex, indentType)}${c}`;
|
|
274
|
+
break;
|
|
275
|
+
case ",":
|
|
276
|
+
out += `,\n${indent(indentIndex, indentType)}`;
|
|
277
|
+
break;
|
|
278
|
+
case ":":
|
|
279
|
+
out += ": ";
|
|
280
|
+
break;
|
|
281
|
+
default:
|
|
282
|
+
out += c;
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
// Strip whitespace from numeric arrays and put backslashes
|
|
287
|
+
// and strings back in
|
|
288
|
+
const popFunc = createPopFunc(p);
|
|
289
|
+
return out
|
|
290
|
+
.replace(/\[[\d,\s]+?\]/gu, (m) => m.replace(/\s/gu, ""))
|
|
291
|
+
.replace(/\\(\d+)\\/gu, popFunc) // strings
|
|
292
|
+
.replace(/\\(\d+)\\/gu, popFunc); // backslashes in strings
|
|
245
293
|
}
|
|
246
294
|
|
|
247
|
-
const arcadeResultsCss = ":host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-
|
|
295
|
+
const arcadeResultsCss = ":host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2)}:host .flex-adjustable{flex:1 1 auto;overflow:hidden}:host .flex-row{display:flex;flex-direction:row;overflow:hidden}:host .flex-column{display:flex;flex-direction:column;overflow:hidden}:host .y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}:host header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}:host .ltr-container{direction:ltr}:host calcite-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-half)}:host calcite-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-half)}:host calcite-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}:host calcite-action-bar calcite-action-group:last-child{border-inline-end-width:0px}:host calcite-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-color-foreground-1)}:host .color-info{color:var(--calcite-color-status-info)}:host .color-error{color:var(--calcite-color-status-danger)}:host .color-success{color:var(--calcite-color-status-success)}:host [class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-three-quarter)}:host .console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-three-quarter);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}:host .result-value-table table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap}:host .result-value-table table thead{background-color:var(--calcite-color-foreground-2)}:host .result-value-table table tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}:host .result-value-table table th,:host .result-value-table table td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-quarter)}:host .result-value-table table th .string-value,:host .result-value-table table td .string-value{white-space:pre}:host .result-value-table table th{font-weight:var(--calcite-font-weight-medium)}:host .tree-item-label,:host .number-value,:host .string-value,:host .boolean-value{font-family:var(--calcite-code-family)}:host .tree-item-label,:host .value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}:host .dictionary-property{color:var(--arcgis-arcade-editor-identifier)}:host .number-value{color:var(--arcgis-arcade-editor-number)}:host .string-value{color:var(--arcgis-arcade-editor-string);white-space:pre-wrap}:host .constant-value{color:var(--arcgis-arcade-editor-constant)}:host .date-value{color:var(--arcgis-arcade-editor-date)}";
|
|
248
296
|
|
|
249
297
|
//#region Specialized Constants
|
|
250
298
|
const treeProps = {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
299
|
+
lines: true,
|
|
300
|
+
selectionMode: "none",
|
|
301
|
+
scale: "s",
|
|
302
|
+
onCalciteTreeSelect: (e) => e.target.selectedItems.forEach((itemElt) => (itemElt.selected = false))
|
|
255
303
|
};
|
|
256
304
|
const expandableTreeItemProps = {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
305
|
+
onClick: (e) => {
|
|
306
|
+
const item = e.currentTarget;
|
|
307
|
+
item.expanded = !item.expanded;
|
|
308
|
+
}
|
|
261
309
|
};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
this.__registerHost();
|
|
266
|
-
this.__attachShadow();
|
|
267
|
-
this.openedResultPanelChange = createEvent(this, "openedResultPanelChange", 3);
|
|
268
|
-
this.close = createEvent(this, "close", 3);
|
|
269
|
-
this._switchResultPanel = (e) => {
|
|
270
|
-
if (!e.target) {
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
const panelName = e.target?.dataset.panelName;
|
|
274
|
-
if (!panelName) {
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
this.updateResultPanel(panelName);
|
|
278
|
-
};
|
|
279
|
-
this._emitClose = () => this.close.emit();
|
|
280
|
-
this._locale = "";
|
|
281
|
-
this._t9nStrings = undefined;
|
|
282
|
-
this.loading = true;
|
|
283
|
-
this.openedResultPanel = "output";
|
|
284
|
-
this.result = undefined;
|
|
285
|
-
this.consoleLogs = undefined;
|
|
286
|
-
}
|
|
287
|
-
//#endregion
|
|
288
|
-
// #region Component lifecycle events
|
|
289
|
-
async componentWillLoad() {
|
|
290
|
-
await $(this, getAssetPath("./assets"));
|
|
291
|
-
}
|
|
292
|
-
disconnectedCallback() {
|
|
293
|
-
F(this);
|
|
294
|
-
}
|
|
295
|
-
// #endregion
|
|
296
|
-
//#region Private Methods
|
|
297
|
-
updateResultPanel(resultPanelType) {
|
|
298
|
-
this.openedResultPanel = resultPanelType;
|
|
299
|
-
this.openedResultPanelChange.emit(resultPanelType);
|
|
300
|
-
}
|
|
301
|
-
//#endregion
|
|
302
|
-
//#region Rendering
|
|
303
|
-
renderConsolePanel() {
|
|
304
|
-
if (this.openedResultPanel !== "console") {
|
|
305
|
-
return null;
|
|
306
|
-
}
|
|
307
|
-
if (this.loading && !this.consoleLogs?.length) {
|
|
308
|
-
return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
309
|
-
}
|
|
310
|
-
return (h("div", { class: "console-logs-container ltr-container" }, this.consoleLogs?.length ? (this.consoleLogs.map((log) => {
|
|
311
|
-
return h("p", null, log);
|
|
312
|
-
})) : (h("p", null, this._t9nStrings?.consolemessage))));
|
|
313
|
-
}
|
|
314
|
-
renderLogPanel() {
|
|
315
|
-
if (this.openedResultPanel !== "log") {
|
|
316
|
-
return null;
|
|
317
|
-
}
|
|
318
|
-
if (this.loading) {
|
|
319
|
-
return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
320
|
-
}
|
|
321
|
-
const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
|
|
322
|
-
return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: B(this._t9nStrings?.lastexecutionformat, {
|
|
323
|
-
timeStamp: new Intl.DateTimeFormat(this._locale, { dateStyle: "medium", timeStyle: "medium" }).format(this.result.timeStamp)
|
|
324
|
-
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: B(this._t9nStrings?.compilationtimeformat, {
|
|
325
|
-
time: new Intl.NumberFormat(this._locale, {
|
|
326
|
-
style: "unit",
|
|
327
|
-
unit: "millisecond",
|
|
328
|
-
maximumFractionDigits: 2
|
|
329
|
-
}).format(this.result.compilationTime ?? 0)
|
|
330
|
-
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: B(this._t9nStrings?.executiontimeformat, {
|
|
331
|
-
time: new Intl.NumberFormat(this._locale, {
|
|
332
|
-
style: "unit",
|
|
333
|
-
unit: "millisecond",
|
|
334
|
-
maximumFractionDigits: 2
|
|
335
|
-
}).format(this.result.executionTime ?? 0)
|
|
336
|
-
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })))) : (h("calcite-list-item", { label: this._t9nStrings?.runscriptmessage ?? "No output, run the script once." }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: "color-info" })))));
|
|
337
|
-
}
|
|
338
|
-
renderOutputPanel() {
|
|
339
|
-
if (this.openedResultPanel !== "output") {
|
|
340
|
-
return null;
|
|
341
|
-
}
|
|
342
|
-
if (this.loading) {
|
|
343
|
-
return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
344
|
-
}
|
|
345
|
-
switch (this.result?.type) {
|
|
346
|
-
case "error":
|
|
347
|
-
return (h("div", { class: "result-value-simple flex-adjustable" }, B(this._t9nStrings?.executionerrorformat, {
|
|
348
|
-
message: this.result.value
|
|
349
|
-
})));
|
|
350
|
-
case "null":
|
|
351
|
-
case "unknown":
|
|
352
|
-
return h("div", { class: "result-value-simple ltr-container" }, this.renderSimpleValue(this.result));
|
|
353
|
-
case "text":
|
|
354
|
-
case "number":
|
|
355
|
-
case "date":
|
|
356
|
-
case "dateOnly":
|
|
357
|
-
case "time":
|
|
358
|
-
case "boolean":
|
|
359
|
-
return (h("div", { class: "result-value-simple ltr-container" }, h("span", { class: "value-type" }, this.result.type, ":\u00A0"), this.renderSimpleValue(this.result)));
|
|
360
|
-
case "array": {
|
|
361
|
-
const items = this.result.value ?? [];
|
|
362
|
-
const firstItems = items.slice(0, MaxArrayItems);
|
|
363
|
-
return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.renderArrayHeader(this.result)), this.renderArrayTree(firstItems, true)))));
|
|
364
|
-
}
|
|
365
|
-
case "geometry":
|
|
366
|
-
return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), this.renderGeometryTree(this.result.value, true)))));
|
|
367
|
-
case "attachment":
|
|
368
|
-
return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), this.renderDictionaryAsJsonTree(this.result.value, true)))));
|
|
369
|
-
case "feature":
|
|
370
|
-
case "dictionary":
|
|
371
|
-
case "portal":
|
|
372
|
-
return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), this.renderDictionaryTree(this.result.value, true)))));
|
|
373
|
-
case "featureSet":
|
|
374
|
-
return (h("div", { class: "result-value-table ltr-container" }, this.renderFeatureSetLabel(this.result), this.renderFeatureSetTable(this.result)));
|
|
375
|
-
default:
|
|
376
|
-
return (h("div", { class: "result-value-simple flex-adjustable ltr-container" }, this._t9nStrings?.runscriptmessage));
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
renderDictionaryProperty(key) {
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region Helper Functions
|
|
312
|
+
function renderDictionaryProperty(key) {
|
|
380
313
|
return (h(Fragment, null, h("span", { class: "dictionary-property" }, key), h("span", null, ":\u00A0")));
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
switch (arcadeResult.type) {
|
|
384
|
-
case "unknown":
|
|
385
|
-
case "null":
|
|
386
|
-
return h("span", { class: "constant-value" }, arcadeResult.type);
|
|
387
|
-
case "text":
|
|
388
|
-
return h("span", { class: "string-value" }, W(arcadeResult.value));
|
|
389
|
-
case "number":
|
|
390
|
-
return h("span", { class: "number-value" }, arcadeResult.value.toString());
|
|
391
|
-
case "boolean":
|
|
392
|
-
return h("span", { class: "constant-value" }, arcadeResult.value.toString());
|
|
393
|
-
case "date":
|
|
394
|
-
return h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
|
|
395
|
-
case "dateOnly":
|
|
396
|
-
return h("span", { class: "string-value" }, W(formatArcadeResultDateOnly(arcadeResult)));
|
|
397
|
-
case "time":
|
|
398
|
-
return h("span", { class: "string-value" }, W(formatArcadeResultTimeOnly(arcadeResult)));
|
|
399
|
-
default:
|
|
400
|
-
return null;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
renderArrayHeader(arcadeResult) {
|
|
404
|
-
const items = arcadeResult.value ?? [];
|
|
405
|
-
const leftoverCount = Math.max(items.length - MaxArrayItems, 0);
|
|
406
|
-
return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", B(this._t9nStrings?.showingfirstitemsformat, {
|
|
407
|
-
count: MaxArrayItems.toString()
|
|
408
|
-
}))) : null));
|
|
409
|
-
}
|
|
410
|
-
renderArrayTree(items, subtree = false) {
|
|
411
|
-
return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, items.map((value, key) => {
|
|
412
|
-
const arcadeValue = valueToArcadeResult(value);
|
|
413
|
-
return this.renderTreeItem(arcadeValue, key, !subtree);
|
|
414
|
-
})));
|
|
415
|
-
}
|
|
416
|
-
renderGeometryTree(value, subtree = false) {
|
|
417
|
-
return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty("type"), value.type)), h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty("value"), h("span", { class: "string-value" }, jsonFormat(value.toJSON()))))));
|
|
418
|
-
}
|
|
419
|
-
renderDictionaryAsJsonTree(value, subtree = false) {
|
|
314
|
+
}
|
|
315
|
+
function renderDictionaryAsJsonTree(value, subtree = false) {
|
|
420
316
|
return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", { class: "string-value" }, jsonFormat(value.castAsJson()))));
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
return this.renderTreeItem(arcadeValue, key);
|
|
427
|
-
}), geometry ? this.renderTreeItem({ type: "geometry", value: geometry }, "geometry") : null));
|
|
428
|
-
}
|
|
429
|
-
renderTreeItem(arcadeResult, key, expanded = false) {
|
|
317
|
+
}
|
|
318
|
+
function renderGeometryTree(value, subtree = false) {
|
|
319
|
+
return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, renderDictionaryProperty("type"), value.type)), h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, renderDictionaryProperty("value"), h("span", { class: "string-value" }, jsonFormat(value.toJSON()))))));
|
|
320
|
+
}
|
|
321
|
+
function renderSimpleValue(arcadeResult) {
|
|
430
322
|
switch (arcadeResult.type) {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
case "portal":
|
|
452
|
-
return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty(key), h("span", null, arcadeResult.type)), this.renderDictionaryTree(arcadeResult.value, true)));
|
|
453
|
-
default:
|
|
454
|
-
return null;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
renderFeatureSetLabel(arcadeResult) {
|
|
458
|
-
return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", B(this._t9nStrings?.showingfirstitemsformat, {
|
|
459
|
-
count: BatchSize.toString()
|
|
460
|
-
}))) : null));
|
|
461
|
-
}
|
|
462
|
-
renderFeatureSetTable(arcadeResult) {
|
|
323
|
+
case "unknown":
|
|
324
|
+
case "null":
|
|
325
|
+
return h("span", { class: "constant-value" }, arcadeResult.type);
|
|
326
|
+
case "text":
|
|
327
|
+
return h("span", { class: "string-value" }, Q(arcadeResult.value));
|
|
328
|
+
case "number":
|
|
329
|
+
return h("span", { class: "number-value" }, arcadeResult.value.toString());
|
|
330
|
+
case "boolean":
|
|
331
|
+
return h("span", { class: "constant-value" }, arcadeResult.value.toString());
|
|
332
|
+
case "date":
|
|
333
|
+
return h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
|
|
334
|
+
case "dateOnly":
|
|
335
|
+
return h("span", { class: "string-value" }, Q(formatArcadeResultDateOnly(arcadeResult)));
|
|
336
|
+
case "time":
|
|
337
|
+
return h("span", { class: "string-value" }, Q(formatArcadeResultTimeOnly(arcadeResult)));
|
|
338
|
+
default:
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function renderFeatureSetTable(arcadeResult) {
|
|
463
343
|
const fields = supportedFields(arcadeResult.value.fields);
|
|
464
|
-
return (h("table", null, h("thead", null, h("tr", null, fields.map((field) => (h("th", null, field.name))))), h("tbody", null, arcadeResult.features.map((feature) => {
|
|
465
|
-
return (h("tr", null, fields.map((field) => {
|
|
344
|
+
return (h("table", null, h("thead", null, h("tr", null, fields.map((field) => (h("th", null, field.name))))), h("tbody", null, arcadeResult.features.map((feature) => (h("tr", null, fields.map((field) => {
|
|
466
345
|
try {
|
|
467
|
-
|
|
468
|
-
|
|
346
|
+
const arcadeResult = valueToArcadeResult(feature.field(field.name));
|
|
347
|
+
return h("td", null, renderSimpleValue(arcadeResult));
|
|
348
|
+
}
|
|
349
|
+
catch {
|
|
350
|
+
return h("td", null);
|
|
351
|
+
}
|
|
352
|
+
})))))));
|
|
353
|
+
}
|
|
354
|
+
const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeResults extends HTMLElement {
|
|
355
|
+
constructor() {
|
|
356
|
+
super();
|
|
357
|
+
this.__registerHost();
|
|
358
|
+
this.__attachShadow();
|
|
359
|
+
this.openedResultPanelChange = createEvent(this, "openedResultPanelChange", 3);
|
|
360
|
+
this.close = createEvent(this, "close", 3);
|
|
361
|
+
this._switchResultPanel = (e) => {
|
|
362
|
+
if (!e.target) {
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
const panelName = e.target?.dataset.panelName;
|
|
366
|
+
if (!panelName) {
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
this.updateResultPanel(panelName);
|
|
370
|
+
};
|
|
371
|
+
this._emitClose = () => this.close.emit();
|
|
372
|
+
this._lang = "";
|
|
373
|
+
this._t9nLocale = "";
|
|
374
|
+
this._t9nStrings = undefined;
|
|
375
|
+
this.loading = true;
|
|
376
|
+
this.openedResultPanel = "output";
|
|
377
|
+
this.result = undefined;
|
|
378
|
+
this.consoleLogs = undefined;
|
|
379
|
+
}
|
|
380
|
+
//#endregion
|
|
381
|
+
// #region Component lifecycle events
|
|
382
|
+
async componentWillLoad() {
|
|
383
|
+
await B(this, getAssetPath("./assets"));
|
|
384
|
+
}
|
|
385
|
+
disconnectedCallback() {
|
|
386
|
+
H(this);
|
|
387
|
+
}
|
|
388
|
+
// #endregion
|
|
389
|
+
//#region Private Methods
|
|
390
|
+
updateResultPanel(resultPanelType) {
|
|
391
|
+
this.openedResultPanel = resultPanelType;
|
|
392
|
+
this.openedResultPanelChange.emit(resultPanelType);
|
|
393
|
+
}
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region Rendering
|
|
396
|
+
renderConsolePanel() {
|
|
397
|
+
if (this.openedResultPanel !== "console") {
|
|
398
|
+
return null;
|
|
399
|
+
}
|
|
400
|
+
if (this.loading && !this.consoleLogs?.length) {
|
|
401
|
+
return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
402
|
+
}
|
|
403
|
+
return (h("div", { class: "console-logs-container ltr-container" }, this.consoleLogs?.length ? (this.consoleLogs.map((log) => h("p", null, log))) : (h("p", null, this._t9nStrings?.consolemessage))));
|
|
404
|
+
}
|
|
405
|
+
renderLogPanel() {
|
|
406
|
+
if (this.openedResultPanel !== "log") {
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
409
|
+
if (this.loading) {
|
|
410
|
+
return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
411
|
+
}
|
|
412
|
+
const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
|
|
413
|
+
return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: K(this._t9nStrings?.lastexecutionformat, {
|
|
414
|
+
timeStamp: new Intl.DateTimeFormat(this._t9nLocale, {
|
|
415
|
+
dateStyle: "medium",
|
|
416
|
+
timeStyle: "medium"
|
|
417
|
+
}).format(this.result.timeStamp)
|
|
418
|
+
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: K(this._t9nStrings?.compilationtimeformat, {
|
|
419
|
+
time: new Intl.NumberFormat(this._t9nLocale, {
|
|
420
|
+
style: "unit",
|
|
421
|
+
unit: "millisecond",
|
|
422
|
+
maximumFractionDigits: 2
|
|
423
|
+
}).format(this.result.compilationTime ?? 0)
|
|
424
|
+
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: K(this._t9nStrings?.executiontimeformat, {
|
|
425
|
+
time: new Intl.NumberFormat(this._t9nLocale, {
|
|
426
|
+
style: "unit",
|
|
427
|
+
unit: "millisecond",
|
|
428
|
+
maximumFractionDigits: 2
|
|
429
|
+
}).format(this.result.executionTime ?? 0)
|
|
430
|
+
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })))) : (h("calcite-list-item", { label: this._t9nStrings?.runscriptmessage ?? "No output, run the script once." }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: "color-info" })))));
|
|
431
|
+
}
|
|
432
|
+
renderOutputPanel() {
|
|
433
|
+
if (this.openedResultPanel !== "output") {
|
|
434
|
+
return null;
|
|
435
|
+
}
|
|
436
|
+
if (this.loading) {
|
|
437
|
+
return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
469
438
|
}
|
|
470
|
-
|
|
471
|
-
|
|
439
|
+
switch (this.result?.type) {
|
|
440
|
+
case "error":
|
|
441
|
+
return (h("div", { class: "result-value-simple flex-adjustable" }, K(this._t9nStrings?.executionerrorformat, {
|
|
442
|
+
message: this.result.value
|
|
443
|
+
})));
|
|
444
|
+
case "null":
|
|
445
|
+
case "unknown":
|
|
446
|
+
return h("div", { class: "result-value-simple ltr-container" }, renderSimpleValue(this.result));
|
|
447
|
+
case "text":
|
|
448
|
+
case "number":
|
|
449
|
+
case "date":
|
|
450
|
+
case "dateOnly":
|
|
451
|
+
case "time":
|
|
452
|
+
case "boolean":
|
|
453
|
+
return (h("div", { class: "result-value-simple ltr-container" }, h("span", { class: "value-type" }, this.result.type, ":\u00A0"), renderSimpleValue(this.result)));
|
|
454
|
+
case "array": {
|
|
455
|
+
const items = this.result.value ?? [];
|
|
456
|
+
const firstItems = items.slice(0, MaxArrayItems);
|
|
457
|
+
return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.renderArrayHeader(this.result)), this.renderArrayTree(firstItems, true)))));
|
|
458
|
+
}
|
|
459
|
+
case "geometry":
|
|
460
|
+
return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), renderGeometryTree(this.result.value, true)))));
|
|
461
|
+
case "attachment":
|
|
462
|
+
return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), renderDictionaryAsJsonTree(this.result.value, true)))));
|
|
463
|
+
case "feature":
|
|
464
|
+
case "dictionary":
|
|
465
|
+
case "portal":
|
|
466
|
+
return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), this.renderDictionaryTree(this.result.value, true)))));
|
|
467
|
+
case "featureSet":
|
|
468
|
+
return (h("div", { class: "result-value-table ltr-container" }, this.renderFeatureSetLabel(this.result), renderFeatureSetTable(this.result)));
|
|
469
|
+
case "knowledgeGraph":
|
|
470
|
+
return (h("div", { class: "result-value-simple ltr-container" }, h("span", { class: "value-type" }, this.result.type, ":\u00A0"), h("span", { class: "string-value" }, this.result.value.url)));
|
|
471
|
+
default:
|
|
472
|
+
return (h("div", { class: "result-value-simple flex-adjustable ltr-container" }, this._t9nStrings?.runscriptmessage));
|
|
472
473
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
474
|
+
}
|
|
475
|
+
renderArrayHeader(arcadeResult) {
|
|
476
|
+
const items = arcadeResult.value ?? [];
|
|
477
|
+
const leftoverCount = Math.max(items.length - MaxArrayItems, 0);
|
|
478
|
+
return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", K(this._t9nStrings?.showingfirstitemsformat, {
|
|
479
|
+
count: MaxArrayItems.toString()
|
|
480
|
+
}))) : null));
|
|
481
|
+
}
|
|
482
|
+
renderArrayTree(items, subtree = false) {
|
|
483
|
+
return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, items.map((value, key) => {
|
|
484
|
+
const arcadeValue = valueToArcadeResult(value);
|
|
485
|
+
return this.renderTreeItem(arcadeValue, key, !subtree);
|
|
486
|
+
})));
|
|
487
|
+
}
|
|
488
|
+
renderDictionaryTree(value, subtree = false) {
|
|
489
|
+
const geometry = value.geometry?.();
|
|
490
|
+
return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, value.keys().map((key) => {
|
|
491
|
+
const arcadeValue = valueToArcadeResult(value.field(key));
|
|
492
|
+
return this.renderTreeItem(arcadeValue, key);
|
|
493
|
+
}), geometry ? this.renderTreeItem({ type: "geometry", value: geometry }, "geometry") : null));
|
|
494
|
+
}
|
|
495
|
+
renderTreeItem(arcadeResult, key, expanded = false) {
|
|
496
|
+
switch (arcadeResult.type) {
|
|
497
|
+
case "null":
|
|
498
|
+
case "unknown":
|
|
499
|
+
case "text":
|
|
500
|
+
case "number":
|
|
501
|
+
case "date":
|
|
502
|
+
case "dateOnly":
|
|
503
|
+
case "time":
|
|
504
|
+
case "boolean":
|
|
505
|
+
return (h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), renderSimpleValue(arcadeResult))));
|
|
506
|
+
case "array": {
|
|
507
|
+
const items = arcadeResult.value ?? [];
|
|
508
|
+
const firstItems = items.slice(0, MaxArrayItems);
|
|
509
|
+
return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), this.renderArrayHeader(arcadeResult)), this.renderArrayTree(firstItems, true)));
|
|
510
|
+
}
|
|
511
|
+
case "geometry":
|
|
512
|
+
return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), h("span", null, arcadeResult.type)), renderGeometryTree(arcadeResult.value, true)));
|
|
513
|
+
case "attachment":
|
|
514
|
+
return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), h("span", null, arcadeResult.type)), renderDictionaryAsJsonTree(arcadeResult.value, true)));
|
|
515
|
+
case "feature":
|
|
516
|
+
case "dictionary":
|
|
517
|
+
case "portal":
|
|
518
|
+
return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), h("span", null, arcadeResult.type)), this.renderDictionaryTree(arcadeResult.value, true)));
|
|
519
|
+
default:
|
|
520
|
+
return null;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
renderFeatureSetLabel(arcadeResult) {
|
|
524
|
+
return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", K(this._t9nStrings?.showingfirstitemsformat, {
|
|
525
|
+
count: BatchSize.toString()
|
|
526
|
+
}))) : null));
|
|
527
|
+
}
|
|
528
|
+
render() {
|
|
529
|
+
return (h(Host, null, h("header", { class: "flex-row" }, h("calcite-action-bar", { class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { scale: "s" }, h("calcite-action", { active: this.openedResultPanel === "output", text: this._t9nStrings?.output ?? "Output", "text-enabled": true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { active: this.openedResultPanel === "console", text: this._t9nStrings?.console ?? "Console", "text-enabled": true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { active: this.openedResultPanel === "log", text: this._t9nStrings?.log ?? "Log", "text-enabled": true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { scale: "s", icon: "x", text: this._t9nStrings?.close ?? "", onClick: this._emitClose })), h("article", { class: "flex-adjustable" }, this.loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: "" })) : (h("div", { class: "flex-column y-scrollable-container" }, this.renderOutputPanel(), this.renderConsolePanel(), this.renderLogPanel())))));
|
|
530
|
+
}
|
|
531
|
+
static get assetsDirs() { return ["assets"]; }
|
|
532
|
+
get _hostElement() { return this; }
|
|
533
|
+
static get style() { return arcadeResultsCss; }
|
|
482
534
|
}, [1, "arcgis-arcade-results", {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
535
|
+
"loading": [4],
|
|
536
|
+
"openedResultPanel": [1537, "opened-result-panel"],
|
|
537
|
+
"result": [16],
|
|
538
|
+
"consoleLogs": [16],
|
|
539
|
+
"_lang": [32],
|
|
540
|
+
"_t9nLocale": [32],
|
|
541
|
+
"_t9nStrings": [32]
|
|
542
|
+
}]);
|
|
490
543
|
function defineCustomElement() {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
544
|
+
if (typeof customElements === "undefined") {
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
const components = ["arcgis-arcade-results"];
|
|
548
|
+
components.forEach(tagName => { switch (tagName) {
|
|
549
|
+
case "arcgis-arcade-results":
|
|
550
|
+
if (!customElements.get(tagName)) {
|
|
551
|
+
customElements.define(tagName, ArcgisArcadeResults);
|
|
552
|
+
}
|
|
553
|
+
break;
|
|
554
|
+
} });
|
|
502
555
|
}
|
|
503
556
|
defineCustomElement();
|
|
504
557
|
|