@esri/solutions-components 0.8.14 → 0.8.16
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 +367 -218
- 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-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-4830649e.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
@@ -874,7 +874,7 @@ const DeductCalculator = /*@__PURE__*/ proxyCustomElement(class DeductCalculator
|
|
874
874
|
* Renders the component.
|
875
875
|
*/
|
876
876
|
render() {
|
877
|
-
return (h(Host, { key: '
|
877
|
+
return (h(Host, { key: '68401afdbb18147910d55f13cae4c019bda9f020' }, h("div", { key: '88b89c1a9b260024f28315574539f47bd0bd0a3a', class: "label-display" }, h("calcite-label", { key: '8e81c5e65fe272c547addd3915ccc6a7da48a5b8', class: "label-display" }, "Density %", this._getDensityInput()), h("calcite-label", { key: 'f549369baa3b681922c07b2c91a626664e98309f', class: "label-display" }, "Type", this._getTypeInput()), h("calcite-label", { key: 'e850fbf5d9728f969c289946c3518a30316e88b9', class: "label-display" }, "Severity", this._getSeverityInput())), h("div", { key: '2485c0b0f0c2681b1af7cf55478ec34efb734a46' }, this._getCalculateInput())));
|
878
878
|
}
|
879
879
|
//--------------------------------------------------------------------------
|
880
880
|
//
|
@@ -71,7 +71,7 @@ const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends
|
|
71
71
|
* Renders the component.
|
72
72
|
*/
|
73
73
|
render() {
|
74
|
-
return (h(Host, { key: '
|
74
|
+
return (h(Host, { key: '09821225eb29ad6eef021f81977cabc3b7852167' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage()));
|
75
75
|
}
|
76
76
|
/**
|
77
77
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -2195,7 +2195,7 @@ class PDFLabels {
|
|
2195
2195
|
* @param initialImageDataUrl Data URL of image for first page
|
2196
2196
|
*/
|
2197
2197
|
function exportPDF(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
|
2198
|
-
downloadPDFFile(filename, labels, labelPageDescription, title, initialImageDataUrl);
|
2198
|
+
void downloadPDFFile(filename, labels, labelPageDescription, title, initialImageDataUrl);
|
2199
2199
|
}
|
2200
2200
|
//#endregion
|
2201
2201
|
//#region Private functions
|
@@ -2208,42 +2208,38 @@ function exportPDF(filename, labels, labelPageDescription, title = "", initialIm
|
|
2208
2208
|
* @param title Title for each page
|
2209
2209
|
* @param initialImageDataUrl Data URL of image for first page
|
2210
2210
|
*/
|
2211
|
-
function downloadPDFFile(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
|
2211
|
+
async function downloadPDFFile(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
|
2212
2212
|
const pdfLib = new PDFCreator_jsPDF();
|
2213
|
-
pdfLib.initialize({
|
2213
|
+
await pdfLib.initialize({
|
2214
2214
|
pageType: "ANSI_A"
|
2215
2215
|
}, getAssetPath(`../assets/arcgis-pdf-creator/`), "en", filename // filename without ".pdf"
|
2216
|
-
)
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2227
|
-
|
2228
|
-
|
2229
|
-
|
2230
|
-
width: pageSize.width - pageProperties.leftMargin - pageProperties.rightMargin,
|
2231
|
-
height: pageSize.height - pageProperties.topMargin - pageProperties.bottomMargin
|
2232
|
-
});
|
2233
|
-
if (title) {
|
2234
|
-
labeller.drawSupplementalText(title, 0, -0.1);
|
2235
|
-
}
|
2236
|
-
if (labels.length > 0) {
|
2237
|
-
pdfLib.addPage();
|
2238
|
-
++startingPageNum;
|
2239
|
-
}
|
2240
|
-
}
|
2241
|
-
// Add the labels to the PDF
|
2242
|
-
await labeller.addLabelsToDoc(labels, labelSpec, startingPageNum, title // heading
|
2243
|
-
);
|
2244
|
-
pdfLib.save();
|
2216
|
+
);
|
2217
|
+
const labeller = new PDFLabels();
|
2218
|
+
await labeller.initialize(pdfLib);
|
2219
|
+
const labelSpec = labelPageDescription.labelSpec;
|
2220
|
+
let startingPageNum = 1;
|
2221
|
+
// Add the screenshot to the PDF
|
2222
|
+
if (initialImageDataUrl) {
|
2223
|
+
const pageProperties = labelSpec.pageProperties;
|
2224
|
+
const pageSize = PDFCreator.getPageSize(pageProperties.pageType);
|
2225
|
+
pdfLib.drawImage(initialImageDataUrl, {
|
2226
|
+
x: pageProperties.leftMargin,
|
2227
|
+
y: pageProperties.topMargin,
|
2228
|
+
width: pageSize.width - pageProperties.leftMargin - pageProperties.rightMargin,
|
2229
|
+
height: pageSize.height - pageProperties.topMargin - pageProperties.bottomMargin
|
2245
2230
|
});
|
2246
|
-
|
2231
|
+
if (title) {
|
2232
|
+
labeller.drawSupplementalText(title, 0, -0.1);
|
2233
|
+
}
|
2234
|
+
if (labels.length > 0) {
|
2235
|
+
pdfLib.addPage();
|
2236
|
+
++startingPageNum;
|
2237
|
+
}
|
2238
|
+
}
|
2239
|
+
// Add the labels to the PDF
|
2240
|
+
await labeller.addLabelsToDoc(labels, labelSpec, startingPageNum, title // heading
|
2241
|
+
);
|
2242
|
+
pdfLib.save();
|
2247
2243
|
}
|
2248
2244
|
//#endregion
|
2249
2245
|
|
@@ -108,7 +108,7 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
108
108
|
!this.graphics[0].layer.editingEnabled : true;
|
109
109
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
110
110
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
111
|
-
return (h(Host, { key: '
|
111
|
+
return (h(Host, { key: 'fbb55e4f99e4fde338fb1ca9debc6cd4eeb46787' }, h("div", { key: '10f7468920f81c1b97a2b23c8069e5b821683788', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '4badfa94e30d2a8108812c780ea6e636ca4e6e00', class: "position-absolute" }, h("div", { key: '7ce280938b7ae435fbffd358969a23577a0a8ce8', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '13e23afb8e6d012f6abebad43b24485ac0e72805', class: loadingClass, label: "", scale: "s" })))));
|
112
112
|
}
|
113
113
|
//--------------------------------------------------------------------------
|
114
114
|
//
|
@@ -50,7 +50,7 @@ const FeatureComments$1 = /*@__PURE__*/ proxyCustomElement(class FeatureComments
|
|
50
50
|
//
|
51
51
|
//--------------------------------------------------------------------------
|
52
52
|
render() {
|
53
|
-
return (h(Host, { key: '
|
53
|
+
return (h(Host, { key: '388f7097c0cfc5b9c6cc6649ff00e9fd0be1c6aa' }, h("slot", { key: '31a2a3694358fe14a2195da82063f3be0500b3d8' })));
|
54
54
|
}
|
55
55
|
get el() { return this; }
|
56
56
|
static get style() { return FeatureCommentsStyle0; }
|
@@ -5,25 +5,35 @@
|
|
5
5
|
*/
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
7
7
|
import { l as loadModules } from './loadModules.js';
|
8
|
-
import {
|
9
|
-
import { d as defineCustomElement$
|
10
|
-
import { d as defineCustomElement$
|
11
|
-
import { d as defineCustomElement$
|
12
|
-
import { d as defineCustomElement$
|
13
|
-
import { d as defineCustomElement$
|
14
|
-
import { d as defineCustomElement$
|
15
|
-
import { d as defineCustomElement$
|
16
|
-
import { d as defineCustomElement$
|
17
|
-
import { d as defineCustomElement$
|
18
|
-
import { d as defineCustomElement$
|
19
|
-
import { d as defineCustomElement$
|
20
|
-
import { d as defineCustomElement$
|
21
|
-
import { d as defineCustomElement$
|
22
|
-
import { d as defineCustomElement$
|
23
|
-
import { d as defineCustomElement$
|
8
|
+
import { f as getAllTables } from './mapViewUtils.js';
|
9
|
+
import { d as defineCustomElement$q } from './action.js';
|
10
|
+
import { d as defineCustomElement$p } from './action-menu.js';
|
11
|
+
import { d as defineCustomElement$o } from './alert.js';
|
12
|
+
import { d as defineCustomElement$n } from './button.js';
|
13
|
+
import { d as defineCustomElement$m } from './chip.js';
|
14
|
+
import { d as defineCustomElement$l } from './filter2.js';
|
15
|
+
import { d as defineCustomElement$k } from './handle.js';
|
16
|
+
import { d as defineCustomElement$j } from './icon.js';
|
17
|
+
import { d as defineCustomElement$i } from './input.js';
|
18
|
+
import { d as defineCustomElement$h } from './list.js';
|
19
|
+
import { d as defineCustomElement$g } from './list-item.js';
|
20
|
+
import { d as defineCustomElement$f } from './loader.js';
|
21
|
+
import { d as defineCustomElement$e } from './modal.js';
|
22
|
+
import { d as defineCustomElement$d } from './notice.js';
|
23
|
+
import { d as defineCustomElement$c } from './pagination.js';
|
24
|
+
import { d as defineCustomElement$b } from './panel.js';
|
25
|
+
import { d as defineCustomElement$a } from './popover.js';
|
26
|
+
import { d as defineCustomElement$9 } from './progress.js';
|
27
|
+
import { d as defineCustomElement$8 } from './scrim.js';
|
28
|
+
import { d as defineCustomElement$7 } from './shell.js';
|
29
|
+
import { d as defineCustomElement$6 } from './stack.js';
|
30
|
+
import { d as defineCustomElement$5 } from './tooltip.js';
|
31
|
+
import { d as defineCustomElement$4 } from './delete-button2.js';
|
32
|
+
import { d as defineCustomElement$3 } from './edit-card2.js';
|
33
|
+
import { d as defineCustomElement$2 } from './feature-list2.js';
|
24
34
|
import { d as defineCustomElement$1 } from './info-card2.js';
|
25
35
|
|
26
|
-
const featureDetailsCss = ":host{display:block}.buttons{align-items:center;
|
36
|
+
const featureDetailsCss = ":host{display:block}.buttons-container{align-items:center;display:flex;padding:10px 0 10px 15px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}.comment-btn{display:flex;gap:5px;width:37px;font-size:var(--calcite-font-size--2);align-items:center}";
|
27
37
|
const FeatureDetailsStyle0 = featureDetailsCss;
|
28
38
|
|
29
39
|
const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails extends HTMLElement {
|
@@ -31,6 +41,7 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
31
41
|
super();
|
32
42
|
this.__registerHost();
|
33
43
|
this.loadingStatus = createEvent(this, "loadingStatus", 7);
|
44
|
+
this.featureSelect = createEvent(this, "featureSelect", 7);
|
34
45
|
/**
|
35
46
|
* string[]: Valid field types for like and dislike
|
36
47
|
*/
|
@@ -42,8 +53,10 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
42
53
|
this._likeCount = 0;
|
43
54
|
this._disLikeCount = 0;
|
44
55
|
this._dislikeFieldAvailable = false;
|
56
|
+
this._commentsAvailable = false;
|
45
57
|
this._isLikeBtnClicked = false;
|
46
58
|
this._isDislikeBtnClicked = false;
|
59
|
+
this._relatedFeaturesOIDs = undefined;
|
47
60
|
}
|
48
61
|
//--------------------------------------------------------------------------
|
49
62
|
//
|
@@ -56,19 +69,23 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
56
69
|
async graphicsWatchHandler() {
|
57
70
|
await this.getCompleteGraphic(this.graphics[0]);
|
58
71
|
this.checkLikeDislikeFields();
|
72
|
+
await this.processComments();
|
59
73
|
}
|
60
74
|
//--------------------------------------------------------------------------
|
61
75
|
//
|
62
76
|
// Methods (public)
|
77
|
+
//
|
78
|
+
//--------------------------------------------------------------------------
|
63
79
|
/**
|
64
80
|
* Refresh the features comments which will fetch like, dislike and update the component
|
65
81
|
* @returns Promise that resolves when the operation is complete
|
66
82
|
*/
|
67
83
|
async refresh(graphic) {
|
84
|
+
await this.getCompleteGraphic(graphic);
|
85
|
+
await this.processComments();
|
68
86
|
if (this.isLikeDislikeConfigured(graphic.layer)) {
|
69
87
|
// in case of multiple features selected fetch complete feature and update like dislike for current feature
|
70
88
|
if (graphic && this.graphics.length > 1) {
|
71
|
-
await this.getCompleteGraphic(graphic);
|
72
89
|
this.checkLikeDislikeFields();
|
73
90
|
}
|
74
91
|
}
|
@@ -102,15 +119,21 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
102
119
|
*/
|
103
120
|
async componentWillLoad() {
|
104
121
|
await this._initModules();
|
122
|
+
//Apply query to get complete graphic with complete attributes
|
105
123
|
await this.getCompleteGraphic(this.graphics[0]);
|
106
124
|
this.checkLikeDislikeFields();
|
125
|
+
await this.processComments();
|
107
126
|
}
|
108
127
|
render() {
|
109
|
-
var _a, _b, _c, _d;
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
128
|
+
var _a, _b, _c, _d, _e;
|
129
|
+
//When related features found show comments list of only those features else comments list will be empty
|
130
|
+
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
131
|
+
return (h("calcite-panel", { key: 'c39c0eec021627b920972f7d4bce0d45bfe0a9c2', "full-height": true }, h("info-card", { key: 'e90cb427a1f874216afcfdf0a33804bf14fb6a2c', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el, zoomAndScrollToSelected: true }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
132
|
+
h("div", { key: 'ecfdf111612c92eacfd97dae7bb3080b7ad50e96', class: "buttons-container" }, this._commentsAvailable &&
|
133
|
+
h("div", { key: '07a8213e11585041fb1c5f56254447a720033f04', class: "comment-btn" }, h("span", { key: 'f4071fbd03372a0e88857962e9c31530e2dc693a' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: '30258e1daae5f1e00d18dd4ec052861de46b45bf', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
|
134
|
+
h("calcite-button", { key: 'fa76245789a29e49be06482fd8cd0244f44d19ab', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", onClick: this.onLikeButtonClick.bind(this), scale: 's' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
|
135
|
+
h("calcite-button", { key: 'ac9adc799a93f08319b2f0b797cd5d4773b1a6cb', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", onClick: this.onDislikeButtonClick.bind(this), scale: 's' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
|
136
|
+
h("feature-list", { key: '165b2ac0af65cbbab945a0dfd4ac878cc41af56c', class: "height-full", mapView: this.mapView, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
|
114
137
|
}
|
115
138
|
/**
|
116
139
|
* Load esri javascript api modules
|
@@ -120,9 +143,11 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
120
143
|
* @protected
|
121
144
|
*/
|
122
145
|
async _initModules() {
|
123
|
-
const [Graphic] = await loadModules([
|
146
|
+
const [RelationshipQuery, Graphic] = await loadModules([
|
147
|
+
"esri/rest/support/RelationshipQuery",
|
124
148
|
"esri/Graphic"
|
125
149
|
]);
|
150
|
+
this.RelationshipQuery = RelationshipQuery;
|
126
151
|
this.Graphic = Graphic;
|
127
152
|
}
|
128
153
|
/**
|
@@ -137,6 +162,56 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
137
162
|
const completeGraphic = await layer.queryFeatures(query);
|
138
163
|
this._selectedGraphic = completeGraphic.features[0];
|
139
164
|
}
|
165
|
+
/**
|
166
|
+
* Process the comments functionality.
|
167
|
+
* If comments are configured, fetches the related comments ans creates the input for comments list
|
168
|
+
* @protected
|
169
|
+
*/
|
170
|
+
async processComments() {
|
171
|
+
var _a;
|
172
|
+
const selectedLayer = this._selectedGraphic.layer;
|
173
|
+
const commentsConfigured = this.reportingOptions[selectedLayer.id].comment && ((_a = selectedLayer.relationships) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
174
|
+
if (commentsConfigured) {
|
175
|
+
//Get comments table id from map
|
176
|
+
const relatedTableIdFromRelnship = selectedLayer.relationships[0].relatedTableId;
|
177
|
+
const allTables = await getAllTables(this.mapView);
|
178
|
+
const relatedTable = allTables.filter((table) => relatedTableIdFromRelnship === table.layerId);
|
179
|
+
this.relatedTableId = (relatedTable === null || relatedTable === void 0 ? void 0 : relatedTable.length) > 0 ? relatedTable[0].id : '';
|
180
|
+
//**Get the related records for the current selected feature**
|
181
|
+
if (this.relatedTableId) {
|
182
|
+
//current selected feature's objectId
|
183
|
+
const objectId = this._selectedGraphic.attributes[selectedLayer.objectIdField];
|
184
|
+
//create relationship query to get all the related records with the current selected feature
|
185
|
+
const relationshipQuery = new this.RelationshipQuery({
|
186
|
+
objectIds: [objectId],
|
187
|
+
outFields: ['*'],
|
188
|
+
relationshipId: selectedLayer.relationships[0].id
|
189
|
+
});
|
190
|
+
const result = await selectedLayer.queryRelatedFeatures(relationshipQuery).catch((e) => {
|
191
|
+
console.error(e);
|
192
|
+
});
|
193
|
+
const relatedOIDs = [];
|
194
|
+
if (result[objectId]) {
|
195
|
+
result[objectId].features.forEach((feature) => {
|
196
|
+
relatedOIDs.push(feature.attributes.OBJECTID);
|
197
|
+
});
|
198
|
+
}
|
199
|
+
// Store the objectid's of the related features, this will be used to show the comments and its count
|
200
|
+
this._relatedFeaturesOIDs = relatedOIDs;
|
201
|
+
//Set comments available or not
|
202
|
+
this._commentsAvailable = true;
|
203
|
+
}
|
204
|
+
else {
|
205
|
+
this._relatedFeaturesOIDs = [];
|
206
|
+
this._commentsAvailable = false;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
else {
|
210
|
+
this._relatedFeaturesOIDs = [];
|
211
|
+
this._commentsAvailable = false;
|
212
|
+
this.relatedTableId = '';
|
213
|
+
}
|
214
|
+
}
|
140
215
|
/**
|
141
216
|
* Checks if the layers is configured for like dislike or not
|
142
217
|
* @param selectedLayer Feature layer
|
@@ -158,6 +233,7 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
158
233
|
if (!likeField && !dislikeField) {
|
159
234
|
return false;
|
160
235
|
}
|
236
|
+
//Check if selected layer have the configured like and dislike field and it is of integer types
|
161
237
|
selectedLayer.fields.forEach((eachField) => {
|
162
238
|
if (this._validFieldTypes.indexOf(eachField.type) > -1) {
|
163
239
|
if (eachField.name === likeField && this.reportingOptions[selectedLayer.id].like) {
|
@@ -338,8 +414,10 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
338
414
|
"_likeCount": [32],
|
339
415
|
"_disLikeCount": [32],
|
340
416
|
"_dislikeFieldAvailable": [32],
|
417
|
+
"_commentsAvailable": [32],
|
341
418
|
"_isLikeBtnClicked": [32],
|
342
419
|
"_isDislikeBtnClicked": [32],
|
420
|
+
"_relatedFeaturesOIDs": [32],
|
343
421
|
"refresh": [64],
|
344
422
|
"back": [64],
|
345
423
|
"next": [64],
|
@@ -351,7 +429,7 @@ function defineCustomElement() {
|
|
351
429
|
if (typeof customElements === "undefined") {
|
352
430
|
return;
|
353
431
|
}
|
354
|
-
const components = ["feature-details", "calcite-action", "calcite-action-menu", "calcite-alert", "calcite-button", "calcite-chip", "calcite-icon", "calcite-loader", "calcite-modal", "calcite-notice", "calcite-panel", "calcite-popover", "calcite-scrim", "calcite-shell", "calcite-tooltip", "delete-button", "edit-card", "info-card"];
|
432
|
+
const components = ["feature-details", "calcite-action", "calcite-action-menu", "calcite-alert", "calcite-button", "calcite-chip", "calcite-filter", "calcite-handle", "calcite-icon", "calcite-input", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-modal", "calcite-notice", "calcite-pagination", "calcite-panel", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-shell", "calcite-stack", "calcite-tooltip", "delete-button", "edit-card", "feature-list", "info-card"];
|
355
433
|
components.forEach(tagName => { switch (tagName) {
|
356
434
|
case "feature-details":
|
357
435
|
if (!customElements.get(tagName)) {
|
@@ -360,80 +438,125 @@ function defineCustomElement() {
|
|
360
438
|
break;
|
361
439
|
case "calcite-action":
|
362
440
|
if (!customElements.get(tagName)) {
|
363
|
-
defineCustomElement$
|
441
|
+
defineCustomElement$q();
|
364
442
|
}
|
365
443
|
break;
|
366
444
|
case "calcite-action-menu":
|
367
445
|
if (!customElements.get(tagName)) {
|
368
|
-
defineCustomElement$
|
446
|
+
defineCustomElement$p();
|
369
447
|
}
|
370
448
|
break;
|
371
449
|
case "calcite-alert":
|
372
450
|
if (!customElements.get(tagName)) {
|
373
|
-
defineCustomElement$
|
451
|
+
defineCustomElement$o();
|
374
452
|
}
|
375
453
|
break;
|
376
454
|
case "calcite-button":
|
377
455
|
if (!customElements.get(tagName)) {
|
378
|
-
defineCustomElement$
|
456
|
+
defineCustomElement$n();
|
379
457
|
}
|
380
458
|
break;
|
381
459
|
case "calcite-chip":
|
382
460
|
if (!customElements.get(tagName)) {
|
383
|
-
defineCustomElement$
|
461
|
+
defineCustomElement$m();
|
462
|
+
}
|
463
|
+
break;
|
464
|
+
case "calcite-filter":
|
465
|
+
if (!customElements.get(tagName)) {
|
466
|
+
defineCustomElement$l();
|
467
|
+
}
|
468
|
+
break;
|
469
|
+
case "calcite-handle":
|
470
|
+
if (!customElements.get(tagName)) {
|
471
|
+
defineCustomElement$k();
|
384
472
|
}
|
385
473
|
break;
|
386
474
|
case "calcite-icon":
|
387
475
|
if (!customElements.get(tagName)) {
|
388
|
-
defineCustomElement$
|
476
|
+
defineCustomElement$j();
|
477
|
+
}
|
478
|
+
break;
|
479
|
+
case "calcite-input":
|
480
|
+
if (!customElements.get(tagName)) {
|
481
|
+
defineCustomElement$i();
|
482
|
+
}
|
483
|
+
break;
|
484
|
+
case "calcite-list":
|
485
|
+
if (!customElements.get(tagName)) {
|
486
|
+
defineCustomElement$h();
|
487
|
+
}
|
488
|
+
break;
|
489
|
+
case "calcite-list-item":
|
490
|
+
if (!customElements.get(tagName)) {
|
491
|
+
defineCustomElement$g();
|
389
492
|
}
|
390
493
|
break;
|
391
494
|
case "calcite-loader":
|
392
495
|
if (!customElements.get(tagName)) {
|
393
|
-
defineCustomElement$
|
496
|
+
defineCustomElement$f();
|
394
497
|
}
|
395
498
|
break;
|
396
499
|
case "calcite-modal":
|
397
500
|
if (!customElements.get(tagName)) {
|
398
|
-
defineCustomElement$
|
501
|
+
defineCustomElement$e();
|
399
502
|
}
|
400
503
|
break;
|
401
504
|
case "calcite-notice":
|
402
505
|
if (!customElements.get(tagName)) {
|
403
|
-
defineCustomElement$
|
506
|
+
defineCustomElement$d();
|
507
|
+
}
|
508
|
+
break;
|
509
|
+
case "calcite-pagination":
|
510
|
+
if (!customElements.get(tagName)) {
|
511
|
+
defineCustomElement$c();
|
404
512
|
}
|
405
513
|
break;
|
406
514
|
case "calcite-panel":
|
407
515
|
if (!customElements.get(tagName)) {
|
408
|
-
defineCustomElement$
|
516
|
+
defineCustomElement$b();
|
409
517
|
}
|
410
518
|
break;
|
411
519
|
case "calcite-popover":
|
412
520
|
if (!customElements.get(tagName)) {
|
413
|
-
defineCustomElement$
|
521
|
+
defineCustomElement$a();
|
522
|
+
}
|
523
|
+
break;
|
524
|
+
case "calcite-progress":
|
525
|
+
if (!customElements.get(tagName)) {
|
526
|
+
defineCustomElement$9();
|
414
527
|
}
|
415
528
|
break;
|
416
529
|
case "calcite-scrim":
|
417
530
|
if (!customElements.get(tagName)) {
|
418
|
-
defineCustomElement$
|
531
|
+
defineCustomElement$8();
|
419
532
|
}
|
420
533
|
break;
|
421
534
|
case "calcite-shell":
|
422
535
|
if (!customElements.get(tagName)) {
|
423
|
-
defineCustomElement$
|
536
|
+
defineCustomElement$7();
|
537
|
+
}
|
538
|
+
break;
|
539
|
+
case "calcite-stack":
|
540
|
+
if (!customElements.get(tagName)) {
|
541
|
+
defineCustomElement$6();
|
424
542
|
}
|
425
543
|
break;
|
426
544
|
case "calcite-tooltip":
|
427
545
|
if (!customElements.get(tagName)) {
|
428
|
-
defineCustomElement$
|
546
|
+
defineCustomElement$5();
|
429
547
|
}
|
430
548
|
break;
|
431
549
|
case "delete-button":
|
432
550
|
if (!customElements.get(tagName)) {
|
433
|
-
defineCustomElement$
|
551
|
+
defineCustomElement$4();
|
434
552
|
}
|
435
553
|
break;
|
436
554
|
case "edit-card":
|
555
|
+
if (!customElements.get(tagName)) {
|
556
|
+
defineCustomElement$3();
|
557
|
+
}
|
558
|
+
break;
|
559
|
+
case "feature-list":
|
437
560
|
if (!customElements.get(tagName)) {
|
438
561
|
defineCustomElement$2();
|
439
562
|
}
|
@@ -50,7 +50,7 @@ const FeatureFormFlowItem$1 = /*@__PURE__*/ proxyCustomElement(class FeatureForm
|
|
50
50
|
//
|
51
51
|
//--------------------------------------------------------------------------
|
52
52
|
render() {
|
53
|
-
return (h(Host, { key: '
|
53
|
+
return (h(Host, { key: '2607999cdad5fbe75eac4366256b589eeb33fe36' }, h("slot", { key: 'a9443a71e40b37449d01f4c40ca5f21b83bf005a' })));
|
54
54
|
}
|
55
55
|
get el() { return this; }
|
56
56
|
static get style() { return FeatureFormFlowItemStyle0; }
|