@esri/solutions-components 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/buffer-tools/resources_ar.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_bg.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_bs.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_ca.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_cs.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_da.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_de.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_el.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_es.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_et.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_fi.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_fr.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_he.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_hr.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_hu.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_id.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_it.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_ja.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_ko.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_lt.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_lv.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_nb.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_nl.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_pl.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_pt-BR.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_pt-PT.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_ro.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_ru.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_sk.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_sl.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_sr.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_sv.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_th.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_tr.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_uk.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_vi.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_zh-CN.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_zh-HK.json +6 -0
- package/dist/assets/t9n/buffer-tools/resources_zh-TW.json +6 -0
- package/dist/assets/t9n/map-draw-tools/resources_ar.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_bg.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_bs.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_ca.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_cs.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_da.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_de.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_el.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_es.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_et.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_fi.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_fr.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_he.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_hr.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_hu.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_id.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_it.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_ja.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_ko.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_lt.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_lv.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_nb.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_nl.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_pl.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_pt-BR.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_pt-PT.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_ro.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_ru.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_sk.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_sl.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_sr.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_sv.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_th.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_tr.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_uk.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_vi.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_zh-CN.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_zh-HK.json +5 -0
- package/dist/assets/t9n/map-draw-tools/resources_zh-TW.json +5 -0
- package/dist/assets/t9n/map-select-tools/resources.json +3 -1
- package/dist/assets/t9n/map-select-tools/resources_ar.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_bg.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_bs.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_ca.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_cs.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_da.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_de.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_el.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_en.json +3 -1
- package/dist/assets/t9n/map-select-tools/resources_es.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_et.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_fi.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_fr.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_he.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_hr.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_hu.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_id.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_it.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_ja.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_ko.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_lt.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_lv.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_nb.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_nl.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_pl.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_pt-BR.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_pt-PT.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_ro.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_ru.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_sk.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_sl.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_sr.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_sv.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_th.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_tr.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_uk.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_vi.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_zh-CN.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_zh-HK.json +13 -0
- package/dist/assets/t9n/map-select-tools/resources_zh-TW.json +13 -0
- package/dist/assets/t9n/pdf-download/resources_ar.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_bg.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_bs.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_ca.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_cs.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_da.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_de.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_el.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_es.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_et.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_fi.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_fr.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_he.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_hr.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_hu.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_id.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_it.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_ja.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_ko.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_lt.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_lv.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_nb.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_nl.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_pl.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_pt-BR.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_pt-PT.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_ro.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_ru.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_sk.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_sl.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_sr.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_sv.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_th.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_tr.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_uk.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_vi.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_zh-CN.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_zh-HK.json +3 -0
- package/dist/assets/t9n/pdf-download/resources_zh-TW.json +3 -0
- package/dist/assets/t9n/public-notification/resources.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ar.json +40 -0
- package/dist/assets/t9n/public-notification/resources_bg.json +40 -0
- package/dist/assets/t9n/public-notification/resources_bs.json +40 -0
- package/dist/assets/t9n/public-notification/resources_ca.json +40 -0
- package/dist/assets/t9n/public-notification/resources_cs.json +40 -0
- package/dist/assets/t9n/public-notification/resources_da.json +40 -0
- package/dist/assets/t9n/public-notification/resources_de.json +40 -0
- package/dist/assets/t9n/public-notification/resources_el.json +40 -0
- package/dist/assets/t9n/public-notification/resources_en.json +2 -2
- package/dist/assets/t9n/public-notification/resources_es.json +40 -0
- package/dist/assets/t9n/public-notification/resources_et.json +40 -0
- package/dist/assets/t9n/public-notification/resources_fi.json +40 -0
- package/dist/assets/t9n/public-notification/resources_fr.json +40 -0
- package/dist/assets/t9n/public-notification/resources_he.json +40 -0
- package/dist/assets/t9n/public-notification/resources_hr.json +40 -0
- package/dist/assets/t9n/public-notification/resources_hu.json +40 -0
- package/dist/assets/t9n/public-notification/resources_id.json +40 -0
- package/dist/assets/t9n/public-notification/resources_it.json +40 -0
- package/dist/assets/t9n/public-notification/resources_ja.json +40 -0
- package/dist/assets/t9n/public-notification/resources_ko.json +40 -0
- package/dist/assets/t9n/public-notification/resources_lt.json +40 -0
- package/dist/assets/t9n/public-notification/resources_lv.json +40 -0
- package/dist/assets/t9n/public-notification/resources_nb.json +40 -0
- package/dist/assets/t9n/public-notification/resources_nl.json +40 -0
- package/dist/assets/t9n/public-notification/resources_pl.json +40 -0
- package/dist/assets/t9n/public-notification/resources_pt-BR.json +40 -0
- package/dist/assets/t9n/public-notification/resources_pt-PT.json +40 -0
- package/dist/assets/t9n/public-notification/resources_ro.json +40 -0
- package/dist/assets/t9n/public-notification/resources_ru.json +40 -0
- package/dist/assets/t9n/public-notification/resources_sk.json +40 -0
- package/dist/assets/t9n/public-notification/resources_sl.json +40 -0
- package/dist/assets/t9n/public-notification/resources_sr.json +40 -0
- package/dist/assets/t9n/public-notification/resources_sv.json +40 -0
- package/dist/assets/t9n/public-notification/resources_th.json +40 -0
- package/dist/assets/t9n/public-notification/resources_tr.json +40 -0
- package/dist/assets/t9n/public-notification/resources_uk.json +40 -0
- package/dist/assets/t9n/public-notification/resources_vi.json +40 -0
- package/dist/assets/t9n/public-notification/resources_zh-CN.json +40 -0
- package/dist/assets/t9n/public-notification/resources_zh-HK.json +40 -0
- package/dist/assets/t9n/public-notification/resources_zh-TW.json +40 -0
- package/dist/cjs/buffer-tools_4.cjs.entry.js +26 -21
- package/dist/cjs/calcite-input-text_5.cjs.entry.js +19 -11
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
- package/dist/cjs/{solution-store-ca4639d5.js → solution-store-70002b57.js} +3 -3
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +44 -22
- package/dist/collection/components/map-select-tools/map-select-tools.css +14 -0
- package/dist/collection/components/map-select-tools/map-select-tools.js +18 -10
- package/dist/collection/components/refine-selection/refine-selection.css +85 -85
- package/dist/components/map-draw-tools2.js +27 -21
- package/dist/components/map-select-tools2.js +57 -43
- package/dist/components/solution-store.js +3 -3
- package/dist/esm/buffer-tools_4.entry.js +26 -21
- package/dist/esm/calcite-input-text_5.entry.js +19 -11
- package/dist/esm/calcite-shell-panel_14.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/solution-configuration.entry.js +1 -1
- package/dist/esm/solution-contents_3.entry.js +1 -1
- package/dist/esm/{solution-store-70f874f8.js → solution-store-5d068b07.js} +3 -3
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-16dfb254.entry.js → p-41802f6b.entry.js} +1 -1
- package/dist/solutions-components/{p-5ed755a2.entry.js → p-4769a2a5.entry.js} +1 -1
- package/dist/solutions-components/{p-d5d5942d.entry.js → p-7e409786.entry.js} +3 -3
- package/dist/solutions-components/{p-78719506.js → p-826a814d.js} +2 -2
- package/dist/solutions-components/{p-b4b19fd3.entry.js → p-9f620303.entry.js} +1 -1
- package/dist/solutions-components/{p-96c0edd9.entry.js → p-b4d4b50a.entry.js} +2 -2
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/collection/components/add-record-modal/test/add-record-modal.e2e.js +0 -24
- package/dist/collection/components/add-record-modal/test/add-record-modal.spec.js +0 -32
- package/dist/collection/components/buffer-tools/test/buffer-tools.e2e.js +0 -24
- package/dist/collection/components/buffer-tools/test/buffer-tools.spec.js +0 -157
- package/dist/collection/components/card-manager/test/card-manager.e2e.js +0 -24
- package/dist/collection/components/card-manager/test/card-manager.spec.js +0 -32
- package/dist/collection/components/comment-card/test/comment-card.e2e.js +0 -24
- package/dist/collection/components/comment-card/test/comment-card.spec.js +0 -32
- package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.e2e.js +0 -24
- package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.spec.js +0 -32
- package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.e2e.js +0 -24
- package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.spec.js +0 -32
- package/dist/collection/components/deduct-calculator/test/deduct-calculator.e2e.js +0 -24
- package/dist/collection/components/deduct-calculator/test/deduct-calculator.spec.js +0 -32
- package/dist/collection/components/edit-record-modal/test/edit-record-modal.e2e.js +0 -24
- package/dist/collection/components/edit-record-modal/test/edit-record-modal.spec.js +0 -32
- package/dist/collection/components/info-card/test/info-card.e2e.js +0 -24
- package/dist/collection/components/info-card/test/info-card.spec.js +0 -32
- package/dist/collection/components/json-editor/test/json-editor.e2e.js +0 -31
- package/dist/collection/components/json-editor/test/json-editor.spec.js +0 -60
- package/dist/collection/components/layer-table/test/layer-table.e2e.js +0 -24
- package/dist/collection/components/layer-table/test/layer-table.spec.js +0 -32
- package/dist/collection/components/list-item/test/list-item.e2e.js +0 -24
- package/dist/collection/components/list-item/test/list-item.spec.js +0 -32
- package/dist/collection/components/map-card/test/map-card.e2e.js +0 -24
- package/dist/collection/components/map-card/test/map-card.spec.js +0 -32
- package/dist/collection/components/map-draw-tools/test/map-draw-tools.e2e.js +0 -24
- package/dist/collection/components/map-draw-tools/test/map-draw-tools.spec.js +0 -32
- package/dist/collection/components/map-layer-picker/test/map-layer-picker.e2e.js +0 -24
- package/dist/collection/components/map-layer-picker/test/map-layer-picker.spec.js +0 -109
- package/dist/collection/components/map-search/test/map-search.e2e.js +0 -24
- package/dist/collection/components/map-search/test/map-search.spec.js +0 -53
- package/dist/collection/components/map-select-tools/test/map-select-tools.e2e.js +0 -24
- package/dist/collection/components/map-select-tools/test/map-select-tools.spec.js +0 -349
- package/dist/collection/components/media-card/test/media-card.e2e.js +0 -24
- package/dist/collection/components/media-card/test/media-card.spec.js +0 -32
- package/dist/collection/components/pci-calculator/test/pci-calculator.e2e.js +0 -24
- package/dist/collection/components/pci-calculator/test/pci-calculator.spec.js +0 -32
- package/dist/collection/components/pdf-download/test/pdf-download.e2e.js +0 -71
- package/dist/collection/components/pdf-download/test/pdf-download.spec.js +0 -104
- package/dist/collection/components/public-notification/test/public-notification.e2e.js +0 -95
- package/dist/collection/components/public-notification/test/public-notification.spec.js +0 -149
- package/dist/collection/components/solution-configuration/test/solution-configuration.e2e.js +0 -31
- package/dist/collection/components/solution-configuration/test/solution-configuration.spec.js +0 -114
- package/dist/collection/components/solution-contents/test/solution-contents.e2e.js +0 -89
- package/dist/collection/components/solution-contents/test/solution-contents.spec.js +0 -138
- package/dist/collection/components/solution-item/test/solution-item.e2e.js +0 -31
- package/dist/collection/components/solution-item/test/solution-item.spec.js +0 -72
- package/dist/collection/components/solution-item-details/test/solution-item-details.e2e.js +0 -31
- package/dist/collection/components/solution-item-details/test/solution-item-details.spec.js +0 -137
- package/dist/collection/components/solution-item-icon/test/solution-item-icon.e2e.js +0 -24
- package/dist/collection/components/solution-item-icon/test/solution-item-icon.spec.js +0 -34
- package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.e2e.js +0 -31
- package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.spec.js +0 -49
- package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.e2e.js +0 -31
- package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.spec.js +0 -60
- package/dist/collection/components/solution-resource-item/test/solution-resource-item.e2e.js +0 -31
- package/dist/collection/components/solution-resource-item/test/solution-resource-item.spec.js +0 -50
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +0 -31
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +0 -170
- package/dist/collection/components/solution-template-data/test/solution-template-data.e2e.js +0 -31
- package/dist/collection/components/solution-template-data/test/solution-template-data.spec.js +0 -55
- package/dist/collection/components/solution-variables/test/solution-variables.e2e.js +0 -31
- package/dist/collection/components/solution-variables/test/solution-variables.spec.js +0 -126
- package/dist/collection/utils/publicNotificationUtils.js +0 -45
- package/dist/collection/utils/templates.e2e.js +0 -25
- package/dist/collection/utils/test/csvUtils.spec.js +0 -46
- package/dist/collection/utils/test/downloadUtils.spec.js +0 -102
- package/dist/collection/utils/test/pciUtils.spec.js +0 -297
- package/dist/collection/utils/test/solution-store.spec.js +0 -439
- package/dist/solutions-components/utils/common.js +0 -291
- package/dist/solutions-components/utils/csvDownload.js +0 -36
- package/dist/solutions-components/utils/csvUtils.js +0 -32
- package/dist/solutions-components/utils/downloadUtils.js +0 -386
- package/dist/solutions-components/utils/interfaces.js +0 -56
- package/dist/solutions-components/utils/languageUtil.js +0 -85
- package/dist/solutions-components/utils/loadModules.js +0 -20
- package/dist/solutions-components/utils/locale.js +0 -56
- package/dist/solutions-components/utils/mapViewUtils.js +0 -140
- package/dist/solutions-components/utils/pciUtils.js +0 -837
- package/dist/solutions-components/utils/pdfUtils.js +0 -62
- package/dist/solutions-components/utils/publicNotificationStore.js +0 -38
- package/dist/solutions-components/utils/publicNotificationUtils.js +0 -45
- package/dist/solutions-components/utils/queryUtils.js +0 -148
- package/dist/solutions-components/utils/solution-store.js +0 -579
- package/dist/solutions-components/utils/templates.e2e.js +0 -25
- package/dist/solutions-components/utils/templates.js +0 -341
- package/dist/solutions-components/utils/test/csvUtils.spec.js +0 -46
- package/dist/solutions-components/utils/test/downloadUtils.spec.js +0 -102
- package/dist/solutions-components/utils/test/mocks/jsApi.js +0 -74
- package/dist/solutions-components/utils/test/pciUtils.spec.js +0 -297
- package/dist/solutions-components/utils/test/solution-store.spec.js +0 -439
- package/dist/solutions-components/utils/test/testUtils.js +0 -135
- package/dist/solutions-components/utils/types.js +0 -14
- package/dist/solutions-components_commit.txt +0 -7
@@ -1,170 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import { newSpecPage } from '@stencil/core/testing';
|
17
|
-
import { SolutionSpatialRef } from '../solution-spatial-ref';
|
18
|
-
import { h } from '@stencil/core';
|
19
|
-
import state from "../../../utils/solution-store";
|
20
|
-
xdescribe('solution-spatial-ref', () => {
|
21
|
-
beforeEach(() => {
|
22
|
-
state._testAccess("_emptyTheStore");
|
23
|
-
state.setStoreInfo("spatialReferenceInfo", {
|
24
|
-
enabled: true,
|
25
|
-
services: {
|
26
|
-
"Feature Service 1": true,
|
27
|
-
"Feature Service 2": false
|
28
|
-
},
|
29
|
-
spatialReference: undefined
|
30
|
-
});
|
31
|
-
});
|
32
|
-
it('renders', async () => {
|
33
|
-
const page = await newSpecPage({
|
34
|
-
components: [SolutionSpatialRef],
|
35
|
-
supportsShadowDom: false,
|
36
|
-
template: () => (h("solution-spatial-ref", { services: ["Feature Service 1", "Feature Service 2"] }))
|
37
|
-
});
|
38
|
-
expect(page.root).toEqualHtml(`
|
39
|
-
<solution-spatial-ref default-wkid="102100" locked="">
|
40
|
-
<label class="switch-label"><calcite-switch scale="m" class="spatial-ref-switch"></calcite-switch>Spatial Reference Parameter</label>
|
41
|
-
<div id="spatialRefDefn" class="spatial-ref-switch-title">
|
42
|
-
<calcite-label>Select the spatial reference of the feature layers deployed with the solution.
|
43
|
-
<label class="spatial-ref-default">
|
44
|
-
<calcite-input disabled="" placeholder="Search for spatial reference using name or WKID"></calcite-input>
|
45
|
-
</label>
|
46
|
-
</calcite-label>
|
47
|
-
<div class="disabled-div">
|
48
|
-
<calcite-tree id="calcite-sr-tree" slot="children">
|
49
|
-
<div class="spatial-ref-container" id="solution-wkid-container">
|
50
|
-
<calcite-tree-item aria-selected="" id="102100" selected="">
|
51
|
-
<div>
|
52
|
-
WGS 1984 Web Mercator Auxiliary Sphere (102100)
|
53
|
-
</div>
|
54
|
-
</calcite-tree-item>
|
55
|
-
</div>
|
56
|
-
</calcite-tree>
|
57
|
-
</div>
|
58
|
-
<div>
|
59
|
-
<label class="spatial-ref-item-title">Feature Services</label>
|
60
|
-
<label class="switch-label"><calcite-switch disabled="" scale="m" switched="" class="spatial-ref-item-switch"></calcite-switch>Feature Service 1</label>
|
61
|
-
<label class="switch-label"><calcite-switch disabled="" scale="m" class="spatial-ref-item-switch"></calcite-switch>Feature Service 2</label>
|
62
|
-
</div>
|
63
|
-
</div>
|
64
|
-
</solution-spatial-ref>
|
65
|
-
`);
|
66
|
-
});
|
67
|
-
it('creates description for known WKID', async () => {
|
68
|
-
await newSpecPage({
|
69
|
-
components: [SolutionSpatialRef],
|
70
|
-
template: () => (h("solution-spatial-ref", null))
|
71
|
-
});
|
72
|
-
const component = document.querySelector('solution-spatial-ref');
|
73
|
-
component.wkidToDisplay(4326)
|
74
|
-
.then(result => expect(result).toEqual('GCS WGS 1984 (4326)'));
|
75
|
-
});
|
76
|
-
it('creates description for unknown WKID', async () => {
|
77
|
-
await newSpecPage({
|
78
|
-
components: [SolutionSpatialRef],
|
79
|
-
template: () => (h("solution-spatial-ref", null))
|
80
|
-
});
|
81
|
-
const component = document.querySelector('solution-spatial-ref');
|
82
|
-
component.wkidToDisplay(0)
|
83
|
-
.then(result => expect(result).toEqual('WKID 0'));
|
84
|
-
});
|
85
|
-
it('creates description for default component value', async () => {
|
86
|
-
await newSpecPage({
|
87
|
-
components: [SolutionSpatialRef],
|
88
|
-
template: () => (h("solution-spatial-ref", null))
|
89
|
-
});
|
90
|
-
const component = document.querySelector('solution-spatial-ref');
|
91
|
-
component.createSpatialRefDisplay(null)
|
92
|
-
.then(result => {
|
93
|
-
expect(result.display).toEqual('WGS 1984 Web Mercator Auxiliary Sphere (102100)');
|
94
|
-
expect(result.usingWkid).toBeTruthy();
|
95
|
-
expect(result.wkid).toEqual(102100);
|
96
|
-
expect(result.wkt).toEqual('');
|
97
|
-
});
|
98
|
-
});
|
99
|
-
it('creates description for WKID component value', async () => {
|
100
|
-
await newSpecPage({
|
101
|
-
components: [SolutionSpatialRef],
|
102
|
-
template: () => (h("solution-spatial-ref", null))
|
103
|
-
});
|
104
|
-
const component = document.querySelector('solution-spatial-ref');
|
105
|
-
component.createSpatialRefDisplay("4151")
|
106
|
-
.then(result => {
|
107
|
-
expect(result.display).toEqual('GCS Swiss TRF 1995 (4151)');
|
108
|
-
expect(result.usingWkid).toBeTruthy();
|
109
|
-
expect(result.wkid).toEqual(4151);
|
110
|
-
expect(result.wkt).toEqual('');
|
111
|
-
});
|
112
|
-
});
|
113
|
-
it('creates description for WKT component value', async () => {
|
114
|
-
await newSpecPage({
|
115
|
-
components: [SolutionSpatialRef],
|
116
|
-
template: () => (h("solution-spatial-ref", null))
|
117
|
-
});
|
118
|
-
const component = document.querySelector('solution-spatial-ref');
|
119
|
-
component.createSpatialRefDisplay('PROJCS["Germany_Zone_5",GEOGCS["GCS_Deutsches_Hauptdreiecksnetz",DATUM["D_Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",5500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]')
|
120
|
-
.then(result => {
|
121
|
-
expect(result.display).toEqual('PROJCS["Germany_Zone_5",GEOGCS["GCS_Deutsches_Hauptdreiecksnetz",DATUM["D_Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",5500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]');
|
122
|
-
expect(result.usingWkid).toBeFalsy();
|
123
|
-
expect(result.wkid).toEqual(0);
|
124
|
-
expect(result.wkt).toEqual('PROJCS["Germany_Zone_5",GEOGCS["GCS_Deutsches_Hauptdreiecksnetz",DATUM["D_Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",5500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]');
|
125
|
-
});
|
126
|
-
});
|
127
|
-
it('sets default component value', async () => {
|
128
|
-
await newSpecPage({
|
129
|
-
components: [SolutionSpatialRef],
|
130
|
-
template: () => (h("solution-spatial-ref", null))
|
131
|
-
});
|
132
|
-
const component = document.querySelector('solution-spatial-ref');
|
133
|
-
component.getSpatialRef()
|
134
|
-
.then(result => {
|
135
|
-
expect(result.display).toEqual('WGS 1984 Web Mercator Auxiliary Sphere (102100)');
|
136
|
-
expect(result.usingWkid).toBeTruthy();
|
137
|
-
expect(result.wkid).toEqual(102100);
|
138
|
-
expect(result.wkt).toEqual('');
|
139
|
-
});
|
140
|
-
});
|
141
|
-
it('sets WKID component value', async () => {
|
142
|
-
await newSpecPage({
|
143
|
-
components: [SolutionSpatialRef],
|
144
|
-
template: () => (h("solution-spatial-ref", { value: "4151" }))
|
145
|
-
});
|
146
|
-
const component = document.querySelector('solution-spatial-ref');
|
147
|
-
component.getSpatialRef()
|
148
|
-
.then(result => {
|
149
|
-
expect(result.display).toEqual('GCS Swiss TRF 1995 (4151)');
|
150
|
-
expect(result.usingWkid).toBeTruthy();
|
151
|
-
expect(result.wkid).toEqual(4151);
|
152
|
-
expect(result.wkt).toEqual('');
|
153
|
-
});
|
154
|
-
});
|
155
|
-
it('sets WKT component value', async () => {
|
156
|
-
const v = `PROJCS["Germany_Zone_5",GEOGCS["GCS_Deutsches_Hauptdreiecksnetz",DATUM["D_Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",5500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]`;
|
157
|
-
await newSpecPage({
|
158
|
-
components: [SolutionSpatialRef],
|
159
|
-
template: () => (h("solution-spatial-ref", { value: v }))
|
160
|
-
});
|
161
|
-
const component = document.querySelector('solution-spatial-ref');
|
162
|
-
component.getSpatialRef()
|
163
|
-
.then(result => {
|
164
|
-
expect(result.display).toEqual('PROJCS["Germany_Zone_5",GEOGCS["GCS_Deutsches_Hauptdreiecksnetz",DATUM["D_Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",5500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]');
|
165
|
-
expect(result.usingWkid).toBeFalsy();
|
166
|
-
expect(result.wkid).toEqual(0);
|
167
|
-
expect(result.wkt).toEqual('PROJCS["Germany_Zone_5",GEOGCS["GCS_Deutsches_Hauptdreiecksnetz",DATUM["D_Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",5500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]');
|
168
|
-
});
|
169
|
-
});
|
170
|
-
});
|
package/dist/collection/components/solution-template-data/test/solution-template-data.e2e.js
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
// import { newE2EPage } from '@stencil/core/testing';
|
17
|
-
describe('solution-template-data', () => {
|
18
|
-
it('renders', async () => {
|
19
|
-
//TEST commented out for now.
|
20
|
-
// need to work out how we pass translations
|
21
|
-
// e2e tests don't seem to support a similar apporach to the unit tests where we can use template to load JSX
|
22
|
-
// could flatten the translations further so it would contain no sub groups
|
23
|
-
// could set default translations for each file
|
24
|
-
// and could still have a test to compare the default with the actual as a way to verify
|
25
|
-
expect("a").toEqual("a");
|
26
|
-
// const page = await newE2EPage();
|
27
|
-
// await page.setContent('<solution-template-data></solution-template-data>');
|
28
|
-
// const element = await page.find('solution-template-data');
|
29
|
-
// expect(element).toHaveClass('hydrated');
|
30
|
-
});
|
31
|
-
});
|
package/dist/collection/components/solution-template-data/test/solution-template-data.spec.js
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import { newSpecPage } from '@stencil/core/testing';
|
17
|
-
import { SolutionTemplateData } from '../solution-template-data';
|
18
|
-
import * as data from '../../../demos/data/solution-template-data-data.json';
|
19
|
-
import { h } from '@stencil/core';
|
20
|
-
import state from "../../../utils/solution-store";
|
21
|
-
beforeEach(async () => {
|
22
|
-
state._testAccess("_emptyTheStore");
|
23
|
-
});
|
24
|
-
xdescribe('solution-template-data', () => {
|
25
|
-
it('renders', async () => {
|
26
|
-
const page = await newSpecPage({
|
27
|
-
components: [SolutionTemplateData],
|
28
|
-
template: () => (h("solution-template-data", { "item-id": data }))
|
29
|
-
});
|
30
|
-
expect(page.root).toEqualHtml(`
|
31
|
-
<solution-template-data instanceid="" itemid="" vars-open="">
|
32
|
-
<div class="solution-data-container">
|
33
|
-
<calcite-shell class="light var-container" dir="ltr">
|
34
|
-
<calcite-panel class="json-editor">
|
35
|
-
<div class="calcite-match-height solution-data-child-container">
|
36
|
-
<json-editor instanceid="" value=""></json-editor>
|
37
|
-
</div>
|
38
|
-
</calcite-panel>
|
39
|
-
<calcite-shell-panel height-scale="l" position="end" slot="contextual-panel" width-scale="xs">
|
40
|
-
<div class="solution-data-child-container">
|
41
|
-
<calcite-button appearance="transparent" class="collapse-btn" icon-start="chevrons-right" id="collapse-vars" scale="s" title="Cancel Edits"></calcite-button>
|
42
|
-
<div class="org-vars" id="orgVars">
|
43
|
-
<solution-organization-variables></solution-organization-variables>
|
44
|
-
</div>
|
45
|
-
<div class="sol-vars" id="solVars">
|
46
|
-
<solution-variables></solution-variables>
|
47
|
-
</div>
|
48
|
-
</div>
|
49
|
-
</calcite-shell-panel>
|
50
|
-
</calcite-shell>
|
51
|
-
</div>
|
52
|
-
</solution-template-data>
|
53
|
-
`);
|
54
|
-
});
|
55
|
-
});
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
// import { newE2EPage } from '@stencil/core/testing';
|
17
|
-
describe('solution-variables', () => {
|
18
|
-
it('renders', async () => {
|
19
|
-
//TEST commented out for now.
|
20
|
-
// need to work out how we pass translations
|
21
|
-
// e2e tests don't seem to support a similar apporach to the unit tests where we can use template to load JSX
|
22
|
-
// could flatten the translations further so it would contain no sub groups
|
23
|
-
// could set default translations for each file
|
24
|
-
// and could still have a test to compare the default with the actual as a way to verify
|
25
|
-
expect("a").toEqual("a");
|
26
|
-
// const page = await newE2EPage();
|
27
|
-
// await page.setContent('<solution-variables></solution-variables>');
|
28
|
-
// const element = await page.find('solution-variables');
|
29
|
-
// expect(element).toHaveClass('hydrated');
|
30
|
-
});
|
31
|
-
});
|
@@ -1,126 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import { newSpecPage } from '@stencil/core/testing';
|
17
|
-
import { SolutionVariables } from '../solution-variables';
|
18
|
-
import { value } from '../../../demos/data/solution-variables-data.json';
|
19
|
-
import { h } from '@stencil/core';
|
20
|
-
xdescribe('solution-variables', () => {
|
21
|
-
it('renders', async () => {
|
22
|
-
const page = await newSpecPage({
|
23
|
-
components: [SolutionVariables],
|
24
|
-
template: () => (h("solution-variables", { value: JSON.stringify(value) }))
|
25
|
-
});
|
26
|
-
expect(page.root).toEqualHtml(`
|
27
|
-
<solution-variables>
|
28
|
-
<mock:shadow-root>
|
29
|
-
<div>
|
30
|
-
<h4 class="org-var-header">
|
31
|
-
Solution Variables
|
32
|
-
</h4>
|
33
|
-
</div>
|
34
|
-
<div class="container-border">
|
35
|
-
<calcite-label id="variable-label">
|
36
|
-
<calcite-tree-item>
|
37
|
-
<solution-item-icon></solution-item-icon>
|
38
|
-
<span class="icon-text" title="Dashboard 1">
|
39
|
-
Dashboard 1
|
40
|
-
</span>
|
41
|
-
<calcite-tree slot="children">
|
42
|
-
<calcite-tree-item>
|
43
|
-
Item Id
|
44
|
-
</calcite-tree-item>
|
45
|
-
<calcite-tree-item>
|
46
|
-
Url
|
47
|
-
</calcite-tree-item>
|
48
|
-
</calcite-tree>
|
49
|
-
</calcite-tree-item>
|
50
|
-
<calcite-tree-item>
|
51
|
-
<solution-item-icon></solution-item-icon>
|
52
|
-
<span class="icon-text" title="Dashboard 2">
|
53
|
-
Dashboard 2
|
54
|
-
</span>
|
55
|
-
<calcite-tree slot="children">
|
56
|
-
<calcite-tree-item>
|
57
|
-
Item Id
|
58
|
-
</calcite-tree-item>
|
59
|
-
<calcite-tree-item>
|
60
|
-
Url
|
61
|
-
</calcite-tree-item>
|
62
|
-
</calcite-tree>
|
63
|
-
</calcite-tree-item>
|
64
|
-
<calcite-tree-item>
|
65
|
-
<solution-item-icon></solution-item-icon>
|
66
|
-
<span class="icon-text" title="Feature Service 1">
|
67
|
-
Feature Service 1
|
68
|
-
</span>
|
69
|
-
<calcite-tree slot="children">
|
70
|
-
<calcite-tree-item>
|
71
|
-
Item Id
|
72
|
-
</calcite-tree-item>
|
73
|
-
<calcite-tree-item>
|
74
|
-
Url
|
75
|
-
</calcite-tree-item>
|
76
|
-
<calcite-tree-item>
|
77
|
-
Name
|
78
|
-
</calcite-tree-item>
|
79
|
-
<calcite-tree-item>
|
80
|
-
<solution-item-icon></solution-item-icon>
|
81
|
-
<span class="icon-text" title="Layer 0">
|
82
|
-
Layer 0
|
83
|
-
</span>
|
84
|
-
<calcite-tree slot="children">
|
85
|
-
<calcite-tree-item>
|
86
|
-
Id
|
87
|
-
</calcite-tree-item>
|
88
|
-
<calcite-tree-item>
|
89
|
-
Url
|
90
|
-
</calcite-tree-item>
|
91
|
-
</calcite-tree>
|
92
|
-
</calcite-tree-item>
|
93
|
-
<calcite-tree-item>
|
94
|
-
<solution-item-icon></solution-item-icon>
|
95
|
-
<span class="icon-text" title="Layer 1">
|
96
|
-
Layer 1
|
97
|
-
</span>
|
98
|
-
<calcite-tree slot="children">
|
99
|
-
<calcite-tree-item>
|
100
|
-
Id
|
101
|
-
</calcite-tree-item>
|
102
|
-
<calcite-tree-item>
|
103
|
-
Url
|
104
|
-
</calcite-tree-item>
|
105
|
-
</calcite-tree>
|
106
|
-
</calcite-tree-item>
|
107
|
-
</calcite-tree>
|
108
|
-
</calcite-tree-item>
|
109
|
-
<calcite-tree-item>
|
110
|
-
<solution-item-icon></solution-item-icon>
|
111
|
-
<span class="icon-text" title="Group 1">
|
112
|
-
Group 1
|
113
|
-
</span>
|
114
|
-
<calcite-tree slot="children">
|
115
|
-
<calcite-tree-item>
|
116
|
-
Group Id
|
117
|
-
</calcite-tree-item>
|
118
|
-
</calcite-tree>
|
119
|
-
</calcite-tree-item>
|
120
|
-
</calcite-label>
|
121
|
-
</div>
|
122
|
-
</mock:shadow-root>
|
123
|
-
</solution-variables>
|
124
|
-
`);
|
125
|
-
});
|
126
|
-
});
|
@@ -1,45 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
export function getSelectionIds(selectionSets) {
|
17
|
-
return Object.keys(selectionSets).reduce((prev, cur) => {
|
18
|
-
return [
|
19
|
-
...prev,
|
20
|
-
...selectionSets[cur].download ? selectionSets[cur].selectedIds : []
|
21
|
-
];
|
22
|
-
}, []);
|
23
|
-
}
|
24
|
-
export function getSelectionIdsAndViews(selectionSets) {
|
25
|
-
return selectionSets.reduce((prev, cur) => {
|
26
|
-
if (Object.keys(prev).indexOf(cur.layerView.layer.id) > -1) {
|
27
|
-
prev[cur.layerView.layer.id].ids = [
|
28
|
-
...prev[cur.layerView.layer.id].ids,
|
29
|
-
...cur.selectedIds
|
30
|
-
];
|
31
|
-
prev[cur.layerView.layer.id].selectionSetNames.push(cur.label);
|
32
|
-
}
|
33
|
-
else {
|
34
|
-
prev[cur.layerView.layer.id] = {
|
35
|
-
ids: cur.selectedIds,
|
36
|
-
layerView: cur.layerView,
|
37
|
-
selectionSetNames: [cur.label]
|
38
|
-
};
|
39
|
-
}
|
40
|
-
return prev;
|
41
|
-
}, {});
|
42
|
-
}
|
43
|
-
export function getTotal(selectionSets) {
|
44
|
-
return [...new Set(getSelectionIds(selectionSets))].length;
|
45
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import { getInventoryItems } from "./templates";
|
17
|
-
import * as electionOutreach from '../demos/data/election-outreach.json';
|
18
|
-
describe("getInventoryItems", () => {
|
19
|
-
it("can get inventory items", () => {
|
20
|
-
const templates = electionOutreach.templates;
|
21
|
-
expect(templates.length).toEqual(11);
|
22
|
-
const actual = getInventoryItems(templates);
|
23
|
-
expect(actual.length).toEqual(5);
|
24
|
-
});
|
25
|
-
});
|
@@ -1,46 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2023 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import * as csvDownload from "../csvDownload";
|
17
|
-
import * as csvUtils from "../csvUtils";
|
18
|
-
import { expect, jest } from "@jest/globals";
|
19
|
-
afterEach(() => {
|
20
|
-
jest.restoreAllMocks();
|
21
|
-
});
|
22
|
-
describe("csvUtils", () => {
|
23
|
-
describe("exportCSV", () => {
|
24
|
-
it("prepares output lines 1", () => {
|
25
|
-
const title = "title";
|
26
|
-
const labels = [
|
27
|
-
["Cyd Charise", "1922 Main St", "Amarillo, TX 79118"],
|
28
|
-
["Fred Astaire", "1899 Main St", "Omaha, NE 68022"],
|
29
|
-
["Gene Kelly", "1912 Main St", "Pittsburgh, PA 15215"],
|
30
|
-
["Ginger Rogers", "1911 Main St", "Independence, MO 64050"]
|
31
|
-
];
|
32
|
-
const expectedOutputLines = [
|
33
|
-
"\"Cyd Charise\",\"1922 Main St\",\"Amarillo, TX 79118\"\r\n",
|
34
|
-
"\"Fred Astaire\",\"1899 Main St\",\"Omaha, NE 68022\"\r\n",
|
35
|
-
"\"Gene Kelly\",\"1912 Main St\",\"Pittsburgh, PA 15215\"\r\n",
|
36
|
-
"\"Ginger Rogers\",\"1911 Main St\",\"Independence, MO 64050\"\r\n"
|
37
|
-
];
|
38
|
-
const downloadCSVFileMock = jest.spyOn(csvDownload, "downloadCSVFile")
|
39
|
-
.mockImplementation((fileTitle, outputLines) => { });
|
40
|
-
csvUtils.exportCSV(title, labels);
|
41
|
-
expect(downloadCSVFileMock).toBeCalledTimes(1);
|
42
|
-
expect(downloadCSVFileMock.mock.calls[0][0]).toEqual(title);
|
43
|
-
expect(downloadCSVFileMock.mock.calls[0][1]).toEqual(expectedOutputLines);
|
44
|
-
});
|
45
|
-
});
|
46
|
-
});
|
@@ -1,102 +0,0 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2023 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import * as downloadUtils from "../downloadUtils";
|
17
|
-
describe("downloadUtils", () => {
|
18
|
-
describe("_convertPopupFieldsToLabelSpec", () => {
|
19
|
-
it("handles fieldname visibility", () => {
|
20
|
-
const fieldInfos = [
|
21
|
-
{ fieldName: "A", visible: true },
|
22
|
-
{ fieldName: "B", visible: true },
|
23
|
-
{ fieldName: "C", visible: false },
|
24
|
-
{ fieldName: "D", visible: true }
|
25
|
-
];
|
26
|
-
const bypassFieldVisiblity = false;
|
27
|
-
const expectedLabelSpec = "{A}|{B}|{D}";
|
28
|
-
const labelSpec = downloadUtils._convertPopupFieldsToLabelSpec(fieldInfos, bypassFieldVisiblity);
|
29
|
-
expect(labelSpec).toEqual(expectedLabelSpec);
|
30
|
-
});
|
31
|
-
it("handles fieldname ignoring visibility", () => {
|
32
|
-
const fieldInfos = [
|
33
|
-
{ fieldName: "A", visible: true },
|
34
|
-
{ fieldName: "B", visible: true },
|
35
|
-
{ fieldName: "C", visible: false },
|
36
|
-
{ fieldName: "D", visible: true }
|
37
|
-
];
|
38
|
-
const bypassFieldVisiblity = true;
|
39
|
-
const expectedLabelSpec = "{A}|{B}|{C}|{D}";
|
40
|
-
const labelSpec = downloadUtils._convertPopupFieldsToLabelSpec(fieldInfos, bypassFieldVisiblity);
|
41
|
-
expect(labelSpec).toEqual(expectedLabelSpec);
|
42
|
-
});
|
43
|
-
});
|
44
|
-
describe("_convertPopupTextToLabelSpec", () => {
|
45
|
-
it("handles <br> variants", () => {
|
46
|
-
const popupInfo = "<div style='text-align: left;'>{NAME}<br />{STREET}<br/>{CITY}, {STATE} {ZIP} <br></div>";
|
47
|
-
const expectedLabelSpec = "{NAME}|{STREET}|{CITY}, {STATE} {ZIP}";
|
48
|
-
const labelSpec = downloadUtils._convertPopupTextToLabelSpec(popupInfo);
|
49
|
-
expect(labelSpec).toEqual(expectedLabelSpec);
|
50
|
-
});
|
51
|
-
it("handles <p>", () => {
|
52
|
-
const popupInfo = "<p>{NAME}</p><p>{STREET}</p><p>{CITY}, {STATE} {ZIP}</p>";
|
53
|
-
const expectedLabelSpec = "{NAME}|{STREET}|{CITY}, {STATE} {ZIP}";
|
54
|
-
const labelSpec = downloadUtils._convertPopupTextToLabelSpec(popupInfo);
|
55
|
-
expect(labelSpec).toEqual(expectedLabelSpec);
|
56
|
-
});
|
57
|
-
it("handles popup's use of \xA0", () => {
|
58
|
-
const popupInfo = "<div style='text-align: left;'>{NAME}<br />{STREET}<br />{CITY},\xA0{STATE}\xA0{ZIP}\xA0<br /></div>";
|
59
|
-
const expectedLabelSpec = "{NAME}|{STREET}|{CITY}, {STATE} {ZIP}";
|
60
|
-
const labelSpec = downloadUtils._convertPopupTextToLabelSpec(popupInfo);
|
61
|
-
expect(labelSpec).toEqual(expectedLabelSpec);
|
62
|
-
});
|
63
|
-
it("removes newlines and blank lines, and trims each line", () => {
|
64
|
-
const popupInfo = " \n\n {NAME} \n \n\n {STREET}\n{CITY}, {STATE} {ZIP}\n\n \n ";
|
65
|
-
const expectedLabelSpec = "{NAME}|{STREET}|{CITY}, {STATE} {ZIP}";
|
66
|
-
const labelSpec = downloadUtils._convertPopupTextToLabelSpec(popupInfo);
|
67
|
-
expect(labelSpec).toEqual(expectedLabelSpec);
|
68
|
-
});
|
69
|
-
it("removes extra HTML", () => {
|
70
|
-
const popupInfo = "\n<div style='text-align: left;'><span style='font-weight:bold'>{NAME}</span><br />{STREET}<br />{CITY},\xA0{STATE}\xA0{ZIP}\xA0<br /></div>\n";
|
71
|
-
const expectedLabelSpec = "{NAME}|{STREET}|{CITY}, {STATE} {ZIP}";
|
72
|
-
const labelSpec = downloadUtils._convertPopupTextToLabelSpec(popupInfo);
|
73
|
-
expect(labelSpec).toEqual(expectedLabelSpec);
|
74
|
-
});
|
75
|
-
it("handles some special characters", () => {
|
76
|
-
const popupInfo = "<div style='text-align: left;'><{NAME}><br />{STREET}<br/>{CITY}, {STATE} {ZIP}<br></div>";
|
77
|
-
const expectedLabelSpec = "<{NAME}>|{STREET}|{CITY}, {STATE} {ZIP}";
|
78
|
-
const labelSpec = downloadUtils._convertPopupTextToLabelSpec(popupInfo);
|
79
|
-
expect(labelSpec).toEqual(expectedLabelSpec);
|
80
|
-
});
|
81
|
-
});
|
82
|
-
describe("_createTitle", () => {
|
83
|
-
it("handles no selection set names", () => {
|
84
|
-
const selectionSetNames = [];
|
85
|
-
const expectedTitle = "download";
|
86
|
-
const title = downloadUtils._createTitle(selectionSetNames);
|
87
|
-
expect(title).toEqual(expectedTitle);
|
88
|
-
});
|
89
|
-
it("handles one selection set name", () => {
|
90
|
-
const selectionSetNames = ["fred"];
|
91
|
-
const expectedTitle = "fred";
|
92
|
-
const title = downloadUtils._createTitle(selectionSetNames);
|
93
|
-
expect(title).toEqual(expectedTitle);
|
94
|
-
});
|
95
|
-
it("handles two selection set names", () => {
|
96
|
-
const selectionSetNames = ["fred", "ginger"];
|
97
|
-
const expectedTitle = "fred,ginger";
|
98
|
-
const title = downloadUtils._createTitle(selectionSetNames);
|
99
|
-
expect(title).toEqual(expectedTitle);
|
100
|
-
});
|
101
|
-
});
|
102
|
-
});
|