@esri/solutions-components 0.10.34 → 0.10.36
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +7 -6
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert_5.cjs.entry.js +10 -8
- 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 +22 -11
- package/dist/cjs/crowdsource-manager.cjs.entry.js +28 -31
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +24 -21
- package/dist/cjs/{downloadUtils-20637f89.js → downloadUtils-76bc7e30.js} +6 -5
- 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 +7 -7
- package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/{index.es-a242cb45.js → index.es-8336efed.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/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{popupUtils-d477705b.js → popupUtils-bc762034.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-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/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 +29 -30
- 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 +19 -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 +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 +2 -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/collection/utils/downloadUtils.js +5 -3
- package/dist/collection/utils/downloadUtils.ts +6 -3
- package/dist/collection/utils/test/downloadUtils.spec.tsx +10 -12
- package/dist/components/card-manager2.js +40 -34
- package/dist/components/create-feature2.js +4 -2
- package/dist/components/crowdsource-manager.js +127 -123
- 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/downloadUtils.js +5 -4
- 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/json-editor2.js +1 -1
- package/dist/components/layer-list2.js +5 -5
- package/dist/components/layer-table2.js +100 -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 +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 +2 -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 +7 -6
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_5.entry.js +10 -8
- 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 +22 -11
- package/dist/esm/crowdsource-manager.entry.js +28 -31
- package/dist/esm/crowdsource-reporter.entry.js +24 -21
- package/dist/esm/{downloadUtils-e266e98d.js → downloadUtils-bc7a4ba1.js} +6 -5
- 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 +7 -7
- package/dist/esm/features-flow-item.entry.js +1 -1
- package/dist/esm/{index.es-c5f258e2.js → index.es-0d189a34.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/pci-calculator.entry.js +1 -1
- package/dist/esm/{popupUtils-4570096e.js → popupUtils-03dc398a.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-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/{p-ffa9a117.entry.js → p-04ab956c.entry.js} +1 -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-46416e11.entry.js +6 -0
- package/dist/solutions-components/{p-5fc0e134.entry.js → p-59ccd27c.entry.js} +1 -1
- package/dist/solutions-components/{p-42f75c8f.entry.js → p-6502d0f8.entry.js} +1 -1
- package/dist/solutions-components/{p-a568af9f.js → p-6f606cdb.js} +1 -1
- package/dist/solutions-components/p-70c0050c.entry.js +6 -0
- package/dist/solutions-components/p-720de4db.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-938bc915.entry.js +6 -0
- package/dist/solutions-components/p-97fe6ec5.entry.js +6 -0
- package/dist/solutions-components/{p-dd0bd439.entry.js → p-9c4fef09.entry.js} +3 -3
- 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-4f5913f3.entry.js → p-aac0c89c.entry.js} +1 -1
- package/dist/solutions-components/{p-ddc1218d.entry.js → p-be4c7ffd.entry.js} +1 -1
- package/dist/solutions-components/p-cd482a33.js +21 -0
- package/dist/solutions-components/p-d2612c30.entry.js +6 -0
- package/dist/solutions-components/{p-a07322cc.entry.js → p-df7de4b7.entry.js} +1 -1
- package/dist/solutions-components/{p-a8525233.entry.js → p-e345f9c4.entry.js} +1 -1
- package/dist/solutions-components/{p-1f072e2c.entry.js → p-eadff42b.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/{p-46c8015c.js → p-ff9e28d1.js} +30 -30
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +6 -3
- package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +10 -12
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -7
- 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 +12 -0
- package/dist/types/components.d.ts +69 -0
- package/dist/types/preact.d.ts +5 -0
- package/package.json +2 -1
- package/dist/solutions-components/p-2360802a.js +0 -21
- 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-7e6a8c06.entry.js +0 -6
- package/dist/solutions-components/p-8a411917.entry.js +0 -6
- package/dist/solutions-components/p-8d2d66d0.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-cf878a34.entry.js +0 -6
- package/dist/solutions-components/p-edd88d2d.entry.js +0 -6
@@ -0,0 +1,440 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
'use strict';
|
7
|
+
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
9
|
+
|
10
|
+
const index = require('./index-4b68e4b4.js');
|
11
|
+
const conditionalSlot = require('./conditionalSlot-37ff4832.js');
|
12
|
+
const dom = require('./dom-795d4a33.js');
|
13
|
+
const locale = require('./locale-339b55f0.js');
|
14
|
+
require('./observers-18d87cb5.js');
|
15
|
+
require('./browser-333a21c5.js');
|
16
|
+
require('./guid-e84a8375.js');
|
17
|
+
require('./resources-18f799c7.js');
|
18
|
+
require('./esri-loader-08dc41bd.js');
|
19
|
+
require('./_commonjsHelpers-baf43783.js');
|
20
|
+
|
21
|
+
/*!
|
22
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
23
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
24
|
+
* v2.13.0
|
25
|
+
*/
|
26
|
+
const CSS = {
|
27
|
+
main: "main",
|
28
|
+
content: "content",
|
29
|
+
contentBehind: "content--behind",
|
30
|
+
contentBottom: "content-bottom",
|
31
|
+
contentNonInteractive: "content--non-interactive",
|
32
|
+
footer: "footer",
|
33
|
+
positionedSlotWrapper: "positioned-slot-wrapper",
|
34
|
+
container: "container",
|
35
|
+
contentBehindCenterContent: "center-content",
|
36
|
+
};
|
37
|
+
const SLOTS = {
|
38
|
+
centerRow: "center-row",
|
39
|
+
panelStart: "panel-start",
|
40
|
+
panelEnd: "panel-end",
|
41
|
+
panelTop: "panel-top",
|
42
|
+
panelBottom: "panel-bottom",
|
43
|
+
header: "header",
|
44
|
+
footer: "footer",
|
45
|
+
alerts: "alerts",
|
46
|
+
sheets: "sheets",
|
47
|
+
modals: "modals",
|
48
|
+
dialogs: "dialogs",
|
49
|
+
};
|
50
|
+
|
51
|
+
const shellCss = ":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-color-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-color-border-3)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}";
|
52
|
+
const CalciteShellStyle0 = shellCss;
|
53
|
+
|
54
|
+
const Shell = class {
|
55
|
+
constructor(hostRef) {
|
56
|
+
index.registerInstance(this, hostRef);
|
57
|
+
// --------------------------------------------------------------------------
|
58
|
+
//
|
59
|
+
// Private Methods
|
60
|
+
//
|
61
|
+
// --------------------------------------------------------------------------
|
62
|
+
this.handleHeaderSlotChange = (event) => {
|
63
|
+
this.hasHeader = !!dom.slotChangeHasAssignedElement(event);
|
64
|
+
};
|
65
|
+
this.handleFooterSlotChange = (event) => {
|
66
|
+
this.hasFooter = !!dom.slotChangeHasAssignedElement(event);
|
67
|
+
};
|
68
|
+
this.handleAlertsSlotChange = (event) => {
|
69
|
+
this.hasAlerts = !!dom.slotChangeHasAssignedElement(event);
|
70
|
+
dom.slotChangeGetAssignedElements(event)?.map((el) => {
|
71
|
+
if (el.tagName === "CALCITE-ALERT") {
|
72
|
+
el.embedded = true;
|
73
|
+
}
|
74
|
+
});
|
75
|
+
};
|
76
|
+
this.handleSheetsSlotChange = (event) => {
|
77
|
+
this.hasSheets = !!dom.slotChangeHasAssignedElement(event);
|
78
|
+
dom.slotChangeGetAssignedElements(event)?.map((el) => {
|
79
|
+
if (el.tagName === "CALCITE-SHEET") {
|
80
|
+
el.embedded = true;
|
81
|
+
}
|
82
|
+
});
|
83
|
+
};
|
84
|
+
this.handleModalsSlotChange = (event) => {
|
85
|
+
this.hasModals = !!dom.slotChangeHasAssignedElement(event);
|
86
|
+
dom.slotChangeGetAssignedElements(event)?.map((el) => {
|
87
|
+
if (el.tagName === "CALCITE-MODAL") {
|
88
|
+
el.embedded = true;
|
89
|
+
}
|
90
|
+
});
|
91
|
+
};
|
92
|
+
this.handlePanelTopChange = (event) => {
|
93
|
+
this.hasPanelTop = dom.slotChangeHasAssignedElement(event);
|
94
|
+
};
|
95
|
+
this.handlePanelBottomChange = (event) => {
|
96
|
+
this.hasPanelBottom = dom.slotChangeHasAssignedElement(event);
|
97
|
+
};
|
98
|
+
this.handleDialogsSlotChange = (event) => {
|
99
|
+
this.hasDialogs = !!dom.slotChangeHasAssignedElement(event);
|
100
|
+
dom.slotChangeGetAssignedElements(event)?.map((el) => {
|
101
|
+
if (el.tagName === "CALCITE-DIALOG") {
|
102
|
+
el.embedded = true;
|
103
|
+
}
|
104
|
+
});
|
105
|
+
};
|
106
|
+
this.contentBehind = false;
|
107
|
+
this.hasHeader = false;
|
108
|
+
this.hasFooter = false;
|
109
|
+
this.hasAlerts = false;
|
110
|
+
this.hasModals = false;
|
111
|
+
this.hasDialogs = false;
|
112
|
+
this.hasSheets = false;
|
113
|
+
this.hasPanelTop = false;
|
114
|
+
this.hasPanelBottom = false;
|
115
|
+
this.hasOnlyPanelBottom = false;
|
116
|
+
this.panelIsResizing = false;
|
117
|
+
}
|
118
|
+
//--------------------------------------------------------------------------
|
119
|
+
//
|
120
|
+
// Event Listeners
|
121
|
+
//
|
122
|
+
//--------------------------------------------------------------------------
|
123
|
+
handleCalciteInternalShellPanelResizeStart(event) {
|
124
|
+
this.panelIsResizing = true;
|
125
|
+
event.stopPropagation();
|
126
|
+
}
|
127
|
+
handleCalciteInternalShellPanelResizeEnd(event) {
|
128
|
+
this.panelIsResizing = false;
|
129
|
+
event.stopPropagation();
|
130
|
+
}
|
131
|
+
updateHasOnlyPanelBottom() {
|
132
|
+
this.hasOnlyPanelBottom = !this.hasPanelTop && this.hasPanelBottom;
|
133
|
+
}
|
134
|
+
// --------------------------------------------------------------------------
|
135
|
+
//
|
136
|
+
// Lifecycle
|
137
|
+
//
|
138
|
+
// --------------------------------------------------------------------------
|
139
|
+
connectedCallback() {
|
140
|
+
conditionalSlot.connectConditionalSlotComponent(this);
|
141
|
+
}
|
142
|
+
disconnectedCallback() {
|
143
|
+
conditionalSlot.disconnectConditionalSlotComponent(this);
|
144
|
+
}
|
145
|
+
// --------------------------------------------------------------------------
|
146
|
+
//
|
147
|
+
// Render Methods
|
148
|
+
//
|
149
|
+
// --------------------------------------------------------------------------
|
150
|
+
renderHeader() {
|
151
|
+
return (index.h("div", { hidden: !this.hasHeader }, index.h("slot", { key: "header", name: SLOTS.header, onSlotchange: this.handleHeaderSlotChange })));
|
152
|
+
}
|
153
|
+
renderFooter() {
|
154
|
+
return (index.h("div", { class: CSS.footer, hidden: !this.hasFooter, key: "footer" }, index.h("slot", { name: SLOTS.footer, onSlotchange: this.handleFooterSlotChange })));
|
155
|
+
}
|
156
|
+
renderAlerts() {
|
157
|
+
return (index.h("div", { hidden: !this.hasAlerts }, index.h("slot", { key: "alerts", name: SLOTS.alerts, onSlotchange: this.handleAlertsSlotChange })));
|
158
|
+
}
|
159
|
+
renderSheets() {
|
160
|
+
return (index.h("div", { hidden: !this.hasSheets }, index.h("slot", { key: "sheets", name: SLOTS.sheets, onSlotchange: this.handleSheetsSlotChange })));
|
161
|
+
}
|
162
|
+
renderModals() {
|
163
|
+
return (index.h("div", { hidden: !this.hasModals }, index.h("slot", { key: "modals", name: SLOTS.modals, onSlotchange: this.handleModalsSlotChange })));
|
164
|
+
}
|
165
|
+
renderDialogs() {
|
166
|
+
return (index.h("div", { hidden: !this.hasDialogs }, index.h("slot", { key: "dialogs", name: SLOTS.dialogs, onSlotchange: this.handleDialogsSlotChange })));
|
167
|
+
}
|
168
|
+
renderContent() {
|
169
|
+
const { panelIsResizing } = this;
|
170
|
+
const defaultSlotNode = index.h("slot", { key: "default-slot" });
|
171
|
+
const defaultSlotContainerNode = panelIsResizing ? (index.h("div", { class: CSS.contentNonInteractive }, defaultSlotNode)) : (defaultSlotNode);
|
172
|
+
const deprecatedCenterRowSlotNode = (index.h("slot", { key: "center-row-slot", name: SLOTS.centerRow }));
|
173
|
+
const panelBottomSlotNode = (index.h("slot", { key: "panel-bottom-slot", name: SLOTS.panelBottom, onSlotchange: this.handlePanelBottomChange }));
|
174
|
+
const panelTopSlotNode = (index.h("slot", { key: "panel-top-slot", name: SLOTS.panelTop, onSlotchange: this.handlePanelTopChange }));
|
175
|
+
const contentContainerKey = "content-container";
|
176
|
+
const content = this.contentBehind
|
177
|
+
? [
|
178
|
+
index.h("div", { class: {
|
179
|
+
[CSS.content]: true,
|
180
|
+
[CSS.contentBehind]: true,
|
181
|
+
}, key: contentContainerKey }, defaultSlotContainerNode),
|
182
|
+
index.h("div", { class: {
|
183
|
+
[CSS.contentBehindCenterContent]: true,
|
184
|
+
[CSS.contentBottom]: this.hasOnlyPanelBottom,
|
185
|
+
} }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
186
|
+
]
|
187
|
+
: [
|
188
|
+
index.h("div", { class: { [CSS.content]: true, [CSS.contentBottom]: this.hasOnlyPanelBottom }, key: contentContainerKey }, panelTopSlotNode, defaultSlotContainerNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
189
|
+
];
|
190
|
+
return content;
|
191
|
+
}
|
192
|
+
renderMain() {
|
193
|
+
return (index.h("div", { class: CSS.main }, index.h("slot", { name: SLOTS.panelStart }), this.renderContent(), index.h("slot", { name: SLOTS.panelEnd })));
|
194
|
+
}
|
195
|
+
renderPositionedSlots() {
|
196
|
+
return (index.h("div", { class: CSS.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderDialogs(), this.renderSheets()));
|
197
|
+
}
|
198
|
+
render() {
|
199
|
+
return (index.h(index.Fragment, { key: '6864b8b95b6edd871ad622b0d49a3f4a42a0a8a8' }, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
200
|
+
}
|
201
|
+
get el() { return index.getElement(this); }
|
202
|
+
static get watchers() { return {
|
203
|
+
"hasPanelTop": ["updateHasOnlyPanelBottom"],
|
204
|
+
"hasPanelBottom": ["updateHasOnlyPanelBottom"]
|
205
|
+
}; }
|
206
|
+
};
|
207
|
+
Shell.style = CalciteShellStyle0;
|
208
|
+
|
209
|
+
const deleteButtonCss = ":host{display:block}.delete-modal{position:fixed}";
|
210
|
+
const DeleteButtonStyle0 = deleteButtonCss;
|
211
|
+
|
212
|
+
const DeleteButton = class {
|
213
|
+
constructor(hostRef) {
|
214
|
+
index.registerInstance(this, hostRef);
|
215
|
+
this.editsComplete = index.createEvent(this, "editsComplete", 7);
|
216
|
+
this.deleteDialog = undefined;
|
217
|
+
this.buttonType = "button";
|
218
|
+
this.disabled = false;
|
219
|
+
this.icon = undefined;
|
220
|
+
this.ids = [];
|
221
|
+
this.layer = undefined;
|
222
|
+
this._confirmDelete = false;
|
223
|
+
this._deleteEndabled = false;
|
224
|
+
this._supportsDelete = undefined;
|
225
|
+
this._translations = undefined;
|
226
|
+
}
|
227
|
+
get el() { return index.getElement(this); }
|
228
|
+
//--------------------------------------------------------------------------
|
229
|
+
//
|
230
|
+
// Properties (protected)
|
231
|
+
//
|
232
|
+
//--------------------------------------------------------------------------
|
233
|
+
//--------------------------------------------------------------------------
|
234
|
+
//
|
235
|
+
// Watch handlers
|
236
|
+
//
|
237
|
+
//--------------------------------------------------------------------------
|
238
|
+
/**
|
239
|
+
* watch for changes in layer view and verify if it has editing enabled
|
240
|
+
*/
|
241
|
+
async idsWatchHandler() {
|
242
|
+
this._setDeleteEnabled();
|
243
|
+
}
|
244
|
+
/**
|
245
|
+
* watch for changes in layer view and verify if it has editing enabled
|
246
|
+
*/
|
247
|
+
async layerWatchHandler() {
|
248
|
+
this._setDeleteEnabled();
|
249
|
+
}
|
250
|
+
//--------------------------------------------------------------------------
|
251
|
+
//
|
252
|
+
// Methods (public)
|
253
|
+
//
|
254
|
+
//--------------------------------------------------------------------------
|
255
|
+
//--------------------------------------------------------------------------
|
256
|
+
//
|
257
|
+
// Events (public)
|
258
|
+
//
|
259
|
+
//--------------------------------------------------------------------------
|
260
|
+
/**
|
261
|
+
* Emitted on demand when features have been deleted
|
262
|
+
*/
|
263
|
+
editsComplete;
|
264
|
+
//--------------------------------------------------------------------------
|
265
|
+
//
|
266
|
+
// Functions (lifecycle)
|
267
|
+
//
|
268
|
+
//--------------------------------------------------------------------------
|
269
|
+
/**
|
270
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
271
|
+
*
|
272
|
+
* @returns Promise when complete
|
273
|
+
*/
|
274
|
+
async componentWillLoad() {
|
275
|
+
await this._getTranslations();
|
276
|
+
}
|
277
|
+
/**
|
278
|
+
* Renders the component.
|
279
|
+
*/
|
280
|
+
render() {
|
281
|
+
return (index.h(index.Host, { key: '4ced17b35479900aaa01ebbd298eeae57194e358' }, this.buttonType === "button" ? (index.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()))) : (index.h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, index.h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage(), index.h("calcite-tooltip", { key: '04f82e726cf9142c403ee43cb8151027bb7b617f', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, index.h("span", { key: 'f7852b2476dae4b18e82495c64a819b3db98696d' }, this._translations.delete))));
|
282
|
+
}
|
283
|
+
/**
|
284
|
+
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
285
|
+
*/
|
286
|
+
async componentDidLoad() {
|
287
|
+
this._setDeleteEnabled();
|
288
|
+
}
|
289
|
+
//--------------------------------------------------------------------------
|
290
|
+
//
|
291
|
+
// Functions (protected)
|
292
|
+
//
|
293
|
+
//--------------------------------------------------------------------------
|
294
|
+
/**
|
295
|
+
* Verify if the layer supports delete and that we have 1 or more ids
|
296
|
+
*/
|
297
|
+
_setDeleteEnabled() {
|
298
|
+
this._supportsDelete = this.layer?.editingEnabled && this.layer?.capabilities?.operations?.supportsDelete;
|
299
|
+
this._deleteEndabled = !this.disabled || this._supportsDelete && this.ids.length > 0;
|
300
|
+
}
|
301
|
+
/**
|
302
|
+
* Delete all selected records or shows an alert if the layer does not have editing enabled
|
303
|
+
*
|
304
|
+
* @returns a promise that will resolve when the operation is complete
|
305
|
+
*/
|
306
|
+
_delete() {
|
307
|
+
this._confirmDelete = true;
|
308
|
+
}
|
309
|
+
/**
|
310
|
+
* Show delete confirmation message
|
311
|
+
*
|
312
|
+
* @returns node to confirm or deny the delete operation
|
313
|
+
*/
|
314
|
+
_deleteMessage() {
|
315
|
+
return this.deleteDialog ? this.deleteDialog : (index.h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
|
316
|
+
}
|
317
|
+
/**
|
318
|
+
* Fetches the component's translations
|
319
|
+
*
|
320
|
+
* @returns Promise when complete
|
321
|
+
* @protected
|
322
|
+
*/
|
323
|
+
async _getTranslations() {
|
324
|
+
const messages = await locale.getLocaleComponentStrings(this.el);
|
325
|
+
this._translations = messages[0];
|
326
|
+
}
|
327
|
+
static get watchers() { return {
|
328
|
+
"ids": ["idsWatchHandler"],
|
329
|
+
"layer": ["layerWatchHandler"]
|
330
|
+
}; }
|
331
|
+
};
|
332
|
+
DeleteButton.style = DeleteButtonStyle0;
|
333
|
+
|
334
|
+
const deleteDialogCss = ":host{display:block}.delete-modal{position:fixed}";
|
335
|
+
const DeleteDialogStyle0 = deleteDialogCss;
|
336
|
+
|
337
|
+
const DeleteDialog = class {
|
338
|
+
constructor(hostRef) {
|
339
|
+
index.registerInstance(this, hostRef);
|
340
|
+
this.editsComplete = index.createEvent(this, "editsComplete", 7);
|
341
|
+
this.deleteDialogClose = index.createEvent(this, "deleteDialogClose", 7);
|
342
|
+
this.ids = [];
|
343
|
+
this.layer = undefined;
|
344
|
+
this.open = false;
|
345
|
+
this._isDeleting = false;
|
346
|
+
this._translations = undefined;
|
347
|
+
}
|
348
|
+
get el() { return index.getElement(this); }
|
349
|
+
//--------------------------------------------------------------------------
|
350
|
+
//
|
351
|
+
// Properties (protected)
|
352
|
+
//
|
353
|
+
//--------------------------------------------------------------------------
|
354
|
+
//--------------------------------------------------------------------------
|
355
|
+
//
|
356
|
+
// Watch handlers
|
357
|
+
//
|
358
|
+
//--------------------------------------------------------------------------
|
359
|
+
//--------------------------------------------------------------------------
|
360
|
+
//
|
361
|
+
// Methods (public)
|
362
|
+
//
|
363
|
+
//--------------------------------------------------------------------------
|
364
|
+
//--------------------------------------------------------------------------
|
365
|
+
//
|
366
|
+
// Events (public)
|
367
|
+
//
|
368
|
+
//--------------------------------------------------------------------------
|
369
|
+
/**
|
370
|
+
* Emitted on demand when features have been deleted
|
371
|
+
*/
|
372
|
+
editsComplete;
|
373
|
+
/**
|
374
|
+
* Emitted on demand when features have been deleted
|
375
|
+
*/
|
376
|
+
deleteDialogClose;
|
377
|
+
//--------------------------------------------------------------------------
|
378
|
+
//
|
379
|
+
// Functions (lifecycle)
|
380
|
+
//
|
381
|
+
//--------------------------------------------------------------------------
|
382
|
+
/**
|
383
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
384
|
+
*
|
385
|
+
* @returns Promise when complete
|
386
|
+
*/
|
387
|
+
async componentWillLoad() {
|
388
|
+
await this._getTranslations();
|
389
|
+
}
|
390
|
+
/**
|
391
|
+
* Renders the component.
|
392
|
+
*/
|
393
|
+
render() {
|
394
|
+
const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
|
395
|
+
this._translations?.confirmMultiple;
|
396
|
+
return (index.h(index.Host, { key: '64cd1440f80a9609f90056b919fa807e975eff70' }, index.h("calcite-modal", { key: '022302455960cbcf894dc2f0079d88be6fb59367', "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._close(), open: this.open, widthScale: "s" }, index.h("div", { key: '7484caedbdd759efbe972182ddd41a6ebaa2bd64', class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.deleteFeature), index.h("div", { key: 'e31136a6eed46dd0cbc4d919deb732a623097fbf', slot: "content" }, confirmMessage), index.h("calcite-button", { key: '7de42845a99777bcec59221fb6ab863e72ca2654', appearance: "outline", kind: "danger", onClick: () => this._close(), slot: "secondary", width: "full" }, this._translations?.cancel), index.h("calcite-button", { key: '67921ff64fc5c4439e66833fd8502f7e95671b5d', kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations?.delete))));
|
397
|
+
}
|
398
|
+
//--------------------------------------------------------------------------
|
399
|
+
//
|
400
|
+
// Functions (protected)
|
401
|
+
//
|
402
|
+
//--------------------------------------------------------------------------
|
403
|
+
/**
|
404
|
+
* Delete the currently selected features
|
405
|
+
*/
|
406
|
+
async _deleteFeatures() {
|
407
|
+
this._isDeleting = true;
|
408
|
+
const deleteFeatures = this.ids.map((objectId) => {
|
409
|
+
return { objectId };
|
410
|
+
});
|
411
|
+
await this.layer.applyEdits({
|
412
|
+
deleteFeatures
|
413
|
+
});
|
414
|
+
this._isDeleting = false;
|
415
|
+
this._close();
|
416
|
+
this.editsComplete.emit("delete");
|
417
|
+
}
|
418
|
+
/**
|
419
|
+
* Set the alertOpen member to false when the alert is closed
|
420
|
+
*/
|
421
|
+
_close() {
|
422
|
+
this.open = false;
|
423
|
+
this.deleteDialogClose.emit();
|
424
|
+
}
|
425
|
+
/**
|
426
|
+
* Fetches the component's translations
|
427
|
+
*
|
428
|
+
* @returns Promise when complete
|
429
|
+
* @protected
|
430
|
+
*/
|
431
|
+
async _getTranslations() {
|
432
|
+
const messages = await locale.getLocaleComponentStrings(this.el);
|
433
|
+
this._translations = messages[0];
|
434
|
+
}
|
435
|
+
};
|
436
|
+
DeleteDialog.style = DeleteDialogStyle0;
|
437
|
+
|
438
|
+
exports.calcite_shell = Shell;
|
439
|
+
exports.delete_button = DeleteButton;
|
440
|
+
exports.delete_dialog = DeleteDialog;
|
@@ -10,12 +10,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-4b68e4b4.js');
|
11
11
|
const locale = require('./locale-339b55f0.js');
|
12
12
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
13
|
-
const downloadUtils = require('./downloadUtils-
|
13
|
+
const downloadUtils = require('./downloadUtils-76bc7e30.js');
|
14
14
|
require('./esri-loader-08dc41bd.js');
|
15
15
|
require('./_commonjsHelpers-baf43783.js');
|
16
16
|
require('./interfaces-09c4c40e.js');
|
17
|
-
require('./solution-resource-40e70253.js');
|
18
17
|
require('./index-f052f656.js');
|
18
|
+
require('./solution-resource-40e70253.js');
|
19
19
|
require('./restHelpersGet-5c2245a3.js');
|
20
20
|
|
21
21
|
const cardManagerCss = ":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}.position-static{position:static !important}.z-index-500{z-index:500 !important}card-manager{display:block}";
|
@@ -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 {
|
@@ -242,6 +242,7 @@ const LayerTable = class {
|
|
242
242
|
this._filterOpen = false;
|
243
243
|
this._layer = undefined;
|
244
244
|
this._selectAllActive = false;
|
245
|
+
this._deleteDialogOpen = false;
|
245
246
|
this._showHideOpen = false;
|
246
247
|
this._showOnlySelected = false;
|
247
248
|
this._toolInfos = undefined;
|
@@ -709,11 +710,12 @@ const LayerTable = class {
|
|
709
710
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
710
711
|
const showSearch = this._canShowFullTextSearch();
|
711
712
|
this._validateActiveActions();
|
712
|
-
return (index.h(index.Host, { key: '
|
713
|
-
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
|
714
715
|
.replace("{{total}}", total)
|
715
|
-
.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 })));
|
716
717
|
}
|
718
|
+
_deleteDialog;
|
717
719
|
/**
|
718
720
|
* Called once after the component is loaded
|
719
721
|
*/
|
@@ -1016,7 +1018,7 @@ const LayerTable = class {
|
|
1016
1018
|
icon: "trash",
|
1017
1019
|
indicator: undefined,
|
1018
1020
|
label: this._translations.delete,
|
1019
|
-
func: () =>
|
1021
|
+
func: () => this._showDelete(),
|
1020
1022
|
disabled: !featuresSelected,
|
1021
1023
|
isDanger: true,
|
1022
1024
|
isOverflow: false
|
@@ -1256,7 +1258,7 @@ const LayerTable = class {
|
|
1256
1258
|
_getDropdown(id) {
|
1257
1259
|
const dropdownItems = this._getDropdownItems();
|
1258
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 => {
|
1259
|
-
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)));
|
1260
1262
|
})), this._showHideOpen ? this._getFieldlist() : undefined)) : undefined;
|
1261
1263
|
}
|
1262
1264
|
/**
|
@@ -1281,6 +1283,15 @@ const LayerTable = class {
|
|
1281
1283
|
const _disabled = this._layer === undefined ? true : disabled;
|
1282
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)));
|
1283
1285
|
}
|
1286
|
+
/**
|
1287
|
+
* Show the delete dialog
|
1288
|
+
*
|
1289
|
+
* @param
|
1290
|
+
*
|
1291
|
+
*/
|
1292
|
+
_showDelete() {
|
1293
|
+
this._deleteDialogOpen = true;
|
1294
|
+
}
|
1284
1295
|
/**
|
1285
1296
|
* Get an action and tooltip for share
|
1286
1297
|
*
|
@@ -1357,7 +1368,7 @@ const LayerTable = class {
|
|
1357
1368
|
*/
|
1358
1369
|
_getDangerAction(icon, label, func, disabled) {
|
1359
1370
|
const _disabled = this._layer === undefined ? true : disabled;
|
1360
|
-
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)));
|
1361
1372
|
}
|
1362
1373
|
/**
|
1363
1374
|
* Return all currently selected IDs from the table
|
@@ -1365,7 +1376,7 @@ const LayerTable = class {
|
|
1365
1376
|
* @param number[] the selected ids
|
1366
1377
|
*/
|
1367
1378
|
_getIds() {
|
1368
|
-
return this._table
|
1379
|
+
return this._table?.highlightIds?.toArray();
|
1369
1380
|
}
|
1370
1381
|
/**
|
1371
1382
|
* Store a reference to the table node after it's first created
|
@@ -2428,7 +2439,7 @@ const MapCard = class {
|
|
2428
2439
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
2429
2440
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
2430
2441
|
this._validateActiveActions();
|
2431
|
-
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 })));
|
2432
2443
|
}
|
2433
2444
|
/**
|
2434
2445
|
* Called each time after the component is loaded
|