@esri/solutions-components 0.10.33 → 0.10.35
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/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_5.cjs.entry.js +7 -5
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_4.cjs.entry.js +18 -16
- package/dist/cjs/{calcite-modal_3.cjs.entry.js → calcite-modal.cjs.entry.js} +27 -368
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
- package/dist/cjs/calcite-shell_3.cjs.entry.js +440 -0
- package/dist/cjs/card-manager_3.cjs.entry.js +114 -10
- package/dist/cjs/crowdsource-manager.cjs.entry.js +16 -6
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +24 -21
- 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 +4 -4
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-time-filter.cjs.entry.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 +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- 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-accordion.cjs.entry.js +1 -1
- 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/assets/t9n/delete-dialog/resources.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ar.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_bg.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_bs.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ca.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_cs.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_da.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_de.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_el.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_en.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_es.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_et.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_fi.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_fr.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_he.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_hr.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_hu.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_id.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_it.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ja.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ko.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_lt.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_lv.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_nb.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_nl.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_pl.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ro.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_ru.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_sk.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_sl.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_sr.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_sv.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_th.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_tr.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_uk.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_vi.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
- package/dist/collection/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
- package/dist/collection/assets/t9n/map-card/resources.json +2 -1
- package/dist/collection/assets/t9n/map-card/resources_en.json +2 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/create-feature/create-feature.css +2 -1
- package/dist/collection/components/create-feature/create-feature.js +3 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +38 -5
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +24 -21
- package/dist/collection/components/delete-button/delete-button.js +20 -27
- package/dist/collection/components/delete-dialog/delete-dialog.css +23 -0
- package/dist/collection/components/delete-dialog/delete-dialog.js +239 -0
- 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.js +13 -11
- package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
- package/dist/collection/components/feature-list/feature-list.js +4 -4
- 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 +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-list/layer-list.js +5 -5
- package/dist/collection/components/layer-table/layer-table.css +6 -0
- package/dist/collection/components/layer-table/layer-table.js +53 -7
- 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 +168 -2
- 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-accordion/solution-item-accordion.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/components/card-manager2.js +40 -34
- package/dist/components/create-feature2.js +4 -2
- package/dist/components/crowdsource-manager.js +115 -98
- package/dist/components/crowdsource-reporter.js +110 -101
- package/dist/components/delete-button2.js +24 -41
- package/dist/components/delete-dialog.d.ts +11 -0
- package/dist/components/delete-dialog.js +11 -0
- package/dist/components/delete-dialog2.js +165 -0
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/feature-comments.js +1 -1
- package/dist/components/feature-details2.js +67 -59
- package/dist/components/feature-form-flow-item.js +1 -1
- package/dist/components/feature-list2.js +4 -4
- package/dist/components/features-flow-item.js +1 -1
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +38 -32
- package/dist/components/instant-apps-time-filter.js +2 -2
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-list2.js +5 -5
- package/dist/components/layer-table2.js +111 -82
- 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 +157 -60
- 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/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 +1 -1
- 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-accordion.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-ref.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_5.entry.js +7 -5
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-flow_4.entry.js +18 -16
- package/dist/esm/{calcite-modal_3.entry.js → calcite-modal.entry.js} +30 -369
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
- package/dist/esm/calcite-shell_3.entry.js +434 -0
- package/dist/esm/card-manager_3.entry.js +114 -10
- package/dist/esm/crowdsource-manager.entry.js +16 -6
- package/dist/esm/crowdsource-reporter.entry.js +24 -21
- 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 +4 -4
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/instant-apps-time-filter.entry.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 +3 -3
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- 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-accordion.entry.js +1 -1
- 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/assets/t9n/delete-dialog/resources.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ar.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_bg.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_bs.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ca.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_cs.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_da.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_de.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_el.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_en.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_es.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_et.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_fi.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_fr.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_he.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_hr.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_hu.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_id.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_it.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ja.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ko.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_lt.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_lv.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_nb.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_nl.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_pl.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ro.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_ru.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_sk.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_sl.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_sr.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_sv.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_th.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_tr.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_uk.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_vi.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
- package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
- package/dist/solutions-components/assets/t9n/map-card/resources.json +2 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_en.json +2 -1
- package/dist/solutions-components/{p-6c3261d7.entry.js → p-06364211.entry.js} +1 -1
- package/dist/solutions-components/{p-d119872d.entry.js → p-18089a0b.entry.js} +1 -1
- package/dist/solutions-components/p-1f07e21a.entry.js +6 -0
- package/dist/solutions-components/p-2a6ecaa9.entry.js +11 -0
- package/dist/solutions-components/p-3a513c67.entry.js +6 -0
- package/dist/solutions-components/p-46416e11.entry.js +6 -0
- package/dist/solutions-components/{p-a8525233.entry.js → p-588adf13.entry.js} +1 -1
- package/dist/solutions-components/{p-5fc0e134.entry.js → p-59ccd27c.entry.js} +1 -1
- package/dist/solutions-components/p-5eb9a413.entry.js +6 -0
- package/dist/solutions-components/{p-42f75c8f.entry.js → p-6502d0f8.entry.js} +1 -1
- package/dist/solutions-components/p-70c0050c.entry.js +6 -0
- package/dist/solutions-components/p-74bcef23.entry.js +11 -0
- package/dist/solutions-components/{p-4cb12506.entry.js → p-76154700.entry.js} +1 -1
- package/dist/solutions-components/p-82ddf716.entry.js +6 -0
- package/dist/solutions-components/{p-d08ece15.entry.js → p-841816a1.entry.js} +1 -1
- package/dist/solutions-components/{p-4f5913f3.entry.js → p-89046451.entry.js} +1 -1
- package/dist/solutions-components/p-938bc915.entry.js +6 -0
- package/dist/solutions-components/{p-fa7672c7.entry.js → p-9d56f4b5.entry.js} +1 -1
- package/dist/solutions-components/p-9da8a590.entry.js +6 -0
- package/dist/solutions-components/{p-5fdb8f83.entry.js → p-a5d79c86.entry.js} +1 -1
- package/dist/solutions-components/{p-dd0bd439.entry.js → p-b4c49411.entry.js} +2 -2
- package/dist/solutions-components/p-b86b2664.entry.js +6 -0
- package/dist/solutions-components/{p-ddc1218d.entry.js → p-be4c7ffd.entry.js} +1 -1
- package/dist/solutions-components/{p-ffa9a117.entry.js → p-cb3199f9.entry.js} +1 -1
- package/dist/solutions-components/{p-a07322cc.entry.js → p-df7de4b7.entry.js} +1 -1
- package/dist/solutions-components/{p-1f072e2c.entry.js → p-eadff42b.entry.js} +1 -1
- package/dist/solutions-components/{p-8a411917.entry.js → p-ecf642c2.entry.js} +1 -1
- package/dist/solutions-components/{p-06db1bfd.entry.js → p-efb4cb43.entry.js} +1 -1
- package/dist/solutions-components/{p-e4a42efa.entry.js → p-fa1c368c.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +6 -1
- package/dist/types/components/delete-button/delete-button.d.ts +4 -12
- package/dist/types/components/delete-dialog/delete-dialog.d.ts +75 -0
- package/dist/types/components/layer-table/layer-table.d.ts +21 -1
- package/dist/types/components/map-card/map-card.d.ts +46 -1
- package/dist/types/components.d.ts +117 -0
- package/dist/types/preact.d.ts +5 -0
- package/package.json +2 -2
- package/dist/solutions-components/p-084719d6.entry.js +0 -6
- package/dist/solutions-components/p-3bcdf332.entry.js +0 -6
- package/dist/solutions-components/p-51e2500f.entry.js +0 -6
- package/dist/solutions-components/p-52280e10.entry.js +0 -17
- package/dist/solutions-components/p-67ca4a64.entry.js +0 -6
- package/dist/solutions-components/p-710bd9ec.entry.js +0 -6
- package/dist/solutions-components/p-7e6a8c06.entry.js +0 -6
- package/dist/solutions-components/p-8e6081e0.entry.js +0 -6
- package/dist/solutions-components/p-b9b77b87.entry.js +0 -6
- package/dist/solutions-components/p-edd88d2d.entry.js +0 -6
|
@@ -205,7 +205,7 @@ const CardManager = class {
|
|
|
205
205
|
};
|
|
206
206
|
CardManager.style = CardManagerStyle0;
|
|
207
207
|
|
|
208
|
-
const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir=\"rtl\"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1) !important}.search{--calcite-color-border-input:var(--calcite-color-border-3);width:60%;padding:10px}";
|
|
208
|
+
const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir=\"rtl\"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1) !important}.search{--calcite-color-border-input:var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color:var(--calcite-color-status-danger);--calcite-color-text-1:var(--calcite-color-status-danger);--calcite-color-text-3:var(--calcite-color-status-danger)}";
|
|
209
209
|
const LayerTableStyle0 = layerTableCss;
|
|
210
210
|
|
|
211
211
|
const LayerTable = class {
|
|
@@ -213,6 +213,7 @@ const LayerTable = class {
|
|
|
213
213
|
index.registerInstance(this, hostRef);
|
|
214
214
|
this.featureSelectionChange = index.createEvent(this, "featureSelectionChange", 7);
|
|
215
215
|
this.toggleFilter = index.createEvent(this, "toggleFilter", 7);
|
|
216
|
+
this.appLayout = undefined;
|
|
216
217
|
this.defaultGlobalId = undefined;
|
|
217
218
|
this.defaultLayerId = undefined;
|
|
218
219
|
this.defaultOid = undefined;
|
|
@@ -241,6 +242,7 @@ const LayerTable = class {
|
|
|
241
242
|
this._filterOpen = false;
|
|
242
243
|
this._layer = undefined;
|
|
243
244
|
this._selectAllActive = false;
|
|
245
|
+
this._deleteDialogOpen = false;
|
|
244
246
|
this._showHideOpen = false;
|
|
245
247
|
this._showOnlySelected = false;
|
|
246
248
|
this._toolInfos = undefined;
|
|
@@ -416,6 +418,12 @@ const LayerTable = class {
|
|
|
416
418
|
// Watch handlers
|
|
417
419
|
//
|
|
418
420
|
//--------------------------------------------------------------------------
|
|
421
|
+
/**
|
|
422
|
+
* Update the url params when the appLayout changes
|
|
423
|
+
*/
|
|
424
|
+
appLayoutWatchHandler() {
|
|
425
|
+
this._updateShareUrl();
|
|
426
|
+
}
|
|
419
427
|
/**
|
|
420
428
|
* Handle url defaults when defaultOid is set
|
|
421
429
|
*/
|
|
@@ -702,11 +710,12 @@ const LayerTable = class {
|
|
|
702
710
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
|
703
711
|
const showSearch = this._canShowFullTextSearch();
|
|
704
712
|
this._validateActiveActions();
|
|
705
|
-
return (index.h(index.Host, { key: '
|
|
706
|
-
index.h("div", { key: '
|
|
713
|
+
return (index.h(index.Host, { key: '04fccaaa9862ed315d99ad74f7e1135dd5656613' }, index.h("calcite-shell", { key: 'e332d781be1499857a5e17e37ad2e058bba453b1' }, this._getTableControlRow("header"), index.h("div", { key: '6337e494f879c250494c5f5859daec627fdd0700', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: 'd0d437997906fd15f97765cb89c3917f66b20c37', class: "height-full width-full" }, showSearch &&
|
|
714
|
+
index.h("div", { key: '596a2d54fd707941d9e2ec167598313d9ee9b295', class: "search-container" }, index.h("calcite-input", { key: '31cd1ffb09bc2c6c9c1f9daf39f3e9549cbceeb2', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), index.h("calcite-loader", { key: 'b4ba3d32fb346134672e08d55428bd38ac43f40d', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: '4fbac73935be7a1163643543e6d77a200534e5e3', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
|
707
715
|
.replace("{{total}}", total)
|
|
708
|
-
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal()));
|
|
716
|
+
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal(), index.h("delete-dialog", { key: '3b0dba8bc391d777f4687ad6f4e905aeb1eb580b', id: "deleteDialogId", ids: this._getIds(), layer: this._layer, onDeleteDialogClose: () => this._deleteDialogOpen = false, open: this._deleteDialogOpen, ref: (el) => this._deleteDialog = el })));
|
|
709
717
|
}
|
|
718
|
+
_deleteDialog;
|
|
710
719
|
/**
|
|
711
720
|
* Called once after the component is loaded
|
|
712
721
|
*/
|
|
@@ -1009,7 +1018,7 @@ const LayerTable = class {
|
|
|
1009
1018
|
icon: "trash",
|
|
1010
1019
|
indicator: undefined,
|
|
1011
1020
|
label: this._translations.delete,
|
|
1012
|
-
func: () =>
|
|
1021
|
+
func: () => this._showDelete(),
|
|
1013
1022
|
disabled: !featuresSelected,
|
|
1014
1023
|
isDanger: true,
|
|
1015
1024
|
isOverflow: false
|
|
@@ -1249,7 +1258,7 @@ const LayerTable = class {
|
|
|
1249
1258
|
_getDropdown(id) {
|
|
1250
1259
|
const dropdownItems = this._getDropdownItems();
|
|
1251
1260
|
return dropdownItems.length > 0 ? (index.h("calcite-dropdown", { closeOnSelectDisabled: true, disabled: this._layer === undefined, id: "solutions-more", onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._moreDropdown = el }, index.h("calcite-action", { appearance: "solid", id: id, label: "", onClick: () => this._closeShowHide(), slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
|
|
1252
|
-
return (index.h("calcite-dropdown-group", { class: item.disabled ? "disabled" : ""
|
|
1261
|
+
return (index.h("calcite-dropdown-group", { class: `${item.disabled ? "disabled" : ""} ${item.icon === "trash" ? "delete-red" : ""}`, selectionMode: "none" }, index.h("calcite-dropdown-item", { disabled: item.loading, iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.loading ? "" : item.icon, id: `layer-table-${item.icon}`, onClick: item.func }, item.loading ? (index.h("div", { class: "display-flex" }, index.h("calcite-loader", { inline: true, label: item.label, scale: "m" }), item.label)) : item.label)));
|
|
1253
1262
|
})), this._showHideOpen ? this._getFieldlist() : undefined)) : undefined;
|
|
1254
1263
|
}
|
|
1255
1264
|
/**
|
|
@@ -1274,6 +1283,15 @@ const LayerTable = class {
|
|
|
1274
1283
|
const _disabled = this._layer === undefined ? true : disabled;
|
|
1275
1284
|
return (index.h("div", { class: "display-flex", id: this._getId(icon), slot: slot }, index.h("calcite-action", { active: active, appearance: "solid", disabled: _disabled, icon: icon, id: `layer-table-${icon}`, indicator: indicator, label: label, loading: loading, onClick: func, text: label, textEnabled: true }), this._getToolTip("bottom", icon, label)));
|
|
1276
1285
|
}
|
|
1286
|
+
/**
|
|
1287
|
+
* Show the delete dialog
|
|
1288
|
+
*
|
|
1289
|
+
* @param
|
|
1290
|
+
*
|
|
1291
|
+
*/
|
|
1292
|
+
_showDelete() {
|
|
1293
|
+
this._deleteDialogOpen = true;
|
|
1294
|
+
}
|
|
1277
1295
|
/**
|
|
1278
1296
|
* Get an action and tooltip for share
|
|
1279
1297
|
*
|
|
@@ -1312,6 +1330,7 @@ const LayerTable = class {
|
|
|
1312
1330
|
else {
|
|
1313
1331
|
urlObj.searchParams.delete("oid");
|
|
1314
1332
|
}
|
|
1333
|
+
urlObj.searchParams.set("applayout", this.appLayout);
|
|
1315
1334
|
this._shareNode.shareUrl = urlObj.href;
|
|
1316
1335
|
}
|
|
1317
1336
|
/**
|
|
@@ -1349,7 +1368,7 @@ const LayerTable = class {
|
|
|
1349
1368
|
*/
|
|
1350
1369
|
_getDangerAction(icon, label, func, disabled) {
|
|
1351
1370
|
const _disabled = this._layer === undefined ? true : disabled;
|
|
1352
|
-
return (index.h("div", { class: "display-flex", id: this._getId(icon) }, icon === "trash" ? (index.h("delete-button", { buttonType: "action", class: "display-flex", disabled: _disabled, icon: icon, ids: this._getIds(), layer: this._layer })) : (index.h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: label }, index.h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label))), this._getToolTip("bottom", icon, label)));
|
|
1371
|
+
return (index.h("div", { class: "display-flex", id: this._getId(icon) }, icon === "trash" ? (index.h("delete-button", { buttonType: "action", class: "display-flex", disabled: _disabled, icon: icon, id: "solutions-delete", ids: this._getIds(), layer: this._layer })) : (index.h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: label }, index.h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label))), this._getToolTip("bottom", icon, label)));
|
|
1353
1372
|
}
|
|
1354
1373
|
/**
|
|
1355
1374
|
* Return all currently selected IDs from the table
|
|
@@ -1357,7 +1376,7 @@ const LayerTable = class {
|
|
|
1357
1376
|
* @param number[] the selected ids
|
|
1358
1377
|
*/
|
|
1359
1378
|
_getIds() {
|
|
1360
|
-
return this._table
|
|
1379
|
+
return this._table?.highlightIds?.toArray();
|
|
1361
1380
|
}
|
|
1362
1381
|
/**
|
|
1363
1382
|
* Store a reference to the table node after it's first created
|
|
@@ -2056,6 +2075,7 @@ const LayerTable = class {
|
|
|
2056
2075
|
this._translations = messages[0];
|
|
2057
2076
|
}
|
|
2058
2077
|
static get watchers() { return {
|
|
2078
|
+
"appLayout": ["appLayoutWatchHandler"],
|
|
2059
2079
|
"defaultOid": ["defaultOidWatchHandler"],
|
|
2060
2080
|
"defaultGlobalId": ["defaultGlobalIdWatchHandler"],
|
|
2061
2081
|
"enableCSV": ["enableCSVWatchHandler"],
|
|
@@ -2121,6 +2141,7 @@ const MapCard = class {
|
|
|
2121
2141
|
this.beforeMapChanged = index.createEvent(this, "beforeMapChanged", 7);
|
|
2122
2142
|
this.toggleFilter = index.createEvent(this, "toggleFilter", 7);
|
|
2123
2143
|
this.clearSelection = index.createEvent(this, "clearSelection", 7);
|
|
2144
|
+
this.appLayout = undefined;
|
|
2124
2145
|
this.appProxies = undefined;
|
|
2125
2146
|
this.defaultWebmapId = "";
|
|
2126
2147
|
this.defaultLayerId = undefined;
|
|
@@ -2128,6 +2149,7 @@ const MapCard = class {
|
|
|
2128
2149
|
this.enableLegend = undefined;
|
|
2129
2150
|
this.enableFloorFilter = undefined;
|
|
2130
2151
|
this.enableFullscreen = undefined;
|
|
2152
|
+
this.enableShare = false;
|
|
2131
2153
|
this.enableSingleExpand = true;
|
|
2132
2154
|
this.enableSearch = undefined;
|
|
2133
2155
|
this.enableBasemap = undefined;
|
|
@@ -2145,6 +2167,8 @@ const MapCard = class {
|
|
|
2145
2167
|
this.theme = undefined;
|
|
2146
2168
|
this.toolOrder = undefined;
|
|
2147
2169
|
this.isMapLayout = undefined;
|
|
2170
|
+
this.shareIncludeEmbed = undefined;
|
|
2171
|
+
this.shareIncludeSocial = undefined;
|
|
2148
2172
|
this.selectedFeaturesIds = undefined;
|
|
2149
2173
|
this.selectedLayer = undefined;
|
|
2150
2174
|
this.zoomToScale = undefined;
|
|
@@ -2228,6 +2252,10 @@ const MapCard = class {
|
|
|
2228
2252
|
* ResizeObserver: The observer that watches for toolbar size changes
|
|
2229
2253
|
*/
|
|
2230
2254
|
_resizeObserver;
|
|
2255
|
+
/**
|
|
2256
|
+
* HTMLInstantAppsSocialShareElement: Element to support app sharing to social media
|
|
2257
|
+
*/
|
|
2258
|
+
_shareNode;
|
|
2231
2259
|
/**
|
|
2232
2260
|
* HTMLCalciteDropdownElement: Dropdown the will support show/hide of table columns
|
|
2233
2261
|
*/
|
|
@@ -2257,12 +2285,36 @@ const MapCard = class {
|
|
|
2257
2285
|
// Watch handlers
|
|
2258
2286
|
//
|
|
2259
2287
|
//--------------------------------------------------------------------------
|
|
2288
|
+
/**
|
|
2289
|
+
* Update the url params when the appLayout changes
|
|
2290
|
+
*/
|
|
2291
|
+
appLayoutWatchHandler() {
|
|
2292
|
+
this._updateShareUrl();
|
|
2293
|
+
}
|
|
2260
2294
|
/**
|
|
2261
2295
|
* Add/remove home widget
|
|
2262
2296
|
*/
|
|
2263
2297
|
enableHomeWatchHandler() {
|
|
2264
2298
|
this._initHome();
|
|
2265
2299
|
}
|
|
2300
|
+
/**
|
|
2301
|
+
* Update the toolbar when the share button is enabled/disabled
|
|
2302
|
+
*/
|
|
2303
|
+
enableShareWatchHandler() {
|
|
2304
|
+
// this should be caught by component did render and is when I test locally
|
|
2305
|
+
// however have had reported case where it is not somehow on devext so adding explicit check here
|
|
2306
|
+
if (this._toolbar) {
|
|
2307
|
+
this._updateToolbar();
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* watch for changes in map view and get the first layer
|
|
2312
|
+
*/
|
|
2313
|
+
async mapViewWatchHandler() {
|
|
2314
|
+
if (this.mapView) {
|
|
2315
|
+
this._updateShareUrl();
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2266
2318
|
/**
|
|
2267
2319
|
* watch for changes in layer view and verify if it has editing enabled
|
|
2268
2320
|
*/
|
|
@@ -2275,6 +2327,7 @@ const MapCard = class {
|
|
|
2275
2327
|
* watch for features ids changes
|
|
2276
2328
|
*/
|
|
2277
2329
|
async selectedFeaturesIdsWatchHandler() {
|
|
2330
|
+
this._updateShareUrl();
|
|
2278
2331
|
this._validateEnabledActions();
|
|
2279
2332
|
}
|
|
2280
2333
|
/**
|
|
@@ -2303,12 +2356,14 @@ const MapCard = class {
|
|
|
2303
2356
|
*/
|
|
2304
2357
|
async resetFilter() {
|
|
2305
2358
|
this._filterActive = false;
|
|
2359
|
+
this._updateShareUrl();
|
|
2306
2360
|
}
|
|
2307
2361
|
/**
|
|
2308
2362
|
* updates the filter
|
|
2309
2363
|
*/
|
|
2310
2364
|
async updateFilterState() {
|
|
2311
2365
|
this._filterActive = this._definitionExpression !== this.selectedLayer.definitionExpression;
|
|
2366
|
+
this._updateShareUrl();
|
|
2312
2367
|
}
|
|
2313
2368
|
/**
|
|
2314
2369
|
* updates the layer in map layer picker
|
|
@@ -2384,7 +2439,7 @@ const MapCard = class {
|
|
|
2384
2439
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
|
2385
2440
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
|
2386
2441
|
this._validateActiveActions();
|
|
2387
|
-
return (index.h(index.Host, { key: '
|
|
2442
|
+
return (index.h(index.Host, { key: 'd4e5ff9c4aa08a4effe19a54a1a48463cb8b3774' }, index.h("div", { key: '51ee35d267d5ef081a4c160de3e03b1790d328c8', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options"), this.enableShare && !this.isMobile && this.isMapLayout ? this._getShare("share") : undefined), index.h("calcite-progress", { key: '70a5c232aae8a9ff6740fd326e6ba6fe61936541', class: progressClass, value: 0 }), index.h("div", { key: 'c399acc019d7f0a16dbb644eee4cfdd1e6e83c7c', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), index.h("map-tools", { key: 'c6a88ccfa140fe9b0d059f74b9254af6ef0997ce', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
|
2388
2443
|
}
|
|
2389
2444
|
/**
|
|
2390
2445
|
* Called each time after the component is loaded
|
|
@@ -2403,6 +2458,7 @@ const MapCard = class {
|
|
|
2403
2458
|
this._resizeObserver.observe(this._toolbar);
|
|
2404
2459
|
this._observerSet = true;
|
|
2405
2460
|
}
|
|
2461
|
+
this._updateShareUrl();
|
|
2406
2462
|
}
|
|
2407
2463
|
//--------------------------------------------------------------------------
|
|
2408
2464
|
//
|
|
@@ -2481,6 +2537,7 @@ const MapCard = class {
|
|
|
2481
2537
|
mapView: this.mapView
|
|
2482
2538
|
});
|
|
2483
2539
|
}
|
|
2540
|
+
this._updateShareUrl();
|
|
2484
2541
|
}
|
|
2485
2542
|
/**
|
|
2486
2543
|
* Add/Remove tools from the action bar and dropdown based on available size
|
|
@@ -2499,7 +2556,7 @@ const MapCard = class {
|
|
|
2499
2556
|
prev += cur.width;
|
|
2500
2557
|
return prev;
|
|
2501
2558
|
}, 0);
|
|
2502
|
-
const skipControls = ["solutions-more", "solutions-map-layer-picker-container", "map-picker"];
|
|
2559
|
+
const skipControls = ["solutions-more", "solutions-map-layer-picker-container", "map-picker", "solutions-action-share"];
|
|
2503
2560
|
if (controlsWidth > toolbarWidth) {
|
|
2504
2561
|
if (this._toolbarSizeInfos.length > 0) {
|
|
2505
2562
|
const controlsThatFit = [...this._toolbarSizeInfos].reverse().reduce((prev, cur) => {
|
|
@@ -2625,6 +2682,50 @@ const MapCard = class {
|
|
|
2625
2682
|
return (index.h("calcite-dropdown-group", { class: item.disabled ? "disabled" : "", selectionMode: "none" }, index.h("calcite-dropdown-item", { disabled: item.loading, iconStart: item.icon, id: "solutions-subset-list", onClick: item.func }, item.loading ? (index.h("div", { class: "display-flex" }, index.h("calcite-loader", { inline: true, label: item.label, scale: "m" }), item.label)) : item.label)));
|
|
2626
2683
|
})))) : undefined;
|
|
2627
2684
|
}
|
|
2685
|
+
/**
|
|
2686
|
+
* Get an action and tooltip for share
|
|
2687
|
+
*
|
|
2688
|
+
* @param icon string the name of the icon to display, will also be used in its id
|
|
2689
|
+
*
|
|
2690
|
+
* @returns VNode The node representing the DOM element that will contain the action
|
|
2691
|
+
*/
|
|
2692
|
+
_getShare(icon) {
|
|
2693
|
+
return (index.h("div", { class: "share-action", id: this._getId(icon) }, index.h("instant-apps-social-share", { autoUpdateShareUrl: false, class: "instant-app-share", embed: this.shareIncludeEmbed, popoverButtonIconScale: "s", ref: el => {
|
|
2694
|
+
this._shareNode = el;
|
|
2695
|
+
this._updateShareUrl();
|
|
2696
|
+
}, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", socialMedia: this.shareIncludeSocial, view: this.mapView }), this._getToolTip("bottom", icon, this._translations.share)));
|
|
2697
|
+
}
|
|
2698
|
+
/**
|
|
2699
|
+
* Called each time the values that are used for custom url params change
|
|
2700
|
+
*/
|
|
2701
|
+
_updateShareUrl() {
|
|
2702
|
+
const url = this._shareNode?.shareUrl;
|
|
2703
|
+
if (!url) {
|
|
2704
|
+
return;
|
|
2705
|
+
}
|
|
2706
|
+
const urlObj = new URL(url);
|
|
2707
|
+
//set the additional search params
|
|
2708
|
+
if (this._loadedId) {
|
|
2709
|
+
urlObj.searchParams.set("webmap", this._loadedId);
|
|
2710
|
+
}
|
|
2711
|
+
else {
|
|
2712
|
+
urlObj.searchParams.delete("webmap");
|
|
2713
|
+
}
|
|
2714
|
+
if (this.selectedLayer?.id) {
|
|
2715
|
+
urlObj.searchParams.set("layer", this.selectedLayer.id);
|
|
2716
|
+
}
|
|
2717
|
+
else {
|
|
2718
|
+
urlObj.searchParams.delete("layer");
|
|
2719
|
+
}
|
|
2720
|
+
if (this.selectedFeaturesIds?.length > 0) {
|
|
2721
|
+
urlObj.searchParams.set("oid", this.selectedFeaturesIds.join(","));
|
|
2722
|
+
}
|
|
2723
|
+
else {
|
|
2724
|
+
urlObj.searchParams.delete("oid");
|
|
2725
|
+
}
|
|
2726
|
+
urlObj.searchParams.set("applayout", this.appLayout);
|
|
2727
|
+
this._shareNode.shareUrl = urlObj.href;
|
|
2728
|
+
}
|
|
2628
2729
|
/**
|
|
2629
2730
|
* Open show/hide dropdown
|
|
2630
2731
|
* @protected
|
|
@@ -2900,7 +3001,10 @@ const MapCard = class {
|
|
|
2900
3001
|
this._translations = messages[0];
|
|
2901
3002
|
}
|
|
2902
3003
|
static get watchers() { return {
|
|
3004
|
+
"appLayout": ["appLayoutWatchHandler"],
|
|
2903
3005
|
"enableHome": ["enableHomeWatchHandler"],
|
|
3006
|
+
"enableShare": ["enableShareWatchHandler"],
|
|
3007
|
+
"mapView": ["mapViewWatchHandler"],
|
|
2904
3008
|
"selectedLayer": ["selectedLayerWatchHandler"],
|
|
2905
3009
|
"selectedFeaturesIds": ["selectedFeaturesIdsWatchHandler"],
|
|
2906
3010
|
"_controlsThatFit": ["_controlsThatFitWatchHandler"]
|
|
@@ -14,7 +14,7 @@ const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
|
|
14
14
|
require('./esri-loader-08dc41bd.js');
|
|
15
15
|
require('./_commonjsHelpers-baf43783.js');
|
|
16
16
|
|
|
17
|
-
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none !important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}.z-index-0{z-index:0 !important}";
|
|
17
|
+
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none !important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}.z-index-0{z-index:0 !important}";
|
|
18
18
|
const CrowdsourceManagerStyle0 = crowdsourceManagerCss;
|
|
19
19
|
|
|
20
20
|
const CrowdsourceManager = class {
|
|
@@ -27,6 +27,7 @@ const CrowdsourceManager = class {
|
|
|
27
27
|
this.basemapConfig = undefined;
|
|
28
28
|
this.coverPageEnabled = undefined;
|
|
29
29
|
this.customInfoText = undefined;
|
|
30
|
+
this.defaultAppLayout = undefined;
|
|
30
31
|
this.defaultCenter = "";
|
|
31
32
|
this.defaultGlobalId = "";
|
|
32
33
|
this.defaultLayer = "";
|
|
@@ -82,6 +83,10 @@ const CrowdsourceManager = class {
|
|
|
82
83
|
// Properties (protected)
|
|
83
84
|
//
|
|
84
85
|
//--------------------------------------------------------------------------
|
|
86
|
+
/**
|
|
87
|
+
* boolean: When true the default appLayout has been applied and should no longer override
|
|
88
|
+
*/
|
|
89
|
+
_defaultAppLayoutHonored = false;
|
|
85
90
|
/**
|
|
86
91
|
* boolean: When true the map view will be set after render due to popup obstructing the view
|
|
87
92
|
* MapView.when is not fired when mapView is not currently visible
|
|
@@ -231,7 +236,7 @@ const CrowdsourceManager = class {
|
|
|
231
236
|
render() {
|
|
232
237
|
// only avoid border when we have a header color that is not white
|
|
233
238
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
|
234
|
-
return (index.h(index.Host, { key: '
|
|
239
|
+
return (index.h(index.Host, { key: 'ddb8bb35d74ab89ffd62d7bd0468b5a757fa5ba1' }, index.h("calcite-shell", { key: '74d941a3b1d4149a57c88cea263a2fd7e2b4f840', class: "position-relative" }, index.h("calcite-panel", { key: '3ff44942eab43c6f3a1cd92c918c0e2bae3d500a', class: `width-full height-full ${borderClass}`, loading: this._isLoading }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal()));
|
|
235
240
|
}
|
|
236
241
|
/**
|
|
237
242
|
* Called after each render
|
|
@@ -250,7 +255,11 @@ const CrowdsourceManager = class {
|
|
|
250
255
|
*/
|
|
251
256
|
async componentDidLoad() {
|
|
252
257
|
this._resizeObserver.observe(this.el);
|
|
253
|
-
if (this.
|
|
258
|
+
if (!this._defaultAppLayoutHonored && this.defaultAppLayout) {
|
|
259
|
+
this._defaultAppLayoutHonored = true;
|
|
260
|
+
this.appLayout = this.defaultAppLayout;
|
|
261
|
+
}
|
|
262
|
+
else if (this.hideMapOnLoad && !this.appLayout) {
|
|
254
263
|
this.appLayout = 'tableView';
|
|
255
264
|
}
|
|
256
265
|
else if (!this.appLayout) {
|
|
@@ -426,7 +435,7 @@ const CrowdsourceManager = class {
|
|
|
426
435
|
const isTableLayout = this.appLayout === 'tableView';
|
|
427
436
|
const mapContainerClass = (isMapLayout || isTableLayout) ? "position-absolute-0" : this._layoutMode === interfaces.ELayoutMode.HORIZONTAL && (!this._isPortraitMobile || panelOpen) ? "" : "adjusted-height-50";
|
|
428
437
|
const hasMapAndLayer = this.defaultWebmap && this.defaultLayer;
|
|
429
|
-
return (index.h("div", { class: `${mapContainerClass} overflow-hidden`, id: "card-mapView" }, index.h("map-card", { appProxies: this.appProxies, basemapConfig: this.basemapConfig, class: "width-full", defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultWebmapId: this.defaultWebmap, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: true, hidden: !this._isPortraitMobile && isTableLayout, homeZoomIndex: 3, homeZoomPosition: "top-left", homeZoomToolsSize: "s", isMapLayout: isMapLayout, isMobile: this._isMobile, mapInfo: this._mapInfo, mapInfos: this.mapInfos?.filter(mapInfo => mapInfo.visible !== false), mapWidgetsIndex: 0, mapWidgetsPosition: "top-right", mapWidgetsSize: "m", onToggleFilter: this._toggleFilter.bind(this), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._mapCard = el, selectedFeaturesIds: this._layerTable?.selectedIds, selectedLayer: this._layer, stackTools: true, theme: this.theme, toolOrder: ["legend", "search", "fullscreen", "basemap", "floorfilter"], zoomToScale: this.zoomToScale })));
|
|
438
|
+
return (index.h("div", { class: `${mapContainerClass} overflow-hidden`, id: "card-mapView" }, index.h("map-card", { appLayout: this.appLayout, appProxies: this.appProxies, basemapConfig: this.basemapConfig, class: "width-full", defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultWebmapId: this.defaultWebmap, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableShare: this.enableShare, enableSingleExpand: true, hidden: !this._isPortraitMobile && isTableLayout, homeZoomIndex: 3, homeZoomPosition: "top-left", homeZoomToolsSize: "s", isMapLayout: isMapLayout, isMobile: this._isMobile, mapInfo: this._mapInfo, mapInfos: this.mapInfos?.filter(mapInfo => mapInfo.visible !== false), mapWidgetsIndex: 0, mapWidgetsPosition: "top-right", mapWidgetsSize: "m", onToggleFilter: this._toggleFilter.bind(this), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._mapCard = el, selectedFeaturesIds: this._layerTable?.selectedIds, selectedLayer: this._layer, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, stackTools: true, theme: this.theme, toolOrder: ["legend", "search", "fullscreen", "basemap", "floorfilter"], zoomToScale: this.zoomToScale })));
|
|
430
439
|
}
|
|
431
440
|
/**
|
|
432
441
|
* Get the expand node for the popup information
|
|
@@ -440,7 +449,8 @@ const CrowdsourceManager = class {
|
|
|
440
449
|
const headerTheme = this.popupHeaderColor ? "" : !this._isPortraitMobile ? "calcite-mode-dark" : "calcite-mode-light";
|
|
441
450
|
const containerClass = this._isPortraitMobile && this._hideTable ? "position-absolute-0 width-full height-full" : this._isPortraitMobile ? "display-none height-0" : "";
|
|
442
451
|
const tableViewClass = this.mapInfos?.length > 1 && this.appLayout === "tableView" ? "position-relative top-51" : "";
|
|
443
|
-
|
|
452
|
+
// position-sticky added to avoid an issue where this dialog would overlap the delete message modal in some small screens
|
|
453
|
+
return (index.h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass} ${tableViewClass} position-sticky`, style: {
|
|
444
454
|
'--calcite-color-foreground-1': this.popupHeaderColor, /* background color that will be displayed on the popup header */
|
|
445
455
|
'--calcite-color-foreground-2': this.popupHeaderHoverColor, /* background color that will be displayed on button when hovered */
|
|
446
456
|
'--calcite-color-text-3': this.popupHeaderTextColor, /* font color that will be displayed on button */
|
|
@@ -488,7 +498,7 @@ const CrowdsourceManager = class {
|
|
|
488
498
|
this.defaultGlobalId?.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
|
|
489
499
|
const defaultOid = !this.defaultOid ? undefined :
|
|
490
500
|
this.defaultOid?.indexOf(",") > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
|
|
491
|
-
return (index.h("calcite-shell", { class: `${tableSizeClass} border-bottom` }, !this._isMobile ? (index.h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, this.getActions(layoutMode, panelOpen))) : undefined, index.h("div", { class: `width-full height-full position-relative z-index-0 ${tableClass}` }, index.h("layer-table", { createFilterModal: false, defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this?._mapInfo?.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isPortraitMobile, mapHidden: isTableLayout, mapInfo: this._mapInfo, mapView: this?._mapView, onToggleFilter: this._toggleFilter.bind(this), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale })), index.h("div", { class: mapClass, id: "full-map-view" })));
|
|
501
|
+
return (index.h("calcite-shell", { class: `${tableSizeClass} border-bottom` }, !this._isMobile ? (index.h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, this.getActions(layoutMode, panelOpen))) : undefined, index.h("div", { class: `width-full height-full position-relative z-index-0 ${tableClass}` }, index.h("layer-table", { appLayout: this.appLayout, createFilterModal: false, defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this?._mapInfo?.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isPortraitMobile, mapHidden: isTableLayout, mapInfo: this._mapInfo, mapView: this?._mapView, onToggleFilter: this._toggleFilter.bind(this), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale })), index.h("div", { class: mapClass, id: "full-map-view" })));
|
|
492
502
|
}
|
|
493
503
|
/**
|
|
494
504
|
* Returns the Actions for table's node
|
|
@@ -247,7 +247,8 @@ const CrowdsourceReporter = class {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
// refresh layer list when user is on layer list panel
|
|
251
|
+
if (this._flowItems[this._flowItems.length - 1] === "layer-list" && this._layerList) {
|
|
251
252
|
await this._layerList.refresh();
|
|
252
253
|
}
|
|
253
254
|
if (this._featureList) {
|
|
@@ -264,7 +265,8 @@ const CrowdsourceReporter = class {
|
|
|
264
265
|
if (this._editableLayerIds) {
|
|
265
266
|
await this._updateFeatures();
|
|
266
267
|
setTimeout(() => {
|
|
267
|
-
|
|
268
|
+
// refresh layer list when user is on layer list panel
|
|
269
|
+
if (this._flowItems[this._flowItems.length - 1] === "layer-list" && this._layerList) {
|
|
268
270
|
void this._layerList.refresh();
|
|
269
271
|
}
|
|
270
272
|
if (this._featureList) {
|
|
@@ -314,7 +316,7 @@ const CrowdsourceReporter = class {
|
|
|
314
316
|
*/
|
|
315
317
|
render() {
|
|
316
318
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
|
317
|
-
return (index.h(index.Host, { key: '
|
|
319
|
+
return (index.h(index.Host, { key: 'c8f50d4d6004a875444a863a9e839442708f732b' }, this._reportSubmitted && index.h("calcite-alert", { key: '5f556d67fd9f04c6277b88c0ad0f774ec9216850', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '0204b9967307421fdfeafc61eca006db62f99aab', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && index.h("calcite-alert", { key: 'fd21dc9f77fddd3b5a1edcef8f4ac0983018fb97', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, index.h("div", { key: '3a33593f8c3285d38f651316ea2f4acc148606ec', slot: "title" }, this._translations.error), index.h("div", { key: '588890b6760a7657218282ddff9f3db94b9f73f6', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && index.h("calcite-alert", { key: 'b999711f77b1f5c94a84b4ca5f80d33a4d352ea2', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: 'ed7f7b1604d5dcdbf146fdbae108081742806587', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && index.h("calcite-alert", { key: '4bbcb945e9cc232ba77b327247b37b4ca420a77c', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, index.h("div", { key: 'b75dad85bd1a793232c99b7d870fc9df9ccc0303', slot: "title" }, this._translations.error), index.h("div", { key: 'f161f78d54beba9ecaeccedd69d8e019c88a48e4', slot: "message" }, this._translations.addingCommentFailedMsg)), index.h("div", { key: '43aea9a8138da6645ee420e9e2abe21a3cbe4c91' }, index.h("calcite-shell", { key: '5fd031aba8feed8d54e3118a7a99a5be8254c89f', "content-behind": true }, this._getReporter()))));
|
|
318
320
|
}
|
|
319
321
|
//--------------------------------------------------------------------------
|
|
320
322
|
//
|
|
@@ -436,6 +438,7 @@ const CrowdsourceReporter = class {
|
|
|
436
438
|
if (canRestoreFilter) {
|
|
437
439
|
void this._filterList.restoreFilters(this._filterUrlParams[0], this._filterInitState);
|
|
438
440
|
}
|
|
441
|
+
this._filterInitState = null;
|
|
439
442
|
}, 200);
|
|
440
443
|
}
|
|
441
444
|
/**
|
|
@@ -447,12 +450,6 @@ const CrowdsourceReporter = class {
|
|
|
447
450
|
this._filterActive = false;
|
|
448
451
|
this._filterUrlParams = null;
|
|
449
452
|
this._filterInitState = null;
|
|
450
|
-
if (this._featureList) {
|
|
451
|
-
await this._featureList.refresh();
|
|
452
|
-
}
|
|
453
|
-
if (this._layerList) {
|
|
454
|
-
await this._layerList.refresh();
|
|
455
|
-
}
|
|
456
453
|
}
|
|
457
454
|
/**
|
|
458
455
|
* Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
|
|
@@ -464,11 +461,7 @@ const CrowdsourceReporter = class {
|
|
|
464
461
|
//set the filter active state based on the length of applied filters
|
|
465
462
|
this._filterActive = this._filterList.urlParams.getAll('filter').length > 0;
|
|
466
463
|
this._filterUrlParams = this._filterList.urlParams.getAll('filter');
|
|
467
|
-
this._filterInitState = await this._filterList.getFilterInitState();
|
|
468
464
|
await this._featureList.refresh();
|
|
469
|
-
if (this._layerList) {
|
|
470
|
-
await this._layerList.refresh();
|
|
471
|
-
}
|
|
472
465
|
this._showLoadingIndicator = false;
|
|
473
466
|
}
|
|
474
467
|
/**
|
|
@@ -574,15 +567,15 @@ const CrowdsourceReporter = class {
|
|
|
574
567
|
* On submit report navigate to the layer list home page and refresh the layer list
|
|
575
568
|
* @protected
|
|
576
569
|
*/
|
|
577
|
-
onReportSubmitted() {
|
|
570
|
+
async onReportSubmitted() {
|
|
571
|
+
void this.updateNonVisibleLayersOnMap(false);
|
|
572
|
+
await this.navigateToHomePage();
|
|
573
|
+
this._reportSubmitted = true;
|
|
574
|
+
this._updatedProgressBarStatus = 0.25;
|
|
578
575
|
//on report submit form will be closed, so update the form state
|
|
579
576
|
if (this._showFullPanel) {
|
|
580
577
|
this.updatePanelState(this._sidePanelCollapsed, false);
|
|
581
578
|
}
|
|
582
|
-
void this.updateNonVisibleLayersOnMap(false);
|
|
583
|
-
this._reportSubmitted = true;
|
|
584
|
-
this._updatedProgressBarStatus = 0.25;
|
|
585
|
-
void this.navigateToHomePage();
|
|
586
579
|
}
|
|
587
580
|
/**
|
|
588
581
|
* On adding the is failed, show the error message
|
|
@@ -612,10 +605,11 @@ const CrowdsourceReporter = class {
|
|
|
612
605
|
* @protected
|
|
613
606
|
*/
|
|
614
607
|
async navigateToHomePage() {
|
|
608
|
+
// set the selected features and then refresh the layer list to maintain the layer's visibility state
|
|
609
|
+
await this.setSelectedFeatures([]);
|
|
615
610
|
if (this._layerList) {
|
|
616
|
-
|
|
611
|
+
await this._layerList.refresh();
|
|
617
612
|
}
|
|
618
|
-
await this.setSelectedFeatures([]);
|
|
619
613
|
if (this._editableLayerIds.length === 1) {
|
|
620
614
|
await this._featureList.refresh();
|
|
621
615
|
this._flowItems = ["feature-list"];
|
|
@@ -724,6 +718,15 @@ const CrowdsourceReporter = class {
|
|
|
724
718
|
prevLayer.definitionExpression = this._filterInitState.initDefExpressions[this._prevSelectedLayerId];
|
|
725
719
|
void this._handleFilterListReset();
|
|
726
720
|
}
|
|
721
|
+
/**
|
|
722
|
+
* On back from filter panel get the filter's init state
|
|
723
|
+
* @protected
|
|
724
|
+
*/
|
|
725
|
+
async backFromFilterPanel() {
|
|
726
|
+
this._filterInitState = await this._filterList.getFilterInitState();
|
|
727
|
+
await this._featureList.refresh();
|
|
728
|
+
this.backFromSelectedPanel();
|
|
729
|
+
}
|
|
727
730
|
/**
|
|
728
731
|
* On back from selected panel navigate to the previous panel
|
|
729
732
|
* @protected
|
|
@@ -848,7 +851,7 @@ const CrowdsourceReporter = class {
|
|
|
848
851
|
*/
|
|
849
852
|
getFilterPanel() {
|
|
850
853
|
const currentLayersExpressions = this.layerExpressions ? this.layerExpressions.filter((exp) => exp.id === this._selectedLayerId) : [];
|
|
851
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.
|
|
854
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromFilterPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("div", { class: "width-full", slot: "footer" }, index.h("div", { class: "width-full", slot: "footer" }, index.h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", disabled: !this._filterActive, onClick: () => { void this._filterList?.forceReset(); }, width: "full" }, this._translations.resetFilter), index.h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromFilterPanel.bind(this), width: "full" }, this._translations.close))), index.h("calcite-panel", { "full-height": true }, index.h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtnOnClick: () => undefined, comboboxOverlayPositioning: "fixed", layerExpressions: currentLayersExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, resetBtn: false, resetFiltersOnDisconnect: false, view: this.mapView, zoomBtn: false }))));
|
|
852
855
|
}
|
|
853
856
|
/**
|
|
854
857
|
* Returns the calcite-flow item for feature details
|
|
@@ -53,7 +53,7 @@ const FeatureComments = class {
|
|
|
53
53
|
//
|
|
54
54
|
//--------------------------------------------------------------------------
|
|
55
55
|
render() {
|
|
56
|
-
return (index.h(index.Host, { key: '
|
|
56
|
+
return (index.h(index.Host, { key: 'b58aca4fb9f05091f7b4c9a622755afed968a539' }, index.h("slot", { key: '806ab314b95a05252b5d558722b3dcb68e9b5b44' })));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
FeatureComments.style = FeatureCommentsStyle0;
|
|
@@ -53,7 +53,7 @@ const FeatureFormFlowItem = class {
|
|
|
53
53
|
//
|
|
54
54
|
//--------------------------------------------------------------------------
|
|
55
55
|
render() {
|
|
56
|
-
return (index.h(index.Host, { key: '
|
|
56
|
+
return (index.h(index.Host, { key: 'ada36a5353ae5c21f81ab8ffea24fab3312acc85' }, index.h("slot", { key: '424cb194632c9ea0ade6cf848e01a414c05abc42' })));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
FeatureFormFlowItem.style = FeatureFormFlowItemStyle0;
|
|
@@ -183,9 +183,9 @@ const FeatureList = class {
|
|
|
183
183
|
* Renders the component.
|
|
184
184
|
*/
|
|
185
185
|
render() {
|
|
186
|
-
return (index.h("calcite-panel", { key: '
|
|
187
|
-
index.h("calcite-notice", { key: '
|
|
188
|
-
index.h("div", { key: '
|
|
186
|
+
return (index.h("calcite-panel", { key: '59289a87561105e3edcbd52bac96b974b1387a16', "full-height": true, "full-width": true }, this._isLoading && index.h("calcite-loader", { key: '59629285e49227209761d2f16bdd62a90750538f', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
|
187
|
+
index.h("calcite-notice", { key: 'bc6c2e6e0fdf959374caf79f2027784e2fdaca15', class: "error-msg", icon: "feature-details", kind: "info", open: true }, index.h("div", { key: '052207ce0b0e2d8030ac7a4a7985c718371a9667', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), index.h("calcite-list", { key: '3f17ea85f2265717aa13c9c71f19c259470c9fcc', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
|
188
|
+
index.h("div", { key: 'ce3179bcdc7af254488dea909034c58db17ec565', class: "width-full", slot: "footer" }, index.h("calcite-pagination", { key: 'd6a4b8c7a940918388b3b9891a666c4a142edae7', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
|
|
189
189
|
}
|
|
190
190
|
//--------------------------------------------------------------------------
|
|
191
191
|
//
|
|
@@ -420,7 +420,7 @@ const FeatureList = class {
|
|
|
420
420
|
const popupTitlePaddingClass = this.showUserImageInList || this.showFeatureSymbol ? 'feature-list-popup-title-padding-reduced' : 'feature-list-popup-title-padding';
|
|
421
421
|
return (index.h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, this.showUserImageInList &&
|
|
422
422
|
index.h("calcite-avatar", { class: 'profile-img', "full-name": userInfo?.fullName, scale: "m", slot: "content-start", thumbnail: userInfo?.userProfileUrl, userId: userInfo?.id, username: userInfo?.fullName ? userInfo.username : undefined }), this.showFeatureSymbol &&
|
|
423
|
-
index.h("div", { class: 'feature-symbol', ref: (el) => el && el.
|
|
423
|
+
index.h("div", { class: 'feature-symbol', ref: (el) => el && el.replaceChildren(featureSymbol), slot: "content-start" }), index.h("div", { class: `${popupTitleClass} ${popupTitlePaddingClass}`, slot: "content-start" }, popupTitle), this._likeFieldAvailable &&
|
|
424
424
|
index.h("div", { class: "like-container", id: oId.concat("like"), slot: "content-end" }, index.h("span", null, this._abbreviatedLikeCount), index.h("calcite-icon", { icon: "thumbs-up", scale: 's' }), index.h("calcite-tooltip", { overlayPositioning: "fixed", placement: "top", "reference-element": oId.concat("like") }, formattedLikeCount)), index.h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
@@ -53,7 +53,7 @@ const FeaturesFlowItem = class {
|
|
|
53
53
|
//
|
|
54
54
|
//--------------------------------------------------------------------------
|
|
55
55
|
render() {
|
|
56
|
-
return (index.h(index.Host, { key: '
|
|
56
|
+
return (index.h(index.Host, { key: 'b775a26ab493f17e0e93ba5713b407566d37683d' }, index.h("slot", { key: '05f063062f8cced80ae18d36e7ef08abe6b15839' })));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
FeaturesFlowItem.style = FeaturesFlowItemStyle0;
|