@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,86 +1,86 @@
|
|
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
|
-
|
17
|
-
:host {
|
18
|
-
display: block;
|
19
|
-
}
|
20
|
-
|
21
|
-
.div-visible {
|
22
|
-
display: inherit;
|
23
|
-
}
|
24
|
-
|
25
|
-
.div-not-visible {
|
26
|
-
display: none !important;
|
27
|
-
}
|
28
|
-
|
29
|
-
.padding-top-1-2 {
|
30
|
-
padding-top: .5rem;
|
31
|
-
}
|
32
|
-
|
33
|
-
.main-label {
|
34
|
-
display: flex;
|
35
|
-
float: left;
|
36
|
-
}
|
37
|
-
|
38
|
-
html[dir="rtl"] .main-label {
|
39
|
-
display: flex;
|
40
|
-
float: right;
|
41
|
-
}
|
42
|
-
|
43
|
-
.border {
|
44
|
-
outline: 1px solid var(--calcite-ui-border-input);
|
45
|
-
}
|
46
|
-
|
47
|
-
.margin-top-1 {
|
48
|
-
margin-top: 1rem;
|
49
|
-
}
|
50
|
-
|
51
|
-
/* COPY FROM JS */
|
52
|
-
.esri-sketch {
|
53
|
-
display: flex;
|
54
|
-
flex-flow: column wrap;
|
55
|
-
}
|
56
|
-
|
57
|
-
.esri-widget {
|
58
|
-
box-sizing: border-box;
|
59
|
-
color: #323232;
|
60
|
-
font-size: 14px;
|
61
|
-
font-family: "Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;
|
62
|
-
line-height: 1.3em;
|
63
|
-
background-color: var(--calcite-ui-foreground-1);
|
64
|
-
}
|
65
|
-
|
66
|
-
/* DIV CHILD */
|
67
|
-
.esri-sketch__panel {
|
68
|
-
align-items: center;
|
69
|
-
display: flex;
|
70
|
-
flex-flow: row nowrap;
|
71
|
-
padding: 0;
|
72
|
-
} */
|
73
|
-
|
74
|
-
/* DIV CHILD CHILD */
|
75
|
-
.esri-sketch__tool-section {
|
76
|
-
border-right: 1px solid rgba(110,110,110,.3);
|
77
|
-
}
|
78
|
-
|
79
|
-
.esri-sketch__section {
|
80
|
-
align-items: center;
|
81
|
-
display: flex;
|
82
|
-
flex-flow: row nowrap;
|
83
|
-
padding: 0 7px;
|
84
|
-
margin: 6px 0;
|
85
|
-
border-right: 1px solid rgba(110,110,110,.3);
|
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
|
+
|
17
|
+
:host {
|
18
|
+
display: block;
|
19
|
+
}
|
20
|
+
|
21
|
+
.div-visible {
|
22
|
+
display: inherit;
|
23
|
+
}
|
24
|
+
|
25
|
+
.div-not-visible {
|
26
|
+
display: none !important;
|
27
|
+
}
|
28
|
+
|
29
|
+
.padding-top-1-2 {
|
30
|
+
padding-top: .5rem;
|
31
|
+
}
|
32
|
+
|
33
|
+
.main-label {
|
34
|
+
display: flex;
|
35
|
+
float: left;
|
36
|
+
}
|
37
|
+
|
38
|
+
html[dir="rtl"] .main-label {
|
39
|
+
display: flex;
|
40
|
+
float: right;
|
41
|
+
}
|
42
|
+
|
43
|
+
.border {
|
44
|
+
outline: 1px solid var(--calcite-ui-border-input);
|
45
|
+
}
|
46
|
+
|
47
|
+
.margin-top-1 {
|
48
|
+
margin-top: 1rem;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* COPY FROM JS */
|
52
|
+
.esri-sketch {
|
53
|
+
display: flex;
|
54
|
+
flex-flow: column wrap;
|
55
|
+
}
|
56
|
+
|
57
|
+
.esri-widget {
|
58
|
+
box-sizing: border-box;
|
59
|
+
color: #323232;
|
60
|
+
font-size: 14px;
|
61
|
+
font-family: "Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;
|
62
|
+
line-height: 1.3em;
|
63
|
+
background-color: var(--calcite-ui-foreground-1);
|
64
|
+
}
|
65
|
+
|
66
|
+
/* DIV CHILD */
|
67
|
+
.esri-sketch__panel {
|
68
|
+
align-items: center;
|
69
|
+
display: flex;
|
70
|
+
flex-flow: row nowrap;
|
71
|
+
padding: 0;
|
72
|
+
} */
|
73
|
+
|
74
|
+
/* DIV CHILD CHILD */
|
75
|
+
.esri-sketch__tool-section {
|
76
|
+
border-right: 1px solid rgba(110,110,110,.3);
|
77
|
+
}
|
78
|
+
|
79
|
+
.esri-sketch__section {
|
80
|
+
align-items: center;
|
81
|
+
display: flex;
|
82
|
+
flex-flow: row nowrap;
|
83
|
+
padding: 0 7px;
|
84
|
+
margin: 6px 0;
|
85
|
+
border-right: 1px solid rgba(110,110,110,.3);
|
86
86
|
}
|
@@ -24,6 +24,7 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
24
24
|
this.drawRedo = createEvent(this, "drawRedo", 7);
|
25
25
|
this.active = false;
|
26
26
|
this.drawMode = EDrawMode.SKETCH;
|
27
|
+
this.editGraphicsEnabled = true;
|
27
28
|
this.graphics = undefined;
|
28
29
|
this.mapView = undefined;
|
29
30
|
this.pointSymbol = undefined;
|
@@ -169,19 +170,21 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
169
170
|
* @protected
|
170
171
|
*/
|
171
172
|
_initSketch() {
|
172
|
-
|
173
|
+
const sketchOptions = {
|
173
174
|
layer: this._sketchGraphicsLayer,
|
174
175
|
view: this.mapView,
|
175
|
-
container: this._sketchElement,
|
176
|
-
defaultUpdateOptions: {
|
177
|
-
tool: "reshape",
|
178
|
-
toggleToolOnClick: false
|
179
|
-
},
|
180
|
-
creationMode: "single",
|
181
176
|
defaultCreateOptions: {
|
182
177
|
mode: "hybrid"
|
183
178
|
},
|
184
|
-
|
179
|
+
defaultUpdateOptions: {
|
180
|
+
preserveAspectRatio: false,
|
181
|
+
enableScaling: false,
|
182
|
+
enableRotation: false,
|
183
|
+
tool: "reshape",
|
184
|
+
toggleToolOnClick: false
|
185
|
+
}
|
186
|
+
};
|
187
|
+
this._sketchWidget = new this.Sketch(Object.assign(Object.assign({}, sketchOptions), { container: this._sketchElement, creationMode: "single", visibleElements: {
|
185
188
|
selectionTools: {
|
186
189
|
"lasso-selection": false,
|
187
190
|
"rectangle-selection": false
|
@@ -190,12 +193,8 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
190
193
|
},
|
191
194
|
undoRedoMenu: false,
|
192
195
|
settingsMenu: this.drawMode === EDrawMode.SKETCH
|
193
|
-
}
|
194
|
-
});
|
195
|
-
this._sketchViewModel = new this.SketchViewModel({
|
196
|
-
view: this.mapView,
|
197
|
-
layer: this._sketchGraphicsLayer
|
198
|
-
});
|
196
|
+
} }));
|
197
|
+
this._sketchViewModel = new this.SketchViewModel(Object.assign({}, sketchOptions));
|
199
198
|
this._sketchWidget.viewModel.polylineSymbol = this.polylineSymbol;
|
200
199
|
this._sketchWidget.viewModel.pointSymbol = this.pointSymbol;
|
201
200
|
this._sketchWidget.viewModel.polygonSymbol = this.polygonSymbol;
|
@@ -210,13 +209,19 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
210
209
|
});
|
211
210
|
this._sketchWidget.on("update", (evt) => {
|
212
211
|
var _a;
|
213
|
-
|
214
|
-
|
215
|
-
this.
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
212
|
+
if (!this.editGraphicsEnabled) {
|
213
|
+
this._sketchWidget.viewModel.cancel();
|
214
|
+
this._sketchViewModel.cancel();
|
215
|
+
}
|
216
|
+
else {
|
217
|
+
const eventType = (_a = evt === null || evt === void 0 ? void 0 : evt.toolEventInfo) === null || _a === void 0 ? void 0 : _a.type;
|
218
|
+
if (eventType === "reshape-stop" || eventType === "move-stop") {
|
219
|
+
this.graphics = evt.graphics;
|
220
|
+
this.sketchGraphicsChange.emit({
|
221
|
+
graphics: this.graphics,
|
222
|
+
useOIDs: false
|
223
|
+
});
|
224
|
+
}
|
220
225
|
}
|
221
226
|
});
|
222
227
|
this._sketchWidget.on("delete", () => {
|
@@ -306,6 +311,7 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
306
311
|
}, [0, "map-draw-tools", {
|
307
312
|
"active": [4],
|
308
313
|
"drawMode": [1, "draw-mode"],
|
314
|
+
"editGraphicsEnabled": [4, "edit-graphics-enabled"],
|
309
315
|
"graphics": [1040],
|
310
316
|
"mapView": [1040],
|
311
317
|
"pointSymbol": [1040],
|
@@ -10,25 +10,26 @@ import { b as queryObjectIds, g as getQueryGeoms, c as queryFeaturesByGeometry }
|
|
10
10
|
import { c as EWorkflowType } from './interfaces.js';
|
11
11
|
import { s as state } from './publicNotificationStore.js';
|
12
12
|
import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale.js';
|
13
|
-
import { d as defineCustomElement$
|
14
|
-
import { d as defineCustomElement$
|
15
|
-
import { d as defineCustomElement$
|
16
|
-
import { d as defineCustomElement$
|
17
|
-
import { d as defineCustomElement$
|
18
|
-
import { d as defineCustomElement$
|
19
|
-
import { d as defineCustomElement$
|
20
|
-
import { d as defineCustomElement$
|
21
|
-
import { d as defineCustomElement$
|
22
|
-
import { d as defineCustomElement$
|
23
|
-
import { d as defineCustomElement$
|
24
|
-
import { d as defineCustomElement$
|
25
|
-
import { d as defineCustomElement$
|
26
|
-
import { d as defineCustomElement$
|
27
|
-
import { d as defineCustomElement$
|
28
|
-
import { d as defineCustomElement$
|
13
|
+
import { d as defineCustomElement$j } from './buffer-tools2.js';
|
14
|
+
import { d as defineCustomElement$i } from './action.js';
|
15
|
+
import { d as defineCustomElement$h } from './chip.js';
|
16
|
+
import { d as defineCustomElement$g } from './combobox.js';
|
17
|
+
import { d as defineCustomElement$f } from './combobox-item.js';
|
18
|
+
import { d as defineCustomElement$e } from './graph.js';
|
19
|
+
import { d as defineCustomElement$d } from './icon.js';
|
20
|
+
import { d as defineCustomElement$c } from './input.js';
|
21
|
+
import { d as defineCustomElement$b } from './input-message.js';
|
22
|
+
import { d as defineCustomElement$a } from './label.js';
|
23
|
+
import { d as defineCustomElement$9 } from './loader.js';
|
24
|
+
import { d as defineCustomElement$8 } from './option.js';
|
25
|
+
import { d as defineCustomElement$7 } from './progress.js';
|
26
|
+
import { d as defineCustomElement$6 } from './select.js';
|
27
|
+
import { d as defineCustomElement$5 } from './slider.js';
|
28
|
+
import { d as defineCustomElement$4 } from './switch.js';
|
29
|
+
import { d as defineCustomElement$3 } from './tooltip.js';
|
29
30
|
import { d as defineCustomElement$2 } from './map-draw-tools2.js';
|
30
31
|
|
31
|
-
const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}";
|
32
|
+
const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{justify-content:center;display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}";
|
32
33
|
|
33
34
|
const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
34
35
|
constructor() {
|
@@ -190,7 +191,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
190
191
|
* Renders the component.
|
191
192
|
*/
|
192
193
|
render() {
|
193
|
-
return (h(Host, null, this._getMapLayerPicker(), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("div", { class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { class: "padding-top-1" }, h("map-draw-tools", { active: true, graphics: this._graphics, mapView: this.mapView, onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this._getBufferOptions(), this._getUseLayerFeaturesOptions(), this._getNumSelected()), h("div", { class: "border-bottom" }), this._getNameInput()));
|
194
|
+
return (h(Host, null, this._getMapLayerPicker(), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("div", { class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { class: "padding-top-1" }, h("map-draw-tools", { active: true, editGraphicsEnabled: !this._useLayerFeaturesEnabled, graphics: this._graphics, mapView: this.mapView, onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this._getBufferOptions(), this._getUseLayerFeaturesOptions(), this._getNumSelected()), h("div", { class: "border-bottom" }), this._getNameInput()));
|
194
195
|
}
|
195
196
|
/**
|
196
197
|
* Renders the buffer tools component.
|
@@ -199,14 +200,14 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
199
200
|
var _a, _b;
|
200
201
|
const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
|
201
202
|
const bufferDistance = typeof ((_a = this.selectionSet) === null || _a === void 0 ? void 0 : _a.distance) === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
|
202
|
-
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 " }, this._translations.searchDistance), h("calcite-
|
203
|
+
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "search-distance-icon", scale: "s" }), h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "search-distance-icon" }, h("span", null, this._translations.useSearchDistanceTootip))), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled }))), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: ((_b = this.selectionSet) === null || _b === void 0 ? void 0 : _b.unit) || this.defaultBufferUnit }))));
|
203
204
|
}
|
204
205
|
/**
|
205
206
|
* Renders the map layer picker component.
|
206
207
|
*/
|
207
208
|
_getUseLayerFeaturesOptions() {
|
208
209
|
const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
|
209
|
-
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 " }, this._translations.useLayerFeatures), h("calcite-
|
210
|
+
return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "use-layer-features-icon", scale: "s" }), h("calcite-tooltip", { label: "Data disclaimer", placement: "auto", "reference-element": "use-layer-features-icon" }, h("span", null, this._translations.useLayerFeaturesTooltip))), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } }))), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }))));
|
210
211
|
}
|
211
212
|
/**
|
212
213
|
* Renders the number of selected features
|
@@ -279,7 +280,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
279
280
|
* @protected
|
280
281
|
*/
|
281
282
|
async _initSelectionSet() {
|
282
|
-
var _a, _b, _c, _d;
|
283
|
+
var _a, _b, _c, _d, _e;
|
283
284
|
if (this.selectionSet) {
|
284
285
|
this._searchTerm = (_a = this.selectionSet.searchResult) === null || _a === void 0 ? void 0 : _a.name;
|
285
286
|
this._searchResult = this.selectionSet.searchResult;
|
@@ -300,6 +301,9 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
300
301
|
...((_c = this.selectionSet) === null || _c === void 0 ? void 0 : _c.graphics) || []
|
301
302
|
];
|
302
303
|
this._selectionLabel = (_d = this.selectionSet) === null || _d === void 0 ? void 0 : _d.label;
|
304
|
+
if (!this._useLayerFeaturesEnabled) {
|
305
|
+
(_e = this._drawTools) === null || _e === void 0 ? void 0 : _e.updateGraphics();
|
306
|
+
}
|
303
307
|
await goToSelection(this.selectionSet.selectedIds, this.selectionSet.layerView, this.mapView, false);
|
304
308
|
}
|
305
309
|
}
|
@@ -462,6 +466,9 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
462
466
|
}
|
463
467
|
}
|
464
468
|
}
|
469
|
+
else {
|
470
|
+
await this._clearResults(true, true);
|
471
|
+
}
|
465
472
|
}
|
466
473
|
/**
|
467
474
|
* Highlight the features in the map based on OIDs when skipOIDs have been defined
|
@@ -747,12 +754,14 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
747
754
|
*/
|
748
755
|
_useLayerFeaturesEnabledChanged() {
|
749
756
|
this._useLayerFeaturesEnabled = !this._useLayerFeaturesEnabled;
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
757
|
+
if (this._sketchGraphic) {
|
758
|
+
void this._sketchGraphicsChanged({
|
759
|
+
detail: {
|
760
|
+
graphics: [this._sketchGraphic],
|
761
|
+
useOIDs: false
|
762
|
+
}
|
763
|
+
});
|
764
|
+
}
|
756
765
|
}
|
757
766
|
/**
|
758
767
|
* Fetches the component's translations
|
@@ -800,7 +809,7 @@ function defineCustomElement() {
|
|
800
809
|
if (typeof customElements === "undefined") {
|
801
810
|
return;
|
802
811
|
}
|
803
|
-
const components = ["map-select-tools", "buffer-tools", "calcite-action", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-graph", "calcite-icon", "calcite-input", "calcite-input-message", "calcite-label", "calcite-loader", "calcite-option", "calcite-progress", "calcite-select", "calcite-slider", "calcite-switch", "map-draw-tools", "map-layer-picker"];
|
812
|
+
const components = ["map-select-tools", "buffer-tools", "calcite-action", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-graph", "calcite-icon", "calcite-input", "calcite-input-message", "calcite-label", "calcite-loader", "calcite-option", "calcite-progress", "calcite-select", "calcite-slider", "calcite-switch", "calcite-tooltip", "map-draw-tools", "map-layer-picker"];
|
804
813
|
components.forEach(tagName => { switch (tagName) {
|
805
814
|
case "map-select-tools":
|
806
815
|
if (!customElements.get(tagName)) {
|
@@ -809,80 +818,85 @@ function defineCustomElement() {
|
|
809
818
|
break;
|
810
819
|
case "buffer-tools":
|
811
820
|
if (!customElements.get(tagName)) {
|
812
|
-
defineCustomElement$
|
821
|
+
defineCustomElement$j();
|
813
822
|
}
|
814
823
|
break;
|
815
824
|
case "calcite-action":
|
816
825
|
if (!customElements.get(tagName)) {
|
817
|
-
defineCustomElement$
|
826
|
+
defineCustomElement$i();
|
818
827
|
}
|
819
828
|
break;
|
820
829
|
case "calcite-chip":
|
821
830
|
if (!customElements.get(tagName)) {
|
822
|
-
defineCustomElement$
|
831
|
+
defineCustomElement$h();
|
823
832
|
}
|
824
833
|
break;
|
825
834
|
case "calcite-combobox":
|
826
835
|
if (!customElements.get(tagName)) {
|
827
|
-
defineCustomElement$
|
836
|
+
defineCustomElement$g();
|
828
837
|
}
|
829
838
|
break;
|
830
839
|
case "calcite-combobox-item":
|
831
840
|
if (!customElements.get(tagName)) {
|
832
|
-
defineCustomElement$
|
841
|
+
defineCustomElement$f();
|
833
842
|
}
|
834
843
|
break;
|
835
844
|
case "calcite-graph":
|
836
845
|
if (!customElements.get(tagName)) {
|
837
|
-
defineCustomElement$
|
846
|
+
defineCustomElement$e();
|
838
847
|
}
|
839
848
|
break;
|
840
849
|
case "calcite-icon":
|
841
850
|
if (!customElements.get(tagName)) {
|
842
|
-
defineCustomElement$
|
851
|
+
defineCustomElement$d();
|
843
852
|
}
|
844
853
|
break;
|
845
854
|
case "calcite-input":
|
846
855
|
if (!customElements.get(tagName)) {
|
847
|
-
defineCustomElement$
|
856
|
+
defineCustomElement$c();
|
848
857
|
}
|
849
858
|
break;
|
850
859
|
case "calcite-input-message":
|
851
860
|
if (!customElements.get(tagName)) {
|
852
|
-
defineCustomElement$
|
861
|
+
defineCustomElement$b();
|
853
862
|
}
|
854
863
|
break;
|
855
864
|
case "calcite-label":
|
856
865
|
if (!customElements.get(tagName)) {
|
857
|
-
defineCustomElement$
|
866
|
+
defineCustomElement$a();
|
858
867
|
}
|
859
868
|
break;
|
860
869
|
case "calcite-loader":
|
861
870
|
if (!customElements.get(tagName)) {
|
862
|
-
defineCustomElement$
|
871
|
+
defineCustomElement$9();
|
863
872
|
}
|
864
873
|
break;
|
865
874
|
case "calcite-option":
|
866
875
|
if (!customElements.get(tagName)) {
|
867
|
-
defineCustomElement$
|
876
|
+
defineCustomElement$8();
|
868
877
|
}
|
869
878
|
break;
|
870
879
|
case "calcite-progress":
|
871
880
|
if (!customElements.get(tagName)) {
|
872
|
-
defineCustomElement$
|
881
|
+
defineCustomElement$7();
|
873
882
|
}
|
874
883
|
break;
|
875
884
|
case "calcite-select":
|
876
885
|
if (!customElements.get(tagName)) {
|
877
|
-
defineCustomElement$
|
886
|
+
defineCustomElement$6();
|
878
887
|
}
|
879
888
|
break;
|
880
889
|
case "calcite-slider":
|
881
890
|
if (!customElements.get(tagName)) {
|
882
|
-
defineCustomElement$
|
891
|
+
defineCustomElement$5();
|
883
892
|
}
|
884
893
|
break;
|
885
894
|
case "calcite-switch":
|
895
|
+
if (!customElements.get(tagName)) {
|
896
|
+
defineCustomElement$4();
|
897
|
+
}
|
898
|
+
break;
|
899
|
+
case "calcite-tooltip":
|
886
900
|
if (!customElements.get(tagName)) {
|
887
901
|
defineCustomElement$3();
|
888
902
|
}
|
@@ -897,7 +897,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
897
897
|
});
|
898
898
|
|
899
899
|
/*!
|
900
|
-
* @esri/arcgis-html-sanitizer - v3.0.
|
900
|
+
* @esri/arcgis-html-sanitizer - v3.0.0 - Mon Aug 22 2022 11:29:01 GMT-0400 (Eastern Daylight Time)
|
901
901
|
* Copyright (c) 2022 - Environmental Systems Research Institute, Inc.
|
902
902
|
* Apache-2.0
|
903
903
|
*
|
@@ -2132,7 +2132,7 @@ function parseTag$1(html, onTag, escapeHtml) {
|
|
2132
2132
|
lastPos = currentPos;
|
2133
2133
|
continue;
|
2134
2134
|
}
|
2135
|
-
if (c === ">") {
|
2135
|
+
if (c === ">" || currentPos === len - 1) {
|
2136
2136
|
rethtml += escapeHtml(html.slice(lastPos, tagStart));
|
2137
2137
|
currentHtml = html.slice(tagStart, currentPos + 1);
|
2138
2138
|
currentTagName = getTagName(currentHtml);
|
@@ -2167,7 +2167,7 @@ function parseTag$1(html, onTag, escapeHtml) {
|
|
2167
2167
|
}
|
2168
2168
|
}
|
2169
2169
|
}
|
2170
|
-
if (lastPos <
|
2170
|
+
if (lastPos < len) {
|
2171
2171
|
rethtml += escapeHtml(html.substr(lastPos));
|
2172
2172
|
}
|
2173
2173
|
|
@@ -1133,6 +1133,7 @@ const MapDrawTools = class {
|
|
1133
1133
|
this.drawRedo = createEvent(this, "drawRedo", 7);
|
1134
1134
|
this.active = false;
|
1135
1135
|
this.drawMode = EDrawMode.SKETCH;
|
1136
|
+
this.editGraphicsEnabled = true;
|
1136
1137
|
this.graphics = undefined;
|
1137
1138
|
this.mapView = undefined;
|
1138
1139
|
this.pointSymbol = undefined;
|
@@ -1278,19 +1279,21 @@ const MapDrawTools = class {
|
|
1278
1279
|
* @protected
|
1279
1280
|
*/
|
1280
1281
|
_initSketch() {
|
1281
|
-
|
1282
|
+
const sketchOptions = {
|
1282
1283
|
layer: this._sketchGraphicsLayer,
|
1283
1284
|
view: this.mapView,
|
1284
|
-
container: this._sketchElement,
|
1285
|
-
defaultUpdateOptions: {
|
1286
|
-
tool: "reshape",
|
1287
|
-
toggleToolOnClick: false
|
1288
|
-
},
|
1289
|
-
creationMode: "single",
|
1290
1285
|
defaultCreateOptions: {
|
1291
1286
|
mode: "hybrid"
|
1292
1287
|
},
|
1293
|
-
|
1288
|
+
defaultUpdateOptions: {
|
1289
|
+
preserveAspectRatio: false,
|
1290
|
+
enableScaling: false,
|
1291
|
+
enableRotation: false,
|
1292
|
+
tool: "reshape",
|
1293
|
+
toggleToolOnClick: false
|
1294
|
+
}
|
1295
|
+
};
|
1296
|
+
this._sketchWidget = new this.Sketch(Object.assign(Object.assign({}, sketchOptions), { container: this._sketchElement, creationMode: "single", visibleElements: {
|
1294
1297
|
selectionTools: {
|
1295
1298
|
"lasso-selection": false,
|
1296
1299
|
"rectangle-selection": false
|
@@ -1299,12 +1302,8 @@ const MapDrawTools = class {
|
|
1299
1302
|
},
|
1300
1303
|
undoRedoMenu: false,
|
1301
1304
|
settingsMenu: this.drawMode === EDrawMode.SKETCH
|
1302
|
-
}
|
1303
|
-
});
|
1304
|
-
this._sketchViewModel = new this.SketchViewModel({
|
1305
|
-
view: this.mapView,
|
1306
|
-
layer: this._sketchGraphicsLayer
|
1307
|
-
});
|
1305
|
+
} }));
|
1306
|
+
this._sketchViewModel = new this.SketchViewModel(Object.assign({}, sketchOptions));
|
1308
1307
|
this._sketchWidget.viewModel.polylineSymbol = this.polylineSymbol;
|
1309
1308
|
this._sketchWidget.viewModel.pointSymbol = this.pointSymbol;
|
1310
1309
|
this._sketchWidget.viewModel.polygonSymbol = this.polygonSymbol;
|
@@ -1319,13 +1318,19 @@ const MapDrawTools = class {
|
|
1319
1318
|
});
|
1320
1319
|
this._sketchWidget.on("update", (evt) => {
|
1321
1320
|
var _a;
|
1322
|
-
|
1323
|
-
|
1324
|
-
this.
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1321
|
+
if (!this.editGraphicsEnabled) {
|
1322
|
+
this._sketchWidget.viewModel.cancel();
|
1323
|
+
this._sketchViewModel.cancel();
|
1324
|
+
}
|
1325
|
+
else {
|
1326
|
+
const eventType = (_a = evt === null || evt === void 0 ? void 0 : evt.toolEventInfo) === null || _a === void 0 ? void 0 : _a.type;
|
1327
|
+
if (eventType === "reshape-stop" || eventType === "move-stop") {
|
1328
|
+
this.graphics = evt.graphics;
|
1329
|
+
this.sketchGraphicsChange.emit({
|
1330
|
+
graphics: this.graphics,
|
1331
|
+
useOIDs: false
|
1332
|
+
});
|
1333
|
+
}
|
1329
1334
|
}
|
1330
1335
|
});
|
1331
1336
|
this._sketchWidget.on("delete", () => {
|