@esri/solutions-components 0.7.42 → 0.7.44
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/dist/assets/t9n/card-manager/resources_ar.json +1 -1
- package/dist/assets/t9n/card-manager/resources_bg.json +1 -1
- package/dist/assets/t9n/card-manager/resources_bs.json +1 -1
- package/dist/assets/t9n/card-manager/resources_ca.json +1 -1
- package/dist/assets/t9n/card-manager/resources_cs.json +1 -1
- package/dist/assets/t9n/card-manager/resources_da.json +1 -1
- package/dist/assets/t9n/card-manager/resources_de.json +1 -1
- package/dist/assets/t9n/card-manager/resources_el.json +1 -1
- package/dist/assets/t9n/card-manager/resources_es.json +1 -1
- package/dist/assets/t9n/card-manager/resources_et.json +1 -1
- package/dist/assets/t9n/card-manager/resources_fi.json +1 -1
- package/dist/assets/t9n/card-manager/resources_fr.json +1 -1
- package/dist/assets/t9n/card-manager/resources_he.json +1 -1
- package/dist/assets/t9n/card-manager/resources_hr.json +1 -1
- package/dist/assets/t9n/card-manager/resources_hu.json +1 -1
- package/dist/assets/t9n/card-manager/resources_id.json +1 -1
- package/dist/assets/t9n/card-manager/resources_it.json +1 -1
- package/dist/assets/t9n/card-manager/resources_ja.json +1 -1
- package/dist/assets/t9n/card-manager/resources_ko.json +1 -1
- package/dist/assets/t9n/card-manager/resources_lt.json +1 -1
- package/dist/assets/t9n/card-manager/resources_lv.json +1 -1
- package/dist/assets/t9n/card-manager/resources_nb.json +1 -1
- package/dist/assets/t9n/card-manager/resources_nl.json +1 -1
- package/dist/assets/t9n/card-manager/resources_pl.json +1 -1
- package/dist/assets/t9n/card-manager/resources_pt-BR.json +1 -1
- package/dist/assets/t9n/card-manager/resources_pt-PT.json +1 -1
- package/dist/assets/t9n/card-manager/resources_ro.json +1 -1
- package/dist/assets/t9n/card-manager/resources_ru.json +1 -1
- package/dist/assets/t9n/card-manager/resources_sk.json +1 -1
- package/dist/assets/t9n/card-manager/resources_sl.json +1 -1
- package/dist/assets/t9n/card-manager/resources_sr.json +1 -1
- package/dist/assets/t9n/card-manager/resources_sv.json +1 -1
- package/dist/assets/t9n/card-manager/resources_th.json +1 -1
- package/dist/assets/t9n/card-manager/resources_tr.json +1 -1
- package/dist/assets/t9n/card-manager/resources_uk.json +1 -1
- package/dist/assets/t9n/card-manager/resources_vi.json +1 -1
- package/dist/assets/t9n/card-manager/resources_zh-CN.json +1 -1
- package/dist/assets/t9n/card-manager/resources_zh-HK.json +1 -1
- package/dist/assets/t9n/card-manager/resources_zh-TW.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_ar.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_bg.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_bs.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_ca.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_cs.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_da.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_de.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_el.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_es.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_et.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_fi.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_fr.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_he.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_hr.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_hu.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_id.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_it.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_ja.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_ko.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_lt.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_lv.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_nb.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_nl.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_pl.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_pt-BR.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_pt-PT.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_ro.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_ru.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_sk.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_sl.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_sr.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_sv.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_th.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_tr.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_uk.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_vi.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_zh-CN.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_zh-HK.json +1 -1
- package/dist/assets/t9n/crowdsource-manager/resources_zh-TW.json +1 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_ar.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_bg.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_bs.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_ca.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_cs.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_da.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_de.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_el.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_es.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_et.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_fi.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_fr.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_he.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_hr.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_hu.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_id.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_it.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_ja.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_ko.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_lt.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_lv.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_nb.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_nl.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_pl.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_pt-BR.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_pt-PT.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_ro.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_ru.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_sk.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_sl.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_sr.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_sv.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_th.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_tr.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_uk.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_vi.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-CN.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-HK.json +20 -18
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-TW.json +20 -18
- package/dist/assets/t9n/delete-button/resources_ar.json +6 -6
- package/dist/assets/t9n/delete-button/resources_bg.json +6 -6
- package/dist/assets/t9n/delete-button/resources_bs.json +6 -6
- package/dist/assets/t9n/delete-button/resources_ca.json +6 -6
- package/dist/assets/t9n/delete-button/resources_cs.json +6 -6
- package/dist/assets/t9n/delete-button/resources_da.json +6 -6
- package/dist/assets/t9n/delete-button/resources_de.json +6 -6
- package/dist/assets/t9n/delete-button/resources_el.json +6 -6
- package/dist/assets/t9n/delete-button/resources_es.json +6 -6
- package/dist/assets/t9n/delete-button/resources_et.json +6 -6
- package/dist/assets/t9n/delete-button/resources_fi.json +6 -6
- package/dist/assets/t9n/delete-button/resources_fr.json +6 -6
- package/dist/assets/t9n/delete-button/resources_he.json +6 -6
- package/dist/assets/t9n/delete-button/resources_hr.json +6 -6
- package/dist/assets/t9n/delete-button/resources_hu.json +6 -6
- package/dist/assets/t9n/delete-button/resources_id.json +6 -6
- package/dist/assets/t9n/delete-button/resources_it.json +6 -6
- package/dist/assets/t9n/delete-button/resources_ja.json +6 -6
- package/dist/assets/t9n/delete-button/resources_ko.json +6 -6
- package/dist/assets/t9n/delete-button/resources_lt.json +6 -6
- package/dist/assets/t9n/delete-button/resources_lv.json +6 -6
- package/dist/assets/t9n/delete-button/resources_nb.json +6 -6
- package/dist/assets/t9n/delete-button/resources_nl.json +6 -6
- package/dist/assets/t9n/delete-button/resources_pl.json +6 -6
- package/dist/assets/t9n/delete-button/resources_pt-BR.json +6 -6
- package/dist/assets/t9n/delete-button/resources_pt-PT.json +6 -6
- package/dist/assets/t9n/delete-button/resources_ro.json +6 -6
- package/dist/assets/t9n/delete-button/resources_ru.json +6 -6
- package/dist/assets/t9n/delete-button/resources_sk.json +6 -6
- package/dist/assets/t9n/delete-button/resources_sl.json +6 -6
- package/dist/assets/t9n/delete-button/resources_sr.json +6 -6
- package/dist/assets/t9n/delete-button/resources_sv.json +6 -6
- package/dist/assets/t9n/delete-button/resources_th.json +6 -6
- package/dist/assets/t9n/delete-button/resources_tr.json +6 -6
- package/dist/assets/t9n/delete-button/resources_uk.json +6 -6
- package/dist/assets/t9n/delete-button/resources_vi.json +6 -6
- package/dist/assets/t9n/delete-button/resources_zh-CN.json +6 -6
- package/dist/assets/t9n/delete-button/resources_zh-HK.json +6 -6
- package/dist/assets/t9n/delete-button/resources_zh-TW.json +6 -6
- package/dist/assets/t9n/feature-list/resources_ar.json +2 -2
- package/dist/assets/t9n/feature-list/resources_bg.json +2 -2
- package/dist/assets/t9n/feature-list/resources_bs.json +2 -2
- package/dist/assets/t9n/feature-list/resources_ca.json +2 -2
- package/dist/assets/t9n/feature-list/resources_cs.json +2 -2
- package/dist/assets/t9n/feature-list/resources_da.json +2 -2
- package/dist/assets/t9n/feature-list/resources_de.json +2 -2
- package/dist/assets/t9n/feature-list/resources_el.json +2 -2
- package/dist/assets/t9n/feature-list/resources_es.json +2 -2
- package/dist/assets/t9n/feature-list/resources_et.json +2 -2
- package/dist/assets/t9n/feature-list/resources_fi.json +2 -2
- package/dist/assets/t9n/feature-list/resources_fr.json +2 -2
- package/dist/assets/t9n/feature-list/resources_he.json +2 -2
- package/dist/assets/t9n/feature-list/resources_hr.json +2 -2
- package/dist/assets/t9n/feature-list/resources_hu.json +2 -2
- package/dist/assets/t9n/feature-list/resources_id.json +2 -2
- package/dist/assets/t9n/feature-list/resources_it.json +2 -2
- package/dist/assets/t9n/feature-list/resources_ja.json +2 -2
- package/dist/assets/t9n/feature-list/resources_ko.json +2 -2
- package/dist/assets/t9n/feature-list/resources_lt.json +2 -2
- package/dist/assets/t9n/feature-list/resources_lv.json +2 -2
- package/dist/assets/t9n/feature-list/resources_nb.json +2 -2
- package/dist/assets/t9n/feature-list/resources_nl.json +2 -2
- package/dist/assets/t9n/feature-list/resources_pl.json +2 -2
- package/dist/assets/t9n/feature-list/resources_pt-BR.json +2 -2
- package/dist/assets/t9n/feature-list/resources_pt-PT.json +2 -2
- package/dist/assets/t9n/feature-list/resources_ro.json +2 -2
- package/dist/assets/t9n/feature-list/resources_ru.json +2 -2
- package/dist/assets/t9n/feature-list/resources_sk.json +2 -2
- package/dist/assets/t9n/feature-list/resources_sl.json +2 -2
- package/dist/assets/t9n/feature-list/resources_sr.json +2 -2
- package/dist/assets/t9n/feature-list/resources_sv.json +2 -2
- package/dist/assets/t9n/feature-list/resources_th.json +2 -2
- package/dist/assets/t9n/feature-list/resources_tr.json +2 -2
- package/dist/assets/t9n/feature-list/resources_uk.json +2 -2
- package/dist/assets/t9n/feature-list/resources_vi.json +2 -2
- package/dist/assets/t9n/feature-list/resources_zh-CN.json +2 -2
- package/dist/assets/t9n/feature-list/resources_zh-HK.json +2 -2
- package/dist/assets/t9n/feature-list/resources_zh-TW.json +2 -2
- package/dist/assets/t9n/info-card/resources_ar.json +1 -1
- package/dist/assets/t9n/info-card/resources_bg.json +1 -1
- package/dist/assets/t9n/info-card/resources_bs.json +1 -1
- package/dist/assets/t9n/info-card/resources_ca.json +1 -1
- package/dist/assets/t9n/info-card/resources_cs.json +1 -1
- package/dist/assets/t9n/info-card/resources_da.json +1 -1
- package/dist/assets/t9n/info-card/resources_de.json +1 -1
- package/dist/assets/t9n/info-card/resources_el.json +1 -1
- package/dist/assets/t9n/info-card/resources_es.json +1 -1
- package/dist/assets/t9n/info-card/resources_et.json +1 -1
- package/dist/assets/t9n/info-card/resources_fi.json +1 -1
- package/dist/assets/t9n/info-card/resources_fr.json +1 -1
- package/dist/assets/t9n/info-card/resources_he.json +1 -1
- package/dist/assets/t9n/info-card/resources_hr.json +1 -1
- package/dist/assets/t9n/info-card/resources_hu.json +1 -1
- package/dist/assets/t9n/info-card/resources_id.json +1 -1
- package/dist/assets/t9n/info-card/resources_it.json +1 -1
- package/dist/assets/t9n/info-card/resources_ja.json +1 -1
- package/dist/assets/t9n/info-card/resources_ko.json +1 -1
- package/dist/assets/t9n/info-card/resources_lt.json +1 -1
- package/dist/assets/t9n/info-card/resources_lv.json +1 -1
- package/dist/assets/t9n/info-card/resources_nb.json +1 -1
- package/dist/assets/t9n/info-card/resources_nl.json +1 -1
- package/dist/assets/t9n/info-card/resources_pl.json +1 -1
- package/dist/assets/t9n/info-card/resources_pt-BR.json +1 -1
- package/dist/assets/t9n/info-card/resources_pt-PT.json +1 -1
- package/dist/assets/t9n/info-card/resources_ro.json +1 -1
- package/dist/assets/t9n/info-card/resources_ru.json +1 -1
- package/dist/assets/t9n/info-card/resources_sk.json +1 -1
- package/dist/assets/t9n/info-card/resources_sl.json +1 -1
- package/dist/assets/t9n/info-card/resources_sr.json +1 -1
- package/dist/assets/t9n/info-card/resources_sv.json +1 -1
- package/dist/assets/t9n/info-card/resources_th.json +1 -1
- package/dist/assets/t9n/info-card/resources_tr.json +1 -1
- package/dist/assets/t9n/info-card/resources_uk.json +1 -1
- package/dist/assets/t9n/info-card/resources_vi.json +1 -1
- package/dist/assets/t9n/info-card/resources_zh-CN.json +1 -1
- package/dist/assets/t9n/info-card/resources_zh-HK.json +1 -1
- package/dist/assets/t9n/info-card/resources_zh-TW.json +1 -1
- package/dist/assets/t9n/layer-list/resources_ar.json +2 -2
- package/dist/assets/t9n/layer-list/resources_bg.json +2 -2
- package/dist/assets/t9n/layer-list/resources_bs.json +2 -2
- package/dist/assets/t9n/layer-list/resources_ca.json +2 -2
- package/dist/assets/t9n/layer-list/resources_cs.json +2 -2
- package/dist/assets/t9n/layer-list/resources_da.json +2 -2
- package/dist/assets/t9n/layer-list/resources_de.json +2 -2
- package/dist/assets/t9n/layer-list/resources_el.json +2 -2
- package/dist/assets/t9n/layer-list/resources_es.json +2 -2
- package/dist/assets/t9n/layer-list/resources_et.json +2 -2
- package/dist/assets/t9n/layer-list/resources_fi.json +2 -2
- package/dist/assets/t9n/layer-list/resources_fr.json +2 -2
- package/dist/assets/t9n/layer-list/resources_he.json +2 -2
- package/dist/assets/t9n/layer-list/resources_hr.json +2 -2
- package/dist/assets/t9n/layer-list/resources_hu.json +2 -2
- package/dist/assets/t9n/layer-list/resources_id.json +2 -2
- package/dist/assets/t9n/layer-list/resources_it.json +2 -2
- package/dist/assets/t9n/layer-list/resources_ja.json +2 -2
- package/dist/assets/t9n/layer-list/resources_ko.json +2 -2
- package/dist/assets/t9n/layer-list/resources_lt.json +2 -2
- package/dist/assets/t9n/layer-list/resources_lv.json +2 -2
- package/dist/assets/t9n/layer-list/resources_nb.json +2 -2
- package/dist/assets/t9n/layer-list/resources_nl.json +2 -2
- package/dist/assets/t9n/layer-list/resources_pl.json +2 -2
- package/dist/assets/t9n/layer-list/resources_pt-BR.json +2 -2
- package/dist/assets/t9n/layer-list/resources_pt-PT.json +2 -2
- package/dist/assets/t9n/layer-list/resources_ro.json +2 -2
- package/dist/assets/t9n/layer-list/resources_ru.json +2 -2
- package/dist/assets/t9n/layer-list/resources_sk.json +2 -2
- package/dist/assets/t9n/layer-list/resources_sl.json +2 -2
- package/dist/assets/t9n/layer-list/resources_sr.json +2 -2
- package/dist/assets/t9n/layer-list/resources_sv.json +2 -2
- package/dist/assets/t9n/layer-list/resources_th.json +2 -2
- package/dist/assets/t9n/layer-list/resources_tr.json +2 -2
- package/dist/assets/t9n/layer-list/resources_uk.json +2 -2
- package/dist/assets/t9n/layer-list/resources_vi.json +2 -2
- package/dist/assets/t9n/layer-list/resources_zh-CN.json +2 -2
- package/dist/assets/t9n/layer-list/resources_zh-HK.json +2 -2
- package/dist/assets/t9n/layer-list/resources_zh-TW.json +2 -2
- package/dist/assets/t9n/layer-table/resources_ar.json +4 -4
- package/dist/assets/t9n/layer-table/resources_bg.json +4 -4
- package/dist/assets/t9n/layer-table/resources_bs.json +4 -4
- package/dist/assets/t9n/layer-table/resources_ca.json +4 -4
- package/dist/assets/t9n/layer-table/resources_cs.json +4 -4
- package/dist/assets/t9n/layer-table/resources_da.json +4 -4
- package/dist/assets/t9n/layer-table/resources_de.json +4 -4
- package/dist/assets/t9n/layer-table/resources_el.json +4 -4
- package/dist/assets/t9n/layer-table/resources_es.json +4 -4
- package/dist/assets/t9n/layer-table/resources_et.json +4 -4
- package/dist/assets/t9n/layer-table/resources_fi.json +4 -4
- package/dist/assets/t9n/layer-table/resources_fr.json +4 -4
- package/dist/assets/t9n/layer-table/resources_he.json +4 -4
- package/dist/assets/t9n/layer-table/resources_hr.json +4 -4
- package/dist/assets/t9n/layer-table/resources_hu.json +4 -4
- package/dist/assets/t9n/layer-table/resources_id.json +4 -4
- package/dist/assets/t9n/layer-table/resources_it.json +4 -4
- package/dist/assets/t9n/layer-table/resources_ja.json +4 -4
- package/dist/assets/t9n/layer-table/resources_ko.json +4 -4
- package/dist/assets/t9n/layer-table/resources_lt.json +4 -4
- package/dist/assets/t9n/layer-table/resources_lv.json +4 -4
- package/dist/assets/t9n/layer-table/resources_nb.json +4 -4
- package/dist/assets/t9n/layer-table/resources_nl.json +4 -4
- package/dist/assets/t9n/layer-table/resources_pl.json +4 -4
- package/dist/assets/t9n/layer-table/resources_pt-BR.json +4 -4
- package/dist/assets/t9n/layer-table/resources_pt-PT.json +4 -4
- package/dist/assets/t9n/layer-table/resources_ro.json +4 -4
- package/dist/assets/t9n/layer-table/resources_ru.json +4 -4
- package/dist/assets/t9n/layer-table/resources_sk.json +4 -4
- package/dist/assets/t9n/layer-table/resources_sl.json +4 -4
- package/dist/assets/t9n/layer-table/resources_sr.json +4 -4
- package/dist/assets/t9n/layer-table/resources_sv.json +4 -4
- package/dist/assets/t9n/layer-table/resources_th.json +4 -4
- package/dist/assets/t9n/layer-table/resources_tr.json +4 -4
- package/dist/assets/t9n/layer-table/resources_uk.json +4 -4
- package/dist/assets/t9n/layer-table/resources_vi.json +4 -4
- package/dist/assets/t9n/layer-table/resources_zh-CN.json +4 -4
- package/dist/assets/t9n/layer-table/resources_zh-HK.json +4 -4
- package/dist/assets/t9n/layer-table/resources_zh-TW.json +4 -4
- package/dist/assets/t9n/map-tools/resources_ar.json +2 -2
- package/dist/assets/t9n/map-tools/resources_bg.json +2 -2
- package/dist/assets/t9n/map-tools/resources_bs.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ca.json +2 -2
- package/dist/assets/t9n/map-tools/resources_cs.json +2 -2
- package/dist/assets/t9n/map-tools/resources_da.json +2 -2
- package/dist/assets/t9n/map-tools/resources_de.json +2 -2
- package/dist/assets/t9n/map-tools/resources_el.json +2 -2
- package/dist/assets/t9n/map-tools/resources_es.json +2 -2
- package/dist/assets/t9n/map-tools/resources_et.json +2 -2
- package/dist/assets/t9n/map-tools/resources_fi.json +2 -2
- package/dist/assets/t9n/map-tools/resources_fr.json +2 -2
- package/dist/assets/t9n/map-tools/resources_he.json +2 -2
- package/dist/assets/t9n/map-tools/resources_hr.json +2 -2
- package/dist/assets/t9n/map-tools/resources_hu.json +2 -2
- package/dist/assets/t9n/map-tools/resources_id.json +2 -2
- package/dist/assets/t9n/map-tools/resources_it.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ja.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ko.json +2 -2
- package/dist/assets/t9n/map-tools/resources_lt.json +2 -2
- package/dist/assets/t9n/map-tools/resources_lv.json +2 -2
- package/dist/assets/t9n/map-tools/resources_nb.json +2 -2
- package/dist/assets/t9n/map-tools/resources_nl.json +2 -2
- package/dist/assets/t9n/map-tools/resources_pl.json +2 -2
- package/dist/assets/t9n/map-tools/resources_pt-BR.json +2 -2
- package/dist/assets/t9n/map-tools/resources_pt-PT.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ro.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ru.json +2 -2
- package/dist/assets/t9n/map-tools/resources_sk.json +2 -2
- package/dist/assets/t9n/map-tools/resources_sl.json +2 -2
- package/dist/assets/t9n/map-tools/resources_sr.json +2 -2
- package/dist/assets/t9n/map-tools/resources_sv.json +2 -2
- package/dist/assets/t9n/map-tools/resources_th.json +2 -2
- package/dist/assets/t9n/map-tools/resources_tr.json +2 -2
- package/dist/assets/t9n/map-tools/resources_uk.json +2 -2
- package/dist/assets/t9n/map-tools/resources_vi.json +2 -2
- package/dist/assets/t9n/map-tools/resources_zh-CN.json +2 -2
- package/dist/assets/t9n/map-tools/resources_zh-HK.json +2 -2
- package/dist/assets/t9n/map-tools/resources_zh-TW.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ar.json +2 -2
- package/dist/assets/t9n/public-notification/resources_bg.json +2 -2
- package/dist/assets/t9n/public-notification/resources_bs.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ca.json +2 -2
- package/dist/assets/t9n/public-notification/resources_cs.json +2 -2
- package/dist/assets/t9n/public-notification/resources_da.json +2 -2
- package/dist/assets/t9n/public-notification/resources_de.json +2 -2
- package/dist/assets/t9n/public-notification/resources_el.json +2 -2
- package/dist/assets/t9n/public-notification/resources_es.json +2 -2
- package/dist/assets/t9n/public-notification/resources_et.json +2 -2
- package/dist/assets/t9n/public-notification/resources_fi.json +2 -2
- package/dist/assets/t9n/public-notification/resources_fr.json +2 -2
- package/dist/assets/t9n/public-notification/resources_he.json +2 -2
- package/dist/assets/t9n/public-notification/resources_hr.json +2 -2
- package/dist/assets/t9n/public-notification/resources_hu.json +2 -2
- package/dist/assets/t9n/public-notification/resources_id.json +2 -2
- package/dist/assets/t9n/public-notification/resources_it.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ja.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ko.json +2 -2
- package/dist/assets/t9n/public-notification/resources_lt.json +2 -2
- package/dist/assets/t9n/public-notification/resources_lv.json +2 -2
- package/dist/assets/t9n/public-notification/resources_nb.json +2 -2
- package/dist/assets/t9n/public-notification/resources_nl.json +2 -2
- package/dist/assets/t9n/public-notification/resources_pl.json +2 -2
- package/dist/assets/t9n/public-notification/resources_pt-BR.json +2 -2
- package/dist/assets/t9n/public-notification/resources_pt-PT.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ro.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ru.json +2 -2
- package/dist/assets/t9n/public-notification/resources_sk.json +2 -2
- package/dist/assets/t9n/public-notification/resources_sl.json +2 -2
- package/dist/assets/t9n/public-notification/resources_sr.json +2 -2
- package/dist/assets/t9n/public-notification/resources_sv.json +2 -2
- package/dist/assets/t9n/public-notification/resources_th.json +2 -2
- package/dist/assets/t9n/public-notification/resources_tr.json +2 -2
- package/dist/assets/t9n/public-notification/resources_uk.json +2 -2
- package/dist/assets/t9n/public-notification/resources_vi.json +2 -2
- package/dist/assets/t9n/public-notification/resources_zh-CN.json +2 -2
- package/dist/assets/t9n/public-notification/resources_zh-HK.json +2 -2
- package/dist/assets/t9n/public-notification/resources_zh-TW.json +2 -2
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +11 -3
- package/dist/cjs/card-manager_3.cjs.entry.js +17 -33
- package/dist/cjs/{downloadUtils-7d4985c0.js → downloadUtils-abf7decd.js} +8 -11
- package/dist/cjs/{helpers-981dd775.js → helpers-e328869d.js} +22 -19
- package/dist/cjs/{index.es-8cef354a.js → index.es-478ec781.js} +1 -1
- package/dist/cjs/instant-apps-export.cjs.entry.js +50 -34
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +15 -8
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +17 -34
- package/dist/collection/utils/downloadUtils.js +7 -10
- package/dist/collection/utils/downloadUtils.ts +13 -13
- package/dist/components/downloadUtils.js +7 -10
- package/dist/components/helpers.js +22 -19
- package/dist/components/instant-apps-export.js +50 -34
- package/dist/components/instant-apps-filter-list2.js +13 -3
- package/dist/components/instant-apps-interactive-legend-classic2.js +14 -7
- package/dist/components/layer-table2.js +18 -35
- package/dist/esm/calcite-input-date-picker_3.entry.js +11 -3
- package/dist/esm/card-manager_3.entry.js +17 -33
- package/dist/esm/{downloadUtils-d5928e55.js → downloadUtils-be13a13d.js} +8 -11
- package/dist/esm/{helpers-e8852b4a.js → helpers-633917fe.js} +22 -19
- package/dist/esm/{index.es-a1725c19.js → index.es-623fddee.js} +1 -1
- package/dist/esm/instant-apps-export.entry.js +50 -34
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +15 -8
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-3e88e0bd.entry.js → p-0c427d9a.entry.js} +1 -1
- package/dist/solutions-components/{p-732ae6e8.entry.js → p-23fed594.entry.js} +1 -1
- package/dist/solutions-components/{p-7f374ec7.js → p-2bec3d88.js} +1 -1
- package/dist/solutions-components/{p-62f2cea7.entry.js → p-6ac459d9.entry.js} +1 -1
- package/dist/solutions-components/p-704c9ba1.entry.js +17 -0
- package/dist/solutions-components/{p-2ba240b9.entry.js → p-91710f0e.entry.js} +1 -1
- package/dist/solutions-components/{p-ac9c29da.entry.js → p-9294f273.entry.js} +1 -1
- package/dist/solutions-components/p-ac2799f6.entry.js +6 -0
- package/dist/solutions-components/p-b756d01f.js +6 -0
- package/dist/solutions-components/{p-5fd1ae46.entry.js → p-ccfdd890.entry.js} +1 -1
- package/dist/solutions-components/{p-12fc82a9.js → p-dc4fcddc.js} +3 -3
- package/dist/solutions-components/p-f053c268.entry.js +6 -0
- package/dist/solutions-components/p-f5b259f3.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +13 -13
- package/dist/types/components/layer-table/layer-table.d.ts +4 -12
- package/dist/types/utils/downloadUtils.d.ts +3 -3
- package/package.json +2 -2
- package/dist/solutions-components/p-11c85508.entry.js +0 -6
- package/dist/solutions-components/p-1c19b946.js +0 -6
- package/dist/solutions-components/p-52945707.entry.js +0 -6
- package/dist/solutions-components/p-57087d57.entry.js +0 -17
- package/dist/solutions-components/p-7480ac64.entry.js +0 -6
|
@@ -59,10 +59,6 @@ export class LayerTable {
|
|
|
59
59
|
* boolean: When true any onChange handeling will be skipped
|
|
60
60
|
*/
|
|
61
61
|
this._skipOnChange = false;
|
|
62
|
-
/**
|
|
63
|
-
* bool: When true the table is being sorted
|
|
64
|
-
*/
|
|
65
|
-
this._tableSorting = false;
|
|
66
62
|
/**
|
|
67
63
|
* Store a reference to the table node after it's first created
|
|
68
64
|
* and initializes the FeatureTable
|
|
@@ -99,7 +95,6 @@ export class LayerTable {
|
|
|
99
95
|
this._selectAllActive = false;
|
|
100
96
|
this._showHideOpen = false;
|
|
101
97
|
this._showOnlySelected = false;
|
|
102
|
-
this._sortActive = false;
|
|
103
98
|
this._translations = undefined;
|
|
104
99
|
}
|
|
105
100
|
//--------------------------------------------------------------------------
|
|
@@ -159,6 +154,13 @@ export class LayerTable {
|
|
|
159
154
|
this._initToolInfos();
|
|
160
155
|
}
|
|
161
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* watch for changes in map info and update the toolbar
|
|
159
|
+
*/
|
|
160
|
+
async mapInfoWatchHandler() {
|
|
161
|
+
this._initToolInfos();
|
|
162
|
+
this._updateToolbar();
|
|
163
|
+
}
|
|
162
164
|
/**
|
|
163
165
|
* watch for changes in map view and get the first layer
|
|
164
166
|
*/
|
|
@@ -197,14 +199,6 @@ export class LayerTable {
|
|
|
197
199
|
this._selectAllActive = false;
|
|
198
200
|
}
|
|
199
201
|
}
|
|
200
|
-
/**
|
|
201
|
-
* When sortActive is false the user has not defined a sort and we should use the default sort
|
|
202
|
-
*/
|
|
203
|
-
async _sortActiveWatchHandler() {
|
|
204
|
-
if (!this._sortActive) {
|
|
205
|
-
await this._sortTable();
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
202
|
/**
|
|
209
203
|
* Scroll and zoom to the selected feature from the Features widget.
|
|
210
204
|
*
|
|
@@ -865,11 +859,6 @@ export class LayerTable {
|
|
|
865
859
|
this._table.highlightIds.on("change", (evt) => {
|
|
866
860
|
void this._handleOnChange(evt);
|
|
867
861
|
});
|
|
868
|
-
this.reactiveUtils.watch(() => this._table.activeSortOrders, (sortOrders) => {
|
|
869
|
-
var _a, _b, _c, _d;
|
|
870
|
-
this._sortActive = this._layer ? (sortOrders.length > 0 && ((_a = sortOrders[0]) === null || _a === void 0 ? void 0 : _a.direction) === "asc" || ((_b = sortOrders[0]) === null || _b === void 0 ? void 0 : _b.direction) === "desc") ||
|
|
871
|
-
((_c = sortOrders[0]) === null || _c === void 0 ? void 0 : _c.direction) === null && ((_d = sortOrders[0]) === null || _d === void 0 ? void 0 : _d.fieldName) === this._layer.objectIdField : false;
|
|
872
|
-
});
|
|
873
862
|
});
|
|
874
863
|
}
|
|
875
864
|
}
|
|
@@ -1019,7 +1008,6 @@ export class LayerTable {
|
|
|
1019
1008
|
this._defaultFilterHonored = true;
|
|
1020
1009
|
}
|
|
1021
1010
|
this._showOnlySelected = false;
|
|
1022
|
-
this._sortActive = false;
|
|
1023
1011
|
await this._sortTable();
|
|
1024
1012
|
this._updateToolbar();
|
|
1025
1013
|
});
|
|
@@ -1072,15 +1060,11 @@ export class LayerTable {
|
|
|
1072
1060
|
* Sort the objectid field in descending order
|
|
1073
1061
|
*/
|
|
1074
1062
|
async _sortTable() {
|
|
1075
|
-
if (this._table && this._layer &&
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
this._table.sortColumn(this._layer.objectIdField, "desc");
|
|
1081
|
-
this._tableSorting = false;
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1063
|
+
if (this._table && this._layer && this.showNewestFirst) {
|
|
1064
|
+
await this._table.when();
|
|
1065
|
+
await this._layer.when(() => {
|
|
1066
|
+
this._table.sortColumn(this._layer.objectIdField, "desc");
|
|
1067
|
+
});
|
|
1084
1068
|
}
|
|
1085
1069
|
}
|
|
1086
1070
|
/**
|
|
@@ -1143,7 +1127,7 @@ export class LayerTable {
|
|
|
1143
1127
|
*/
|
|
1144
1128
|
_filterModal() {
|
|
1145
1129
|
var _a, _b, _c;
|
|
1146
|
-
return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", (_c = this._layer) === null || _c === void 0 ? void 0 : _c.title)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: async () => this._closeFilter(), layerExpressions: this._layerExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
|
|
1130
|
+
return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", (_c = this._layer) === null || _c === void 0 ? void 0 : _c.title)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: async () => this._closeFilter(), comboboxOverlayPositioning: "fixed", layerExpressions: this._layerExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
|
|
1147
1131
|
}
|
|
1148
1132
|
/**
|
|
1149
1133
|
* Reset the filter active prop
|
|
@@ -1288,7 +1272,7 @@ export class LayerTable {
|
|
|
1288
1272
|
exportInfos, false, // formatUsingLayerPopup
|
|
1289
1273
|
false, // removeDuplicates
|
|
1290
1274
|
true, // addColumnTitle
|
|
1291
|
-
fields, true);
|
|
1275
|
+
fields, true, true);
|
|
1292
1276
|
this._updateToolInfoLoading("export", false);
|
|
1293
1277
|
this._csvExporting = false;
|
|
1294
1278
|
}
|
|
@@ -1765,7 +1749,6 @@ export class LayerTable {
|
|
|
1765
1749
|
"_selectAllActive": {},
|
|
1766
1750
|
"_showHideOpen": {},
|
|
1767
1751
|
"_showOnlySelected": {},
|
|
1768
|
-
"_sortActive": {},
|
|
1769
1752
|
"_translations": {}
|
|
1770
1753
|
};
|
|
1771
1754
|
}
|
|
@@ -1804,6 +1787,9 @@ export class LayerTable {
|
|
|
1804
1787
|
}, {
|
|
1805
1788
|
"propName": "isMobile",
|
|
1806
1789
|
"methodName": "isMobileWatchHandler"
|
|
1790
|
+
}, {
|
|
1791
|
+
"propName": "mapInfo",
|
|
1792
|
+
"methodName": "mapInfoWatchHandler"
|
|
1807
1793
|
}, {
|
|
1808
1794
|
"propName": "mapView",
|
|
1809
1795
|
"methodName": "mapViewWatchHandler"
|
|
@@ -1813,9 +1799,6 @@ export class LayerTable {
|
|
|
1813
1799
|
}, {
|
|
1814
1800
|
"propName": "selectedIds",
|
|
1815
1801
|
"methodName": "selectedIdsWatchHandler"
|
|
1816
|
-
}, {
|
|
1817
|
-
"propName": "_sortActive",
|
|
1818
|
-
"methodName": "_sortActiveWatchHandler"
|
|
1819
1802
|
}];
|
|
1820
1803
|
}
|
|
1821
1804
|
static get listeners() {
|
|
@@ -40,12 +40,12 @@ import { queryRelated } from "@esri/arcgis-rest-feature-layer";
|
|
|
40
40
|
* @param includeHeaderNames Add the label format at the front of the list of generated labels
|
|
41
41
|
* @returns selectionSetNames that will be used for export filenames
|
|
42
42
|
*/
|
|
43
|
-
export async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = true, includeHeaderNames = false, isCSVExport = false, fields =
|
|
43
|
+
export async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = true, includeHeaderNames = false, isCSVExport = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
44
44
|
const labelRequests = [];
|
|
45
45
|
Object.keys(exportInfos).forEach(k => {
|
|
46
46
|
var _a;
|
|
47
47
|
const labelInfo = exportInfos[k];
|
|
48
|
-
labelRequests.push(_prepareLabels(webmap, ((_a = labelInfo.layerView) === null || _a === void 0 ? void 0 : _a.layer) || labelInfo.layer, labelInfo.ids, formatUsingLayerPopup, includeHeaderNames, fields, useFieldAliasNames));
|
|
48
|
+
labelRequests.push(_prepareLabels(webmap, ((_a = labelInfo.layerView) === null || _a === void 0 ? void 0 : _a.layer) || labelInfo.layer, labelInfo.ids, formatUsingLayerPopup, includeHeaderNames, fields, useFieldAliasNames, filterFields));
|
|
49
49
|
if (isCSVExport) {
|
|
50
50
|
// add the layer id as a temp value separator that we can use to split values for CSV export
|
|
51
51
|
labelRequests.push(Promise.resolve([[k]]));
|
|
@@ -65,8 +65,8 @@ export async function consolidateLabels(webmap, exportInfos, formatUsingLayerPop
|
|
|
65
65
|
* @param addColumnTitle Indicates if column headings should be included in output
|
|
66
66
|
* @returns Promise resolving when function is done
|
|
67
67
|
*/
|
|
68
|
-
export async function downloadCSV(webmap, exportInfos, formatUsingLayerPopup, removeDuplicates = false, addColumnTitle = false, fields =
|
|
69
|
-
let labels = await consolidateLabels(webmap, exportInfos, formatUsingLayerPopup, addColumnTitle, true, fields, useFieldAliasNames);
|
|
68
|
+
export async function downloadCSV(webmap, exportInfos, formatUsingLayerPopup, removeDuplicates = false, addColumnTitle = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
69
|
+
let labels = await consolidateLabels(webmap, exportInfos, formatUsingLayerPopup, addColumnTitle, true, fields, useFieldAliasNames, filterFields);
|
|
70
70
|
labels = removeDuplicates ? removeDuplicateLabels(labels) : labels;
|
|
71
71
|
const layerIds = Object.keys(exportInfos);
|
|
72
72
|
let layerLabels = [];
|
|
@@ -605,10 +605,7 @@ export function _prepareAttributeValue(attributeValue, attributeType, attributeD
|
|
|
605
605
|
* @param includeHeaderNames Add the label format at the front of the list of generated labels
|
|
606
606
|
* @returns Promise resolving when function is done
|
|
607
607
|
*/
|
|
608
|
-
export async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true, includeHeaderNames = false, fields =
|
|
609
|
-
if (fields.length === 0) {
|
|
610
|
-
fields = layer.fields.map(f => f.name.toLowerCase());
|
|
611
|
-
}
|
|
608
|
+
export async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true, includeHeaderNames = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
612
609
|
// Get the label formatting, if any
|
|
613
610
|
const labelFormatProps = await _getLabelFormat(webmap, layer, formatUsingLayerPopup);
|
|
614
611
|
// Because the label may actually come from a related layer, we'll use the layer that comes back from _getLabelFormat.
|
|
@@ -675,7 +672,7 @@ export async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup =
|
|
|
675
672
|
const attributeDomains = {};
|
|
676
673
|
if (featureLayer.fields) {
|
|
677
674
|
featureLayer.fields.forEach(field => {
|
|
678
|
-
if (fields.indexOf(field.name.toLowerCase()) > -1) {
|
|
675
|
+
if (filterFields ? fields.indexOf(field.name.toLowerCase()) > -1 : true) {
|
|
679
676
|
const lowercaseFieldname = field.name.toLowerCase();
|
|
680
677
|
attributeOrigNames[lowercaseFieldname] = field.name;
|
|
681
678
|
attributeDomains[lowercaseFieldname] = field.domain;
|
|
@@ -686,7 +683,7 @@ export async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup =
|
|
|
686
683
|
else {
|
|
687
684
|
// Feature layer is missing fields, so get info from first feature
|
|
688
685
|
Object.keys(featureSet[0]).forEach(fieldName => {
|
|
689
|
-
if (fields.indexOf(fieldName.toLowerCase()) > -1) {
|
|
686
|
+
if (filterFields ? fields.indexOf(fieldName.toLowerCase()) > -1 : true) {
|
|
690
687
|
const lowercaseFieldname = fieldName.toLowerCase();
|
|
691
688
|
attributeOrigNames[lowercaseFieldname] = fieldName;
|
|
692
689
|
}
|
|
@@ -126,15 +126,16 @@ export async function consolidateLabels(
|
|
|
126
126
|
formatUsingLayerPopup = true,
|
|
127
127
|
includeHeaderNames = false,
|
|
128
128
|
isCSVExport = false,
|
|
129
|
-
fields =
|
|
130
|
-
useFieldAliasNames = false
|
|
129
|
+
fields = undefined,
|
|
130
|
+
useFieldAliasNames = false,
|
|
131
|
+
filterFields = false
|
|
131
132
|
): Promise<string[][]> {
|
|
132
133
|
const labelRequests = [];
|
|
133
134
|
|
|
134
135
|
Object.keys(exportInfos).forEach(k => {
|
|
135
136
|
const labelInfo: IExportInfo = exportInfos[k];
|
|
136
137
|
labelRequests.push(
|
|
137
|
-
_prepareLabels(webmap, labelInfo.layerView?.layer || labelInfo.layer, labelInfo.ids, formatUsingLayerPopup, includeHeaderNames, fields, useFieldAliasNames)
|
|
138
|
+
_prepareLabels(webmap, labelInfo.layerView?.layer || labelInfo.layer, labelInfo.ids, formatUsingLayerPopup, includeHeaderNames, fields, useFieldAliasNames, filterFields)
|
|
138
139
|
);
|
|
139
140
|
if (isCSVExport) {
|
|
140
141
|
// add the layer id as a temp value separator that we can use to split values for CSV export
|
|
@@ -163,10 +164,11 @@ export async function downloadCSV(
|
|
|
163
164
|
formatUsingLayerPopup: boolean,
|
|
164
165
|
removeDuplicates = false,
|
|
165
166
|
addColumnTitle = false,
|
|
166
|
-
fields =
|
|
167
|
-
useFieldAliasNames = false
|
|
167
|
+
fields = undefined,
|
|
168
|
+
useFieldAliasNames = false,
|
|
169
|
+
filterFields = false
|
|
168
170
|
): Promise<void> {
|
|
169
|
-
let labels = await consolidateLabels(webmap, exportInfos, formatUsingLayerPopup, addColumnTitle, true, fields, useFieldAliasNames);
|
|
171
|
+
let labels = await consolidateLabels(webmap, exportInfos, formatUsingLayerPopup, addColumnTitle, true, fields, useFieldAliasNames, filterFields);
|
|
170
172
|
labels = removeDuplicates ? removeDuplicateLabels(labels) : labels;
|
|
171
173
|
|
|
172
174
|
const layerIds = Object.keys(exportInfos);
|
|
@@ -843,12 +845,10 @@ export async function _prepareLabels(
|
|
|
843
845
|
ids: number[],
|
|
844
846
|
formatUsingLayerPopup = true,
|
|
845
847
|
includeHeaderNames = false,
|
|
846
|
-
fields =
|
|
847
|
-
useFieldAliasNames = false
|
|
848
|
+
fields = undefined,
|
|
849
|
+
useFieldAliasNames = false,
|
|
850
|
+
filterFields = false
|
|
848
851
|
): Promise<string[][]> {
|
|
849
|
-
if (fields.length === 0) {
|
|
850
|
-
fields = layer.fields.map(f => f.name.toLowerCase())
|
|
851
|
-
}
|
|
852
852
|
// Get the label formatting, if any
|
|
853
853
|
const labelFormatProps: ILabelFormatProps = await _getLabelFormat(webmap, layer, formatUsingLayerPopup);
|
|
854
854
|
|
|
@@ -929,7 +929,7 @@ export async function _prepareLabels(
|
|
|
929
929
|
if (featureLayer.fields) {
|
|
930
930
|
featureLayer.fields.forEach(
|
|
931
931
|
field => {
|
|
932
|
-
if (fields.indexOf(field.name.toLowerCase()) > -1) {
|
|
932
|
+
if (filterFields ? fields.indexOf(field.name.toLowerCase()) > -1 : true) {
|
|
933
933
|
const lowercaseFieldname = field.name.toLowerCase();
|
|
934
934
|
attributeOrigNames[lowercaseFieldname] = field.name;
|
|
935
935
|
attributeDomains[lowercaseFieldname] = field.domain;
|
|
@@ -941,7 +941,7 @@ export async function _prepareLabels(
|
|
|
941
941
|
// Feature layer is missing fields, so get info from first feature
|
|
942
942
|
Object.keys(featureSet[0]).forEach(
|
|
943
943
|
fieldName => {
|
|
944
|
-
if (fields.indexOf(fieldName.toLowerCase()) > -1) {
|
|
944
|
+
if (filterFields ? fields.indexOf(fieldName.toLowerCase()) > -1 : true) {
|
|
945
945
|
const lowercaseFieldname = fieldName.toLowerCase();
|
|
946
946
|
attributeOrigNames[lowercaseFieldname] = fieldName;
|
|
947
947
|
}
|
|
@@ -2362,12 +2362,12 @@ const lineSeparatorChar = "|";
|
|
|
2362
2362
|
* @param includeHeaderNames Add the label format at the front of the list of generated labels
|
|
2363
2363
|
* @returns selectionSetNames that will be used for export filenames
|
|
2364
2364
|
*/
|
|
2365
|
-
async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = true, includeHeaderNames = false, isCSVExport = false, fields =
|
|
2365
|
+
async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = true, includeHeaderNames = false, isCSVExport = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
2366
2366
|
const labelRequests = [];
|
|
2367
2367
|
Object.keys(exportInfos).forEach(k => {
|
|
2368
2368
|
var _a;
|
|
2369
2369
|
const labelInfo = exportInfos[k];
|
|
2370
|
-
labelRequests.push(_prepareLabels(webmap, ((_a = labelInfo.layerView) === null || _a === void 0 ? void 0 : _a.layer) || labelInfo.layer, labelInfo.ids, formatUsingLayerPopup, includeHeaderNames, fields, useFieldAliasNames));
|
|
2370
|
+
labelRequests.push(_prepareLabels(webmap, ((_a = labelInfo.layerView) === null || _a === void 0 ? void 0 : _a.layer) || labelInfo.layer, labelInfo.ids, formatUsingLayerPopup, includeHeaderNames, fields, useFieldAliasNames, filterFields));
|
|
2371
2371
|
if (isCSVExport) {
|
|
2372
2372
|
// add the layer id as a temp value separator that we can use to split values for CSV export
|
|
2373
2373
|
labelRequests.push(Promise.resolve([[k]]));
|
|
@@ -2387,8 +2387,8 @@ async function consolidateLabels(webmap, exportInfos, formatUsingLayerPopup = tr
|
|
|
2387
2387
|
* @param addColumnTitle Indicates if column headings should be included in output
|
|
2388
2388
|
* @returns Promise resolving when function is done
|
|
2389
2389
|
*/
|
|
2390
|
-
async function downloadCSV(webmap, exportInfos, formatUsingLayerPopup, removeDuplicates = false, addColumnTitle = false, fields =
|
|
2391
|
-
let labels = await consolidateLabels(webmap, exportInfos, formatUsingLayerPopup, addColumnTitle, true, fields, useFieldAliasNames);
|
|
2390
|
+
async function downloadCSV(webmap, exportInfos, formatUsingLayerPopup, removeDuplicates = false, addColumnTitle = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
2391
|
+
let labels = await consolidateLabels(webmap, exportInfos, formatUsingLayerPopup, addColumnTitle, true, fields, useFieldAliasNames, filterFields);
|
|
2392
2392
|
labels = removeDuplicates ? removeDuplicateLabels(labels) : labels;
|
|
2393
2393
|
const layerIds = Object.keys(exportInfos);
|
|
2394
2394
|
let layerLabels = [];
|
|
@@ -2924,10 +2924,7 @@ function _prepareAttributeValue(attributeValue, attributeType, attributeDomain,
|
|
|
2924
2924
|
* @param includeHeaderNames Add the label format at the front of the list of generated labels
|
|
2925
2925
|
* @returns Promise resolving when function is done
|
|
2926
2926
|
*/
|
|
2927
|
-
async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true, includeHeaderNames = false, fields =
|
|
2928
|
-
if (fields.length === 0) {
|
|
2929
|
-
fields = layer.fields.map(f => f.name.toLowerCase());
|
|
2930
|
-
}
|
|
2927
|
+
async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true, includeHeaderNames = false, fields = undefined, useFieldAliasNames = false, filterFields = false) {
|
|
2931
2928
|
// Get the label formatting, if any
|
|
2932
2929
|
const labelFormatProps = await _getLabelFormat(webmap, layer, formatUsingLayerPopup);
|
|
2933
2930
|
// Because the label may actually come from a related layer, we'll use the layer that comes back from _getLabelFormat.
|
|
@@ -2994,7 +2991,7 @@ async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true,
|
|
|
2994
2991
|
const attributeDomains = {};
|
|
2995
2992
|
if (featureLayer.fields) {
|
|
2996
2993
|
featureLayer.fields.forEach(field => {
|
|
2997
|
-
if (fields.indexOf(field.name.toLowerCase()) > -1) {
|
|
2994
|
+
if (filterFields ? fields.indexOf(field.name.toLowerCase()) > -1 : true) {
|
|
2998
2995
|
const lowercaseFieldname = field.name.toLowerCase();
|
|
2999
2996
|
attributeOrigNames[lowercaseFieldname] = field.name;
|
|
3000
2997
|
attributeDomains[lowercaseFieldname] = field.domain;
|
|
@@ -3005,7 +3002,7 @@ async function _prepareLabels(webmap, layer, ids, formatUsingLayerPopup = true,
|
|
|
3005
3002
|
else {
|
|
3006
3003
|
// Feature layer is missing fields, so get info from first feature
|
|
3007
3004
|
Object.keys(featureSet[0]).forEach(fieldName => {
|
|
3008
|
-
if (fields.indexOf(fieldName.toLowerCase()) > -1) {
|
|
3005
|
+
if (filterFields ? fields.indexOf(fieldName.toLowerCase()) > -1 : true) {
|
|
3009
3006
|
const lowercaseFieldname = fieldName.toLowerCase();
|
|
3010
3007
|
attributeOrigNames[lowercaseFieldname] = fieldName;
|
|
3011
3008
|
}
|
|
@@ -70,7 +70,7 @@ async function createInteractiveLegendDataForLayer(legendViewModel, activeLayerI
|
|
|
70
70
|
// Get Feature Layer View to query
|
|
71
71
|
const fLayerView = await legendViewModel.view.whenLayerView(fLayer);
|
|
72
72
|
await reactiveUtils.whenOnce(() => (fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.updating) === false);
|
|
73
|
-
const field = (_g = fLayer.renderer) === null || _g === void 0 ? void 0 : _g.
|
|
73
|
+
const field = (_g = fLayer.renderer) === null || _g === void 0 ? void 0 : _g.field;
|
|
74
74
|
if (legendElement !== undefined) {
|
|
75
75
|
(_h = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _h === void 0 ? void 0 : _h.forEach(legendElementInfo => {
|
|
76
76
|
var _a;
|
|
@@ -272,9 +272,11 @@ function generateQueryExpressions(data, info, infoIndex, parentLegendElementInfo
|
|
|
272
272
|
let queryExpression = isPredominance
|
|
273
273
|
? handlePredominanceExpression(info, fLayerView)
|
|
274
274
|
: generateQueryExpression(info, field, infoIndex, legendElement, legendElementInfos, '');
|
|
275
|
-
const category =
|
|
276
|
-
?
|
|
277
|
-
|
|
275
|
+
const category = categories
|
|
276
|
+
? parentLegendElementInfo
|
|
277
|
+
? (_b = (_a = categories.get(parentLegendElementInfo.title)) === null || _a === void 0 ? void 0 : _a.nestedInfos) === null || _b === void 0 ? void 0 : _b[infoIndex]
|
|
278
|
+
: categories.get((_c = info.label) !== null && _c !== void 0 ? _c : (_d = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _d === void 0 ? void 0 : _d.id)
|
|
279
|
+
: null;
|
|
278
280
|
if (category)
|
|
279
281
|
category.selected = !(category === null || category === void 0 ? void 0 : category.selected);
|
|
280
282
|
const hasOneValue = legendElementInfos && legendElementInfos.length === 1;
|
|
@@ -348,7 +350,7 @@ function generateQueryExpressions(data, info, infoIndex, parentLegendElementInfo
|
|
|
348
350
|
}
|
|
349
351
|
function generateQueryExpression(info, field, infoIndex, legendElement, legendElementInfos, normalizationField) {
|
|
350
352
|
const { value } = info;
|
|
351
|
-
if (legendElement.type === 'symbol-table') {
|
|
353
|
+
if ((legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) === 'symbol-table') {
|
|
352
354
|
// Classify data size/color ramp
|
|
353
355
|
if (!info.hasOwnProperty('value') || (Array.isArray(info.value) && (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) === 1)) {
|
|
354
356
|
// Classify data size/color ramp - 'Other' category
|
|
@@ -423,7 +425,8 @@ function checkNoneSelected(data) {
|
|
|
423
425
|
}
|
|
424
426
|
}
|
|
425
427
|
function checkPredominance(fLayerView) {
|
|
426
|
-
|
|
428
|
+
var _a, _b, _c;
|
|
429
|
+
const authoringInfoType = (_c = (_b = (_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _a === void 0 ? void 0 : _a.renderer) === null || _b === void 0 ? void 0 : _b.authoringInfo) === null || _c === void 0 ? void 0 : _c.type;
|
|
427
430
|
return authoringInfoType === 'predominance';
|
|
428
431
|
}
|
|
429
432
|
function checkRelationshipRamp(activeLayerInfo) {
|
|
@@ -431,24 +434,24 @@ function checkRelationshipRamp(activeLayerInfo) {
|
|
|
431
434
|
return ((_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements[1]) === null || _a === void 0 ? void 0 : _a.type) === 'relationship-ramp';
|
|
432
435
|
}
|
|
433
436
|
function validateInteractivity(activeLayerInfo, legendElement, legendElementIndex) {
|
|
434
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
437
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
435
438
|
const fLayer = activeLayerInfo.layer;
|
|
436
439
|
const field = (_a = fLayer === null || fLayer === void 0 ? void 0 : fLayer.renderer) === null || _a === void 0 ? void 0 : _a.field;
|
|
437
440
|
const type = legendElement === null || legendElement === void 0 ? void 0 : legendElement.type;
|
|
438
|
-
const layerView = activeLayerInfo.
|
|
439
|
-
const classBreakInfos = layerView === null || layerView === void 0 ? void 0 : layerView.
|
|
440
|
-
const uniqueValueInfos = (layerView === null || layerView === void 0 ? void 0 : layerView.
|
|
441
|
+
const layerView = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layerView;
|
|
442
|
+
const classBreakInfos = (_c = (_b = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _b === void 0 ? void 0 : _b.renderer) === null || _c === void 0 ? void 0 : _c.classBreakInfos;
|
|
443
|
+
const uniqueValueInfos = ((_e = (_d = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _d === void 0 ? void 0 : _d.renderer) === null || _e === void 0 ? void 0 : _e.uniqueValueInfos) && field;
|
|
441
444
|
const isSizeRamp = type === 'size-ramp';
|
|
442
445
|
const isColorRamp = type === 'color-ramp';
|
|
443
446
|
const opacityRamp = type === 'opacity-ramp';
|
|
444
447
|
const heatmapRamp = type === 'heatmap-ramp';
|
|
445
448
|
const hasMoreThanOneClassBreak = layerView && classBreakInfos && classBreakInfos.length > 1;
|
|
446
|
-
const authoringInfoType = layerView === null || layerView === void 0 ? void 0 : layerView.
|
|
449
|
+
const authoringInfoType = (_h = (_g = (_f = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _f === void 0 ? void 0 : _f.renderer) === null || _g === void 0 ? void 0 : _g.authoringInfo) === null || _h === void 0 ? void 0 : _h.type;
|
|
447
450
|
const classifyDataCheckedColorRamp = authoringInfoType === 'class-breaks-color';
|
|
448
451
|
const classifyDataCheckedSizeRamp = authoringInfoType === 'class-breaks-size';
|
|
449
|
-
const singleSymbol = ((
|
|
452
|
+
const singleSymbol = ((_j = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _j === void 0 ? void 0 : _j.length) === 1 && !field;
|
|
450
453
|
const isRelationshipRamp = authoringInfoType === 'relationship' && (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) !== 'size-ramp' && (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) !== 'symbol-table';
|
|
451
|
-
const isFeatureLayer = (activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.
|
|
454
|
+
const isFeatureLayer = ((_k = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _k === void 0 ? void 0 : _k.type) === 'feature';
|
|
452
455
|
const moreThanOneClassBreak = isFeatureLayer && field && !isColorRamp && !isSizeRamp && hasMoreThanOneClassBreak;
|
|
453
456
|
const oneClassBreak = isFeatureLayer && field && !isColorRamp && !isSizeRamp && !hasMoreThanOneClassBreak ? true : false;
|
|
454
457
|
const validate = oneClassBreak ||
|
|
@@ -460,14 +463,14 @@ function validateInteractivity(activeLayerInfo, legendElement, legendElementInde
|
|
|
460
463
|
uniqueValueInfos
|
|
461
464
|
? true
|
|
462
465
|
: false;
|
|
463
|
-
const hasClustering = (activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.
|
|
464
|
-
const isSingleSymbol = (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) === 'symbol-table' && ((
|
|
466
|
+
const hasClustering = ((_l = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _l === void 0 ? void 0 : _l.featureReduction) && ((_o = (_m = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _m === void 0 ? void 0 : _m[legendElementIndex]) === null || _o === void 0 ? void 0 : _o.type) === 'size-ramp';
|
|
467
|
+
const isSingleSymbol = (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) === 'symbol-table' && ((_p = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _p === void 0 ? void 0 : _p.length) === 1;
|
|
465
468
|
const hasColorRamp = !(activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements.every(legendElement => legendElement.type !== 'color-ramp'));
|
|
466
469
|
const hasSizeRamp = !(activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements.every(legendElement => legendElement.type !== 'size-ramp'));
|
|
467
470
|
const singleSymbolColor = isSingleSymbol && hasColorRamp;
|
|
468
471
|
const singleSymbolSize = isSingleSymbol && hasSizeRamp;
|
|
469
|
-
const isUnclassifiedSizeRamp = (
|
|
470
|
-
const isBinning = ((
|
|
472
|
+
const isUnclassifiedSizeRamp = (_q = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _q === void 0 ? void 0 : _q.every(info => typeof info.value === 'number');
|
|
473
|
+
const isBinning = ((_s = (_r = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _r === void 0 ? void 0 : _r[0]) === null || _s === void 0 ? void 0 : _s.type) === 'symbol-table' && ((_u = (_t = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _t === void 0 ? void 0 : _t[1]) === null || _u === void 0 ? void 0 : _u.type) === 'color-ramp';
|
|
471
474
|
const isDotDensity = authoringInfoType === 'dot-density';
|
|
472
475
|
const isValidated = isFeatureLayer && !hasClustering && !opacityRamp && !heatmapRamp && !singleSymbolColor && !singleSymbolSize && !isUnclassifiedSizeRamp && !isBinning && !isDotDensity
|
|
473
476
|
? classBreakInfos
|
|
@@ -603,7 +606,7 @@ async function handleFeatureCount(legendViewModel, data) {
|
|
|
603
606
|
const legendElement = activeLayerInfo.legendElements[0];
|
|
604
607
|
const fLayer = activeLayerInfo.layer;
|
|
605
608
|
const fLayerView = (_b = data[(_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b.fLayerView;
|
|
606
|
-
const field = (_c = fLayer.renderer) === null || _c === void 0 ? void 0 : _c.
|
|
609
|
+
const field = (_c = fLayer.renderer) === null || _c === void 0 ? void 0 : _c.field;
|
|
607
610
|
const counts = [];
|
|
608
611
|
countPromises[activeLayerInfo.layer.id] = [];
|
|
609
612
|
(_d = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _d === void 0 ? void 0 : _d.forEach((info, infoIndex) => {
|
|
@@ -628,7 +631,7 @@ async function handleFeatureCount(legendViewModel, data) {
|
|
|
628
631
|
const legendElement = aliChild.legendElements[0];
|
|
629
632
|
const fLayer = aliChild.layer;
|
|
630
633
|
const fLayerView = (_b = data[(_a = aliChild === null || aliChild === void 0 ? void 0 : aliChild.layer) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b.fLayerView;
|
|
631
|
-
const field = (_c = fLayer.renderer) === null || _c === void 0 ? void 0 : _c.
|
|
634
|
+
const field = (_c = fLayer.renderer) === null || _c === void 0 ? void 0 : _c.field;
|
|
632
635
|
(_d = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _d === void 0 ? void 0 : _d.forEach((info, infoIndex) => childCounts.push(getInfoCount(legendViewModel.view.extent, fLayerView, field, info, infoIndex, legendElement)));
|
|
633
636
|
countPromises[aliChild.layer.id] = childCounts;
|
|
634
637
|
};
|
|
@@ -197,17 +197,29 @@ const printStyling = `
|
|
|
197
197
|
width: 100%;
|
|
198
198
|
position: absolute;
|
|
199
199
|
bottom: 15px;
|
|
200
|
-
|
|
200
|
+
margin: 0 15px;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.instant-apps-export-print__scale-bar-container .esri-scale-bar__label {
|
|
204
|
+
color: #323232;
|
|
204
205
|
font-size: 10px;
|
|
206
|
+
padding: 0 4px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.instant-apps-export-print__scale-bar-container--position .esri-scale-bar__label {
|
|
210
|
+
height: 10px;
|
|
211
|
+
padding: 0 2px;
|
|
212
|
+
line-height: 11px;
|
|
205
213
|
}
|
|
206
214
|
|
|
207
215
|
.instant-apps-export-print__scale-bar-container .esri-scale-bar__bar-container:nth-child(1n+3) {
|
|
208
216
|
display: none;
|
|
209
217
|
}
|
|
210
218
|
|
|
219
|
+
.instant-apps-export-print__scale-bar-container--position .esri-scale-bar__bar-container.esri-scale-bar__bar-container--line {
|
|
220
|
+
align-items: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
211
223
|
.instant-apps-export-print__scale-bar-container .esri-scale-bar__line {
|
|
212
224
|
background-color: rgba(255, 255, 255, 0.66);
|
|
213
225
|
}
|
|
@@ -219,10 +231,16 @@ const printStyling = `
|
|
|
219
231
|
|
|
220
232
|
.instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom {
|
|
221
233
|
width: var(--instant-apps-scale-bar-bottom) !important;
|
|
234
|
+
border-top: 2px solid #323232;
|
|
222
235
|
}
|
|
223
236
|
|
|
224
|
-
.instant-apps-export-print__scale-bar-container .esri-scale-bar__label {
|
|
225
|
-
|
|
237
|
+
.instant-apps-export-print__scale-bar-container--position .esri-scale-bar__label-container--line {
|
|
238
|
+
position: unset;
|
|
239
|
+
margin: 0 2px;
|
|
240
|
+
background-color: rgba(255, 255, 255, 0.66);
|
|
241
|
+
height: 10px;
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
226
244
|
}
|
|
227
245
|
|
|
228
246
|
.instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:before,
|
|
@@ -309,8 +327,7 @@ const screenshotStyling = `
|
|
|
309
327
|
|
|
310
328
|
.screenshot-img-container calcite-button {
|
|
311
329
|
margin: 5px;
|
|
312
|
-
}
|
|
313
|
-
`;
|
|
330
|
+
}`;
|
|
314
331
|
|
|
315
332
|
const instantAppsExportCss = ":host{display:block;--instant-apps-export-action-background:var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-export-action-background-press:var(--calcite-color-foreground-3);--instant-apps-export-action-height:100%;--instant-apps-export-action-width:fit-content;--instant-apps-export-action-icon-color:var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-export-background:var(--calcite-color-foreground-1);--instant-apps-export-text-color:var(--calcite-color-text-1);--instant-apps-export-popover-width:250px}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1:var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1:var(--instant-apps-export-action-background);--calcite-color-foreground-2:var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3:var(--instant-apps-export-action-background-press);--calcite-color-text-3:var(--instant-apps-export-action-icon-color);--calcite-color-text-1:var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1:var(--instant-apps-export-background);--calcite-color-text-1:var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1:var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1:#fff;--calcite-color-foreground-2:#f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-export .calcite-mode-dark calcite-switch{--calcite-color-foreground-1:#2b2b2b;--calcite-color-foreground-2:#202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}";
|
|
316
333
|
|
|
@@ -361,7 +378,7 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
361
378
|
this.showIncludeLegend = true;
|
|
362
379
|
this.showIncludeMap = false;
|
|
363
380
|
this.showIncludePopup = true;
|
|
364
|
-
this.showScaleBar =
|
|
381
|
+
this.showScaleBar = false;
|
|
365
382
|
this.view = undefined;
|
|
366
383
|
this.maskBackground = 'rgba(255, 51, 0, 0.1)';
|
|
367
384
|
this.maskBorder = '2px dashed rgb(255, 51, 0)';
|
|
@@ -369,8 +386,8 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
369
386
|
this.exportIsLoading = undefined;
|
|
370
387
|
this.messages = undefined;
|
|
371
388
|
}
|
|
372
|
-
watchIncludeMap(
|
|
373
|
-
if (
|
|
389
|
+
watchIncludeMap(includeMap) {
|
|
390
|
+
if (includeMap) {
|
|
374
391
|
this.updateLegend();
|
|
375
392
|
}
|
|
376
393
|
}
|
|
@@ -440,7 +457,7 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
440
457
|
return (h("div", { ref: (el) => (this.printContainerEl = el) }, h("div", { class: CSS.print.base, ref: (el) => (this.printEl = el) }, printMap, legend, h("div", { class: CSS.print.contentContainer }, popup, extraContent))));
|
|
441
458
|
}
|
|
442
459
|
renderPrintMap() {
|
|
443
|
-
return (h("div", { class: CSS.print.viewContainer, ref: (el) => (this.viewContainerEl = el) }, h("div", { class: CSS.print.viewWrapper, ref: (el) => (this.viewWrapperEl = el) }, this.headerTitle ? h("instant-apps-header", { titleText: this.headerTitle, backgroundColor: "#fff", textColor: "#323232" }) : null, h("img", { class: CSS.print.view, ref: (el) => (this.viewEl = el) }), h("div", { class: CSS.print.scaleBarContainer, ref: this.
|
|
460
|
+
return (h("div", { class: CSS.print.viewContainer, ref: (el) => (this.viewContainerEl = el) }, h("div", { class: CSS.print.viewWrapper, ref: (el) => (this.viewWrapperEl = el) }, this.headerTitle ? h("instant-apps-header", { titleText: this.headerTitle, backgroundColor: "#fff", textColor: "#323232" }) : null, h("img", { class: CSS.print.view, ref: (el) => (this.viewEl = el) }), h("div", { class: CSS.print.scaleBarContainer, ref: (el) => (this.scaleBarContainerEl = el) }))));
|
|
444
461
|
}
|
|
445
462
|
renderLegend() {
|
|
446
463
|
return h("div", { class: CSS.print.legendContainer, ref: (el) => (this.legendContainerEl = el) });
|
|
@@ -480,6 +497,7 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
480
497
|
document.body.prepend(this.printEl);
|
|
481
498
|
this.handleExtraContent();
|
|
482
499
|
if (this.includeMap) {
|
|
500
|
+
this.updateScaleBar();
|
|
483
501
|
this.updatePopupToPrint();
|
|
484
502
|
this.viewScreenshot();
|
|
485
503
|
this.handleImgLoaded();
|
|
@@ -593,11 +611,11 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
593
611
|
this.handleCompassCreation();
|
|
594
612
|
}
|
|
595
613
|
handleLegendCreation() {
|
|
596
|
-
var _a, _b;
|
|
614
|
+
var _a, _b, _c, _d;
|
|
597
615
|
if (this.includeMap && this.view != null && this.showIncludeLegend && this.legendContainerEl != null) {
|
|
598
616
|
const map = this.view.map;
|
|
599
617
|
const legendMap = (_b = (_a = this.legend) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.map;
|
|
600
|
-
const checkId = (map === null || map === void 0 ? void 0 : map.portalItem.id) === (legendMap === null || legendMap === void 0 ? void 0 : legendMap.portalItem.id);
|
|
618
|
+
const checkId = ((_c = map === null || map === void 0 ? void 0 : map.portalItem) === null || _c === void 0 ? void 0 : _c.id) === ((_d = legendMap === null || legendMap === void 0 ? void 0 : legendMap.portalItem) === null || _d === void 0 ? void 0 : _d.id);
|
|
601
619
|
if (!checkId) {
|
|
602
620
|
this.updateLegend();
|
|
603
621
|
}
|
|
@@ -623,11 +641,11 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
623
641
|
});
|
|
624
642
|
}
|
|
625
643
|
handleCompassCreation() {
|
|
626
|
-
var _a, _b;
|
|
644
|
+
var _a, _b, _c, _d;
|
|
627
645
|
if (this.includeMap && this.view != null && this.compassContainerEl != null) {
|
|
628
646
|
const map = this.view.map;
|
|
629
647
|
const compassMap = (_b = (_a = this.compass) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.map;
|
|
630
|
-
const checkId = (map === null || map === void 0 ? void 0 : map.portalItem.id) === (compassMap === null || compassMap === void 0 ? void 0 : compassMap.portalItem.id);
|
|
648
|
+
const checkId = ((_c = map === null || map === void 0 ? void 0 : map.portalItem) === null || _c === void 0 ? void 0 : _c.id) === ((_d = compassMap === null || compassMap === void 0 ? void 0 : compassMap.portalItem) === null || _d === void 0 ? void 0 : _d.id);
|
|
631
649
|
if (!checkId) {
|
|
632
650
|
this.updateCompass();
|
|
633
651
|
}
|
|
@@ -646,18 +664,22 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
646
664
|
});
|
|
647
665
|
}
|
|
648
666
|
updateScaleBar() {
|
|
649
|
-
var _a;
|
|
650
|
-
(
|
|
651
|
-
|
|
652
|
-
(
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
667
|
+
var _a, _b, _c;
|
|
668
|
+
if (this.scaleBarContainerEl) {
|
|
669
|
+
this.scaleBarContainerEl.innerHTML = '';
|
|
670
|
+
if (this.showScaleBar) {
|
|
671
|
+
const scaleBar = (_c = (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.container) === null || _b === void 0 ? void 0 : _b.querySelector('.esri-scale-bar.esri-widget')) === null || _c === void 0 ? void 0 : _c.cloneNode(true);
|
|
672
|
+
if (scaleBar != null) {
|
|
673
|
+
this.scaleBarContainerEl.append(scaleBar);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
657
677
|
}
|
|
658
678
|
async viewScreenshot() {
|
|
679
|
+
var _a;
|
|
659
680
|
if (this.view != null && this.includeMap) {
|
|
660
681
|
if (this.screenshot == null) {
|
|
682
|
+
(_a = this.scaleBarContainerEl) === null || _a === void 0 ? void 0 : _a.classList.toggle('instant-apps-export-print__scale-bar-container--position', this.view.width > 1000);
|
|
661
683
|
this.screenshot = await this.view.takeScreenshot({
|
|
662
684
|
width: this.view.width * 2,
|
|
663
685
|
height: this.view.height * 2,
|
|
@@ -795,10 +817,15 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
795
817
|
}
|
|
796
818
|
}
|
|
797
819
|
maskScreenshot() {
|
|
820
|
+
var _a;
|
|
798
821
|
if (this.view != null && this.area != null) {
|
|
799
822
|
this.view.removeHandles(dragHandlerName);
|
|
800
823
|
const height = this.area.height;
|
|
801
824
|
const width = this.area.width;
|
|
825
|
+
if (this.showScaleBar) {
|
|
826
|
+
const moveSBUnit = this.view.width > 1000 && this.view.width * 0.75 < width;
|
|
827
|
+
(_a = this.scaleBarContainerEl) === null || _a === void 0 ? void 0 : _a.classList.toggle('instant-apps-export-print__scale-bar-container--position', moveSBUnit);
|
|
828
|
+
}
|
|
802
829
|
this.view.takeScreenshot({ area: this.area, width: width * 2, height: height * 2, format: 'jpg' }).then(screenshot => {
|
|
803
830
|
var _a;
|
|
804
831
|
this.screenshot = screenshot;
|
|
@@ -841,11 +868,12 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
841
868
|
}
|
|
842
869
|
}
|
|
843
870
|
setScalebarWidth(bar, position) {
|
|
871
|
+
var _a;
|
|
844
872
|
if (bar != null && this.screenshot != null) {
|
|
845
873
|
const width = this.screenshot.data.width / 2;
|
|
846
874
|
const barWidth = Number(bar.style.width.replace('px', ''));
|
|
847
875
|
const widthPercentage = (barWidth / width) * 100;
|
|
848
|
-
|
|
876
|
+
(_a = this.scaleBarContainerEl) === null || _a === void 0 ? void 0 : _a.style.setProperty(`--instant-apps-scale-bar-${position}`, `${widthPercentage}%`);
|
|
849
877
|
}
|
|
850
878
|
}
|
|
851
879
|
removeScreenshotElements() {
|
|
@@ -853,18 +881,6 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
|
853
881
|
(_a = this.screenshotPreview) === null || _a === void 0 ? void 0 : _a.remove();
|
|
854
882
|
(_b = this.screenshotStyle) === null || _b === void 0 ? void 0 : _b.remove();
|
|
855
883
|
}
|
|
856
|
-
handleScaleBarContainerEl(el) {
|
|
857
|
-
var _a, _b, _c;
|
|
858
|
-
if (this.showScaleBar && ((_a = this.view) === null || _a === void 0 ? void 0 : _a.type) === '2d') {
|
|
859
|
-
const map = this.view.map;
|
|
860
|
-
const scaleBarMap = (_c = (_b = this.scaleBar) === null || _b === void 0 ? void 0 : _b.view) === null || _c === void 0 ? void 0 : _c.map;
|
|
861
|
-
this.scaleBarContainerEl = el;
|
|
862
|
-
const checkId = (map === null || map === void 0 ? void 0 : map.portalItem.id) === (scaleBarMap === null || scaleBarMap === void 0 ? void 0 : scaleBarMap.portalItem.id);
|
|
863
|
-
if (!checkId) {
|
|
864
|
-
this.updateScaleBar();
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
884
|
get el() { return this; }
|
|
869
885
|
static get watchers() { return {
|
|
870
886
|
"includeMap": ["watchIncludeMap"]
|