@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
@@ -41,7 +41,7 @@ export class DeductCalculator {
|
|
41
41
|
* Renders the component.
|
42
42
|
*/
|
43
43
|
render() {
|
44
|
-
return (h(Host, { key: '
|
44
|
+
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())));
|
45
45
|
}
|
46
46
|
//--------------------------------------------------------------------------
|
47
47
|
//
|
@@ -72,7 +72,7 @@ export class DeleteButton {
|
|
72
72
|
* Renders the component.
|
73
73
|
*/
|
74
74
|
render() {
|
75
|
-
return (h(Host, { key: '
|
75
|
+
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()));
|
76
76
|
}
|
77
77
|
/**
|
78
78
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -111,7 +111,7 @@ export class EditCard {
|
|
111
111
|
!this.graphics[0].layer.editingEnabled : true;
|
112
112
|
const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
|
113
113
|
const loadingClass = this._editorLoading ? "" : "display-none";
|
114
|
-
return (h(Host, { key: '
|
114
|
+
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" })))));
|
115
115
|
}
|
116
116
|
//--------------------------------------------------------------------------
|
117
117
|
//
|
@@ -56,7 +56,7 @@ export class FeatureComments {
|
|
56
56
|
//
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: '388f7097c0cfc5b9c6cc6649ff00e9fd0be1c6aa' }, h("slot", { key: '31a2a3694358fe14a2195da82063f3be0500b3d8' })));
|
60
60
|
}
|
61
61
|
static get is() { return "feature-comments"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -2,11 +2,12 @@
|
|
2
2
|
display: block;
|
3
3
|
}
|
4
4
|
|
5
|
-
.buttons{
|
5
|
+
.buttons-container{
|
6
6
|
align-items: center;
|
7
|
-
background-color: white;
|
8
7
|
display: flex;
|
9
8
|
padding: 10px 0 10px 15px;
|
9
|
+
color: var(--calcite-color-text-1) !important;
|
10
|
+
background-color: var(--calcite-color-foreground-1) !important;
|
10
11
|
border-block-start: 1px solid var(--calcite-color-border-3);
|
11
12
|
border-block-end: 1px solid var(--calcite-color-border-3);
|
12
13
|
}
|
@@ -14,5 +15,7 @@
|
|
14
15
|
.comment-btn{
|
15
16
|
display: flex;
|
16
17
|
gap: 5px;
|
17
|
-
width:
|
18
|
+
width: 37px;
|
19
|
+
font-size: var(--calcite-font-size--2);
|
20
|
+
align-items: center;
|
18
21
|
}
|
@@ -5,6 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
import { h } from "@stencil/core";
|
7
7
|
import { loadModules } from "../../utils/loadModules";
|
8
|
+
import { getAllTables } from "../../utils/mapViewUtils";
|
8
9
|
export class FeatureDetails {
|
9
10
|
constructor() {
|
10
11
|
/**
|
@@ -18,8 +19,10 @@ export class FeatureDetails {
|
|
18
19
|
this._likeCount = 0;
|
19
20
|
this._disLikeCount = 0;
|
20
21
|
this._dislikeFieldAvailable = false;
|
22
|
+
this._commentsAvailable = false;
|
21
23
|
this._isLikeBtnClicked = false;
|
22
24
|
this._isDislikeBtnClicked = false;
|
25
|
+
this._relatedFeaturesOIDs = undefined;
|
23
26
|
}
|
24
27
|
//--------------------------------------------------------------------------
|
25
28
|
//
|
@@ -32,19 +35,23 @@ export class FeatureDetails {
|
|
32
35
|
async graphicsWatchHandler() {
|
33
36
|
await this.getCompleteGraphic(this.graphics[0]);
|
34
37
|
this.checkLikeDislikeFields();
|
38
|
+
await this.processComments();
|
35
39
|
}
|
36
40
|
//--------------------------------------------------------------------------
|
37
41
|
//
|
38
42
|
// Methods (public)
|
43
|
+
//
|
44
|
+
//--------------------------------------------------------------------------
|
39
45
|
/**
|
40
46
|
* Refresh the features comments which will fetch like, dislike and update the component
|
41
47
|
* @returns Promise that resolves when the operation is complete
|
42
48
|
*/
|
43
49
|
async refresh(graphic) {
|
50
|
+
await this.getCompleteGraphic(graphic);
|
51
|
+
await this.processComments();
|
44
52
|
if (this.isLikeDislikeConfigured(graphic.layer)) {
|
45
53
|
// in case of multiple features selected fetch complete feature and update like dislike for current feature
|
46
54
|
if (graphic && this.graphics.length > 1) {
|
47
|
-
await this.getCompleteGraphic(graphic);
|
48
55
|
this.checkLikeDislikeFields();
|
49
56
|
}
|
50
57
|
}
|
@@ -78,15 +85,21 @@ export class FeatureDetails {
|
|
78
85
|
*/
|
79
86
|
async componentWillLoad() {
|
80
87
|
await this._initModules();
|
88
|
+
//Apply query to get complete graphic with complete attributes
|
81
89
|
await this.getCompleteGraphic(this.graphics[0]);
|
82
90
|
this.checkLikeDislikeFields();
|
91
|
+
await this.processComments();
|
83
92
|
}
|
84
93
|
render() {
|
85
|
-
var _a, _b, _c, _d;
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
94
|
+
var _a, _b, _c, _d, _e;
|
95
|
+
//When related features found show comments list of only those features else comments list will be empty
|
96
|
+
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
97
|
+
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) &&
|
98
|
+
h("div", { key: 'ecfdf111612c92eacfd97dae7bb3080b7ad50e96', class: "buttons-container" }, this._commentsAvailable &&
|
99
|
+
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 &&
|
100
|
+
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 &&
|
101
|
+
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 &&
|
102
|
+
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 })));
|
90
103
|
}
|
91
104
|
/**
|
92
105
|
* Load esri javascript api modules
|
@@ -96,9 +109,11 @@ export class FeatureDetails {
|
|
96
109
|
* @protected
|
97
110
|
*/
|
98
111
|
async _initModules() {
|
99
|
-
const [Graphic] = await loadModules([
|
112
|
+
const [RelationshipQuery, Graphic] = await loadModules([
|
113
|
+
"esri/rest/support/RelationshipQuery",
|
100
114
|
"esri/Graphic"
|
101
115
|
]);
|
116
|
+
this.RelationshipQuery = RelationshipQuery;
|
102
117
|
this.Graphic = Graphic;
|
103
118
|
}
|
104
119
|
/**
|
@@ -113,6 +128,56 @@ export class FeatureDetails {
|
|
113
128
|
const completeGraphic = await layer.queryFeatures(query);
|
114
129
|
this._selectedGraphic = completeGraphic.features[0];
|
115
130
|
}
|
131
|
+
/**
|
132
|
+
* Process the comments functionality.
|
133
|
+
* If comments are configured, fetches the related comments ans creates the input for comments list
|
134
|
+
* @protected
|
135
|
+
*/
|
136
|
+
async processComments() {
|
137
|
+
var _a;
|
138
|
+
const selectedLayer = this._selectedGraphic.layer;
|
139
|
+
const commentsConfigured = this.reportingOptions[selectedLayer.id].comment && ((_a = selectedLayer.relationships) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
140
|
+
if (commentsConfigured) {
|
141
|
+
//Get comments table id from map
|
142
|
+
const relatedTableIdFromRelnship = selectedLayer.relationships[0].relatedTableId;
|
143
|
+
const allTables = await getAllTables(this.mapView);
|
144
|
+
const relatedTable = allTables.filter((table) => relatedTableIdFromRelnship === table.layerId);
|
145
|
+
this.relatedTableId = (relatedTable === null || relatedTable === void 0 ? void 0 : relatedTable.length) > 0 ? relatedTable[0].id : '';
|
146
|
+
//**Get the related records for the current selected feature**
|
147
|
+
if (this.relatedTableId) {
|
148
|
+
//current selected feature's objectId
|
149
|
+
const objectId = this._selectedGraphic.attributes[selectedLayer.objectIdField];
|
150
|
+
//create relationship query to get all the related records with the current selected feature
|
151
|
+
const relationshipQuery = new this.RelationshipQuery({
|
152
|
+
objectIds: [objectId],
|
153
|
+
outFields: ['*'],
|
154
|
+
relationshipId: selectedLayer.relationships[0].id
|
155
|
+
});
|
156
|
+
const result = await selectedLayer.queryRelatedFeatures(relationshipQuery).catch((e) => {
|
157
|
+
console.error(e);
|
158
|
+
});
|
159
|
+
const relatedOIDs = [];
|
160
|
+
if (result[objectId]) {
|
161
|
+
result[objectId].features.forEach((feature) => {
|
162
|
+
relatedOIDs.push(feature.attributes.OBJECTID);
|
163
|
+
});
|
164
|
+
}
|
165
|
+
// Store the objectid's of the related features, this will be used to show the comments and its count
|
166
|
+
this._relatedFeaturesOIDs = relatedOIDs;
|
167
|
+
//Set comments available or not
|
168
|
+
this._commentsAvailable = true;
|
169
|
+
}
|
170
|
+
else {
|
171
|
+
this._relatedFeaturesOIDs = [];
|
172
|
+
this._commentsAvailable = false;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
else {
|
176
|
+
this._relatedFeaturesOIDs = [];
|
177
|
+
this._commentsAvailable = false;
|
178
|
+
this.relatedTableId = '';
|
179
|
+
}
|
180
|
+
}
|
116
181
|
/**
|
117
182
|
* Checks if the layers is configured for like dislike or not
|
118
183
|
* @param selectedLayer Feature layer
|
@@ -135,7 +200,6 @@ export class FeatureDetails {
|
|
135
200
|
return false;
|
136
201
|
}
|
137
202
|
//Check if selected layer have the configured like and dislike field and it is of integer types
|
138
|
-
;
|
139
203
|
selectedLayer.fields.forEach((eachField) => {
|
140
204
|
if (this._validFieldTypes.indexOf(eachField.type) > -1) {
|
141
205
|
if (eachField.name === likeField && this.reportingOptions[selectedLayer.id].like) {
|
@@ -385,8 +449,10 @@ export class FeatureDetails {
|
|
385
449
|
"_likeCount": {},
|
386
450
|
"_disLikeCount": {},
|
387
451
|
"_dislikeFieldAvailable": {},
|
452
|
+
"_commentsAvailable": {},
|
388
453
|
"_isLikeBtnClicked": {},
|
389
|
-
"_isDislikeBtnClicked": {}
|
454
|
+
"_isDislikeBtnClicked": {},
|
455
|
+
"_relatedFeaturesOIDs": {}
|
390
456
|
};
|
391
457
|
}
|
392
458
|
static get events() {
|
@@ -405,6 +471,26 @@ export class FeatureDetails {
|
|
405
471
|
"resolved": "boolean",
|
406
472
|
"references": {}
|
407
473
|
}
|
474
|
+
}, {
|
475
|
+
"method": "featureSelect",
|
476
|
+
"name": "featureSelect",
|
477
|
+
"bubbles": true,
|
478
|
+
"cancelable": true,
|
479
|
+
"composed": true,
|
480
|
+
"docs": {
|
481
|
+
"tags": [],
|
482
|
+
"text": "Emitted on demand when feature is selected using the list"
|
483
|
+
},
|
484
|
+
"complexType": {
|
485
|
+
"original": "__esri.Graphic",
|
486
|
+
"resolved": "Graphic",
|
487
|
+
"references": {
|
488
|
+
"___esri": {
|
489
|
+
"location": "global",
|
490
|
+
"id": "global::___esri"
|
491
|
+
}
|
492
|
+
}
|
493
|
+
}
|
408
494
|
}];
|
409
495
|
}
|
410
496
|
static get methods() {
|
@@ -56,7 +56,7 @@ export class FeatureFormFlowItem {
|
|
56
56
|
//
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: '2607999cdad5fbe75eac4366256b589eeb33fe36' }, h("slot", { key: 'a9443a71e40b37449d01f4c40ca5f21b83bf005a' })));
|
60
60
|
}
|
61
61
|
static get is() { return "feature-form-flow-item"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -31,6 +31,10 @@ export class FeatureList {
|
|
31
31
|
this.pageSize = 100;
|
32
32
|
this.highlightOnMap = false;
|
33
33
|
this.highlightOnHover = false;
|
34
|
+
this.sortingInfo = undefined;
|
35
|
+
this.whereClause = undefined;
|
36
|
+
this.textSize = "large";
|
37
|
+
this.showInitialLoading = true;
|
34
38
|
this._featureItems = [];
|
35
39
|
this._featuresCount = 0;
|
36
40
|
this._isLoading = false;
|
@@ -48,6 +52,18 @@ export class FeatureList {
|
|
48
52
|
this._selectedLayer = await getLayerOrTable(this.mapView, this.selectedLayerId);
|
49
53
|
await this.initializeFeatureItems();
|
50
54
|
}
|
55
|
+
/**
|
56
|
+
* Watch for sorting field or order change and update the features list
|
57
|
+
*/
|
58
|
+
async sortingInfoWatchHandler() {
|
59
|
+
await this.initializeFeatureItems();
|
60
|
+
}
|
61
|
+
/**
|
62
|
+
* Watch for whereclause change and update the features list
|
63
|
+
*/
|
64
|
+
async whereClauseHandler() {
|
65
|
+
await this.initializeFeatureItems();
|
66
|
+
}
|
51
67
|
//--------------------------------------------------------------------------
|
52
68
|
//
|
53
69
|
// Methods (public)
|
@@ -70,7 +86,7 @@ export class FeatureList {
|
|
70
86
|
async componentWillLoad() {
|
71
87
|
await this.initModules();
|
72
88
|
await this._getTranslations();
|
73
|
-
this._isLoading =
|
89
|
+
this._isLoading = this.showInitialLoading;
|
74
90
|
this._popupUtils = new PopupUtils();
|
75
91
|
if (this.mapView && this.selectedLayerId) {
|
76
92
|
this._selectedLayer = await getLayerOrTable(this.mapView, this.selectedLayerId);
|
@@ -86,9 +102,9 @@ export class FeatureList {
|
|
86
102
|
* Renders the component.
|
87
103
|
*/
|
88
104
|
render() {
|
89
|
-
return (h("calcite-panel", { key: '
|
90
|
-
h("calcite-notice", { key: '
|
91
|
-
h("div", { key: '
|
105
|
+
return (h("calcite-panel", { key: '37f83a9c019e68213493f5e890324470389cd36f', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '671559375bb5fcdc8a01f9f10a82ab71edc0d836', label: "", scale: "m" }), this._featureItems.length === 0 && !this._isLoading &&
|
106
|
+
h("calcite-notice", { key: 'f6101de52464f2316bfbb83919036b4cf035f8b9', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: 'e49017399909f1d0b93ec4e24341b9042267977f', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '2e90c0aec739fcce422ff730a39adc85b71a84cb', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
107
|
+
h("div", { key: '4b59248846c5b433bb88171c322070a13002f23d', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: '1ca5dbccdc59379999a94198d7ac6111e1ef547b', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, "start-item": "1", "total-items": this._featuresCount }))));
|
92
108
|
}
|
93
109
|
//--------------------------------------------------------------------------
|
94
110
|
//
|
@@ -106,15 +122,36 @@ export class FeatureList {
|
|
106
122
|
]);
|
107
123
|
this.Color = Color;
|
108
124
|
}
|
125
|
+
/**
|
126
|
+
* Return the where condition string considering the defined where clause and layer's definition expression
|
127
|
+
* @protected
|
128
|
+
*/
|
129
|
+
getWhereCondition() {
|
130
|
+
var _a;
|
131
|
+
//By Default load all the features
|
132
|
+
let whereClause = '1=1';
|
133
|
+
//if where clause is defined use it
|
134
|
+
if (this.whereClause) {
|
135
|
+
whereClause = this.whereClause;
|
136
|
+
}
|
137
|
+
//if layer has definitionExpression append it to the where clause
|
138
|
+
if ((_a = this._selectedLayer) === null || _a === void 0 ? void 0 : _a.definitionExpression) {
|
139
|
+
whereClause = whereClause + ' AND ' + this._selectedLayer.definitionExpression;
|
140
|
+
}
|
141
|
+
return whereClause;
|
142
|
+
}
|
109
143
|
/**
|
110
144
|
* Initialize the features list using the selected layer
|
111
145
|
* @protected
|
112
146
|
*/
|
113
147
|
async initializeFeatureItems() {
|
114
148
|
if (this._selectedLayer) {
|
115
|
-
this._isLoading =
|
149
|
+
this._isLoading = this.showInitialLoading;
|
116
150
|
this._featureItems = await this.queryPage(0);
|
117
|
-
|
151
|
+
const query = {
|
152
|
+
where: this.getWhereCondition()
|
153
|
+
};
|
154
|
+
this._featuresCount = await this._selectedLayer.queryFeatureCount(query);
|
118
155
|
this._isLoading = false;
|
119
156
|
}
|
120
157
|
}
|
@@ -165,7 +202,7 @@ export class FeatureList {
|
|
165
202
|
}
|
166
203
|
/**
|
167
204
|
* On feature hover in feature list highlight the feature on the map
|
168
|
-
* @param selectedFeature
|
205
|
+
* @param selectedFeature mouse hovered feature graphic
|
169
206
|
* @protected
|
170
207
|
*/
|
171
208
|
async onFeatureHover(selectedFeature) {
|
@@ -195,19 +232,21 @@ export class FeatureList {
|
|
195
232
|
* @protected
|
196
233
|
*/
|
197
234
|
async queryPage(page) {
|
235
|
+
var _a, _b;
|
198
236
|
const featureLayer = this._selectedLayer;
|
199
|
-
const
|
237
|
+
const sortField = ((_a = this.sortingInfo) === null || _a === void 0 ? void 0 : _a.field) ? this.sortingInfo.field : featureLayer.objectIdField;
|
238
|
+
const sortOrder = ((_b = this.sortingInfo) === null || _b === void 0 ? void 0 : _b.order) ? this.sortingInfo.order : 'desc';
|
200
239
|
const query = {
|
201
240
|
start: page,
|
202
241
|
num: this.pageSize,
|
203
242
|
outFields: ["*"],
|
204
243
|
returnGeometry: true,
|
205
|
-
where:
|
244
|
+
where: this.getWhereCondition(),
|
206
245
|
outSpatialReference: this.mapView.spatialReference.toJSON()
|
207
246
|
};
|
208
|
-
//sort only when
|
209
|
-
if (
|
210
|
-
query.orderByFields = [
|
247
|
+
//sort only when sort field and order is valid
|
248
|
+
if (sortField && sortOrder) {
|
249
|
+
query.orderByFields = [sortField.toString() + " " + sortOrder];
|
211
250
|
}
|
212
251
|
const featureSet = await featureLayer.queryFeatures(query);
|
213
252
|
return await this.createFeatureItem(featureSet);
|
@@ -238,7 +277,8 @@ export class FeatureList {
|
|
238
277
|
const oId = selectedFeature.attributes[this._selectedLayer.objectIdField].toString();
|
239
278
|
//use object id if popupTitle is null or undefined
|
240
279
|
popupTitle = popupTitle !== null && popupTitle !== void 0 ? popupTitle : oId;
|
241
|
-
|
280
|
+
const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
|
281
|
+
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
|
242
282
|
}
|
243
283
|
/**
|
244
284
|
* Fetches the component's translations
|
@@ -369,6 +409,80 @@ export class FeatureList {
|
|
369
409
|
"attribute": "highlight-on-hover",
|
370
410
|
"reflect": false,
|
371
411
|
"defaultValue": "false"
|
412
|
+
},
|
413
|
+
"sortingInfo": {
|
414
|
+
"type": "unknown",
|
415
|
+
"mutable": false,
|
416
|
+
"complexType": {
|
417
|
+
"original": "ISortingInfo",
|
418
|
+
"resolved": "ISortingInfo",
|
419
|
+
"references": {
|
420
|
+
"ISortingInfo": {
|
421
|
+
"location": "import",
|
422
|
+
"path": "../../utils/interfaces",
|
423
|
+
"id": "src/utils/interfaces.ts::ISortingInfo"
|
424
|
+
}
|
425
|
+
}
|
426
|
+
},
|
427
|
+
"required": false,
|
428
|
+
"optional": true,
|
429
|
+
"docs": {
|
430
|
+
"tags": [],
|
431
|
+
"text": "ISortingInfo: Sorting field and order using which features list will be sorted"
|
432
|
+
}
|
433
|
+
},
|
434
|
+
"whereClause": {
|
435
|
+
"type": "string",
|
436
|
+
"mutable": false,
|
437
|
+
"complexType": {
|
438
|
+
"original": "string",
|
439
|
+
"resolved": "string",
|
440
|
+
"references": {}
|
441
|
+
},
|
442
|
+
"required": false,
|
443
|
+
"optional": true,
|
444
|
+
"docs": {
|
445
|
+
"tags": [],
|
446
|
+
"text": "string: where clause to filter the features list"
|
447
|
+
},
|
448
|
+
"attribute": "where-clause",
|
449
|
+
"reflect": false
|
450
|
+
},
|
451
|
+
"textSize": {
|
452
|
+
"type": "string",
|
453
|
+
"mutable": false,
|
454
|
+
"complexType": {
|
455
|
+
"original": "\"small\" | \"large\"",
|
456
|
+
"resolved": "\"large\" | \"small\"",
|
457
|
+
"references": {}
|
458
|
+
},
|
459
|
+
"required": false,
|
460
|
+
"optional": true,
|
461
|
+
"docs": {
|
462
|
+
"tags": [],
|
463
|
+
"text": "string(small/large): Controls the font size of the title"
|
464
|
+
},
|
465
|
+
"attribute": "text-size",
|
466
|
+
"reflect": false,
|
467
|
+
"defaultValue": "\"large\""
|
468
|
+
},
|
469
|
+
"showInitialLoading": {
|
470
|
+
"type": "boolean",
|
471
|
+
"mutable": false,
|
472
|
+
"complexType": {
|
473
|
+
"original": "boolean",
|
474
|
+
"resolved": "boolean",
|
475
|
+
"references": {}
|
476
|
+
},
|
477
|
+
"required": false,
|
478
|
+
"optional": true,
|
479
|
+
"docs": {
|
480
|
+
"tags": [],
|
481
|
+
"text": "boolean: Show initial loading indicator when creating list"
|
482
|
+
},
|
483
|
+
"attribute": "show-initial-loading",
|
484
|
+
"reflect": false,
|
485
|
+
"defaultValue": "true"
|
372
486
|
}
|
373
487
|
};
|
374
488
|
}
|
@@ -432,6 +546,12 @@ export class FeatureList {
|
|
432
546
|
return [{
|
433
547
|
"propName": "selectedLayerId",
|
434
548
|
"methodName": "selectedLayerWatchHandler"
|
549
|
+
}, {
|
550
|
+
"propName": "sortingInfo",
|
551
|
+
"methodName": "sortingInfoWatchHandler"
|
552
|
+
}, {
|
553
|
+
"propName": "whereClause",
|
554
|
+
"methodName": "whereClauseHandler"
|
435
555
|
}];
|
436
556
|
}
|
437
557
|
}
|
@@ -56,7 +56,7 @@ export class FeaturesFlowItem {
|
|
56
56
|
//
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: 'e0d4102af27d4ca25cb6257292797c2900337ec7' }, h("slot", { key: 'ea50a07d3d33ee0b67bc5a27a71bc7ea597fb008' })));
|
60
60
|
}
|
61
61
|
static get is() { return "features-flow-item"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -57,7 +57,7 @@ export class FloorFilter {
|
|
57
57
|
return this._initModules();
|
58
58
|
}
|
59
59
|
render() {
|
60
|
-
return (h(Host, { key: '
|
60
|
+
return (h(Host, { key: '4b532bae1022d879f46022203a9ffa00c8e615a7' }, h("div", { key: 'd75ad603472d2f57ccd52725f1c3ed428bdd8173', ref: (el) => { this._floorFilterElement = el; } })));
|
61
61
|
}
|
62
62
|
//--------------------------------------------------------------------------
|
63
63
|
//
|
@@ -24,6 +24,10 @@ import { loadModules } from "../../utils/loadModules";
|
|
24
24
|
import { PopupUtils } from "../../utils/popupUtils";
|
25
25
|
export class InfoCard {
|
26
26
|
constructor() {
|
27
|
+
/**
|
28
|
+
* string: unique id for the features node
|
29
|
+
*/
|
30
|
+
this._featuresNodeId = 'features-node' + new Date().getMilliseconds().toString();
|
27
31
|
this.graphics = undefined;
|
28
32
|
this.isLoading = false;
|
29
33
|
this.isMobile = undefined;
|
@@ -79,8 +83,8 @@ export class InfoCard {
|
|
79
83
|
return this._features.selectedFeature;
|
80
84
|
}
|
81
85
|
/**
|
82
|
-
*
|
83
|
-
* @returns Promise
|
86
|
+
* Refresh the feature info
|
87
|
+
* @returns Promise when complete
|
84
88
|
*/
|
85
89
|
async refresh() {
|
86
90
|
await this.setGraphics();
|
@@ -181,8 +185,8 @@ export class InfoCard {
|
|
181
185
|
const id = (_d = (_c = this._features) === null || _c === void 0 ? void 0 : _c.selectedFeature) === null || _d === void 0 ? void 0 : _d.getObjectId();
|
182
186
|
const ids = parseInt(id === null || id === void 0 ? void 0 : id.toString(), 10) > -1 ? [id] : [];
|
183
187
|
const deleteEnabled = ((_e = this._layer) === null || _e === void 0 ? void 0 : _e.editingEnabled) && ((_h = (_g = (_f = this._layer) === null || _f === void 0 ? void 0 : _f.capabilities) === null || _g === void 0 ? void 0 : _g.operations) === null || _h === void 0 ? void 0 : _h.supportsDelete);
|
184
|
-
return (h(Host, { key: '
|
185
|
-
h("div", { key: '
|
188
|
+
return (h(Host, { key: '7b48c1dbd2c4e384c4bcba62a8cf35e4c62d2edb' }, h("calcite-shell", { key: 'a8387dfb3968ea07182cdd782a5a147bdcb1188a', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: '1695d423a19876c6ccde5f4004f21ca26e305350', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'd8870e95ba06ed713c5143c5b260ee4059275d81', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '84af335caa0f39890801faebc207bf8c794fe1e3', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
189
|
+
h("div", { key: 'fa91c18424af38067c44e50635b9af55aacc84b8', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: 'c4565bda374ab4eb2afd2273c62256fae187d151', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '7175a74e7e1db0939fbbe4a229e7f6df6efb2768', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '6443c4d8274fe6003f5dcbd3b36f35057234c550' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: 'ff3d3dffd57bf118f7e71ec5a504bbcfda0de229', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '1912bdf3dbad45ba66acf13ef8ad6894ced8caa2' }, h("calcite-button", { key: 'fe1e5032b764b3c0ac8ef619c9d365f8d781d6b3', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'a9928e72cc3dcebad2544ee5a347a0b70ebdae4b', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '6d8cc94ae72deab6ae19d3314f5b0f7e1833bd3c' }, this._translations.back))), h("calcite-action", { key: '90d7951f0eacd4b77f8ebe3da79a12665a8b9f63', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: '6c36eb43691a79b6a7c0da99663fa22c1d97e572', class: "pagination-count" }, this._count)), h("div", { key: '23758504ca1b4b97c4c488e88e61f0c3cdc10830' }, h("calcite-button", { key: '93efeff6e0cb54edd1817c3410806b009755618f', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '17afd49a3b167d9322d944a9d8ae6ffc249d202e', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '0b15e569313961c53700d2ef6eb148b9c0efd778' }, this._translations.next))))), h("edit-card", { key: '2217a66105095ea1e5bd577dc8bf970b3fdeae10', class: editClass, graphicIndex: (_j = this._features) === null || _j === void 0 ? void 0 : _j.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: 'c59bd8d759ef1df763b3bbe513b7146cfa270057', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '3733d543e7483037aa5130f0ca06f8da434eaf7e', slot: "title" }, this._translations.editDisabled), h("div", { key: 'eaace9548fd442015000f836d54e556c9859a3fc', slot: "message" }, this._translations.enableEditing)))));
|
186
190
|
}
|
187
191
|
//--------------------------------------------------------------------------
|
188
192
|
//
|
@@ -241,7 +245,7 @@ export class InfoCard {
|
|
241
245
|
if (!this._features) {
|
242
246
|
this._features = new this.Features({
|
243
247
|
view: this.mapView,
|
244
|
-
container:
|
248
|
+
container: this._featuresNodeId,
|
245
249
|
visibleElements: {
|
246
250
|
actionBar: false,
|
247
251
|
closeButton: false,
|
@@ -615,10 +619,10 @@ export class InfoCard {
|
|
615
619
|
"return": "Promise<any>"
|
616
620
|
},
|
617
621
|
"docs": {
|
618
|
-
"text": "
|
622
|
+
"text": "Refresh the feature info",
|
619
623
|
"tags": [{
|
620
624
|
"name": "returns",
|
621
|
-
"text": "Promise
|
625
|
+
"text": "Promise when complete"
|
622
626
|
}]
|
623
627
|
}
|
624
628
|
},
|
@@ -132,7 +132,7 @@ export class JsonEditor {
|
|
132
132
|
* Renders the component.
|
133
133
|
*/
|
134
134
|
render() {
|
135
|
-
return (h(Host, { key: '
|
135
|
+
return (h(Host, { key: 'df3dd7531bfc6256919c3d5f14b5f2837fda5aac' }, h("div", { key: '9dd13f859e92b7cbe719da36f71428e9a44514aa', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { key: '3762323a88ada57aeb6483d1f510ae7b64ed7095', class: "editor-controls" }, h("div", { key: '754caf059ecaffdc08f1bd46e496e44ea4cca274', class: "editor-buttons" }, h("calcite-icon", { key: '96620de487619db0a3f893ed91dbc7a0aff72517', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { key: 'ef437976e3a198319885ae42f241f19206f5675b', id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '168ad569ab54238f0cb7a9b3c33f2186ad44dbc5', icon: "undo", scale: "s" })), h("calcite-button", { key: 'f1fd90dccdc0f1e0645e383d547dd0d68e55bd93', id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'c3fe8f81cd0a383da9c0b7538b88b69995da83e8', icon: "redo", scale: "s" })), h("calcite-button", { key: '3a23491a976b9cc9e21df4f693044c16e0fa896a', id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '35fe88eaeb9af26991817d882691ee8462a131c5', icon: "compare", scale: "s" })), h("calcite-button", { key: '8091d794c5d9e0c1d7a7a6bd21cd690e3eaf83e5', id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'bff6d836ca319f8c1fe440117d6d983c07dd8106', icon: "search", scale: "s" })), h("calcite-button", { key: '44e7d523d29fb3f92f6b10b101d43239b5c7919c', id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'e6bfea7cd2574929917204f74ed924dc8072befb', icon: "reset", scale: "s" })))), h("div", { key: 'a0cbb47b3f6ed02839fdbf65ab62d50c16a44107', class: "edit-parent" }, h("div", { key: '07ac2b80bd612fb86b8970cfbf9be080d1f574eb', id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { key: 'd98d705059fd769906f695298f7dc11cc96ebc2a', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
|
136
136
|
}
|
137
137
|
//--------------------------------------------------------------------------
|
138
138
|
//
|