@esri/solutions-components 0.8.13 → 0.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +6 -6
- 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 +4 -0
- 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/demos/crowdsource-manager.html +3 -3
- 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 +3 -3
- 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 +6 -6
- 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/demos/crowdsource-manager.html +3 -3
- 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-43d0788d.entry.js +0 -6
- 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-d62b99ff.entry.js +0 -6
|
@@ -175,6 +175,24 @@ export async function getAllLayers(
|
|
|
175
175
|
return layers;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
/**
|
|
179
|
+
* Get all of the tables from the current map when the map and their layerView is ready
|
|
180
|
+
* @param mapView the map view to fetch the table names from
|
|
181
|
+
* @returns Promise resolving with an array of all tables
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
184
|
+
export async function getAllTables(
|
|
185
|
+
mapView: __esri.MapView
|
|
186
|
+
): Promise<__esri.Layer[]> {
|
|
187
|
+
const tables = mapView.map.allTables.toArray();
|
|
188
|
+
let layerViewPromises;
|
|
189
|
+
await mapView.when(() => {
|
|
190
|
+
layerViewPromises = tables.map(t => t.load());
|
|
191
|
+
});
|
|
192
|
+
await Promise.allSettled(layerViewPromises);
|
|
193
|
+
return tables;
|
|
194
|
+
}
|
|
195
|
+
|
|
178
196
|
/**
|
|
179
197
|
* Highlight features by OID
|
|
180
198
|
*
|
|
@@ -313,7 +331,7 @@ export async function goToSelection(
|
|
|
313
331
|
const result = await queryExtent(ids, layerView.layer);
|
|
314
332
|
const goToParams: { target: __esri.Extent; scale?: number; } = { target: result.extent };
|
|
315
333
|
if (result.count === 1 && layerView.layer.geometryType === 'point' && zoomToScale) {
|
|
316
|
-
goToParams.scale = zoomToScale
|
|
334
|
+
goToParams.scale = zoomToScale;
|
|
317
335
|
}
|
|
318
336
|
await mapView.goTo(goToParams);
|
|
319
337
|
if (flashFeatures) {
|
|
@@ -23,7 +23,6 @@ import * as PDFCreator from "../assets/arcgis-pdf-creator/PDFCreator";
|
|
|
23
23
|
import * as PDFCreator_jsPDF from "../assets/arcgis-pdf-creator/PDFCreator_jsPDF";
|
|
24
24
|
import * as PDFLabels from "../assets/arcgis-pdf-creator/PDFLabels";
|
|
25
25
|
import { getAssetPath } from "@stencil/core";
|
|
26
|
-
export { ILabel } from "../assets/arcgis-pdf-creator/PDFLabels";
|
|
27
26
|
//#endregion
|
|
28
27
|
//#region Public functions
|
|
29
28
|
/**
|
|
@@ -36,7 +35,7 @@ export { ILabel } from "../assets/arcgis-pdf-creator/PDFLabels";
|
|
|
36
35
|
* @param initialImageDataUrl Data URL of image for first page
|
|
37
36
|
*/
|
|
38
37
|
export function exportPDF(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
|
|
39
|
-
downloadPDFFile(filename, labels, labelPageDescription, title, initialImageDataUrl);
|
|
38
|
+
void downloadPDFFile(filename, labels, labelPageDescription, title, initialImageDataUrl);
|
|
40
39
|
}
|
|
41
40
|
//#endregion
|
|
42
41
|
//#region Private functions
|
|
@@ -49,41 +48,37 @@ export function exportPDF(filename, labels, labelPageDescription, title = "", in
|
|
|
49
48
|
* @param title Title for each page
|
|
50
49
|
* @param initialImageDataUrl Data URL of image for first page
|
|
51
50
|
*/
|
|
52
|
-
function downloadPDFFile(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
|
|
51
|
+
async function downloadPDFFile(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
|
|
53
52
|
const pdfLib = new PDFCreator_jsPDF.PDFCreator_jsPDF();
|
|
54
|
-
pdfLib.initialize({
|
|
53
|
+
await pdfLib.initialize({
|
|
55
54
|
pageType: "ANSI_A"
|
|
56
55
|
}, getAssetPath(`../assets/arcgis-pdf-creator/`), "en", filename // filename without ".pdf"
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
width: pageSize.width - pageProperties.leftMargin - pageProperties.rightMargin,
|
|
72
|
-
height: pageSize.height - pageProperties.topMargin - pageProperties.bottomMargin
|
|
73
|
-
});
|
|
74
|
-
if (title) {
|
|
75
|
-
labeller.drawSupplementalText(title, 0, -0.1);
|
|
76
|
-
}
|
|
77
|
-
if (labels.length > 0) {
|
|
78
|
-
pdfLib.addPage();
|
|
79
|
-
++startingPageNum;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
// Add the labels to the PDF
|
|
83
|
-
await labeller.addLabelsToDoc(labels, labelSpec, startingPageNum, title // heading
|
|
84
|
-
);
|
|
85
|
-
pdfLib.save();
|
|
56
|
+
);
|
|
57
|
+
const labeller = new PDFLabels.PDFLabels();
|
|
58
|
+
await labeller.initialize(pdfLib);
|
|
59
|
+
const labelSpec = labelPageDescription.labelSpec;
|
|
60
|
+
let startingPageNum = 1;
|
|
61
|
+
// Add the screenshot to the PDF
|
|
62
|
+
if (initialImageDataUrl) {
|
|
63
|
+
const pageProperties = labelSpec.pageProperties;
|
|
64
|
+
const pageSize = PDFCreator.PDFCreator.getPageSize(pageProperties.pageType);
|
|
65
|
+
pdfLib.drawImage(initialImageDataUrl, {
|
|
66
|
+
x: pageProperties.leftMargin,
|
|
67
|
+
y: pageProperties.topMargin,
|
|
68
|
+
width: pageSize.width - pageProperties.leftMargin - pageProperties.rightMargin,
|
|
69
|
+
height: pageSize.height - pageProperties.topMargin - pageProperties.bottomMargin
|
|
86
70
|
});
|
|
87
|
-
|
|
71
|
+
if (title) {
|
|
72
|
+
labeller.drawSupplementalText(title, 0, -0.1);
|
|
73
|
+
}
|
|
74
|
+
if (labels.length > 0) {
|
|
75
|
+
pdfLib.addPage();
|
|
76
|
+
++startingPageNum;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// Add the labels to the PDF
|
|
80
|
+
await labeller.addLabelsToDoc(labels, labelSpec, startingPageNum, title // heading
|
|
81
|
+
);
|
|
82
|
+
pdfLib.save();
|
|
88
83
|
}
|
|
89
84
|
//#endregion
|
|
@@ -41,7 +41,7 @@ export function exportPDF(
|
|
|
41
41
|
title = "",
|
|
42
42
|
initialImageDataUrl = ""
|
|
43
43
|
): void {
|
|
44
|
-
downloadPDFFile(filename, labels, labelPageDescription, title, initialImageDataUrl);
|
|
44
|
+
void downloadPDFFile(filename, labels, labelPageDescription, title, initialImageDataUrl);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
@@ -56,15 +56,15 @@ export function exportPDF(
|
|
|
56
56
|
* @param title Title for each page
|
|
57
57
|
* @param initialImageDataUrl Data URL of image for first page
|
|
58
58
|
*/
|
|
59
|
-
function downloadPDFFile(
|
|
59
|
+
async function downloadPDFFile(
|
|
60
60
|
filename: string,
|
|
61
61
|
labels: string[][],
|
|
62
62
|
labelPageDescription: PDFLabels.ILabel,
|
|
63
63
|
title = "",
|
|
64
64
|
initialImageDataUrl = ""
|
|
65
|
-
): void {
|
|
65
|
+
): Promise<void> {
|
|
66
66
|
const pdfLib = new PDFCreator_jsPDF.PDFCreator_jsPDF();
|
|
67
|
-
pdfLib.initialize(
|
|
67
|
+
await pdfLib.initialize(
|
|
68
68
|
{
|
|
69
69
|
pageType: "ANSI_A"
|
|
70
70
|
},
|
|
@@ -72,52 +72,45 @@ function downloadPDFFile(
|
|
|
72
72
|
"en",
|
|
73
73
|
filename // filename without ".pdf"
|
|
74
74
|
)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
if (title) {
|
|
98
|
-
labeller.drawSupplementalText(title, 0, -0.1);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (labels.length > 0) {
|
|
102
|
-
pdfLib.addPage();
|
|
103
|
-
++startingPageNum;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Add the labels to the PDF
|
|
108
|
-
await labeller.addLabelsToDoc(
|
|
109
|
-
labels,
|
|
110
|
-
labelSpec,
|
|
111
|
-
startingPageNum,
|
|
112
|
-
title // heading
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
pdfLib.save();
|
|
116
|
-
}
|
|
117
|
-
);
|
|
75
|
+
|
|
76
|
+
const labeller = new PDFLabels.PDFLabels();
|
|
77
|
+
await labeller.initialize(pdfLib)
|
|
78
|
+
|
|
79
|
+
const labelSpec = labelPageDescription.labelSpec;
|
|
80
|
+
|
|
81
|
+
let startingPageNum = 1;
|
|
82
|
+
|
|
83
|
+
// Add the screenshot to the PDF
|
|
84
|
+
if (initialImageDataUrl) {
|
|
85
|
+
const pageProperties = labelSpec.pageProperties;
|
|
86
|
+
const pageSize = PDFCreator.PDFCreator.getPageSize(pageProperties.pageType);
|
|
87
|
+
|
|
88
|
+
pdfLib.drawImage(initialImageDataUrl, {
|
|
89
|
+
x: pageProperties.leftMargin,
|
|
90
|
+
y: pageProperties.topMargin,
|
|
91
|
+
width: pageSize.width - pageProperties.leftMargin - pageProperties.rightMargin,
|
|
92
|
+
height: pageSize.height - pageProperties.topMargin - pageProperties.bottomMargin
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
if (title) {
|
|
96
|
+
labeller.drawSupplementalText(title, 0, -0.1);
|
|
118
97
|
}
|
|
98
|
+
|
|
99
|
+
if (labels.length > 0) {
|
|
100
|
+
pdfLib.addPage();
|
|
101
|
+
++startingPageNum;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Add the labels to the PDF
|
|
106
|
+
await labeller.addLabelsToDoc(
|
|
107
|
+
labels,
|
|
108
|
+
labelSpec,
|
|
109
|
+
startingPageNum,
|
|
110
|
+
title // heading
|
|
119
111
|
);
|
|
120
112
|
|
|
113
|
+
pdfLib.save();
|
|
121
114
|
}
|
|
122
115
|
|
|
123
116
|
//#endregion
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CreateRelatedFeature extends Components.CreateRelatedFeature, HTMLElement {}
|
|
4
|
+
export const CreateRelatedFeature: {
|
|
5
|
+
prototype: CreateRelatedFeature;
|
|
6
|
+
new (): CreateRelatedFeature;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Esri
|
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { C as CreateRelatedFeature$1, d as defineCustomElement$1 } from './create-related-feature2.js';
|
|
7
|
+
|
|
8
|
+
const CreateRelatedFeature = CreateRelatedFeature$1;
|
|
9
|
+
const defineCustomElement = defineCustomElement$1;
|
|
10
|
+
|
|
11
|
+
export { CreateRelatedFeature, defineCustomElement };
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Esri
|
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
7
|
+
import { l as loadModules } from './loadModules.js';
|
|
8
|
+
|
|
9
|
+
const createRelatedFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}";
|
|
10
|
+
const CreateRelatedFeatureStyle0 = createRelatedFeatureCss;
|
|
11
|
+
|
|
12
|
+
const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelatedFeature extends HTMLElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
this.success = createEvent(this, "success", 7);
|
|
17
|
+
this.fail = createEvent(this, "fail", 7);
|
|
18
|
+
this.isActionPending = createEvent(this, "isActionPending", 7);
|
|
19
|
+
this.mapView = undefined;
|
|
20
|
+
this.table = undefined;
|
|
21
|
+
this.selectedFeature = undefined;
|
|
22
|
+
this.customizeSubmit = false;
|
|
23
|
+
}
|
|
24
|
+
//--------------------------------------------------------------------------
|
|
25
|
+
//
|
|
26
|
+
// Watch handlers
|
|
27
|
+
//
|
|
28
|
+
//--------------------------------------------------------------------------
|
|
29
|
+
/**
|
|
30
|
+
* Called each time the mapView prop is changed.
|
|
31
|
+
*/
|
|
32
|
+
async mapViewWatchHandler() {
|
|
33
|
+
await this.mapView.when(async () => {
|
|
34
|
+
await this.init();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//--------------------------------------------------------------------------
|
|
38
|
+
//
|
|
39
|
+
// Methods (public)
|
|
40
|
+
//
|
|
41
|
+
//--------------------------------------------------------------------------
|
|
42
|
+
/**
|
|
43
|
+
* Destroy the Editor widget instance
|
|
44
|
+
*/
|
|
45
|
+
async close() {
|
|
46
|
+
if (this._editor) {
|
|
47
|
+
this._editor.destroy();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Submit the comment
|
|
52
|
+
*/
|
|
53
|
+
async submit() {
|
|
54
|
+
if (this._editor) {
|
|
55
|
+
this._editor.viewModel.featureFormViewModel.submit();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//--------------------------------------------------------------------------
|
|
59
|
+
//
|
|
60
|
+
// Functions (lifecycle)
|
|
61
|
+
//
|
|
62
|
+
//--------------------------------------------------------------------------
|
|
63
|
+
/**
|
|
64
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
|
65
|
+
* @returns Promise when complete
|
|
66
|
+
*/
|
|
67
|
+
async componentWillLoad() {
|
|
68
|
+
await this.initModules();
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Init Editor widget and starts the create workflow
|
|
72
|
+
*/
|
|
73
|
+
async init() {
|
|
74
|
+
if (this.mapView) {
|
|
75
|
+
await this.createEditorWidget();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Load esri javascript api modules
|
|
80
|
+
* @returns Promise resolving when function is done
|
|
81
|
+
* @protected
|
|
82
|
+
*/
|
|
83
|
+
async initModules() {
|
|
84
|
+
const [Editor, reactiveUtils] = await loadModules([
|
|
85
|
+
"esri/widgets/Editor",
|
|
86
|
+
"esri/core/reactiveUtils"
|
|
87
|
+
]);
|
|
88
|
+
this.Editor = Editor;
|
|
89
|
+
this.reactiveUtils = reactiveUtils;
|
|
90
|
+
}
|
|
91
|
+
render() {
|
|
92
|
+
return (h(Host, { key: '383e8fac89d037f77241d856013202d1e04b28ba' }));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
|
96
|
+
*/
|
|
97
|
+
async componentDidLoad() {
|
|
98
|
+
await this.init();
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Display editor widget to create the new feature
|
|
102
|
+
* @protected
|
|
103
|
+
*/
|
|
104
|
+
async createEditorWidget() {
|
|
105
|
+
if (this._editor) {
|
|
106
|
+
this._editor.destroy();
|
|
107
|
+
}
|
|
108
|
+
const container = document.createElement("div");
|
|
109
|
+
this._editor = new this.Editor({
|
|
110
|
+
view: this.mapView,
|
|
111
|
+
visibleElements: {
|
|
112
|
+
snappingControls: false
|
|
113
|
+
},
|
|
114
|
+
container
|
|
115
|
+
});
|
|
116
|
+
this.el.appendChild(container);
|
|
117
|
+
//Add handle to watch featureFormViewModel ready state and hide the editor elements
|
|
118
|
+
const hideElementHandle = this.reactiveUtils.watch(() => { var _a; return (_a = this._editor.viewModel.featureFormViewModel) === null || _a === void 0 ? void 0 : _a.state; }, (state) => {
|
|
119
|
+
if (state === 'ready') {
|
|
120
|
+
this.hideEditorsElements();
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
this._editor.viewModel.addHandles(hideElementHandle);
|
|
124
|
+
//Add handle to watch featureTemplatesViewModel ready state and then start the creation
|
|
125
|
+
const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
|
|
126
|
+
if (state === 'ready') {
|
|
127
|
+
void this.startCreate();
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
this._editor.viewModel.addHandles(handle);
|
|
131
|
+
// Add handle to watch if attachments are added/edited
|
|
132
|
+
const attachmentHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
|
|
133
|
+
if (state === 'adding-attachment' || state === 'editing-attachment') {
|
|
134
|
+
this._addingAttachment = true;
|
|
135
|
+
this.isActionPending.emit(true);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
if (this._addingAttachment) {
|
|
139
|
+
this.isActionPending.emit(false);
|
|
140
|
+
this._addingAttachment = false;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
this._editor.viewModel.addHandles(attachmentHandle);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Start creating the feature feature form
|
|
148
|
+
* @protected
|
|
149
|
+
*/
|
|
150
|
+
async startCreate() {
|
|
151
|
+
const parentLayer = this.selectedFeature.layer;
|
|
152
|
+
const childTable = this.table;
|
|
153
|
+
const parentRelationship = parentLayer.relationships[0];
|
|
154
|
+
const childRelationship = childTable.relationships.find((rel) => parentLayer.layerId === rel.relatedTableId);
|
|
155
|
+
const queryResult = await parentLayer.queryFeatures({
|
|
156
|
+
objectIds: [this.selectedFeature.getObjectId()],
|
|
157
|
+
outFields: [parentLayer.objectIdField, parentRelationship.keyField],
|
|
158
|
+
});
|
|
159
|
+
const parentFeature = queryResult.features[0];
|
|
160
|
+
const template = childTable.templates[0];
|
|
161
|
+
const attributeOverrides = this.makeAttributesForRelatedFeature(parentFeature, parentRelationship, childRelationship);
|
|
162
|
+
const creationInfo = {
|
|
163
|
+
attributeOverrides,
|
|
164
|
+
layer: childTable,
|
|
165
|
+
template,
|
|
166
|
+
};
|
|
167
|
+
await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(creationInfo);
|
|
168
|
+
// Emit an event to show submit cancel buttons
|
|
169
|
+
this.isActionPending.emit(false);
|
|
170
|
+
this._editor.viewModel.featureFormViewModel.on('submit', this.submitted.bind(this));
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Hides the elements of editor widget
|
|
174
|
+
* @protected
|
|
175
|
+
*/
|
|
176
|
+
hideEditorsElements() {
|
|
177
|
+
if (!this.customizeSubmit) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
setTimeout(() => {
|
|
181
|
+
var _a;
|
|
182
|
+
//hides the header and footer on the featureForm
|
|
183
|
+
(_a = this.el.querySelector('.esri-editor').querySelectorAll('calcite-flow-item')) === null || _a === void 0 ? void 0 : _a.forEach((flowItem) => {
|
|
184
|
+
var _a, _b, _c, _d, _e;
|
|
185
|
+
const article = (_c = (_b = (_a = flowItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('calcite-panel')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('article');
|
|
186
|
+
//hide the header
|
|
187
|
+
(_d = article === null || article === void 0 ? void 0 : article.querySelector('header')) === null || _d === void 0 ? void 0 : _d.setAttribute('style', 'display: none');
|
|
188
|
+
//hide the footer
|
|
189
|
+
(_e = article === null || article === void 0 ? void 0 : article.querySelector('footer')) === null || _e === void 0 ? void 0 : _e.setAttribute('style', 'display: none');
|
|
190
|
+
});
|
|
191
|
+
}, 700);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Makes attributes for related feature
|
|
195
|
+
* @param parentFeature Parent feature
|
|
196
|
+
* @param parentRelationship Parent relationship
|
|
197
|
+
* @param childRelationship Child relationship
|
|
198
|
+
* @returns Attributes for related feature
|
|
199
|
+
*/
|
|
200
|
+
makeAttributesForRelatedFeature(parentFeature, parentRelationship, childRelationship) {
|
|
201
|
+
const parentKeyField = parentRelationship.keyField;
|
|
202
|
+
const parentKeyValue = parentFeature.getAttribute(parentKeyField);
|
|
203
|
+
let childKeyField = childRelationship.keyField;
|
|
204
|
+
// get the field from table which name is same as childKeyField and use that field name as childKeyField
|
|
205
|
+
const field = this.table.fields.find((field) => field.name.toLocaleLowerCase() === childKeyField.toLocaleLowerCase());
|
|
206
|
+
childKeyField = field.name;
|
|
207
|
+
const childAttributes = {
|
|
208
|
+
[childKeyField]: parentKeyValue,
|
|
209
|
+
};
|
|
210
|
+
return childAttributes;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* On creation of feature emit the event that the feature is created
|
|
214
|
+
* @param evt feature submit event
|
|
215
|
+
* @protected
|
|
216
|
+
*/
|
|
217
|
+
async submitted(evt) {
|
|
218
|
+
var _a;
|
|
219
|
+
//return if any attribute is invalid , focus will be shifted to the invalid attribute in feature form
|
|
220
|
+
if (evt.invalid.length) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
//Submit only when valid attributes
|
|
224
|
+
//emit success or fail based on the result
|
|
225
|
+
if (evt.valid.length) {
|
|
226
|
+
try {
|
|
227
|
+
await this._editor.activeWorkflow.commit();
|
|
228
|
+
//throw errors if any failures
|
|
229
|
+
if ((_a = this._editor.viewModel.failures) === null || _a === void 0 ? void 0 : _a.length) {
|
|
230
|
+
this._editor.viewModel.failures.some((failure) => {
|
|
231
|
+
if (failure.error) {
|
|
232
|
+
throw (failure.error);
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
catch (e) {
|
|
238
|
+
this.fail.emit(e);
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this.success.emit();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
get el() { return this; }
|
|
245
|
+
static get watchers() { return {
|
|
246
|
+
"mapView": ["mapViewWatchHandler"]
|
|
247
|
+
}; }
|
|
248
|
+
static get style() { return CreateRelatedFeatureStyle0; }
|
|
249
|
+
}, [0, "create-related-feature", {
|
|
250
|
+
"mapView": [16],
|
|
251
|
+
"table": [16],
|
|
252
|
+
"selectedFeature": [16],
|
|
253
|
+
"customizeSubmit": [4, "customize-submit"],
|
|
254
|
+
"close": [64],
|
|
255
|
+
"submit": [64]
|
|
256
|
+
}, undefined, {
|
|
257
|
+
"mapView": ["mapViewWatchHandler"]
|
|
258
|
+
}]);
|
|
259
|
+
function defineCustomElement() {
|
|
260
|
+
if (typeof customElements === "undefined") {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const components = ["create-related-feature"];
|
|
264
|
+
components.forEach(tagName => { switch (tagName) {
|
|
265
|
+
case "create-related-feature":
|
|
266
|
+
if (!customElements.get(tagName)) {
|
|
267
|
+
customElements.define(tagName, CreateRelatedFeature);
|
|
268
|
+
}
|
|
269
|
+
break;
|
|
270
|
+
} });
|
|
271
|
+
}
|
|
272
|
+
defineCustomElement();
|
|
273
|
+
|
|
274
|
+
export { CreateRelatedFeature as C, defineCustomElement as d };
|
|
@@ -235,7 +235,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
|
235
235
|
* Renders the component.
|
|
236
236
|
*/
|
|
237
237
|
render() {
|
|
238
|
-
return (h(Host, { key: '
|
|
238
|
+
return (h(Host, { key: '68558824544553dd0c16832e4530afb4023ff421' }, h("calcite-shell", { key: '9369769a8ff35ab56b5317cde8b325e4635c817e', class: "position-relative" }, h("calcite-panel", { key: 'c2e5f3feb974a50039427f91e408c2add1b0cc4f', class: `width-full height-full border-width-0` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
241
|
* Called after each render
|