@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
@@ -18,55 +18,59 @@
|
|
18
18
|
* See the License for the specific language governing permissions and
|
19
19
|
* limitations under the License.
|
20
20
|
*/
|
21
|
-
import { Host, h } from "@stencil/core";
|
21
|
+
import { Host, h, Fragment } from "@stencil/core";
|
22
22
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
23
23
|
import { loadModules } from "../../utils/loadModules";
|
24
|
-
import { getAllLayers, getFeatureLayerView, getLayerOrTable, getMapLayerHash, highlightFeatures } from "../../utils/mapViewUtils";
|
24
|
+
import { getAllLayers, getAllTables, getFeatureLayerView, getLayerOrTable, getMapLayerHash, highlightFeatures } from "../../utils/mapViewUtils";
|
25
25
|
import { queryFeaturesByID } from "../../utils/queryUtils";
|
26
26
|
export class CrowdsourceReporter {
|
27
27
|
constructor() {
|
28
|
-
|
29
|
-
this.
|
28
|
+
this.center = undefined;
|
29
|
+
this.coverPageEnabled = undefined;
|
30
|
+
this.defaultWebmap = "";
|
30
31
|
this.description = undefined;
|
31
|
-
this.isMobile = undefined;
|
32
32
|
this.enableAnonymousAccess = undefined;
|
33
33
|
this.enableAnonymousComments = undefined;
|
34
34
|
this.enableComments = undefined;
|
35
|
+
this.enableHome = true;
|
35
36
|
this.enableLogin = undefined;
|
36
37
|
this.enableNewReports = undefined;
|
38
|
+
this.enableSearch = true;
|
39
|
+
this.enableZoom = true;
|
40
|
+
this.isMobile = undefined;
|
41
|
+
this.layerExpressions = [];
|
42
|
+
this.layerId = undefined;
|
43
|
+
this.level = undefined;
|
37
44
|
this.loginTitle = undefined;
|
45
|
+
this.mapInfos = [];
|
38
46
|
this.mapView = undefined;
|
39
|
-
this.layerId = undefined;
|
40
47
|
this.objectId = undefined;
|
41
|
-
this.center = undefined;
|
42
|
-
this.level = undefined;
|
43
48
|
this.reportButtonText = undefined;
|
44
|
-
this.reportsHeader = undefined;
|
45
49
|
this.reportingOptions = undefined;
|
50
|
+
this.reportsHeader = undefined;
|
46
51
|
this.reportSubmittedMessage = undefined;
|
47
52
|
this.searchConfiguration = undefined;
|
48
53
|
this.showComments = undefined;
|
49
|
-
this.defaultWebmap = "";
|
50
|
-
this.enableSearch = true;
|
51
|
-
this.enableHome = true;
|
52
|
-
this.mapInfos = [];
|
53
54
|
this.theme = "light";
|
54
|
-
this.enableZoom = true;
|
55
55
|
this.zoomToScale = undefined;
|
56
|
-
this.
|
57
|
-
this.
|
56
|
+
this._featureCreationFailedErrorMsg = undefined;
|
57
|
+
this._filterActive = false;
|
58
|
+
this._filterOpen = false;
|
58
59
|
this._flowItems = [];
|
59
|
-
this._sidePanelCollapsed = false;
|
60
|
-
this._translations = undefined;
|
61
60
|
this._hasValidLayers = false;
|
62
|
-
this.
|
61
|
+
this._loadingFeatureDetails = undefined;
|
62
|
+
this._mapInfo = undefined;
|
63
63
|
this._reportSubmitted = false;
|
64
|
+
this._selectedLayerName = undefined;
|
64
65
|
this._showSubmitCancelButton = false;
|
65
|
-
this.
|
66
|
-
this.
|
66
|
+
this._showLoadingIndicator = false;
|
67
|
+
this._sidePanelCollapsed = false;
|
68
|
+
this._translations = undefined;
|
67
69
|
this._updatedProgressBarStatus = 0.25;
|
68
|
-
this.
|
69
|
-
this.
|
70
|
+
this._updatedSorting = undefined;
|
71
|
+
this._updatedSortOption = "sortNewest";
|
72
|
+
this._commentSubmitted = false;
|
73
|
+
this._addingCommentFailed = false;
|
70
74
|
}
|
71
75
|
//--------------------------------------------------------------------------
|
72
76
|
//
|
@@ -93,10 +97,10 @@ export class CrowdsourceReporter {
|
|
93
97
|
*/
|
94
98
|
async selectionChanged(evt) {
|
95
99
|
void this.updatingFeatureDetails(true);
|
96
|
-
this.setCurrentFeature(evt.detail.selectedFeature[0]);
|
100
|
+
await this.setCurrentFeature(evt.detail.selectedFeature[0]);
|
97
101
|
void this.highlightOnMap(evt.detail.selectedFeature[0]);
|
98
|
-
this.
|
99
|
-
//update the feature details to reflect the like dislike values
|
102
|
+
this._selectedFeatureIndex = evt.detail.selectedFeatureIndex;
|
103
|
+
//update the feature details to reflect the like, dislike and comment values
|
100
104
|
await this._featureDetails.refresh(evt.detail.selectedFeature[0]);
|
101
105
|
}
|
102
106
|
//--------------------------------------------------------------------------
|
@@ -116,7 +120,7 @@ export class CrowdsourceReporter {
|
|
116
120
|
await this._getTranslations();
|
117
121
|
await ((_a = this.mapView) === null || _a === void 0 ? void 0 : _a.when(async () => {
|
118
122
|
//set configured reporting layers array
|
119
|
-
this.
|
123
|
+
this._layers = this.reportingOptions ? Object.keys(this.reportingOptions).filter((layerId) => {
|
120
124
|
return this.reportingOptions[layerId].reporting;
|
121
125
|
}) : [];
|
122
126
|
await this.setMapView();
|
@@ -127,7 +131,7 @@ export class CrowdsourceReporter {
|
|
127
131
|
*/
|
128
132
|
render() {
|
129
133
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
130
|
-
return (h(Host, { key: '
|
134
|
+
return (h(Host, { key: 'b57e18eee85093b3829573a33806b81d8e5b9021' }, this._reportSubmitted && 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" }, h("div", { key: '7eaecb6ba69aa0b6b45b90e7b751fb580e8557b2', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '2997fdcdf9615ef1cea758111f50903740d863d8', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '4e8f89c2e26b37507b6fd7047096e8f68355bbd2', slot: "title" }, this._translations.error), h("div", { key: 'e514439bb6f88f1405d4a1c5618d0579b08210b9', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && 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" }, h("div", { key: '05f552f67f2d7da099aa317c3e60841570a8dbfc', slot: "message" }, this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: 'fc78f2f7fb3c501e999c9783e199e732fdb5626d', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '617dbf2afc438481409e3a8ca268b95d77969499', slot: "title" }, this._translations.error), h("div", { key: '5da78c288010c03114c88841fbd9fc97c7366de0', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: 'ded738076efa1f334dc26dc39b3fb57b1ac33de2' }, h("calcite-shell", { key: 'fa2a7c6c3dcd761a7517b9922c255459258fbec9', "content-behind": true }, this._getReporter())), this.filterModal()));
|
131
135
|
}
|
132
136
|
//--------------------------------------------------------------------------
|
133
137
|
//
|
@@ -152,8 +156,9 @@ export class CrowdsourceReporter {
|
|
152
156
|
* @param layerId string layerId of the selected layer
|
153
157
|
* @param layerName string layerName of the selected layer
|
154
158
|
*/
|
155
|
-
setSelectedLayer(layerId, layerName) {
|
159
|
+
async setSelectedLayer(layerId, layerName) {
|
156
160
|
this._selectedLayerId = layerId;
|
161
|
+
this._selectedLayer = await getLayerOrTable(this.mapView, layerId);
|
157
162
|
this._selectedLayerName = layerName;
|
158
163
|
//show only current layer on map and hide other valid editable layers
|
159
164
|
//if layerId is empty then show all the layers on map
|
@@ -184,6 +189,12 @@ export class CrowdsourceReporter {
|
|
184
189
|
case "feature-create":
|
185
190
|
renderLists.push(this.getFeatureCreateFlowItem());
|
186
191
|
break;
|
192
|
+
case "comment-details":
|
193
|
+
renderLists.push(this.getCommentDetailsFlowItem());
|
194
|
+
break;
|
195
|
+
case "add-comment":
|
196
|
+
renderLists.push(this.getAddCommentFlowItem());
|
197
|
+
break;
|
187
198
|
}
|
188
199
|
});
|
189
200
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
@@ -200,7 +211,7 @@ export class CrowdsourceReporter {
|
|
200
211
|
//get layer expression for current selected layer
|
201
212
|
const currentLayersExpressions = this.layerExpressions ? this.layerExpressions.filter((exp) => exp.id === this._selectedLayerId) : [];
|
202
213
|
return (currentLayersExpressions.length > 0 &&
|
203
|
-
h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filterLayerTitle) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", this._selectedLayerName)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick:
|
214
|
+
h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filterLayerTitle) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", this._selectedLayerName)), h("div", { slot: "content" }, 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 }))));
|
204
215
|
}
|
205
216
|
/**
|
206
217
|
* Close the filter modal
|
@@ -218,6 +229,28 @@ export class CrowdsourceReporter {
|
|
218
229
|
_toggleFilter() {
|
219
230
|
this._filterOpen = !this._filterOpen;
|
220
231
|
}
|
232
|
+
/**
|
233
|
+
* On sort option click update the sort field and sort order
|
234
|
+
* @param sortField sort field
|
235
|
+
* @param sortOrder sort order
|
236
|
+
*/
|
237
|
+
async sortOptionClick(sortField, sortOrder, sortOption) {
|
238
|
+
this._updatedSorting = {
|
239
|
+
field: sortField,
|
240
|
+
order: sortOrder
|
241
|
+
};
|
242
|
+
this._updatedSortOption = sortOption;
|
243
|
+
}
|
244
|
+
/**
|
245
|
+
* On sort button click, display the sorting options
|
246
|
+
* @returns Sort options list
|
247
|
+
*/
|
248
|
+
_toggleSort() {
|
249
|
+
const canSortByVotes = this.reportingOptions && this.reportingOptions[this._selectedLayerId] &&
|
250
|
+
this.reportingOptions[this._selectedLayerId].like && this.reportingOptions[this._selectedLayerId].likeField;
|
251
|
+
return (h("calcite-popover", { autoClose: true, label: "", offsetDistance: 0, placement: this.isMobile ? "leading-start" : "auto", pointerDisabled: true, referenceElement: "sort-popover" }, h("calcite-list", { "selection-mode": "single" }, h("calcite-list-item", { label: this._translations.sortNewest, onCalciteListItemSelect: () => { void this.sortOptionClick(this._selectedLayer.objectIdField, "desc", "sortNewest"); }, selected: this._updatedSortOption === "sortNewest", value: "sortNewest" }), h("calcite-list-item", { label: this._translations.sortOldest, onCalciteListItemSelect: () => { void this.sortOptionClick(this._selectedLayer.objectIdField, "asc", "sortOldest"); }, selected: this._updatedSortOption === "sortOldest", value: "sortOldest" }), canSortByVotes &&
|
252
|
+
h(Fragment, null, 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" }), 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" })))));
|
253
|
+
}
|
221
254
|
/**
|
222
255
|
* Reset the filter active prop
|
223
256
|
* @protected
|
@@ -229,7 +262,7 @@ export class CrowdsourceReporter {
|
|
229
262
|
void this._featureList.refresh();
|
230
263
|
}
|
231
264
|
/**
|
232
|
-
* Check if the layers definitionExpression has been modified
|
265
|
+
* Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
|
233
266
|
* @protected
|
234
267
|
*/
|
235
268
|
_handleFilterUpdate() {
|
@@ -247,7 +280,7 @@ export class CrowdsourceReporter {
|
|
247
280
|
getLayerListFlowItem() {
|
248
281
|
var _a;
|
249
282
|
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportsHeader }, this.isMobile && this.getActionToExpandCollapsePanel(), this._hasValidLayers && this.enableNewReports &&
|
250
|
-
h("calcite-button", { appearance: "solid", onClick: this.navigateToChooseCategory.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true, "full-width": true }, h("layer-list", { class: "height-full", layers: ((_a = this._editableLayerIds) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._editableLayerIds : this.
|
283
|
+
h("calcite-button", { appearance: "solid", onClick: this.navigateToChooseCategory.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true, "full-width": true }, 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 }))));
|
251
284
|
}
|
252
285
|
/**
|
253
286
|
* Get the layer list for creating a report
|
@@ -255,7 +288,7 @@ export class CrowdsourceReporter {
|
|
255
288
|
* @protected
|
256
289
|
*/
|
257
290
|
getChooseCategoryFlowItem() {
|
258
|
-
return (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(), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), h("layer-list", { class: "height-full", layers: this.
|
291
|
+
return (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(), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), h("layer-list", { class: "height-full", layers: this._layers, mapView: this.mapView, onLayerSelect: this.navigateToCreateFeature.bind(this), showFeatureCount: false, showNextIcon: false }))));
|
259
292
|
}
|
260
293
|
/**
|
261
294
|
* Get Feature create form of the selected feature layer
|
@@ -263,7 +296,7 @@ export class CrowdsourceReporter {
|
|
263
296
|
* @protected
|
264
297
|
*/
|
265
298
|
getFeatureCreateFlowItem() {
|
266
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.
|
299
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { slot: "message" }, this._translations.featureEditFormInfoMsg)), 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 }))));
|
267
300
|
}
|
268
301
|
/**
|
269
302
|
* Update the progress bar status when editor panel changes
|
@@ -291,7 +324,7 @@ export class CrowdsourceReporter {
|
|
291
324
|
* On back from create feature, call submit editor to destroy the Editor widget instance
|
292
325
|
* @protected
|
293
326
|
*/
|
294
|
-
|
327
|
+
onCreateFeatureSubmitButtonClick() {
|
295
328
|
if (this._createFeature) {
|
296
329
|
void this._createFeature.submit();
|
297
330
|
}
|
@@ -306,6 +339,26 @@ export class CrowdsourceReporter {
|
|
306
339
|
}
|
307
340
|
this.backFromSelectedPanel();
|
308
341
|
}
|
342
|
+
/**
|
343
|
+
* On back from create realated feature, call submit editor to destroy the Editor widget instance
|
344
|
+
* @protected
|
345
|
+
*/
|
346
|
+
onCreateRelatedFeatureSubmitButtonClick() {
|
347
|
+
if (this._createRelatedFeature) {
|
348
|
+
void this._createRelatedFeature.submit();
|
349
|
+
}
|
350
|
+
}
|
351
|
+
/**
|
352
|
+
* On back from create related feature, call close editor to destroy the Editor widget instance
|
353
|
+
* @protected
|
354
|
+
*/
|
355
|
+
backFromCreateRelatedFeaturePanel() {
|
356
|
+
if (this._createRelatedFeature) {
|
357
|
+
void this._createRelatedFeature.close();
|
358
|
+
this._showSubmitCancelButton = false;
|
359
|
+
}
|
360
|
+
this.backFromSelectedPanel();
|
361
|
+
}
|
309
362
|
/**
|
310
363
|
* On creating the feature is failed, show the error message
|
311
364
|
* @param evt Event which has feature failed message
|
@@ -323,6 +376,29 @@ export class CrowdsourceReporter {
|
|
323
376
|
this._reportSubmitted = true;
|
324
377
|
void this.navigateToHomePage();
|
325
378
|
}
|
379
|
+
/**
|
380
|
+
* On adding the is failed, show the error message
|
381
|
+
* @param evt Event which has comment failed message
|
382
|
+
* @protected
|
383
|
+
*/
|
384
|
+
addCommentFailed(evt) {
|
385
|
+
console.error(evt.detail);
|
386
|
+
this._addingCommentFailed = true;
|
387
|
+
}
|
388
|
+
/**
|
389
|
+
* On submit comment navigate to the feature list and refresh the feature details
|
390
|
+
* @protected
|
391
|
+
*/
|
392
|
+
async onCommentSubmitted() {
|
393
|
+
this._commentSubmitted = true;
|
394
|
+
this.backFromSelectedPanel();
|
395
|
+
this._showLoadingIndicator = true;
|
396
|
+
//update the feature details to reflect the like, dislike and comment values
|
397
|
+
await this._featureDetails.refresh(this._currentFeature);
|
398
|
+
setTimeout(() => {
|
399
|
+
this._showLoadingIndicator = false;
|
400
|
+
}, 300);
|
401
|
+
}
|
326
402
|
/**
|
327
403
|
* Navigates to layer-list
|
328
404
|
* @protected
|
@@ -334,7 +410,7 @@ export class CrowdsourceReporter {
|
|
334
410
|
if (this._layerList) {
|
335
411
|
void this._layerList.refresh();
|
336
412
|
}
|
337
|
-
this.setSelectedFeatures([]);
|
413
|
+
await this.setSelectedFeatures([]);
|
338
414
|
if (this._editableLayerIds.length === 1) {
|
339
415
|
await this._featureList.refresh();
|
340
416
|
this._flowItems = ["feature-list"];
|
@@ -350,7 +426,7 @@ export class CrowdsourceReporter {
|
|
350
426
|
*/
|
351
427
|
async navigateToCreateFeature(evt) {
|
352
428
|
if (evt.detail.layerId && evt.detail.layerName) {
|
353
|
-
this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
429
|
+
void this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
354
430
|
}
|
355
431
|
this._showSubmitCancelButton = false;
|
356
432
|
this._flowItems = [...this._flowItems, "feature-create"];
|
@@ -392,7 +468,13 @@ export class CrowdsourceReporter {
|
|
392
468
|
* @protected
|
393
469
|
*/
|
394
470
|
displayFeaturesList(evt) {
|
395
|
-
this.
|
471
|
+
this._updatedSorting = {
|
472
|
+
field: '',
|
473
|
+
order: 'desc'
|
474
|
+
};
|
475
|
+
this._filterActive = false;
|
476
|
+
this._updatedSortOption = "sortNewest";
|
477
|
+
void this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
396
478
|
this._flowItems = [...this._flowItems, "feature-list"];
|
397
479
|
}
|
398
480
|
/**
|
@@ -402,8 +484,11 @@ export class CrowdsourceReporter {
|
|
402
484
|
backFromSelectedPanel() {
|
403
485
|
this._updatedProgressBarStatus = 0.25;
|
404
486
|
const updatedFlowItems = [...this._flowItems];
|
487
|
+
// when coming back from comment details page don't clear the highlighted feature of map
|
488
|
+
if (updatedFlowItems[updatedFlowItems.length - 1] !== 'comment-details') {
|
489
|
+
this.clearHighlights();
|
490
|
+
}
|
405
491
|
updatedFlowItems.pop();
|
406
|
-
this.clearHighlights();
|
407
492
|
//Back to layer list, and return as the flowItems will be reset in navigateToHomePage
|
408
493
|
if (updatedFlowItems.length === 1 && updatedFlowItems[0] === 'layer-list') {
|
409
494
|
void this.navigateToHomePage();
|
@@ -424,15 +509,35 @@ export class CrowdsourceReporter {
|
|
424
509
|
* @param evt Event which has details of selected feature
|
425
510
|
*/
|
426
511
|
async onFeatureSelectFromList(evt) {
|
427
|
-
this.
|
512
|
+
this._showLoadingIndicator = true;
|
513
|
+
await this.setSelectedFeatures([evt.detail]);
|
428
514
|
this._flowItems = [...this._flowItems, "feature-details"];
|
429
515
|
}
|
516
|
+
/**
|
517
|
+
* Gets related table id of the selected feature's layer
|
518
|
+
* @protected
|
519
|
+
*/
|
520
|
+
async getRelatedTable() {
|
521
|
+
const relatedTableIdFromRelnship = this._currentFeature.layer.relationships[0].relatedTableId;
|
522
|
+
const allTables = await getAllTables(this.mapView);
|
523
|
+
const relatedTable = allTables.filter((table) => relatedTableIdFromRelnship === table.layerId);
|
524
|
+
this._relatedTable = relatedTable[0];
|
525
|
+
}
|
430
526
|
/**
|
431
527
|
* Show loading indicator while updating the feature details component
|
432
528
|
* @param isLoading is feature detail component loading
|
433
529
|
*/
|
434
530
|
async updatingFeatureDetails(isLoading) {
|
435
|
-
this.
|
531
|
+
this._showLoadingIndicator = isLoading;
|
532
|
+
}
|
533
|
+
/**
|
534
|
+
* When comment is selected from list store that and show comment details
|
535
|
+
* @param evt Event which has details of selected feature
|
536
|
+
* @protected
|
537
|
+
*/
|
538
|
+
async onCommentSelectFromList(evt) {
|
539
|
+
this._selectedRelatedFeature = [evt.detail];
|
540
|
+
this._flowItems = [...this._flowItems, "comment-details"];
|
436
541
|
}
|
437
542
|
/**
|
438
543
|
* Get feature list of the selected feature layer
|
@@ -444,16 +549,18 @@ export class CrowdsourceReporter {
|
|
444
549
|
getFeatureListFlowItem(layerId, layerName) {
|
445
550
|
var _a;
|
446
551
|
const layerExpressions = (_a = this.layerExpressions) === null || _a === void 0 ? void 0 : _a.filter((exp) => exp.id === this._selectedLayerId);
|
447
|
-
const showFilterIcon = layerExpressions.length > 0;
|
448
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, showFilterIcon && h("calcite-action", { icon: "filter", indicator: this._filterActive, onClick: this._toggleFilter.bind(this), slot:
|
449
|
-
h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true }, 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 }))));
|
552
|
+
const showFilterIcon = (layerExpressions === null || layerExpressions === void 0 ? void 0 : layerExpressions.length) > 0;
|
553
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this._toggleSort(), h("calcite-action", { icon: "sort-ascending-arrow", id: "sort-popover", slot: "header-actions-end", text: this._translations.sort, title: this._translations.sort }), showFilterIcon && 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 &&
|
554
|
+
h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true }, 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 }))));
|
450
555
|
}
|
451
556
|
/**
|
452
557
|
* Returns the calcite-flow item for feature details
|
453
558
|
* @returns Node
|
454
559
|
*/
|
455
560
|
getFeatureDetailsFlowItem() {
|
456
|
-
|
561
|
+
const showCommentBtn = this.reportingOptions[this._currentFeature.layer.id].comment && this._currentFeature.layer.relationships.length > 0;
|
562
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), 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 }), h("calcite-panel", null, this._selectedFeature.length > 1 && this.getFeaturesPagination(), 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 &&
|
563
|
+
h("calcite-button", { appearance: "solid", onClick: () => this._flowItems = [...this._flowItems, "add-comment"], slot: "footer", width: "full" }, this._translations.comment))));
|
457
564
|
}
|
458
565
|
/**
|
459
566
|
* Returns the pagination for the multiple features
|
@@ -463,27 +570,47 @@ export class CrowdsourceReporter {
|
|
463
570
|
getFeaturesPagination() {
|
464
571
|
return (h("div", { class: "feature-pagination", slot: "header-actions-start" }, h("div", null, h("calcite-button", { appearance: 'transparent', disabled: false, iconStart: "chevron-left", id: "solutions-back", onClick: () => void this._featureDetails.back(), scale: "s", width: "full" }), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, h("span", null, this._translations.back))), h("calcite-button", { appearance: 'transparent', class: 'pagination-action', onClick: () => void this._featureDetails.toggleListView(), scale: "s" }, h("span", { class: "pagination-count" }, this._getCount())), h("div", null, h("calcite-button", { appearance: "transparent", disabled: false, iconStart: "chevron-right", id: "solutions-next", onClick: () => void this._featureDetails.next(), scale: "s", width: "full" }), h("calcite-tooltip", { placement: "top", "reference-element": "solutions-next" }, h("span", null, this._translations.next)))));
|
465
572
|
}
|
573
|
+
/**
|
574
|
+
* Returns the calcite-flow item for comment details
|
575
|
+
* @returns Node
|
576
|
+
*/
|
577
|
+
getCommentDetailsFlowItem() {
|
578
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, zoomAndScrollToSelected: false }))));
|
579
|
+
}
|
580
|
+
/**
|
581
|
+
* Returns the calcite-flow item for add comment
|
582
|
+
* @returns Node
|
583
|
+
*/
|
584
|
+
getAddCommentFlowItem() {
|
585
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromCreateRelatedFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("div", { class: "width-full", slot: "footer" }, this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateRelatedFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateRelatedFeaturePanel.bind(this), width: "full" }, this._translations.cancel))), h("calcite-panel", null, 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 }))));
|
586
|
+
}
|
466
587
|
/**
|
467
588
|
* Sets the selected features and updates the first feature as the current selected feature
|
468
589
|
* @param features Graphics array of the features selected
|
469
590
|
*/
|
470
|
-
setSelectedFeatures(features) {
|
591
|
+
async setSelectedFeatures(features) {
|
471
592
|
this._selectedFeature = features;
|
472
|
-
this.setCurrentFeature(this._selectedFeature.length ? this._selectedFeature[0] : null);
|
593
|
+
await this.setCurrentFeature(this._selectedFeature.length ? this._selectedFeature[0] : null);
|
473
594
|
}
|
474
595
|
/**
|
475
596
|
* Set the object id of the current selected feature, and also updates the current selected layer details
|
476
597
|
* @param selectedFeature Graphic currently shown in feature details
|
477
598
|
*/
|
478
|
-
setCurrentFeature(selectedFeature) {
|
599
|
+
async setCurrentFeature(selectedFeature) {
|
600
|
+
this._currentFeature = selectedFeature;
|
479
601
|
if (selectedFeature && selectedFeature.layer) {
|
480
602
|
const layer = selectedFeature.layer;
|
481
|
-
this.setSelectedLayer(layer.id, layer.title);
|
603
|
+
void this.setSelectedLayer(layer.id, layer.title);
|
482
604
|
this._currentFeatureId = selectedFeature.attributes[layer.objectIdField];
|
605
|
+
// check if comments are configured and relationship is present then only get the related table
|
606
|
+
const isCommentTablePresent = this.reportingOptions[selectedFeature.layer.id].comment && selectedFeature.layer.relationships.length > 0;
|
607
|
+
if (isCommentTablePresent) {
|
608
|
+
await this.getRelatedTable();
|
609
|
+
}
|
483
610
|
}
|
484
611
|
else {
|
485
612
|
if (this._editableLayerIds.length > 1) {
|
486
|
-
this.setSelectedLayer('', '');
|
613
|
+
void this.setSelectedLayer('', '');
|
487
614
|
}
|
488
615
|
this._currentFeatureId = '';
|
489
616
|
}
|
@@ -587,7 +714,7 @@ export class CrowdsourceReporter {
|
|
587
714
|
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
588
715
|
if (reportingLayerGraphics.length > 0) {
|
589
716
|
//update the selectedFeature
|
590
|
-
this.setSelectedFeatures(reportingLayerGraphics);
|
717
|
+
await this.setSelectedFeatures(reportingLayerGraphics);
|
591
718
|
//if featureDetails not open then add it to the list else just reInit flowItems which will update details with newly selected features
|
592
719
|
// eslint-disable-next-line unicorn/prefer-ternary
|
593
720
|
if (this._flowItems.length && this._flowItems[this._flowItems.length - 1] !== "feature-details") {
|
@@ -616,7 +743,7 @@ export class CrowdsourceReporter {
|
|
616
743
|
* @protected
|
617
744
|
*/
|
618
745
|
_getCount() {
|
619
|
-
const index = (this.
|
746
|
+
const index = (this._selectedFeatureIndex + 1).toString();
|
620
747
|
const total = this._selectedFeature.length.toString();
|
621
748
|
return this._translations.indexOfTotal
|
622
749
|
.replace("{{index}}", index)
|
@@ -639,7 +766,7 @@ export class CrowdsourceReporter {
|
|
639
766
|
*/
|
640
767
|
reduceToConfiguredLayers(hash) {
|
641
768
|
var _a;
|
642
|
-
const configuredLayers = ((_a = this.
|
769
|
+
const configuredLayers = ((_a = this._layers) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._layers : [];
|
643
770
|
return Object.keys(hash).reduce((prev, cur) => {
|
644
771
|
let showLayer = hash[cur].supportsAdd;
|
645
772
|
if ((configuredLayers === null || configuredLayers === void 0 ? void 0 : configuredLayers.length) > 0) {
|
@@ -675,7 +802,7 @@ export class CrowdsourceReporter {
|
|
675
802
|
detail: this._editableLayerIds
|
676
803
|
};
|
677
804
|
await this.layerListLoaded(evt);
|
678
|
-
this.setSelectedLayer(this._validLayers[0].id, this._validLayers[0].title);
|
805
|
+
void this.setSelectedLayer(this._validLayers[0].id, this._validLayers[0].title);
|
679
806
|
this._flowItems = ['feature-list'];
|
680
807
|
}
|
681
808
|
/**
|
@@ -751,7 +878,7 @@ export class CrowdsourceReporter {
|
|
751
878
|
}
|
752
879
|
static get properties() {
|
753
880
|
return {
|
754
|
-
"
|
881
|
+
"center": {
|
755
882
|
"type": "string",
|
756
883
|
"mutable": false,
|
757
884
|
"complexType": {
|
@@ -763,26 +890,61 @@ export class CrowdsourceReporter {
|
|
763
890
|
"optional": false,
|
764
891
|
"docs": {
|
765
892
|
"tags": [],
|
766
|
-
"text": "string:
|
893
|
+
"text": "string: Semicolon delimited numbers that will be used as the maps center point from URL params"
|
767
894
|
},
|
768
|
-
"attribute": "
|
895
|
+
"attribute": "center",
|
769
896
|
"reflect": false
|
770
897
|
},
|
771
|
-
"
|
772
|
-
"type": "
|
898
|
+
"coverPageEnabled": {
|
899
|
+
"type": "string",
|
773
900
|
"mutable": false,
|
774
901
|
"complexType": {
|
775
|
-
"original": "
|
776
|
-
"resolved": "
|
902
|
+
"original": "string",
|
903
|
+
"resolved": "string",
|
777
904
|
"references": {}
|
778
905
|
},
|
779
906
|
"required": false,
|
780
907
|
"optional": false,
|
781
908
|
"docs": {
|
782
909
|
"tags": [],
|
783
|
-
"text": "boolean: When true the application will be in
|
910
|
+
"text": "boolean: When true a cover page has been enabled in the consuming application.\r\nAlso when true a floating button will be shown in the lower right of the window that\r\nwill emit an event when clicked that the consuming application can respond to that will open the cover page."
|
784
911
|
},
|
785
|
-
"attribute": "
|
912
|
+
"attribute": "cover-page-enabled",
|
913
|
+
"reflect": false
|
914
|
+
},
|
915
|
+
"defaultWebmap": {
|
916
|
+
"type": "string",
|
917
|
+
"mutable": false,
|
918
|
+
"complexType": {
|
919
|
+
"original": "string",
|
920
|
+
"resolved": "string",
|
921
|
+
"references": {}
|
922
|
+
},
|
923
|
+
"required": false,
|
924
|
+
"optional": false,
|
925
|
+
"docs": {
|
926
|
+
"tags": [],
|
927
|
+
"text": "string: Item ID of the web map that should be selected by default"
|
928
|
+
},
|
929
|
+
"attribute": "default-webmap",
|
930
|
+
"reflect": false,
|
931
|
+
"defaultValue": "\"\""
|
932
|
+
},
|
933
|
+
"description": {
|
934
|
+
"type": "string",
|
935
|
+
"mutable": false,
|
936
|
+
"complexType": {
|
937
|
+
"original": "string",
|
938
|
+
"resolved": "string",
|
939
|
+
"references": {}
|
940
|
+
},
|
941
|
+
"required": false,
|
942
|
+
"optional": false,
|
943
|
+
"docs": {
|
944
|
+
"tags": [],
|
945
|
+
"text": "string: The text that will display under the title on the landing page"
|
946
|
+
},
|
947
|
+
"attribute": "description",
|
786
948
|
"reflect": false
|
787
949
|
},
|
788
950
|
"enableAnonymousAccess": {
|
@@ -836,6 +998,24 @@ export class CrowdsourceReporter {
|
|
836
998
|
"attribute": "enable-comments",
|
837
999
|
"reflect": false
|
838
1000
|
},
|
1001
|
+
"enableHome": {
|
1002
|
+
"type": "boolean",
|
1003
|
+
"mutable": false,
|
1004
|
+
"complexType": {
|
1005
|
+
"original": "boolean",
|
1006
|
+
"resolved": "boolean",
|
1007
|
+
"references": {}
|
1008
|
+
},
|
1009
|
+
"required": false,
|
1010
|
+
"optional": false,
|
1011
|
+
"docs": {
|
1012
|
+
"tags": [],
|
1013
|
+
"text": "boolean: when true the home widget will be available"
|
1014
|
+
},
|
1015
|
+
"attribute": "enable-home",
|
1016
|
+
"reflect": false,
|
1017
|
+
"defaultValue": "true"
|
1018
|
+
},
|
839
1019
|
"enableLogin": {
|
840
1020
|
"type": "boolean",
|
841
1021
|
"mutable": false,
|
@@ -870,33 +1050,70 @@ export class CrowdsourceReporter {
|
|
870
1050
|
"attribute": "enable-new-reports",
|
871
1051
|
"reflect": false
|
872
1052
|
},
|
873
|
-
"
|
874
|
-
"type": "
|
1053
|
+
"enableSearch": {
|
1054
|
+
"type": "boolean",
|
875
1055
|
"mutable": false,
|
876
1056
|
"complexType": {
|
877
|
-
"original": "
|
878
|
-
"resolved": "
|
1057
|
+
"original": "boolean",
|
1058
|
+
"resolved": "boolean",
|
879
1059
|
"references": {}
|
880
1060
|
},
|
881
1061
|
"required": false,
|
882
1062
|
"optional": false,
|
883
1063
|
"docs": {
|
884
1064
|
"tags": [],
|
885
|
-
"text": "
|
1065
|
+
"text": "boolean: when true the search widget will be available"
|
886
1066
|
},
|
887
|
-
"attribute": "
|
1067
|
+
"attribute": "enable-search",
|
1068
|
+
"reflect": false,
|
1069
|
+
"defaultValue": "true"
|
1070
|
+
},
|
1071
|
+
"enableZoom": {
|
1072
|
+
"type": "boolean",
|
1073
|
+
"mutable": false,
|
1074
|
+
"complexType": {
|
1075
|
+
"original": "boolean",
|
1076
|
+
"resolved": "boolean",
|
1077
|
+
"references": {}
|
1078
|
+
},
|
1079
|
+
"required": false,
|
1080
|
+
"optional": false,
|
1081
|
+
"docs": {
|
1082
|
+
"tags": [],
|
1083
|
+
"text": "boolean: when true the zoom widget will be available"
|
1084
|
+
},
|
1085
|
+
"attribute": "enable-zoom",
|
1086
|
+
"reflect": false,
|
1087
|
+
"defaultValue": "true"
|
1088
|
+
},
|
1089
|
+
"isMobile": {
|
1090
|
+
"type": "boolean",
|
1091
|
+
"mutable": false,
|
1092
|
+
"complexType": {
|
1093
|
+
"original": "boolean",
|
1094
|
+
"resolved": "boolean",
|
1095
|
+
"references": {}
|
1096
|
+
},
|
1097
|
+
"required": false,
|
1098
|
+
"optional": false,
|
1099
|
+
"docs": {
|
1100
|
+
"tags": [],
|
1101
|
+
"text": "boolean: When true the application will be in mobile mode, controls the mobile or desktop view"
|
1102
|
+
},
|
1103
|
+
"attribute": "is-mobile",
|
888
1104
|
"reflect": false
|
889
1105
|
},
|
890
|
-
"
|
1106
|
+
"layerExpressions": {
|
891
1107
|
"type": "unknown",
|
892
1108
|
"mutable": false,
|
893
1109
|
"complexType": {
|
894
|
-
"original": "
|
895
|
-
"resolved": "
|
1110
|
+
"original": "ILayerExpression[]",
|
1111
|
+
"resolved": "ILayerExpression[]",
|
896
1112
|
"references": {
|
897
|
-
"
|
898
|
-
"location": "
|
899
|
-
"
|
1113
|
+
"ILayerExpression": {
|
1114
|
+
"location": "import",
|
1115
|
+
"path": "../../utils/interfaces",
|
1116
|
+
"id": "src/utils/interfaces.ts::ILayerExpression"
|
900
1117
|
}
|
901
1118
|
}
|
902
1119
|
},
|
@@ -904,8 +1121,9 @@ export class CrowdsourceReporter {
|
|
904
1121
|
"optional": false,
|
905
1122
|
"docs": {
|
906
1123
|
"tags": [],
|
907
|
-
"text": "
|
908
|
-
}
|
1124
|
+
"text": "ILayerExpression[]: Array of layer expressions for layers (filter configuration)"
|
1125
|
+
},
|
1126
|
+
"defaultValue": "[]"
|
909
1127
|
},
|
910
1128
|
"layerId": {
|
911
1129
|
"type": "string",
|
@@ -924,7 +1142,7 @@ export class CrowdsourceReporter {
|
|
924
1142
|
"attribute": "layer-id",
|
925
1143
|
"reflect": false
|
926
1144
|
},
|
927
|
-
"
|
1145
|
+
"level": {
|
928
1146
|
"type": "string",
|
929
1147
|
"mutable": false,
|
930
1148
|
"complexType": {
|
@@ -936,12 +1154,12 @@ export class CrowdsourceReporter {
|
|
936
1154
|
"optional": false,
|
937
1155
|
"docs": {
|
938
1156
|
"tags": [],
|
939
|
-
"text": "string:
|
1157
|
+
"text": "string: Id of the zoom level from URL params"
|
940
1158
|
},
|
941
|
-
"attribute": "
|
1159
|
+
"attribute": "level",
|
942
1160
|
"reflect": false
|
943
1161
|
},
|
944
|
-
"
|
1162
|
+
"loginTitle": {
|
945
1163
|
"type": "string",
|
946
1164
|
"mutable": false,
|
947
1165
|
"complexType": {
|
@@ -953,29 +1171,54 @@ export class CrowdsourceReporter {
|
|
953
1171
|
"optional": false,
|
954
1172
|
"docs": {
|
955
1173
|
"tags": [],
|
956
|
-
"text": "string:
|
1174
|
+
"text": "string: The text that will display at the top of the landing page"
|
957
1175
|
},
|
958
|
-
"attribute": "
|
1176
|
+
"attribute": "login-title",
|
959
1177
|
"reflect": false
|
960
1178
|
},
|
961
|
-
"
|
962
|
-
"type": "
|
1179
|
+
"mapInfos": {
|
1180
|
+
"type": "unknown",
|
963
1181
|
"mutable": false,
|
964
1182
|
"complexType": {
|
965
|
-
"original": "
|
966
|
-
"resolved": "
|
967
|
-
"references": {
|
1183
|
+
"original": "IMapInfo[]",
|
1184
|
+
"resolved": "IMapInfo[]",
|
1185
|
+
"references": {
|
1186
|
+
"IMapInfo": {
|
1187
|
+
"location": "import",
|
1188
|
+
"path": "../../utils/interfaces",
|
1189
|
+
"id": "src/utils/interfaces.ts::IMapInfo"
|
1190
|
+
}
|
1191
|
+
}
|
968
1192
|
},
|
969
1193
|
"required": false,
|
970
1194
|
"optional": false,
|
971
1195
|
"docs": {
|
972
1196
|
"tags": [],
|
973
|
-
"text": "
|
1197
|
+
"text": "IMapInfo[]: array of map infos (name and id)"
|
974
1198
|
},
|
975
|
-
"
|
976
|
-
"reflect": false
|
1199
|
+
"defaultValue": "[]"
|
977
1200
|
},
|
978
|
-
"
|
1201
|
+
"mapView": {
|
1202
|
+
"type": "unknown",
|
1203
|
+
"mutable": false,
|
1204
|
+
"complexType": {
|
1205
|
+
"original": "__esri.MapView",
|
1206
|
+
"resolved": "MapView",
|
1207
|
+
"references": {
|
1208
|
+
"___esri": {
|
1209
|
+
"location": "global",
|
1210
|
+
"id": "global::___esri"
|
1211
|
+
}
|
1212
|
+
}
|
1213
|
+
},
|
1214
|
+
"required": false,
|
1215
|
+
"optional": false,
|
1216
|
+
"docs": {
|
1217
|
+
"tags": [],
|
1218
|
+
"text": "esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html"
|
1219
|
+
}
|
1220
|
+
},
|
1221
|
+
"objectId": {
|
979
1222
|
"type": "string",
|
980
1223
|
"mutable": false,
|
981
1224
|
"complexType": {
|
@@ -987,12 +1230,12 @@ export class CrowdsourceReporter {
|
|
987
1230
|
"optional": false,
|
988
1231
|
"docs": {
|
989
1232
|
"tags": [],
|
990
|
-
"text": "string:
|
1233
|
+
"text": "string: Object id of the feature from URL params"
|
991
1234
|
},
|
992
|
-
"attribute": "
|
1235
|
+
"attribute": "object-id",
|
993
1236
|
"reflect": false
|
994
1237
|
},
|
995
|
-
"
|
1238
|
+
"reportButtonText": {
|
996
1239
|
"type": "string",
|
997
1240
|
"mutable": false,
|
998
1241
|
"complexType": {
|
@@ -1004,9 +1247,9 @@ export class CrowdsourceReporter {
|
|
1004
1247
|
"optional": false,
|
1005
1248
|
"docs": {
|
1006
1249
|
"tags": [],
|
1007
|
-
"text": "string: The word(s) to display in the reports
|
1250
|
+
"text": "string: The word(s) to display in the reports submit button"
|
1008
1251
|
},
|
1009
|
-
"attribute": "
|
1252
|
+
"attribute": "report-button-text",
|
1010
1253
|
"reflect": false
|
1011
1254
|
},
|
1012
1255
|
"reportingOptions": {
|
@@ -1030,6 +1273,23 @@ export class CrowdsourceReporter {
|
|
1030
1273
|
"text": "IReportingOptions: Key options for reporting"
|
1031
1274
|
}
|
1032
1275
|
},
|
1276
|
+
"reportsHeader": {
|
1277
|
+
"type": "string",
|
1278
|
+
"mutable": false,
|
1279
|
+
"complexType": {
|
1280
|
+
"original": "string",
|
1281
|
+
"resolved": "string",
|
1282
|
+
"references": {}
|
1283
|
+
},
|
1284
|
+
"required": false,
|
1285
|
+
"optional": false,
|
1286
|
+
"docs": {
|
1287
|
+
"tags": [],
|
1288
|
+
"text": "string: The word(s) to display in the reports header"
|
1289
|
+
},
|
1290
|
+
"attribute": "reports-header",
|
1291
|
+
"reflect": false
|
1292
|
+
},
|
1033
1293
|
"reportSubmittedMessage": {
|
1034
1294
|
"type": "string",
|
1035
1295
|
"mutable": false,
|
@@ -1085,82 +1345,6 @@ export class CrowdsourceReporter {
|
|
1085
1345
|
"attribute": "show-comments",
|
1086
1346
|
"reflect": false
|
1087
1347
|
},
|
1088
|
-
"defaultWebmap": {
|
1089
|
-
"type": "string",
|
1090
|
-
"mutable": false,
|
1091
|
-
"complexType": {
|
1092
|
-
"original": "string",
|
1093
|
-
"resolved": "string",
|
1094
|
-
"references": {}
|
1095
|
-
},
|
1096
|
-
"required": false,
|
1097
|
-
"optional": false,
|
1098
|
-
"docs": {
|
1099
|
-
"tags": [],
|
1100
|
-
"text": "string: Item ID of the web map that should be selected by default"
|
1101
|
-
},
|
1102
|
-
"attribute": "default-webmap",
|
1103
|
-
"reflect": false,
|
1104
|
-
"defaultValue": "\"\""
|
1105
|
-
},
|
1106
|
-
"enableSearch": {
|
1107
|
-
"type": "boolean",
|
1108
|
-
"mutable": false,
|
1109
|
-
"complexType": {
|
1110
|
-
"original": "boolean",
|
1111
|
-
"resolved": "boolean",
|
1112
|
-
"references": {}
|
1113
|
-
},
|
1114
|
-
"required": false,
|
1115
|
-
"optional": false,
|
1116
|
-
"docs": {
|
1117
|
-
"tags": [],
|
1118
|
-
"text": "boolean: when true the search widget will be available"
|
1119
|
-
},
|
1120
|
-
"attribute": "enable-search",
|
1121
|
-
"reflect": false,
|
1122
|
-
"defaultValue": "true"
|
1123
|
-
},
|
1124
|
-
"enableHome": {
|
1125
|
-
"type": "boolean",
|
1126
|
-
"mutable": false,
|
1127
|
-
"complexType": {
|
1128
|
-
"original": "boolean",
|
1129
|
-
"resolved": "boolean",
|
1130
|
-
"references": {}
|
1131
|
-
},
|
1132
|
-
"required": false,
|
1133
|
-
"optional": false,
|
1134
|
-
"docs": {
|
1135
|
-
"tags": [],
|
1136
|
-
"text": "boolean: when true the home widget will be available"
|
1137
|
-
},
|
1138
|
-
"attribute": "enable-home",
|
1139
|
-
"reflect": false,
|
1140
|
-
"defaultValue": "true"
|
1141
|
-
},
|
1142
|
-
"mapInfos": {
|
1143
|
-
"type": "unknown",
|
1144
|
-
"mutable": false,
|
1145
|
-
"complexType": {
|
1146
|
-
"original": "IMapInfo[]",
|
1147
|
-
"resolved": "IMapInfo[]",
|
1148
|
-
"references": {
|
1149
|
-
"IMapInfo": {
|
1150
|
-
"location": "import",
|
1151
|
-
"path": "../../utils/interfaces",
|
1152
|
-
"id": "src/utils/interfaces.ts::IMapInfo"
|
1153
|
-
}
|
1154
|
-
}
|
1155
|
-
},
|
1156
|
-
"required": false,
|
1157
|
-
"optional": false,
|
1158
|
-
"docs": {
|
1159
|
-
"tags": [],
|
1160
|
-
"text": "IMapInfo[]: array of map infos (name and id)"
|
1161
|
-
},
|
1162
|
-
"defaultValue": "[]"
|
1163
|
-
},
|
1164
1348
|
"theme": {
|
1165
1349
|
"type": "string",
|
1166
1350
|
"mutable": false,
|
@@ -1185,24 +1369,6 @@ export class CrowdsourceReporter {
|
|
1185
1369
|
"reflect": false,
|
1186
1370
|
"defaultValue": "\"light\""
|
1187
1371
|
},
|
1188
|
-
"enableZoom": {
|
1189
|
-
"type": "boolean",
|
1190
|
-
"mutable": false,
|
1191
|
-
"complexType": {
|
1192
|
-
"original": "boolean",
|
1193
|
-
"resolved": "boolean",
|
1194
|
-
"references": {}
|
1195
|
-
},
|
1196
|
-
"required": false,
|
1197
|
-
"optional": false,
|
1198
|
-
"docs": {
|
1199
|
-
"tags": [],
|
1200
|
-
"text": "boolean: when true the zoom widget will be available"
|
1201
|
-
},
|
1202
|
-
"attribute": "enable-zoom",
|
1203
|
-
"reflect": false,
|
1204
|
-
"defaultValue": "true"
|
1205
|
-
},
|
1206
1372
|
"zoomToScale": {
|
1207
1373
|
"type": "number",
|
1208
1374
|
"mutable": false,
|
@@ -1219,46 +1385,29 @@ export class CrowdsourceReporter {
|
|
1219
1385
|
},
|
1220
1386
|
"attribute": "zoom-to-scale",
|
1221
1387
|
"reflect": false
|
1222
|
-
},
|
1223
|
-
"layerExpressions": {
|
1224
|
-
"type": "unknown",
|
1225
|
-
"mutable": false,
|
1226
|
-
"complexType": {
|
1227
|
-
"original": "ILayerExpression[]",
|
1228
|
-
"resolved": "ILayerExpression[]",
|
1229
|
-
"references": {
|
1230
|
-
"ILayerExpression": {
|
1231
|
-
"location": "import",
|
1232
|
-
"path": "../../utils/interfaces",
|
1233
|
-
"id": "src/utils/interfaces.ts::ILayerExpression"
|
1234
|
-
}
|
1235
|
-
}
|
1236
|
-
},
|
1237
|
-
"required": false,
|
1238
|
-
"optional": false,
|
1239
|
-
"docs": {
|
1240
|
-
"tags": [],
|
1241
|
-
"text": "ILayerExpression[]: Array of layer expressions for layers (filter configuration)"
|
1242
|
-
},
|
1243
|
-
"defaultValue": "[]"
|
1244
1388
|
}
|
1245
1389
|
};
|
1246
1390
|
}
|
1247
1391
|
static get states() {
|
1248
1392
|
return {
|
1249
|
-
"
|
1393
|
+
"_featureCreationFailedErrorMsg": {},
|
1394
|
+
"_filterActive": {},
|
1395
|
+
"_filterOpen": {},
|
1250
1396
|
"_flowItems": {},
|
1251
|
-
"_sidePanelCollapsed": {},
|
1252
|
-
"_translations": {},
|
1253
1397
|
"_hasValidLayers": {},
|
1254
|
-
"
|
1398
|
+
"_loadingFeatureDetails": {},
|
1399
|
+
"_mapInfo": {},
|
1255
1400
|
"_reportSubmitted": {},
|
1401
|
+
"_selectedLayerName": {},
|
1256
1402
|
"_showSubmitCancelButton": {},
|
1257
|
-
"
|
1258
|
-
"
|
1403
|
+
"_showLoadingIndicator": {},
|
1404
|
+
"_sidePanelCollapsed": {},
|
1405
|
+
"_translations": {},
|
1259
1406
|
"_updatedProgressBarStatus": {},
|
1260
|
-
"
|
1261
|
-
"
|
1407
|
+
"_updatedSorting": {},
|
1408
|
+
"_updatedSortOption": {},
|
1409
|
+
"_commentSubmitted": {},
|
1410
|
+
"_addingCommentFailed": {}
|
1262
1411
|
};
|
1263
1412
|
}
|
1264
1413
|
static get events() {
|