@arcgis/coding-components 4.29.0-beta.11 → 4.29.0-beta.110
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-ff06e912.js → p-06f39793.js} +7 -2
- package/dist/arcgis-coding-components/{p-310f0408.js → p-0b4995df.js} +7 -2
- package/dist/arcgis-coding-components/p-356ca5d3.js +7 -0
- package/dist/arcgis-coding-components/{p-443fe20e.js → p-4d58beca.js} +7 -2
- package/dist/arcgis-coding-components/{p-b3500466.js → p-567ee7d3.js} +7 -2
- package/dist/arcgis-coding-components/p-5e2653b4.entry.js +6 -0
- package/dist/arcgis-coding-components/p-7a575e52.js +68 -0
- package/dist/arcgis-coding-components/{p-9dd33d3e.js → p-a90212eb.js} +7 -2
- package/dist/arcgis-coding-components/{p-9a164b63.js → p-aceb9f91.js} +8 -3
- package/dist/arcgis-coding-components/{p-b83db734.js → p-b48f9897.js} +7 -2
- package/dist/arcgis-coding-components/p-e90b1f2f.js +6 -0
- package/dist/arcgis-coding-components/{p-cfff9500.js → p-ff11efd4.js} +6 -1
- package/dist/cjs/{arcade-defaults-e128d6d9.js → arcade-defaults-c274c792.js} +13204 -11292
- package/dist/cjs/arcade-mode-e7a5feec.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-3d77c5a8.js} +6 -1
- package/dist/cjs/{cssMode-8c1d563a.js → cssMode-79b21179.js} +8 -3
- package/dist/cjs/{html-ead03bbb.js → html-176c4248.js} +8 -3
- package/dist/cjs/{htmlMode-5e1a0115.js → htmlMode-4fff608a.js} +8 -3
- package/dist/cjs/{index-f8a85eb8.js → index-8eb42874.js} +395 -101
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-3fe2de06.js → javascript-cb5b58a7.js} +9 -4
- package/dist/cjs/{jsonMode-8b4b19f9.js → jsonMode-b6e8a3b4.js} +8 -3
- package/dist/cjs/loader.cjs.js +8 -12
- package/dist/cjs/{tsMode-b9491227.js → tsMode-97f32109.js} +8 -3
- package/dist/cjs/{typescript-524fddbc.js → typescript-002b1bed.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-d6c47dac.js} +13196 -11284
- package/dist/esm/arcade-mode-77aefd9b.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-4b82e605.js} +6 -1
- package/dist/esm/{cssMode-cb48c437.js → cssMode-7229ff3a.js} +8 -3
- package/dist/esm/{html-e7c0bd60.js → html-c3b25474.js} +8 -3
- package/dist/esm/{htmlMode-46638b7f.js → htmlMode-0e07604f.js} +8 -3
- package/dist/esm/{index-d4ec142a.js → index-09479ad2.js} +395 -101
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-2229cd63.js → javascript-a0d8a182.js} +9 -4
- package/dist/esm/{jsonMode-08a2f0d2.js → jsonMode-2bbed644.js} +8 -3
- package/dist/esm/loader.js +8 -12
- package/dist/esm/{tsMode-46d0d8e8.js → tsMode-b8728ce8.js} +8 -3
- package/dist/esm/{typescript-88a09694.js → typescript-4b81fd47.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,18 @@
|
|
|
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.110
|
|
5
|
+
*/
|
|
1
6
|
import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h as h$1, Fragment, Host } from '@stencil/core/internal/client';
|
|
2
7
|
import { editor, KeyCode } from 'monaco-editor';
|
|
3
8
|
import { e as executeScript, D as DevelopersWebSitePath, d as defineCustomElement$5 } from './arcade-results.js';
|
|
4
|
-
import { h,
|
|
5
|
-
import { s as setupMonacoEnvironment,
|
|
9
|
+
import { h, U, k, B, H } from './index2.js';
|
|
10
|
+
import { s as setupMonacoEnvironment, a as getArcadeDiagnosticService } from './arcade-contribution.js';
|
|
6
11
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
7
12
|
import '@esri/calcite-components/dist/components/calcite-action-bar.js';
|
|
8
13
|
import '@esri/calcite-components/dist/components/calcite-action-group.js';
|
|
9
14
|
import '@esri/calcite-components/dist/components/calcite-action.js';
|
|
15
|
+
import '@esri/calcite-components/dist/components/calcite-tooltip.js';
|
|
10
16
|
import { d as defineCustomElement$6 } from './arcade-api.js';
|
|
11
17
|
import { d as defineCustomElement$4 } from './arcade-suggestions.js';
|
|
12
18
|
import { d as defineCustomElement$3 } from './arcade-variables.js';
|
|
@@ -34,419 +40,439 @@ const themeConfig = {
|
|
|
34
40
|
};
|
|
35
41
|
|
|
36
42
|
function setupArcadeTheme() {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
["light", "dark"].forEach((theme) => {
|
|
44
|
+
const base = theme === "light" ? "vs" : "vs-dark";
|
|
45
|
+
const colors = themeConfig[`arcade-${theme}-theme`];
|
|
46
|
+
// Defines the light and dark theme based on the calcite theme name
|
|
47
|
+
editor.defineTheme(base, {
|
|
48
|
+
base,
|
|
49
|
+
inherit: true,
|
|
50
|
+
rules: [
|
|
51
|
+
{ token: "comment.arc", foreground: colors.comment },
|
|
52
|
+
{ token: "constant.arc", foreground: colors.constant },
|
|
53
|
+
{ token: "keyword.arc", foreground: colors.keyword },
|
|
54
|
+
{ token: "identifier.arc", foreground: colors.identifier },
|
|
55
|
+
{ token: "number.arc", foreground: colors.number },
|
|
56
|
+
{ token: "string.arc", foreground: colors.string }
|
|
57
|
+
],
|
|
58
|
+
colors: {}
|
|
59
|
+
});
|
|
53
60
|
});
|
|
54
|
-
});
|
|
55
61
|
}
|
|
62
|
+
const monacoThemeKeys = ["comment", "keyword", "identifier", "string", "number", "constant"];
|
|
63
|
+
const colorRulesKeys = [...monacoThemeKeys, "date"];
|
|
56
64
|
function updateThemeColors(theme, colorRules) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
const base = theme === "light" ? "vs" : "vs-dark";
|
|
62
|
-
const rules = [];
|
|
63
|
-
["comment", "keyword", "identifier", "string", "number", "constant"].forEach((key) => {
|
|
64
|
-
// @ts-expect-error
|
|
65
|
-
const foreground = colorRules[key];
|
|
66
|
-
if (!foreground) {
|
|
67
|
-
return;
|
|
65
|
+
if (colorRules === undefined) {
|
|
66
|
+
setupArcadeTheme();
|
|
67
|
+
return;
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
const base = theme === "light" ? "vs" : "vs-dark";
|
|
70
|
+
const rules = [];
|
|
71
|
+
monacoThemeKeys.forEach((key) => {
|
|
72
|
+
const foreground = colorRules[key];
|
|
73
|
+
if (!foreground) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
rules.push({ token: `${key}.arc`, foreground });
|
|
77
|
+
});
|
|
78
|
+
editor.defineTheme(base, { base, inherit: true, rules, colors: {} });
|
|
72
79
|
}
|
|
73
80
|
|
|
74
|
-
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;height:100%;width:100%;position:relative;overflow:hidden;border:1px solid var(--calcite-
|
|
81
|
+
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;height:100%;width:100%;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1)}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-color-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}arcgis-arcade-editor calcite-list-item-group calcite-list-item{margin-bottom:1px;box-shadow:0 1px 0 var(--calcite-color-border-3)}arcgis-arcade-editor calcite-list-item-group calcite-list-item:last-child{box-shadow:none}arcgis-arcade-editor calcite-list-item-group:last-child{margin-bottom:var(--calcite-spacing-1)}";
|
|
75
82
|
|
|
76
83
|
setupArcadeTheme();
|
|
77
|
-
const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
84
|
+
const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
|
|
85
|
+
constructor() {
|
|
86
|
+
super();
|
|
87
|
+
this.__registerHost();
|
|
88
|
+
this.scriptChange = createEvent(this, "scriptChange", 3);
|
|
89
|
+
this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
|
|
90
|
+
this._componentReadyDefer = new h();
|
|
91
|
+
this._modelId = U();
|
|
92
|
+
this._editorProfilePromise = Promise.resolve(undefined);
|
|
93
|
+
this._disposables = [];
|
|
94
|
+
this._executeScript = async () => {
|
|
95
|
+
const testContext = this.testData;
|
|
96
|
+
if (!this._codeEditorElt || !testContext) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const editorProfile = await this._editorProfilePromise;
|
|
100
|
+
if (!editorProfile) {
|
|
101
|
+
this._executionResult = { type: "error", value: "Missing editor profile", error: null };
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
this._showExecutionPanel = true;
|
|
105
|
+
this._executingScript = true;
|
|
106
|
+
this._consoleLogs = [];
|
|
107
|
+
setTimeout(() => void (async () => {
|
|
108
|
+
const script = await this._codeEditorElt?.getValue();
|
|
109
|
+
this._executionResult = await executeScript(editorProfile.definition, script, testContext, (log) => setTimeout(() => (this._consoleLogs = [...this._consoleLogs, log]), 0));
|
|
110
|
+
this._executingScript = false;
|
|
111
|
+
})(), 0);
|
|
112
|
+
};
|
|
113
|
+
this._toggleShowExecutionPanel = () => void (this._showExecutionPanel = !this._showExecutionPanel);
|
|
114
|
+
this._toggleSideActionBarExpanded = () => void (this.sideActionBarExpanded = !this.sideActionBarExpanded);
|
|
115
|
+
this._toggleSidePanel = async (e) => {
|
|
116
|
+
if (!e.target) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const panelName = e.target?.dataset.panelName ?? "none";
|
|
120
|
+
// Setup the new panel. Toggle to none if already opened
|
|
121
|
+
this.openedSidePanel = panelName === this.openedSidePanel ? "none" : panelName;
|
|
122
|
+
if (this.openedSidePanel === "none") {
|
|
123
|
+
// Reset focus on the code editor if no panel displayed
|
|
124
|
+
await this._codeEditorElt?.setFocus();
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
this._openArcadeHelp = () => void window.open(DevelopersWebSitePath, "Arcade Help");
|
|
128
|
+
this._emitScriptChange = (e) => {
|
|
129
|
+
e.stopPropagation();
|
|
130
|
+
this.scriptChange.emit(e.detail);
|
|
131
|
+
};
|
|
132
|
+
this._insertAsSnippet = async (e) => await this._codeEditorElt?.insertSnippet(e.detail);
|
|
133
|
+
this._insertAsText = async (e) => await this._codeEditorElt?.insertText(e.detail);
|
|
134
|
+
this._onResultPanelChange = (e) => void (this._resultPanel = e.detail);
|
|
135
|
+
this._onExecutionPanelClose = () => void (this._showExecutionPanel = false);
|
|
136
|
+
this._lang = "";
|
|
137
|
+
this._t9nLocale = "";
|
|
138
|
+
this._t9nStrings = undefined;
|
|
139
|
+
this._standaloneCodeEditor = undefined;
|
|
140
|
+
this._preparingProfile = false;
|
|
141
|
+
this._editorProfile = undefined;
|
|
142
|
+
this._showExecutionPanel = false;
|
|
143
|
+
this._resultPanel = "output";
|
|
103
144
|
this._executingScript = false;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
145
|
+
this._consoleLogs = [];
|
|
146
|
+
this._executionResult = undefined;
|
|
147
|
+
this.profile = undefined;
|
|
148
|
+
this.script = "";
|
|
149
|
+
this.testData = undefined;
|
|
150
|
+
this.suggestions = undefined;
|
|
151
|
+
this.snippets = undefined;
|
|
152
|
+
this.hideDocumentationActions = false;
|
|
153
|
+
this.hideSideBar = false;
|
|
154
|
+
this.sideActionBarExpanded = false;
|
|
155
|
+
this.openedSidePanel = "none";
|
|
156
|
+
}
|
|
157
|
+
_profileChanged(newValue, oldValue) {
|
|
158
|
+
// Prevent the execution as long as the component has not been fully loaded
|
|
159
|
+
if (newValue === oldValue) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
this._updateEditorProfile().catch(console.error);
|
|
163
|
+
}
|
|
164
|
+
_testDataChanged(newValue, oldValue) {
|
|
165
|
+
if (newValue === oldValue || !this._showExecutionPanel) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
this._executeScript().catch(console.error);
|
|
169
|
+
}
|
|
170
|
+
_snippetChanged(newValue, oldValue) {
|
|
171
|
+
if (newValue === oldValue) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
arcadeDefaults.updateApiContextForModel(this._modelId, {
|
|
175
|
+
snippets: this.snippets
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
// #endregion
|
|
179
|
+
// #region Public methods API
|
|
180
|
+
/**
|
|
181
|
+
* Returns the current script.
|
|
182
|
+
* @returns {Promise<string>}
|
|
183
|
+
*/
|
|
184
|
+
async getScript() {
|
|
185
|
+
await this._componentReadyDefer.promise;
|
|
186
|
+
return await this._codeEditorElt?.getValue();
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Set the focus on the element.
|
|
190
|
+
*/
|
|
191
|
+
async setFocus() {
|
|
192
|
+
await this._componentReadyDefer.promise;
|
|
117
193
|
await this._codeEditorElt?.setFocus();
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
this._openArcadeHelp = () => window.open(DevelopersWebSitePath, "Arcade Help");
|
|
121
|
-
this._emitScriptChange = (e) => {
|
|
122
|
-
e.stopPropagation();
|
|
123
|
-
this.scriptChange.emit(e.detail);
|
|
124
|
-
};
|
|
125
|
-
this._insertAsSnippet = (e) => this._codeEditorElt?.insertSnippet(e.detail);
|
|
126
|
-
this._insertAsText = (e) => this._codeEditorElt?.insertText(e.detail);
|
|
127
|
-
this._onResultPanelChange = (e) => (this._resultPanel = e.detail);
|
|
128
|
-
this._onExecutionPanelClose = () => (this._showExecutionPanel = false);
|
|
129
|
-
this._locale = "";
|
|
130
|
-
this._t9nStrings = undefined;
|
|
131
|
-
this._standaloneCodeEditor = undefined;
|
|
132
|
-
this._preparingProfile = false;
|
|
133
|
-
this._editorProfile = undefined;
|
|
134
|
-
this._showExecutionPanel = false;
|
|
135
|
-
this._resultPanel = "output";
|
|
136
|
-
this._executingScript = false;
|
|
137
|
-
this._consoleLogs = [];
|
|
138
|
-
this._executionResult = undefined;
|
|
139
|
-
this.profile = undefined;
|
|
140
|
-
this.script = "";
|
|
141
|
-
this.testData = undefined;
|
|
142
|
-
this.suggestions = undefined;
|
|
143
|
-
this.snippets = undefined;
|
|
144
|
-
this.hideDocumentationActions = false;
|
|
145
|
-
this.hideSideBar = false;
|
|
146
|
-
this.sideActionBarExpanded = false;
|
|
147
|
-
this.openedSidePanel = "none";
|
|
148
|
-
}
|
|
149
|
-
_profileChanged(newValue, oldValue) {
|
|
150
|
-
// Prevent the execution as long as the component has not been fully loaded
|
|
151
|
-
if (newValue === oldValue) {
|
|
152
|
-
return;
|
|
153
194
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
* Returns the editor instance.
|
|
198
|
+
* @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
|
|
199
|
+
*/
|
|
200
|
+
async getEditorInstance() {
|
|
201
|
+
await this._componentReadyDefer.promise;
|
|
202
|
+
return (await this._codeEditorElt?.getEditorInstance());
|
|
159
203
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
204
|
+
/**
|
|
205
|
+
* Returns the Arcade result for the script for the provided test data.
|
|
206
|
+
*/
|
|
207
|
+
async getTestResult() {
|
|
208
|
+
if (!this.testData) {
|
|
209
|
+
return { type: "error", value: "Missing test data", error: null };
|
|
210
|
+
}
|
|
211
|
+
const editorProfile = await this._editorProfilePromise;
|
|
212
|
+
if (!editorProfile) {
|
|
213
|
+
return { type: "error", value: "Missing editor profile", error: null };
|
|
214
|
+
}
|
|
215
|
+
await this._componentReadyDefer.promise;
|
|
216
|
+
const script = await this._codeEditorElt?.getValue();
|
|
217
|
+
return await executeScript(editorProfile.definition, script, this.testData);
|
|
165
218
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* @internal
|
|
189
|
-
* Returns the editor instance.
|
|
190
|
-
* @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
|
|
191
|
-
*/
|
|
192
|
-
async getEditorInstance() {
|
|
193
|
-
await this._componentReadyDefer.promise;
|
|
194
|
-
return this._codeEditorElt?.getEditorInstance();
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Returns the Arcade result for the script for the provided test data.
|
|
198
|
-
*/
|
|
199
|
-
async getTestResult() {
|
|
200
|
-
if (!this.testData) {
|
|
201
|
-
return { type: "error", value: "Missing test data", error: null };
|
|
219
|
+
/**
|
|
220
|
+
* Allows to change theme colors
|
|
221
|
+
* @internal
|
|
222
|
+
*/
|
|
223
|
+
async updateThemeColors(colorRules) {
|
|
224
|
+
const theme = k(this._hostElement);
|
|
225
|
+
updateThemeColors(theme, colorRules);
|
|
226
|
+
if (colorRules === undefined) {
|
|
227
|
+
colorRulesKeys.forEach((key) => {
|
|
228
|
+
this._hostElement.style.removeProperty(`--arcgis-arcade-editor-${key}`);
|
|
229
|
+
});
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
colorRulesKeys.forEach((key) => {
|
|
233
|
+
const foreground = colorRules[key];
|
|
234
|
+
if (!foreground) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
this._hostElement.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
|
|
238
|
+
});
|
|
202
239
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
240
|
+
// #endregion
|
|
241
|
+
// #region Component lifecycle events
|
|
242
|
+
async componentWillLoad() {
|
|
243
|
+
const assetsPath = getAssetPath("./assets");
|
|
244
|
+
// We are a bit in a chicken and egg situation here.
|
|
245
|
+
// Normally, it is the code editor that is responsible for setting up the Monaco environement.
|
|
246
|
+
// However, we need to setup the environment before the code editor is instantiated because
|
|
247
|
+
// we need to access the arcade language service to get the api library.
|
|
248
|
+
setupMonacoEnvironment(assetsPath);
|
|
249
|
+
// Starts a locale observer. It will load the correct t9n strings for the component
|
|
250
|
+
// when the locale changes. We also pass updateEditorProfile. It will be invoked the first
|
|
251
|
+
// and on each locale change. The profile has to be refreshed on locale change as well.
|
|
252
|
+
await B(this, assetsPath, async () => await this._updateEditorProfile());
|
|
206
253
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
254
|
+
async componentDidLoad() {
|
|
255
|
+
// Mark on component as ready.
|
|
256
|
+
// Some methods are waiting for this state to actually continue.
|
|
257
|
+
this._componentReadyDefer.resolve();
|
|
258
|
+
// Start listening to the validation diagnostics.
|
|
259
|
+
// We are doing this as late as possible
|
|
260
|
+
const diagnosticsService = await getArcadeDiagnosticService();
|
|
261
|
+
this._disposables.push(diagnosticsService.onDiagnosticsChange((event) => !this._preparingProfile && this.diagnosticsChange.emit(event.diagnostics)));
|
|
262
|
+
// Get editor instance and add action
|
|
263
|
+
this._standaloneCodeEditor = await this.getEditorInstance();
|
|
264
|
+
this._standaloneCodeEditor?.addAction({
|
|
265
|
+
// An unique identifier for the action.
|
|
266
|
+
id: "run-script",
|
|
267
|
+
label: "Run Arcade Expression",
|
|
268
|
+
keybindings: [KeyCode.F5],
|
|
269
|
+
contextMenuGroupId: "code",
|
|
270
|
+
contextMenuOrder: 1,
|
|
271
|
+
run: () => {
|
|
272
|
+
if (this.testData) {
|
|
273
|
+
this._executeScript().catch(console.error);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
await this._codeEditorElt?.setFocus();
|
|
231
278
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
this._hostElt.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
// #endregion
|
|
242
|
-
// #region Component lifecycle events
|
|
243
|
-
async componentWillLoad() {
|
|
244
|
-
const assetsPath = getAssetPath("./assets");
|
|
245
|
-
// We are a bit in a chicken and egg situation here.
|
|
246
|
-
// Normally, it is the code editor that is responsible for setting up the Monaco environement.
|
|
247
|
-
// However, we need to setup the environment before the code editor is instantiated because
|
|
248
|
-
// we need to access the arcade language service to get the api library.
|
|
249
|
-
setupMonacoEnvironment(assetsPath);
|
|
250
|
-
// Starts a locale observer. It will load the correct t9n strings for the component
|
|
251
|
-
// when the locale changes. We also pass updateEditorProfile. It will be invoked the first
|
|
252
|
-
// and on each locale change. The profile has to be refreshed on locale change as well.
|
|
253
|
-
await $(this, assetsPath, async () => await this._updateEditorProfile());
|
|
254
|
-
}
|
|
255
|
-
async componentDidLoad() {
|
|
256
|
-
// Mark on component as ready.
|
|
257
|
-
// Some methods are waiting for this state to actually continue.
|
|
258
|
-
this._componentReadyDefer.resolve();
|
|
259
|
-
// Start listening to the validation diagnostics.
|
|
260
|
-
// We are doing this as late as possible
|
|
261
|
-
const diagnosticsService = await getArcadeDiagnosticService();
|
|
262
|
-
this._disposables.push(diagnosticsService.onDiagnosticsChange((ev) => !this._preparingProfile && this.diagnosticsChange.emit(ev.diagnostics)));
|
|
263
|
-
// Get editor instance and add action
|
|
264
|
-
this._standaloneCodeEditor = await this.getEditorInstance();
|
|
265
|
-
this._standaloneCodeEditor?.addAction({
|
|
266
|
-
// An unique identifier for the action.
|
|
267
|
-
id: "run-script",
|
|
268
|
-
label: "Run Arcade Expression",
|
|
269
|
-
keybindings: [KeyCode.F5],
|
|
270
|
-
contextMenuGroupId: "code",
|
|
271
|
-
contextMenuOrder: 1,
|
|
272
|
-
run: () => {
|
|
273
|
-
if (this.testData) {
|
|
274
|
-
this._executeScript();
|
|
279
|
+
disconnectedCallback() {
|
|
280
|
+
H(this);
|
|
281
|
+
arcadeDefaults.disposeApiContextForModel(this._modelId);
|
|
282
|
+
arcadeDefaults.disposeEditorProfileForModel(this._modelId);
|
|
283
|
+
while (this._disposables.length) {
|
|
284
|
+
this._disposables.pop()?.dispose();
|
|
275
285
|
}
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
await this._codeEditorElt?.setFocus();
|
|
279
|
-
}
|
|
280
|
-
disconnectedCallback() {
|
|
281
|
-
F(this);
|
|
282
|
-
arcadeDefaults.disposeApiContextForModel(this._modelId);
|
|
283
|
-
arcadeDefaults.disposeEditorProfileForModel(this._modelId);
|
|
284
|
-
while (this._disposables.length) {
|
|
285
|
-
this._disposables.pop()?.dispose();
|
|
286
286
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
287
|
+
// #endregion
|
|
288
|
+
// #region Private methods API
|
|
289
|
+
async _updateEditorProfile() {
|
|
290
|
+
// The goal is to
|
|
291
|
+
// - convert the runtime profile into a specialized instance that will serve the UI better.
|
|
292
|
+
// - extract the language service profile that is specialized for completion and validation
|
|
293
|
+
this._preparingProfile = true;
|
|
294
|
+
try {
|
|
295
|
+
// Set a new profile for the model using the profile definition and the locale.
|
|
296
|
+
await arcadeDefaults.setProfileForModel(this._modelId, this.profile, {
|
|
297
|
+
locale: this._t9nLocale,
|
|
298
|
+
snippets: this.snippets
|
|
299
|
+
});
|
|
300
|
+
// Get the corresponding editor profile for the model.
|
|
301
|
+
// The editor profile contains the specialized profile for the UI.
|
|
302
|
+
this._editorProfile = arcadeDefaults.getEditorProfileForModel(this._modelId);
|
|
303
|
+
}
|
|
304
|
+
catch {
|
|
305
|
+
this._editorProfile = undefined;
|
|
306
|
+
}
|
|
307
|
+
finally {
|
|
308
|
+
this._editorProfilePromise = Promise.resolve(this._editorProfile);
|
|
309
|
+
this._preparingProfile = false;
|
|
310
|
+
}
|
|
304
311
|
}
|
|
305
|
-
|
|
306
|
-
|
|
312
|
+
// #endregion
|
|
313
|
+
//#region Render Main Action Bar
|
|
314
|
+
renderMainActionBar() {
|
|
315
|
+
if (!this.testData) {
|
|
316
|
+
return null;
|
|
317
|
+
}
|
|
318
|
+
return (h$1("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h$1("calcite-action-group", { scale: "s" }, h$1("calcite-action", { text: this._t9nStrings?.run ?? "Run", "text-enabled": true, icon: "play", scale: "s", loading: this._preparingProfile, onClick: this._executeScript }), this._executionResult ? (h$1("calcite-action", { text: this._t9nStrings?.lastresults ?? "Last results", active: this._showExecutionPanel, "text-enabled": true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
|
|
307
319
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region Render Main Panel
|
|
322
|
+
renderMainPanel() {
|
|
323
|
+
return (
|
|
324
|
+
// <div class="flex-adjustable">
|
|
325
|
+
h$1("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) })
|
|
326
|
+
// </div>
|
|
327
|
+
);
|
|
311
328
|
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
if (!this.testData) {
|
|
317
|
-
return null;
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region Rendering the Action Bar
|
|
331
|
+
renderAction({ id, label, icon, active, panelName, onClick = this._toggleSidePanel }) {
|
|
332
|
+
return (h$1(Fragment, null, h$1("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName }), !this.sideActionBarExpanded && (h$1("calcite-tooltip", { label: label, "reference-element": id }, h$1("span", null, label)))));
|
|
318
333
|
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
334
|
+
renderSideActionBar() {
|
|
335
|
+
if (this.hideSideBar) {
|
|
336
|
+
return null;
|
|
337
|
+
}
|
|
338
|
+
console.log("expanded", this.sideActionBarExpanded);
|
|
339
|
+
return (h$1("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h$1("calcite-action-group", null, this.renderAction({
|
|
340
|
+
id: "profile-variables-action",
|
|
341
|
+
label: this._t9nStrings?.profilevariables ?? "Profile variables",
|
|
342
|
+
icon: "profile-variables",
|
|
343
|
+
active: this.openedSidePanel === "variables",
|
|
344
|
+
panelName: "variables"
|
|
345
|
+
}), this.renderAction({
|
|
346
|
+
id: "function-action",
|
|
347
|
+
label: this._t9nStrings?.constantsandfunctions ?? "Constants and functions",
|
|
348
|
+
icon: "function",
|
|
349
|
+
active: this.openedSidePanel === "api",
|
|
350
|
+
panelName: "api"
|
|
351
|
+
}), this.suggestions?.length
|
|
352
|
+
? this.renderAction({
|
|
353
|
+
id: "suggestions-action",
|
|
354
|
+
label: this._t9nStrings?.suggestions ?? "Suggestions",
|
|
355
|
+
icon: "lightbulb",
|
|
356
|
+
active: this.openedSidePanel === "suggestions",
|
|
357
|
+
panelName: "suggestions"
|
|
358
|
+
})
|
|
359
|
+
: null, this.hideDocumentationActions
|
|
360
|
+
? null
|
|
361
|
+
: this.renderAction({
|
|
362
|
+
id: "developer-website-action",
|
|
363
|
+
label: this._t9nStrings?.help ?? "Help",
|
|
364
|
+
icon: "question",
|
|
365
|
+
active: false,
|
|
366
|
+
panelName: "none",
|
|
367
|
+
onClick: this._openArcadeHelp
|
|
368
|
+
}))));
|
|
335
369
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
return null;
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region Render Side Panel
|
|
372
|
+
renderSidePanel() {
|
|
373
|
+
if (this.hideSideBar) {
|
|
374
|
+
return null;
|
|
375
|
+
}
|
|
376
|
+
switch (this.openedSidePanel) {
|
|
377
|
+
case "api":
|
|
378
|
+
return (h$1("arcgis-arcade-api", { class: "side-panel flex-panel border-inline-start", modelId: this._modelId, hideDocumentationActions: this.hideDocumentationActions, onItemSelected: void this._insertAsSnippet, onClose: void this._toggleSidePanel, "data-panel-name": "none" }));
|
|
379
|
+
case "variables":
|
|
380
|
+
return (h$1("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingProfile, modelId: this._modelId, onItemSelected: void this._insertAsText, onClose: void this._toggleSidePanel, "data-panel-name": "none" }));
|
|
381
|
+
case "suggestions":
|
|
382
|
+
return (h$1("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onItemSelected: void this._insertAsText, onClose: void this._toggleSidePanel, "data-panel-name": "none" }));
|
|
383
|
+
default:
|
|
384
|
+
return null;
|
|
385
|
+
}
|
|
353
386
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return (h$1("arcgis-arcade-
|
|
361
|
-
default:
|
|
362
|
-
return null;
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region Rendering Results Panel
|
|
389
|
+
renderResultsPanel() {
|
|
390
|
+
if (!this._showExecutionPanel) {
|
|
391
|
+
return null;
|
|
392
|
+
}
|
|
393
|
+
return (h$1("arcgis-arcade-results", { class: "flex-adjustable", openedResultPanel: this._resultPanel, loading: this._executingScript, result: this._executionResult, consoleLogs: this._consoleLogs, onOpenedResultPanelChange: this._onResultPanelChange, onClose: this._onExecutionPanelClose }));
|
|
363
394
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
if (!this._showExecutionPanel) {
|
|
369
|
-
return null;
|
|
395
|
+
//#endregion
|
|
396
|
+
//#region Render
|
|
397
|
+
render() {
|
|
398
|
+
return (h$1(Host, null, this.renderMainActionBar(), h$1("div", { class: "flex-row flex-adjustable" }, h$1("div", { class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
|
|
370
399
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
get _hostElt() { return this; }
|
|
380
|
-
static get watchers() { return {
|
|
381
|
-
"profile": ["_profileChanged"],
|
|
382
|
-
"testData": ["_testDataChanged"],
|
|
383
|
-
"snippets": ["_snippetChanged"]
|
|
384
|
-
}; }
|
|
385
|
-
static get style() { return arcadeEditorCss; }
|
|
400
|
+
static get assetsDirs() { return ["assets"]; }
|
|
401
|
+
get _hostElement() { return this; }
|
|
402
|
+
static get watchers() { return {
|
|
403
|
+
"profile": ["_profileChanged"],
|
|
404
|
+
"testData": ["_testDataChanged"],
|
|
405
|
+
"snippets": ["_snippetChanged"]
|
|
406
|
+
}; }
|
|
407
|
+
static get style() { return arcadeEditorCss; }
|
|
386
408
|
}, [0, "arcgis-arcade-editor", {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
409
|
+
"profile": [16],
|
|
410
|
+
"script": [1],
|
|
411
|
+
"testData": [16],
|
|
412
|
+
"suggestions": [16],
|
|
413
|
+
"snippets": [16],
|
|
414
|
+
"hideDocumentationActions": [4, "hide-documentation-actions"],
|
|
415
|
+
"hideSideBar": [4, "hide-side-bar"],
|
|
416
|
+
"sideActionBarExpanded": [1540, "side-action-bar-expanded"],
|
|
417
|
+
"openedSidePanel": [1537, "opened-side-panel"],
|
|
418
|
+
"_lang": [32],
|
|
419
|
+
"_t9nLocale": [32],
|
|
420
|
+
"_t9nStrings": [32],
|
|
421
|
+
"_standaloneCodeEditor": [32],
|
|
422
|
+
"_preparingProfile": [32],
|
|
423
|
+
"_editorProfile": [32],
|
|
424
|
+
"_showExecutionPanel": [32],
|
|
425
|
+
"_resultPanel": [32],
|
|
426
|
+
"_executingScript": [32],
|
|
427
|
+
"_consoleLogs": [32],
|
|
428
|
+
"_executionResult": [32],
|
|
429
|
+
"getScript": [64],
|
|
430
|
+
"setFocus": [64],
|
|
431
|
+
"getEditorInstance": [64],
|
|
432
|
+
"getTestResult": [64],
|
|
433
|
+
"updateThemeColors": [64]
|
|
434
|
+
}, undefined, {
|
|
435
|
+
"profile": ["_profileChanged"],
|
|
436
|
+
"testData": ["_testDataChanged"],
|
|
437
|
+
"snippets": ["_snippetChanged"]
|
|
438
|
+
}]);
|
|
413
439
|
function defineCustomElement$1() {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
440
|
+
if (typeof customElements === "undefined") {
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
const components = ["arcgis-arcade-editor", "arcgis-arcade-api", "arcgis-arcade-results", "arcgis-arcade-suggestions", "arcgis-arcade-variables", "arcgis-code-editor"];
|
|
444
|
+
components.forEach(tagName => { switch (tagName) {
|
|
445
|
+
case "arcgis-arcade-editor":
|
|
446
|
+
if (!customElements.get(tagName)) {
|
|
447
|
+
customElements.define(tagName, ArcgisArcadeEditor$1);
|
|
448
|
+
}
|
|
449
|
+
break;
|
|
450
|
+
case "arcgis-arcade-api":
|
|
451
|
+
if (!customElements.get(tagName)) {
|
|
452
|
+
defineCustomElement$6();
|
|
453
|
+
}
|
|
454
|
+
break;
|
|
455
|
+
case "arcgis-arcade-results":
|
|
456
|
+
if (!customElements.get(tagName)) {
|
|
457
|
+
defineCustomElement$5();
|
|
458
|
+
}
|
|
459
|
+
break;
|
|
460
|
+
case "arcgis-arcade-suggestions":
|
|
461
|
+
if (!customElements.get(tagName)) {
|
|
462
|
+
defineCustomElement$4();
|
|
463
|
+
}
|
|
464
|
+
break;
|
|
465
|
+
case "arcgis-arcade-variables":
|
|
466
|
+
if (!customElements.get(tagName)) {
|
|
467
|
+
defineCustomElement$3();
|
|
468
|
+
}
|
|
469
|
+
break;
|
|
470
|
+
case "arcgis-code-editor":
|
|
471
|
+
if (!customElements.get(tagName)) {
|
|
472
|
+
defineCustomElement$2();
|
|
473
|
+
}
|
|
474
|
+
break;
|
|
475
|
+
} });
|
|
450
476
|
}
|
|
451
477
|
defineCustomElement$1();
|
|
452
478
|
|