@esri/solutions-components 0.8.14 → 0.8.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/arcgis-pdf-creator/PDFLabels.d.ts +218 -0
- package/dist/assets/t9n/crowdsource-reporter/resources.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_ar.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_bg.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_bs.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_ca.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_cs.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_da.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_de.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_el.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_en.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_es.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_et.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_fi.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_fr.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_he.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_hr.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_hu.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_id.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_it.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_ja.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_ko.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_lt.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_lv.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_nb.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_nl.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_pl.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_pt-BR.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_pt-PT.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_ro.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_ru.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_sk.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_sl.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_sr.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_sv.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_th.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_tr.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_uk.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_vi.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-CN.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-HK.json +15 -7
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-TW.json +15 -7
- package/dist/assets/t9n/feature-list/resources_ar.json +1 -1
- package/dist/assets/t9n/feature-list/resources_bg.json +1 -1
- package/dist/assets/t9n/feature-list/resources_bs.json +1 -1
- package/dist/assets/t9n/feature-list/resources_ca.json +1 -1
- package/dist/assets/t9n/feature-list/resources_cs.json +1 -1
- package/dist/assets/t9n/feature-list/resources_da.json +1 -1
- package/dist/assets/t9n/feature-list/resources_de.json +1 -1
- package/dist/assets/t9n/feature-list/resources_el.json +1 -1
- package/dist/assets/t9n/feature-list/resources_es.json +1 -1
- package/dist/assets/t9n/feature-list/resources_et.json +1 -1
- package/dist/assets/t9n/feature-list/resources_fi.json +1 -1
- package/dist/assets/t9n/feature-list/resources_fr.json +1 -1
- package/dist/assets/t9n/feature-list/resources_he.json +1 -1
- package/dist/assets/t9n/feature-list/resources_hr.json +1 -1
- package/dist/assets/t9n/feature-list/resources_hu.json +1 -1
- package/dist/assets/t9n/feature-list/resources_id.json +1 -1
- package/dist/assets/t9n/feature-list/resources_it.json +1 -1
- package/dist/assets/t9n/feature-list/resources_ja.json +1 -1
- package/dist/assets/t9n/feature-list/resources_ko.json +1 -1
- package/dist/assets/t9n/feature-list/resources_lt.json +1 -1
- package/dist/assets/t9n/feature-list/resources_lv.json +1 -1
- package/dist/assets/t9n/feature-list/resources_nb.json +1 -1
- package/dist/assets/t9n/feature-list/resources_nl.json +1 -1
- package/dist/assets/t9n/feature-list/resources_pl.json +1 -1
- package/dist/assets/t9n/feature-list/resources_pt-BR.json +1 -1
- package/dist/assets/t9n/feature-list/resources_pt-PT.json +1 -1
- package/dist/assets/t9n/feature-list/resources_ro.json +1 -1
- package/dist/assets/t9n/feature-list/resources_ru.json +1 -1
- package/dist/assets/t9n/feature-list/resources_sk.json +1 -1
- package/dist/assets/t9n/feature-list/resources_sl.json +1 -1
- package/dist/assets/t9n/feature-list/resources_sr.json +1 -1
- package/dist/assets/t9n/feature-list/resources_sv.json +1 -1
- package/dist/assets/t9n/feature-list/resources_th.json +1 -1
- package/dist/assets/t9n/feature-list/resources_tr.json +1 -1
- package/dist/assets/t9n/feature-list/resources_uk.json +1 -1
- package/dist/assets/t9n/feature-list/resources_vi.json +1 -1
- package/dist/assets/t9n/feature-list/resources_zh-CN.json +1 -1
- package/dist/assets/t9n/feature-list/resources_zh-HK.json +1 -1
- package/dist/assets/t9n/feature-list/resources_zh-TW.json +1 -1
- package/dist/assets/t9n/layer-list/resources.json +1 -1
- package/dist/assets/t9n/layer-list/resources_en.json +1 -1
- package/dist/assets/t9n/media-card/resources.json +1 -3
- package/dist/assets/t9n/media-card/resources_ar.json +3 -0
- package/dist/assets/t9n/media-card/resources_bg.json +3 -0
- package/dist/assets/t9n/media-card/resources_bs.json +3 -0
- package/dist/assets/t9n/media-card/resources_ca.json +3 -0
- package/dist/assets/t9n/media-card/resources_cs.json +3 -0
- package/dist/assets/t9n/media-card/resources_da.json +3 -0
- package/dist/assets/t9n/media-card/resources_de.json +3 -0
- package/dist/assets/t9n/media-card/resources_el.json +3 -0
- package/dist/assets/t9n/media-card/resources_en.json +1 -3
- package/dist/assets/t9n/media-card/resources_es.json +3 -0
- package/dist/assets/t9n/media-card/resources_et.json +3 -0
- package/dist/assets/t9n/media-card/resources_fi.json +3 -0
- package/dist/assets/t9n/media-card/resources_fr.json +3 -0
- package/dist/assets/t9n/media-card/resources_he.json +3 -0
- package/dist/assets/t9n/media-card/resources_hr.json +3 -0
- package/dist/assets/t9n/media-card/resources_hu.json +3 -0
- package/dist/assets/t9n/media-card/resources_id.json +3 -0
- package/dist/assets/t9n/media-card/resources_it.json +3 -0
- package/dist/assets/t9n/media-card/resources_ja.json +3 -0
- package/dist/assets/t9n/media-card/resources_ko.json +3 -0
- package/dist/assets/t9n/media-card/resources_lt.json +3 -0
- package/dist/assets/t9n/media-card/resources_lv.json +3 -0
- package/dist/assets/t9n/media-card/resources_nb.json +3 -0
- package/dist/assets/t9n/media-card/resources_nl.json +3 -0
- package/dist/assets/t9n/media-card/resources_pl.json +3 -0
- package/dist/assets/t9n/media-card/resources_pt-BR.json +3 -0
- package/dist/assets/t9n/media-card/resources_pt-PT.json +3 -0
- package/dist/assets/t9n/media-card/resources_ro.json +3 -0
- package/dist/assets/t9n/media-card/resources_ru.json +3 -0
- package/dist/assets/t9n/media-card/resources_sk.json +3 -0
- package/dist/assets/t9n/media-card/resources_sl.json +3 -0
- package/dist/assets/t9n/media-card/resources_sr.json +3 -0
- package/dist/assets/t9n/media-card/resources_sv.json +3 -0
- package/dist/assets/t9n/media-card/resources_th.json +3 -0
- package/dist/assets/t9n/media-card/resources_tr.json +3 -0
- package/dist/assets/t9n/media-card/resources_uk.json +3 -0
- package/dist/assets/t9n/media-card/resources_vi.json +3 -0
- package/dist/assets/t9n/media-card/resources_zh-CN.json +3 -0
- package/dist/assets/t9n/media-card/resources_zh-HK.json +3 -0
- package/dist/assets/t9n/media-card/resources_zh-TW.json +3 -0
- package/dist/assets/t9n/public-notification/resources_ar.json +3 -1
- package/dist/assets/t9n/public-notification/resources_bg.json +3 -1
- package/dist/assets/t9n/public-notification/resources_bs.json +3 -1
- package/dist/assets/t9n/public-notification/resources_ca.json +3 -1
- package/dist/assets/t9n/public-notification/resources_cs.json +3 -1
- package/dist/assets/t9n/public-notification/resources_da.json +3 -1
- package/dist/assets/t9n/public-notification/resources_de.json +3 -1
- package/dist/assets/t9n/public-notification/resources_el.json +3 -1
- package/dist/assets/t9n/public-notification/resources_es.json +3 -1
- package/dist/assets/t9n/public-notification/resources_et.json +3 -1
- package/dist/assets/t9n/public-notification/resources_fi.json +3 -1
- package/dist/assets/t9n/public-notification/resources_fr.json +3 -1
- package/dist/assets/t9n/public-notification/resources_he.json +3 -1
- package/dist/assets/t9n/public-notification/resources_hr.json +3 -1
- package/dist/assets/t9n/public-notification/resources_hu.json +3 -1
- package/dist/assets/t9n/public-notification/resources_id.json +3 -1
- package/dist/assets/t9n/public-notification/resources_it.json +3 -1
- package/dist/assets/t9n/public-notification/resources_ja.json +3 -1
- package/dist/assets/t9n/public-notification/resources_ko.json +3 -1
- package/dist/assets/t9n/public-notification/resources_lt.json +3 -1
- package/dist/assets/t9n/public-notification/resources_lv.json +3 -1
- package/dist/assets/t9n/public-notification/resources_nb.json +3 -1
- package/dist/assets/t9n/public-notification/resources_nl.json +3 -1
- package/dist/assets/t9n/public-notification/resources_pl.json +3 -1
- package/dist/assets/t9n/public-notification/resources_pt-BR.json +3 -1
- package/dist/assets/t9n/public-notification/resources_pt-PT.json +3 -1
- package/dist/assets/t9n/public-notification/resources_ro.json +3 -1
- package/dist/assets/t9n/public-notification/resources_ru.json +3 -1
- package/dist/assets/t9n/public-notification/resources_sk.json +3 -1
- package/dist/assets/t9n/public-notification/resources_sl.json +3 -1
- package/dist/assets/t9n/public-notification/resources_sr.json +3 -1
- package/dist/assets/t9n/public-notification/resources_sv.json +3 -1
- package/dist/assets/t9n/public-notification/resources_th.json +3 -1
- package/dist/assets/t9n/public-notification/resources_tr.json +3 -1
- package/dist/assets/t9n/public-notification/resources_uk.json +3 -1
- package/dist/assets/t9n/public-notification/resources_vi.json +3 -1
- package/dist/assets/t9n/public-notification/resources_zh-CN.json +3 -1
- package/dist/assets/t9n/public-notification/resources_zh-HK.json +3 -1
- package/dist/assets/t9n/public-notification/resources_zh-TW.json +3 -1
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -8
- package/dist/cjs/calcite-dropdown_4.cjs.entry.js +2 -2
- package/dist/cjs/calcite-flow_6.cjs.entry.js +320 -255
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
- package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
- package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +181 -54
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-88c011ad.js → downloadUtils-2e36a300.js} +31 -35
- package/dist/cjs/feature-comments.cjs.entry.js +1 -1
- package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +297 -0
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/{index.es-1d5ee842.js → index.es-56415e48.js} +2 -2
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
- package/dist/cjs/{mapViewUtils-82018df6.js → mapViewUtils-6e46ba33.js} +16 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +3 -3
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/create-related-feature/create-related-feature.css +8 -0
- package/dist/collection/components/create-related-feature/create-related-feature.js +426 -0
- package/dist/collection/components/create-related-feature/test/create-related-feature.e2e.js +14 -0
- package/dist/collection/components/create-related-feature/test/create-related-feature.spec.js +22 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +1 -0
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +370 -221
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +1 -1
- package/dist/collection/components/feature-comments/feature-comments.js +1 -1
- package/dist/collection/components/feature-details/feature-details.css +6 -3
- package/dist/collection/components/feature-details/feature-details.js +95 -9
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.css +6 -1
- package/dist/collection/components/feature-list/feature-list.js +133 -13
- package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +11 -7
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-list/layer-list.js +3 -23
- package/dist/collection/components/layer-table/layer-table.css +1 -1
- package/dist/collection/components/layer-table/layer-table.js +2 -2
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/utils/downloadUtils.js +0 -1
- package/dist/collection/utils/interfaces.ts +5 -0
- package/dist/collection/utils/mapViewUtils.js +15 -0
- package/dist/collection/utils/mapViewUtils.ts +19 -1
- package/dist/collection/utils/pdfUtils.js +29 -34
- package/dist/collection/utils/pdfUtils.ts +40 -47
- package/dist/components/create-related-feature.d.ts +11 -0
- package/dist/components/create-related-feature.js +11 -0
- package/dist/components/create-related-feature2.js +274 -0
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +287 -148
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +1 -1
- package/dist/components/downloadUtils.js +29 -33
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +163 -40
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +64 -16
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +9 -5
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-list2.js +3 -7
- package/dist/components/layer-table2.js +2 -2
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/mapViewUtils.js +16 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +2 -2
- package/dist/components/share-item.js +1 -1
- package/dist/components/solution-configuration.js +3 -3
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref2.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +6 -6
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_4.entry.js +12 -8
- package/dist/esm/calcite-dropdown_4.entry.js +2 -2
- package/dist/esm/calcite-flow_6.entry.js +321 -256
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
- package/dist/esm/card-manager_3.entry.js +5 -5
- package/dist/esm/crowdsource-manager.entry.js +2 -2
- package/dist/esm/crowdsource-reporter.entry.js +182 -55
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/{downloadUtils-fa6e5c37.js → downloadUtils-aab31bfe.js} +31 -35
- package/dist/esm/feature-comments.entry.js +1 -1
- package/dist/esm/feature-form-flow-item.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +293 -0
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/{index.es-114545fc.js → index.es-43ba3006.js} +2 -2
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +5 -5
- package/dist/esm/{mapViewUtils-c83c03a4.js → mapViewUtils-4618ddb8.js} +16 -1
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +3 -3
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/solutions-components/{p-afdc6bb2.entry.js → p-102b1f94.entry.js} +1 -1
- package/dist/solutions-components/p-22aece81.entry.js +6 -0
- package/dist/solutions-components/p-28c6906c.entry.js +6 -0
- package/dist/solutions-components/{p-71bdc77f.entry.js → p-33845a79.entry.js} +1 -1
- package/dist/solutions-components/{p-16ac309d.entry.js → p-3470c0f7.entry.js} +1 -1
- package/dist/solutions-components/p-3750c969.entry.js +6 -0
- package/dist/solutions-components/{p-ee457c15.js → p-37fc92db.js} +3 -3
- package/dist/solutions-components/{p-59c92ba2.entry.js → p-3a2e0188.entry.js} +1 -1
- package/dist/solutions-components/p-3fae9775.entry.js +6 -0
- package/dist/solutions-components/{p-0f139e3e.entry.js → p-54324eaa.entry.js} +1 -1
- package/dist/solutions-components/{p-d9c89479.js → p-583e5dd0.js} +1 -1
- package/dist/solutions-components/{p-69935f68.entry.js → p-667c022f.entry.js} +1 -1
- package/dist/solutions-components/{p-247edfb2.js → p-667caa6b.js} +1 -1
- package/dist/solutions-components/p-71de367b.entry.js +6 -0
- package/dist/solutions-components/{p-32fed174.entry.js → p-84a5d221.entry.js} +1 -1
- package/dist/solutions-components/{p-6e8782d1.entry.js → p-88f73319.entry.js} +1 -1
- package/dist/solutions-components/p-8a81f3c7.entry.js +6 -0
- package/dist/solutions-components/{p-288592d4.entry.js → p-92ed8d5d.entry.js} +1 -1
- package/dist/solutions-components/p-aa06f4d1.entry.js +6 -0
- package/dist/solutions-components/{p-67ee4afe.entry.js → p-b3160299.entry.js} +4 -4
- package/dist/solutions-components/p-b6d47bab.entry.js +17 -0
- package/dist/solutions-components/{p-bcf20616.entry.js → p-b76b5310.entry.js} +1 -1
- package/dist/solutions-components/{p-62994fb8.entry.js → p-bb0c7be3.entry.js} +3 -3
- package/dist/solutions-components/{p-7fdcce90.entry.js → p-bf57dbfd.entry.js} +2 -2
- package/dist/solutions-components/p-c047a6fc.entry.js +6 -0
- package/dist/solutions-components/{p-83997457.entry.js → p-d84fe0ee.entry.js} +2 -2
- package/dist/solutions-components/p-e9176a44.entry.js +6 -0
- package/dist/solutions-components/p-e947332f.entry.js +6 -0
- package/dist/solutions-components/{p-568c465e.entry.js → p-fc665a1a.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +5 -0
- package/dist/solutions-components/utils/mapViewUtils.ts +19 -1
- package/dist/solutions-components/utils/pdfUtils.ts +40 -47
- package/dist/types/assets/arcgis-pdf-creator/PDFLabels.d.ts +218 -0
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +113 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +197 -99
- package/dist/types/components/feature-details/feature-details.d.ts +31 -0
- package/dist/types/components/feature-list/feature-list.d.ts +31 -2
- package/dist/types/components/info-card/info-card.d.ts +6 -2
- package/dist/types/components/layer-list/layer-list.d.ts +0 -5
- package/dist/types/components.d.ts +131 -12
- package/dist/types/preact.d.ts +8 -1
- package/dist/types/utils/interfaces.d.ts +4 -0
- package/dist/types/utils/mapViewUtils.d.ts +7 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-28b4b325.entry.js +0 -6
- package/dist/solutions-components/p-36d3476c.entry.js +0 -17
- package/dist/solutions-components/p-452d2d38.entry.js +0 -6
- package/dist/solutions-components/p-48b2469f.entry.js +0 -6
- package/dist/solutions-components/p-4f0712e2.entry.js +0 -6
- package/dist/solutions-components/p-535c103e.entry.js +0 -6
- package/dist/solutions-components/p-7ca416ab.entry.js +0 -6
- package/dist/solutions-components/p-8e337f80.entry.js +0 -6
- package/dist/solutions-components/p-d13f6b3a.entry.js +0 -6
- package/dist/solutions-components/p-d62b99ff.entry.js +0 -6
@@ -9,59 +9,63 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-79b35510.js');
|
11
11
|
const locale = require('./locale-48d76c59.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
|
13
13
|
require('./esri-loader-fce6a9cb.js');
|
14
14
|
require('./interfaces-7cd0a48a.js');
|
15
15
|
|
16
|
-
const crowdsourceReporterCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{align-items:center;margin:5% 124%;display:flex}.pagination-count{width:32px;color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand)}.report-submitted-msg{position:absolute;z-index:1000}";
|
16
|
+
const crowdsourceReporterCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{align-items:center;margin:5% 124%;display:flex}.pagination-count{width:32px;color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}";
|
17
17
|
const CrowdsourceReporterStyle0 = crowdsourceReporterCss;
|
18
18
|
|
19
19
|
const CrowdsourceReporter = class {
|
20
20
|
constructor(hostRef) {
|
21
21
|
index.registerInstance(this, hostRef);
|
22
22
|
this.togglePanel = index.createEvent(this, "togglePanel", 7);
|
23
|
-
|
24
|
-
this.
|
23
|
+
this.center = undefined;
|
24
|
+
this.coverPageEnabled = undefined;
|
25
|
+
this.defaultWebmap = "";
|
25
26
|
this.description = undefined;
|
26
|
-
this.isMobile = undefined;
|
27
27
|
this.enableAnonymousAccess = undefined;
|
28
28
|
this.enableAnonymousComments = undefined;
|
29
29
|
this.enableComments = undefined;
|
30
|
+
this.enableHome = true;
|
30
31
|
this.enableLogin = undefined;
|
31
32
|
this.enableNewReports = undefined;
|
33
|
+
this.enableSearch = true;
|
34
|
+
this.enableZoom = true;
|
35
|
+
this.isMobile = undefined;
|
36
|
+
this.layerExpressions = [];
|
37
|
+
this.layerId = undefined;
|
38
|
+
this.level = undefined;
|
32
39
|
this.loginTitle = undefined;
|
40
|
+
this.mapInfos = [];
|
33
41
|
this.mapView = undefined;
|
34
|
-
this.layerId = undefined;
|
35
42
|
this.objectId = undefined;
|
36
|
-
this.center = undefined;
|
37
|
-
this.level = undefined;
|
38
43
|
this.reportButtonText = undefined;
|
39
|
-
this.reportsHeader = undefined;
|
40
44
|
this.reportingOptions = undefined;
|
45
|
+
this.reportsHeader = undefined;
|
41
46
|
this.reportSubmittedMessage = undefined;
|
42
47
|
this.searchConfiguration = undefined;
|
43
48
|
this.showComments = undefined;
|
44
|
-
this.defaultWebmap = "";
|
45
|
-
this.enableSearch = true;
|
46
|
-
this.enableHome = true;
|
47
|
-
this.mapInfos = [];
|
48
49
|
this.theme = "light";
|
49
|
-
this.enableZoom = true;
|
50
50
|
this.zoomToScale = undefined;
|
51
|
-
this.
|
52
|
-
this.
|
51
|
+
this._featureCreationFailedErrorMsg = undefined;
|
52
|
+
this._filterActive = false;
|
53
|
+
this._filterOpen = false;
|
53
54
|
this._flowItems = [];
|
54
|
-
this._sidePanelCollapsed = false;
|
55
|
-
this._translations = undefined;
|
56
55
|
this._hasValidLayers = false;
|
57
|
-
this.
|
56
|
+
this._loadingFeatureDetails = undefined;
|
57
|
+
this._mapInfo = undefined;
|
58
58
|
this._reportSubmitted = false;
|
59
|
+
this._selectedLayerName = undefined;
|
59
60
|
this._showSubmitCancelButton = false;
|
60
|
-
this.
|
61
|
-
this.
|
61
|
+
this._showLoadingIndicator = false;
|
62
|
+
this._sidePanelCollapsed = false;
|
63
|
+
this._translations = undefined;
|
62
64
|
this._updatedProgressBarStatus = 0.25;
|
63
|
-
this.
|
64
|
-
this.
|
65
|
+
this._updatedSorting = undefined;
|
66
|
+
this._updatedSortOption = "sortNewest";
|
67
|
+
this._commentSubmitted = false;
|
68
|
+
this._addingCommentFailed = false;
|
65
69
|
}
|
66
70
|
//--------------------------------------------------------------------------
|
67
71
|
//
|
@@ -88,10 +92,10 @@ const CrowdsourceReporter = class {
|
|
88
92
|
*/
|
89
93
|
async selectionChanged(evt) {
|
90
94
|
void this.updatingFeatureDetails(true);
|
91
|
-
this.setCurrentFeature(evt.detail.selectedFeature[0]);
|
95
|
+
await this.setCurrentFeature(evt.detail.selectedFeature[0]);
|
92
96
|
void this.highlightOnMap(evt.detail.selectedFeature[0]);
|
93
|
-
this.
|
94
|
-
//update the feature details to reflect the like dislike values
|
97
|
+
this._selectedFeatureIndex = evt.detail.selectedFeatureIndex;
|
98
|
+
//update the feature details to reflect the like, dislike and comment values
|
95
99
|
await this._featureDetails.refresh(evt.detail.selectedFeature[0]);
|
96
100
|
}
|
97
101
|
//--------------------------------------------------------------------------
|
@@ -111,7 +115,7 @@ const CrowdsourceReporter = class {
|
|
111
115
|
await this._getTranslations();
|
112
116
|
await ((_a = this.mapView) === null || _a === void 0 ? void 0 : _a.when(async () => {
|
113
117
|
//set configured reporting layers array
|
114
|
-
this.
|
118
|
+
this._layers = this.reportingOptions ? Object.keys(this.reportingOptions).filter((layerId) => {
|
115
119
|
return this.reportingOptions[layerId].reporting;
|
116
120
|
}) : [];
|
117
121
|
await this.setMapView();
|
@@ -122,7 +126,7 @@ const CrowdsourceReporter = class {
|
|
122
126
|
*/
|
123
127
|
render() {
|
124
128
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
125
|
-
return (index.h(index.Host, { key: '
|
129
|
+
return (index.h(index.Host, { key: 'b57e18eee85093b3829573a33806b81d8e5b9021' }, this._reportSubmitted && index.h("calcite-alert", { key: '6f45d4435c53c7fbed850098efebf77346f17c12', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '7eaecb6ba69aa0b6b45b90e7b751fb580e8557b2', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && index.h("calcite-alert", { key: '2997fdcdf9615ef1cea758111f50903740d863d8', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, index.h("div", { key: '4e8f89c2e26b37507b6fd7047096e8f68355bbd2', slot: "title" }, this._translations.error), index.h("div", { key: 'e514439bb6f88f1405d4a1c5618d0579b08210b9', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && index.h("calcite-alert", { key: '97a51ea4a07a897f071c9c2c34abcf5332aff76b', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '05f552f67f2d7da099aa317c3e60841570a8dbfc', slot: "message" }, this._translations.commentSubmittedMsg)), this._addingCommentFailed && index.h("calcite-alert", { key: 'fc78f2f7fb3c501e999c9783e199e732fdb5626d', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, index.h("div", { key: '617dbf2afc438481409e3a8ca268b95d77969499', slot: "title" }, this._translations.error), index.h("div", { key: '5da78c288010c03114c88841fbd9fc97c7366de0', slot: "message" }, this._translations.addingCommentFailedMsg)), index.h("div", { key: 'ded738076efa1f334dc26dc39b3fb57b1ac33de2' }, index.h("calcite-shell", { key: 'fa2a7c6c3dcd761a7517b9922c255459258fbec9', "content-behind": true }, this._getReporter())), this.filterModal()));
|
126
130
|
}
|
127
131
|
//--------------------------------------------------------------------------
|
128
132
|
//
|
@@ -147,8 +151,9 @@ const CrowdsourceReporter = class {
|
|
147
151
|
* @param layerId string layerId of the selected layer
|
148
152
|
* @param layerName string layerName of the selected layer
|
149
153
|
*/
|
150
|
-
setSelectedLayer(layerId, layerName) {
|
154
|
+
async setSelectedLayer(layerId, layerName) {
|
151
155
|
this._selectedLayerId = layerId;
|
156
|
+
this._selectedLayer = await mapViewUtils.getLayerOrTable(this.mapView, layerId);
|
152
157
|
this._selectedLayerName = layerName;
|
153
158
|
//show only current layer on map and hide other valid editable layers
|
154
159
|
//if layerId is empty then show all the layers on map
|
@@ -179,6 +184,12 @@ const CrowdsourceReporter = class {
|
|
179
184
|
case "feature-create":
|
180
185
|
renderLists.push(this.getFeatureCreateFlowItem());
|
181
186
|
break;
|
187
|
+
case "comment-details":
|
188
|
+
renderLists.push(this.getCommentDetailsFlowItem());
|
189
|
+
break;
|
190
|
+
case "add-comment":
|
191
|
+
renderLists.push(this.getAddCommentFlowItem());
|
192
|
+
break;
|
182
193
|
}
|
183
194
|
});
|
184
195
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
@@ -195,7 +206,7 @@ const CrowdsourceReporter = class {
|
|
195
206
|
//get layer expression for current selected layer
|
196
207
|
const currentLayersExpressions = this.layerExpressions ? this.layerExpressions.filter((exp) => exp.id === this._selectedLayerId) : [];
|
197
208
|
return (currentLayersExpressions.length > 0 &&
|
198
|
-
index.h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, index.h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filterLayerTitle) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", this._selectedLayerName)), index.h("div", { slot: "content" }, index.h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick:
|
209
|
+
index.h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, index.h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filterLayerTitle) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", this._selectedLayerName)), index.h("div", { slot: "content" }, index.h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: () => void this._closeFilter(), comboboxOverlayPositioning: "fixed", layerExpressions: currentLayersExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
|
199
210
|
}
|
200
211
|
/**
|
201
212
|
* Close the filter modal
|
@@ -213,6 +224,28 @@ const CrowdsourceReporter = class {
|
|
213
224
|
_toggleFilter() {
|
214
225
|
this._filterOpen = !this._filterOpen;
|
215
226
|
}
|
227
|
+
/**
|
228
|
+
* On sort option click update the sort field and sort order
|
229
|
+
* @param sortField sort field
|
230
|
+
* @param sortOrder sort order
|
231
|
+
*/
|
232
|
+
async sortOptionClick(sortField, sortOrder, sortOption) {
|
233
|
+
this._updatedSorting = {
|
234
|
+
field: sortField,
|
235
|
+
order: sortOrder
|
236
|
+
};
|
237
|
+
this._updatedSortOption = sortOption;
|
238
|
+
}
|
239
|
+
/**
|
240
|
+
* On sort button click, display the sorting options
|
241
|
+
* @returns Sort options list
|
242
|
+
*/
|
243
|
+
_toggleSort() {
|
244
|
+
const canSortByVotes = this.reportingOptions && this.reportingOptions[this._selectedLayerId] &&
|
245
|
+
this.reportingOptions[this._selectedLayerId].like && this.reportingOptions[this._selectedLayerId].likeField;
|
246
|
+
return (index.h("calcite-popover", { autoClose: true, label: "", offsetDistance: 0, placement: this.isMobile ? "leading-start" : "auto", pointerDisabled: true, referenceElement: "sort-popover" }, index.h("calcite-list", { "selection-mode": "single" }, index.h("calcite-list-item", { label: this._translations.sortNewest, onCalciteListItemSelect: () => { void this.sortOptionClick(this._selectedLayer.objectIdField, "desc", "sortNewest"); }, selected: this._updatedSortOption === "sortNewest", value: "sortNewest" }), index.h("calcite-list-item", { label: this._translations.sortOldest, onCalciteListItemSelect: () => { void this.sortOptionClick(this._selectedLayer.objectIdField, "asc", "sortOldest"); }, selected: this._updatedSortOption === "sortOldest", value: "sortOldest" }), canSortByVotes &&
|
247
|
+
index.h(index.Fragment, null, index.h("calcite-list-item", { label: this._translations.sortHighestVoted, onCalciteListItemSelect: () => { void this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField, "desc", "sortHighestVoted"); }, selected: this._updatedSortOption === "sortHighestVoted", value: "sortHighestVoted" }), index.h("calcite-list-item", { label: this._translations.sortLowestVoted, onCalciteListItemSelect: () => { void this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField, "asc", "sortLowestVoted"); }, selected: this._updatedSortOption === "sortLowestVoted", value: "sortLowestVoted" })))));
|
248
|
+
}
|
216
249
|
/**
|
217
250
|
* Reset the filter active prop
|
218
251
|
* @protected
|
@@ -224,7 +257,7 @@ const CrowdsourceReporter = class {
|
|
224
257
|
void this._featureList.refresh();
|
225
258
|
}
|
226
259
|
/**
|
227
|
-
* Check if the layers definitionExpression has been modified
|
260
|
+
* Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
|
228
261
|
* @protected
|
229
262
|
*/
|
230
263
|
_handleFilterUpdate() {
|
@@ -242,7 +275,7 @@ const CrowdsourceReporter = class {
|
|
242
275
|
getLayerListFlowItem() {
|
243
276
|
var _a;
|
244
277
|
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportsHeader }, this.isMobile && this.getActionToExpandCollapsePanel(), this._hasValidLayers && this.enableNewReports &&
|
245
|
-
index.h("calcite-button", { appearance: "solid", onClick: this.navigateToChooseCategory.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("layer-list", { class: "height-full", layers: ((_a = this._editableLayerIds) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._editableLayerIds : this.
|
278
|
+
index.h("calcite-button", { appearance: "solid", onClick: this.navigateToChooseCategory.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("layer-list", { class: "height-full", layers: ((_a = this._editableLayerIds) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._editableLayerIds : this._layers, mapView: this.mapView, onLayerSelect: this.displayFeaturesList.bind(this), onLayersListLoaded: this.layerListLoaded.bind(this), ref: el => this._layerList = el, showFeatureCount: true, showNextIcon: true }))));
|
246
279
|
}
|
247
280
|
/**
|
248
281
|
* Get the layer list for creating a report
|
@@ -250,7 +283,7 @@ const CrowdsourceReporter = class {
|
|
250
283
|
* @protected
|
251
284
|
*/
|
252
285
|
getChooseCategoryFlowItem() {
|
253
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("div", { class: "progress-bar" }, index.h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), index.h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, index.h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), index.h("layer-list", { class: "height-full", layers: this.
|
286
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("div", { class: "progress-bar" }, index.h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), index.h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, index.h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), index.h("layer-list", { class: "height-full", layers: this._layers, mapView: this.mapView, onLayerSelect: this.navigateToCreateFeature.bind(this), showFeatureCount: false, showNextIcon: false }))));
|
254
287
|
}
|
255
288
|
/**
|
256
289
|
* Get Feature create form of the selected feature layer
|
@@ -258,7 +291,7 @@ const CrowdsourceReporter = class {
|
|
258
291
|
* @protected
|
259
292
|
*/
|
260
293
|
getFeatureCreateFlowItem() {
|
261
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), this._showSubmitCancelButton && index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.
|
294
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), this._showSubmitCancelButton && index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("div", { class: "progress-bar" }, index.h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), index.h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, index.h("div", { slot: "message" }, this._translations.featureEditFormInfoMsg)), index.h("create-feature", { customizeSubmit: true, mapView: this.mapView, onDrawComplete: this.onDrawComplete.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId }))));
|
262
295
|
}
|
263
296
|
/**
|
264
297
|
* Update the progress bar status when editor panel changes
|
@@ -286,7 +319,7 @@ const CrowdsourceReporter = class {
|
|
286
319
|
* On back from create feature, call submit editor to destroy the Editor widget instance
|
287
320
|
* @protected
|
288
321
|
*/
|
289
|
-
|
322
|
+
onCreateFeatureSubmitButtonClick() {
|
290
323
|
if (this._createFeature) {
|
291
324
|
void this._createFeature.submit();
|
292
325
|
}
|
@@ -301,6 +334,26 @@ const CrowdsourceReporter = class {
|
|
301
334
|
}
|
302
335
|
this.backFromSelectedPanel();
|
303
336
|
}
|
337
|
+
/**
|
338
|
+
* On back from create realated feature, call submit editor to destroy the Editor widget instance
|
339
|
+
* @protected
|
340
|
+
*/
|
341
|
+
onCreateRelatedFeatureSubmitButtonClick() {
|
342
|
+
if (this._createRelatedFeature) {
|
343
|
+
void this._createRelatedFeature.submit();
|
344
|
+
}
|
345
|
+
}
|
346
|
+
/**
|
347
|
+
* On back from create related feature, call close editor to destroy the Editor widget instance
|
348
|
+
* @protected
|
349
|
+
*/
|
350
|
+
backFromCreateRelatedFeaturePanel() {
|
351
|
+
if (this._createRelatedFeature) {
|
352
|
+
void this._createRelatedFeature.close();
|
353
|
+
this._showSubmitCancelButton = false;
|
354
|
+
}
|
355
|
+
this.backFromSelectedPanel();
|
356
|
+
}
|
304
357
|
/**
|
305
358
|
* On creating the feature is failed, show the error message
|
306
359
|
* @param evt Event which has feature failed message
|
@@ -318,6 +371,29 @@ const CrowdsourceReporter = class {
|
|
318
371
|
this._reportSubmitted = true;
|
319
372
|
void this.navigateToHomePage();
|
320
373
|
}
|
374
|
+
/**
|
375
|
+
* On adding the is failed, show the error message
|
376
|
+
* @param evt Event which has comment failed message
|
377
|
+
* @protected
|
378
|
+
*/
|
379
|
+
addCommentFailed(evt) {
|
380
|
+
console.error(evt.detail);
|
381
|
+
this._addingCommentFailed = true;
|
382
|
+
}
|
383
|
+
/**
|
384
|
+
* On submit comment navigate to the feature list and refresh the feature details
|
385
|
+
* @protected
|
386
|
+
*/
|
387
|
+
async onCommentSubmitted() {
|
388
|
+
this._commentSubmitted = true;
|
389
|
+
this.backFromSelectedPanel();
|
390
|
+
this._showLoadingIndicator = true;
|
391
|
+
//update the feature details to reflect the like, dislike and comment values
|
392
|
+
await this._featureDetails.refresh(this._currentFeature);
|
393
|
+
setTimeout(() => {
|
394
|
+
this._showLoadingIndicator = false;
|
395
|
+
}, 300);
|
396
|
+
}
|
321
397
|
/**
|
322
398
|
* Navigates to layer-list
|
323
399
|
* @protected
|
@@ -329,7 +405,7 @@ const CrowdsourceReporter = class {
|
|
329
405
|
if (this._layerList) {
|
330
406
|
void this._layerList.refresh();
|
331
407
|
}
|
332
|
-
this.setSelectedFeatures([]);
|
408
|
+
await this.setSelectedFeatures([]);
|
333
409
|
if (this._editableLayerIds.length === 1) {
|
334
410
|
await this._featureList.refresh();
|
335
411
|
this._flowItems = ["feature-list"];
|
@@ -345,7 +421,7 @@ const CrowdsourceReporter = class {
|
|
345
421
|
*/
|
346
422
|
async navigateToCreateFeature(evt) {
|
347
423
|
if (evt.detail.layerId && evt.detail.layerName) {
|
348
|
-
this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
424
|
+
void this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
349
425
|
}
|
350
426
|
this._showSubmitCancelButton = false;
|
351
427
|
this._flowItems = [...this._flowItems, "feature-create"];
|
@@ -387,7 +463,13 @@ const CrowdsourceReporter = class {
|
|
387
463
|
* @protected
|
388
464
|
*/
|
389
465
|
displayFeaturesList(evt) {
|
390
|
-
this.
|
466
|
+
this._updatedSorting = {
|
467
|
+
field: '',
|
468
|
+
order: 'desc'
|
469
|
+
};
|
470
|
+
this._filterActive = false;
|
471
|
+
this._updatedSortOption = "sortNewest";
|
472
|
+
void this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
391
473
|
this._flowItems = [...this._flowItems, "feature-list"];
|
392
474
|
}
|
393
475
|
/**
|
@@ -397,8 +479,11 @@ const CrowdsourceReporter = class {
|
|
397
479
|
backFromSelectedPanel() {
|
398
480
|
this._updatedProgressBarStatus = 0.25;
|
399
481
|
const updatedFlowItems = [...this._flowItems];
|
482
|
+
// when coming back from comment details page don't clear the highlighted feature of map
|
483
|
+
if (updatedFlowItems[updatedFlowItems.length - 1] !== 'comment-details') {
|
484
|
+
this.clearHighlights();
|
485
|
+
}
|
400
486
|
updatedFlowItems.pop();
|
401
|
-
this.clearHighlights();
|
402
487
|
//Back to layer list, and return as the flowItems will be reset in navigateToHomePage
|
403
488
|
if (updatedFlowItems.length === 1 && updatedFlowItems[0] === 'layer-list') {
|
404
489
|
void this.navigateToHomePage();
|
@@ -419,15 +504,35 @@ const CrowdsourceReporter = class {
|
|
419
504
|
* @param evt Event which has details of selected feature
|
420
505
|
*/
|
421
506
|
async onFeatureSelectFromList(evt) {
|
422
|
-
this.
|
507
|
+
this._showLoadingIndicator = true;
|
508
|
+
await this.setSelectedFeatures([evt.detail]);
|
423
509
|
this._flowItems = [...this._flowItems, "feature-details"];
|
424
510
|
}
|
511
|
+
/**
|
512
|
+
* Gets related table id of the selected feature's layer
|
513
|
+
* @protected
|
514
|
+
*/
|
515
|
+
async getRelatedTable() {
|
516
|
+
const relatedTableIdFromRelnship = this._currentFeature.layer.relationships[0].relatedTableId;
|
517
|
+
const allTables = await mapViewUtils.getAllTables(this.mapView);
|
518
|
+
const relatedTable = allTables.filter((table) => relatedTableIdFromRelnship === table.layerId);
|
519
|
+
this._relatedTable = relatedTable[0];
|
520
|
+
}
|
425
521
|
/**
|
426
522
|
* Show loading indicator while updating the feature details component
|
427
523
|
* @param isLoading is feature detail component loading
|
428
524
|
*/
|
429
525
|
async updatingFeatureDetails(isLoading) {
|
430
|
-
this.
|
526
|
+
this._showLoadingIndicator = isLoading;
|
527
|
+
}
|
528
|
+
/**
|
529
|
+
* When comment is selected from list store that and show comment details
|
530
|
+
* @param evt Event which has details of selected feature
|
531
|
+
* @protected
|
532
|
+
*/
|
533
|
+
async onCommentSelectFromList(evt) {
|
534
|
+
this._selectedRelatedFeature = [evt.detail];
|
535
|
+
this._flowItems = [...this._flowItems, "comment-details"];
|
431
536
|
}
|
432
537
|
/**
|
433
538
|
* Get feature list of the selected feature layer
|
@@ -439,16 +544,18 @@ const CrowdsourceReporter = class {
|
|
439
544
|
getFeatureListFlowItem(layerId, layerName) {
|
440
545
|
var _a;
|
441
546
|
const layerExpressions = (_a = this.layerExpressions) === null || _a === void 0 ? void 0 : _a.filter((exp) => exp.id === this._selectedLayerId);
|
442
|
-
const showFilterIcon = layerExpressions.length > 0;
|
443
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, showFilterIcon && index.h("calcite-action", { icon: "filter", indicator: this._filterActive, onClick: this._toggleFilter.bind(this), slot:
|
444
|
-
index.h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), index.h("calcite-panel", { "full-height": true }, index.h("feature-list", { class: "height-full", highlightOnHover: true, mapView: this.mapView, noFeaturesFoundMsg: this._translations.featureErrorMsg, onFeatureSelect: this.onFeatureSelectFromList.bind(this), pageSize: 30, ref: el => this._featureList = el, selectedLayerId: layerId }))));
|
547
|
+
const showFilterIcon = (layerExpressions === null || layerExpressions === void 0 ? void 0 : layerExpressions.length) > 0;
|
548
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this._toggleSort(), index.h("calcite-action", { icon: "sort-ascending-arrow", id: "sort-popover", slot: "header-actions-end", text: this._translations.sort, title: this._translations.sort }), showFilterIcon && index.h("calcite-action", { icon: "filter", indicator: this._filterActive, onClick: this._toggleFilter.bind(this), slot: "header-actions-end", text: this._translations.filter, title: this._translations.filter }), this.isMobile && this.getActionToExpandCollapsePanel(), this.enableNewReports &&
|
549
|
+
index.h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), index.h("calcite-panel", { "full-height": true }, index.h("feature-list", { class: "height-full", highlightOnHover: true, mapView: this.mapView, noFeaturesFoundMsg: this._translations.featureErrorMsg, onFeatureSelect: this.onFeatureSelectFromList.bind(this), pageSize: 30, ref: el => this._featureList = el, selectedLayerId: layerId, sortingInfo: this._updatedSorting }))));
|
445
550
|
}
|
446
551
|
/**
|
447
552
|
* Returns the calcite-flow item for feature details
|
448
553
|
* @returns Node
|
449
554
|
*/
|
450
555
|
getFeatureDetailsFlowItem() {
|
451
|
-
|
556
|
+
const showCommentBtn = this.reportingOptions[this._currentFeature.layer.id].comment && this._currentFeature.layer.relationships.length > 0;
|
557
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), index.h("calcite-panel", null, this._selectedFeature.length > 1 && this.getFeaturesPagination(), index.h("feature-details", { class: 'full-height', graphics: this._selectedFeature, mapView: this.mapView, onFeatureSelect: this.onCommentSelectFromList.bind(this), onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }), showCommentBtn &&
|
558
|
+
index.h("calcite-button", { appearance: "solid", onClick: () => this._flowItems = [...this._flowItems, "add-comment"], slot: "footer", width: "full" }, this._translations.comment))));
|
452
559
|
}
|
453
560
|
/**
|
454
561
|
* Returns the pagination for the multiple features
|
@@ -458,27 +565,47 @@ const CrowdsourceReporter = class {
|
|
458
565
|
getFeaturesPagination() {
|
459
566
|
return (index.h("div", { class: "feature-pagination", slot: "header-actions-start" }, index.h("div", null, index.h("calcite-button", { appearance: 'transparent', disabled: false, iconStart: "chevron-left", id: "solutions-back", onClick: () => void this._featureDetails.back(), scale: "s", width: "full" }), index.h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, index.h("span", null, this._translations.back))), index.h("calcite-button", { appearance: 'transparent', class: 'pagination-action', onClick: () => void this._featureDetails.toggleListView(), scale: "s" }, index.h("span", { class: "pagination-count" }, this._getCount())), index.h("div", null, index.h("calcite-button", { appearance: "transparent", disabled: false, iconStart: "chevron-right", id: "solutions-next", onClick: () => void this._featureDetails.next(), scale: "s", width: "full" }), index.h("calcite-tooltip", { placement: "top", "reference-element": "solutions-next" }, index.h("span", null, this._translations.next)))));
|
460
567
|
}
|
568
|
+
/**
|
569
|
+
* Returns the calcite-flow item for comment details
|
570
|
+
* @returns Node
|
571
|
+
*/
|
572
|
+
getCommentDetailsFlowItem() {
|
573
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("calcite-panel", { "full-height": true }, index.h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, zoomAndScrollToSelected: false }))));
|
574
|
+
}
|
575
|
+
/**
|
576
|
+
* Returns the calcite-flow item for add comment
|
577
|
+
* @returns Node
|
578
|
+
*/
|
579
|
+
getAddCommentFlowItem() {
|
580
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromCreateRelatedFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("div", { class: "width-full", slot: "footer" }, this._showSubmitCancelButton && index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateRelatedFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateRelatedFeaturePanel.bind(this), width: "full" }, this._translations.cancel))), index.h("calcite-panel", null, index.h("create-related-feature", { customizeSubmit: true, mapView: this.mapView, onFail: this.addCommentFailed.bind(this), onIsActionPending: this.showSubmitCancelButton.bind(this), onSuccess: this.onCommentSubmitted.bind(this), ref: el => this._createRelatedFeature = el, selectedFeature: this._currentFeature, table: this._relatedTable }))));
|
581
|
+
}
|
461
582
|
/**
|
462
583
|
* Sets the selected features and updates the first feature as the current selected feature
|
463
584
|
* @param features Graphics array of the features selected
|
464
585
|
*/
|
465
|
-
setSelectedFeatures(features) {
|
586
|
+
async setSelectedFeatures(features) {
|
466
587
|
this._selectedFeature = features;
|
467
|
-
this.setCurrentFeature(this._selectedFeature.length ? this._selectedFeature[0] : null);
|
588
|
+
await this.setCurrentFeature(this._selectedFeature.length ? this._selectedFeature[0] : null);
|
468
589
|
}
|
469
590
|
/**
|
470
591
|
* Set the object id of the current selected feature, and also updates the current selected layer details
|
471
592
|
* @param selectedFeature Graphic currently shown in feature details
|
472
593
|
*/
|
473
|
-
setCurrentFeature(selectedFeature) {
|
594
|
+
async setCurrentFeature(selectedFeature) {
|
595
|
+
this._currentFeature = selectedFeature;
|
474
596
|
if (selectedFeature && selectedFeature.layer) {
|
475
597
|
const layer = selectedFeature.layer;
|
476
|
-
this.setSelectedLayer(layer.id, layer.title);
|
598
|
+
void this.setSelectedLayer(layer.id, layer.title);
|
477
599
|
this._currentFeatureId = selectedFeature.attributes[layer.objectIdField];
|
600
|
+
// check if comments are configured and relationship is present then only get the related table
|
601
|
+
const isCommentTablePresent = this.reportingOptions[selectedFeature.layer.id].comment && selectedFeature.layer.relationships.length > 0;
|
602
|
+
if (isCommentTablePresent) {
|
603
|
+
await this.getRelatedTable();
|
604
|
+
}
|
478
605
|
}
|
479
606
|
else {
|
480
607
|
if (this._editableLayerIds.length > 1) {
|
481
|
-
this.setSelectedLayer('', '');
|
608
|
+
void this.setSelectedLayer('', '');
|
482
609
|
}
|
483
610
|
this._currentFeatureId = '';
|
484
611
|
}
|
@@ -582,7 +709,7 @@ const CrowdsourceReporter = class {
|
|
582
709
|
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
583
710
|
if (reportingLayerGraphics.length > 0) {
|
584
711
|
//update the selectedFeature
|
585
|
-
this.setSelectedFeatures(reportingLayerGraphics);
|
712
|
+
await this.setSelectedFeatures(reportingLayerGraphics);
|
586
713
|
//if featureDetails not open then add it to the list else just reInit flowItems which will update details with newly selected features
|
587
714
|
// eslint-disable-next-line unicorn/prefer-ternary
|
588
715
|
if (this._flowItems.length && this._flowItems[this._flowItems.length - 1] !== "feature-details") {
|
@@ -611,7 +738,7 @@ const CrowdsourceReporter = class {
|
|
611
738
|
* @protected
|
612
739
|
*/
|
613
740
|
_getCount() {
|
614
|
-
const index = (this.
|
741
|
+
const index = (this._selectedFeatureIndex + 1).toString();
|
615
742
|
const total = this._selectedFeature.length.toString();
|
616
743
|
return this._translations.indexOfTotal
|
617
744
|
.replace("{{index}}", index)
|
@@ -634,7 +761,7 @@ const CrowdsourceReporter = class {
|
|
634
761
|
*/
|
635
762
|
reduceToConfiguredLayers(hash) {
|
636
763
|
var _a;
|
637
|
-
const configuredLayers = ((_a = this.
|
764
|
+
const configuredLayers = ((_a = this._layers) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._layers : [];
|
638
765
|
return Object.keys(hash).reduce((prev, cur) => {
|
639
766
|
let showLayer = hash[cur].supportsAdd;
|
640
767
|
if ((configuredLayers === null || configuredLayers === void 0 ? void 0 : configuredLayers.length) > 0) {
|
@@ -670,7 +797,7 @@ const CrowdsourceReporter = class {
|
|
670
797
|
detail: this._editableLayerIds
|
671
798
|
};
|
672
799
|
await this.layerListLoaded(evt);
|
673
|
-
this.setSelectedLayer(this._validLayers[0].id, this._validLayers[0].title);
|
800
|
+
void this.setSelectedLayer(this._validLayers[0].id, this._validLayers[0].title);
|
674
801
|
this._flowItems = ['feature-list'];
|
675
802
|
}
|
676
803
|
/**
|
@@ -31,7 +31,7 @@ const DeductCalculator = class {
|
|
31
31
|
* Renders the component.
|
32
32
|
*/
|
33
33
|
render() {
|
34
|
-
return (index.h(index.Host, { key: '
|
34
|
+
return (index.h(index.Host, { key: '68401afdbb18147910d55f13cae4c019bda9f020' }, index.h("div", { key: '88b89c1a9b260024f28315574539f47bd0bd0a3a', class: "label-display" }, index.h("calcite-label", { key: '8e81c5e65fe272c547addd3915ccc6a7da48a5b8', class: "label-display" }, "Density %", this._getDensityInput()), index.h("calcite-label", { key: 'f549369baa3b681922c07b2c91a626664e98309f', class: "label-display" }, "Type", this._getTypeInput()), index.h("calcite-label", { key: 'e850fbf5d9728f969c289946c3518a30316e88b9', class: "label-display" }, "Severity", this._getSeverityInput())), index.h("div", { key: '2485c0b0f0c2681b1af7cf55478ec34efb734a46' }, this._getCalculateInput())));
|
35
35
|
}
|
36
36
|
//--------------------------------------------------------------------------
|
37
37
|
//
|