@esri/solutions-components 0.6.12 → 0.6.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/layer-table/resources.json +4 -3
- package/dist/assets/t9n/layer-table/resources_en.json +4 -3
- package/dist/assets/t9n/map-layer-picker/resources.json +4 -0
- package/dist/assets/t9n/map-layer-picker/resources_en.json +4 -0
- package/dist/cjs/basemap-gallery_6.cjs.entry.js +20 -5
- package/dist/cjs/buffer-tools_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-chip_3.cjs.entry.js +803 -0
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +76 -28
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +169 -79
- package/dist/cjs/clean-url-d5326abb.js +573 -0
- package/dist/cjs/crowdsource-manager.cjs.entry.js +22 -7
- package/dist/cjs/{downloadUtils-43f5be48.js → downloadUtils-34a515ad.js} +297 -52
- package/dist/cjs/edit-card_2.cjs.entry.js +8 -3
- package/dist/cjs/{index.es-8da43c21.js → index.es-0ba11065.js} +3 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +10 -7
- package/dist/cjs/{mapViewUtils-a4dd36ec.js → mapViewUtils-a2884698.js} +39 -55
- package/dist/cjs/public-notification.cjs.entry.js +7 -6
- package/dist/cjs/{publicNotificationStore-b69862af.js → publicNotificationStore-610bd880.js} +0 -4
- package/dist/cjs/solution-configuration.cjs.entry.js +44 -43
- package/dist/cjs/solution-contents_3.cjs.entry.js +2 -1
- package/dist/cjs/{solution-store-3cd104d8.js → solution-store-c443e657.js} +7 -572
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +23 -1
- package/dist/collection/components/card-manager/card-manager.css +0 -5
- package/dist/collection/components/card-manager/card-manager.js +3 -3
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +2 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +210 -6
- package/dist/collection/components/edit-card/edit-card.css +8 -0
- package/dist/collection/components/edit-card/edit-card.js +19 -0
- package/dist/collection/components/info-card/info-card.css +14 -14
- package/dist/collection/components/info-card/info-card.js +1 -1
- package/dist/collection/components/layer-table/layer-table.css +12 -0
- package/dist/collection/components/layer-table/layer-table.js +215 -69
- package/dist/collection/components/map-card/map-card.js +115 -5
- package/dist/collection/components/map-layer-picker/map-layer-picker.css +4 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +107 -27
- package/dist/collection/components/map-picker/map-picker.css +5 -1
- package/dist/collection/components/map-picker/map-picker.js +3 -3
- package/dist/collection/components/map-tools/map-tools.js +104 -1
- package/dist/collection/components/pdf-download/pdf-download.js +34 -6
- package/dist/collection/components/public-notification/public-notification.js +3 -3
- package/dist/collection/utils/downloadUtils.js +208 -82
- package/dist/collection/utils/downloadUtils.ts +257 -85
- package/dist/collection/utils/interfaces.ts +12 -1
- package/dist/collection/utils/mapViewUtils.js +38 -52
- package/dist/collection/utils/mapViewUtils.ts +41 -57
- package/dist/collection/utils/publicNotificationStore.js +0 -4
- package/dist/collection/utils/publicNotificationStore.ts +0 -4
- package/dist/collection/utils/test/downloadUtils.spec.js +163 -134
- package/dist/collection/utils/test/downloadUtils.spec.tsx +2 -0
- package/dist/components/basemap-gallery2.js +2 -0
- package/dist/components/calcite-modal.js +1 -409
- package/dist/components/card-manager2.js +4 -4
- package/dist/components/clean-url.js +567 -0
- package/dist/components/crowdsource-manager.js +42 -17
- package/dist/components/downloadUtils.js +295 -50
- package/dist/components/edit-card2.js +6 -1
- package/dist/components/info-card2.js +2 -2
- package/dist/components/layer-table2.js +194 -102
- package/dist/components/map-card2.js +17 -5
- package/dist/components/map-layer-picker2.js +114 -52
- package/dist/components/map-picker2.js +4 -4
- package/dist/components/map-select-tools2.js +55 -43
- package/dist/components/map-tools2.js +20 -1
- package/dist/components/mapViewUtils.js +39 -53
- package/dist/components/modal.js +416 -0
- package/dist/components/pdf-download2.js +6 -4
- package/dist/components/public-notification.js +4 -4
- package/dist/components/publicNotificationStore.js +0 -4
- package/dist/components/refine-selection2.js +61 -49
- package/dist/components/solution-configuration.js +25 -24
- package/dist/components/solution-store.js +2 -562
- package/dist/esm/{ExpandToggle-86761b28.js → ExpandToggle-e614e3e4.js} +1 -1
- package/dist/esm/{ar-4a5375c6.js → ar-2f678abc.js} +8 -8
- package/dist/esm/basemap-gallery_6.entry.js +20 -5
- package/dist/esm/{bg-b25e4b7a.js → bg-e514c4d7.js} +8 -8
- package/dist/esm/{bs-2485dfed.js → bs-81584b09.js} +8 -8
- package/dist/esm/buffer-tools_4.entry.js +5 -5
- package/dist/esm/{ca-bba36d26.js → ca-e8c40e21.js} +8 -8
- package/dist/esm/calcite-accordion-item.entry.js +1 -1
- package/dist/esm/calcite-action-bar_3.entry.js +5 -5
- package/dist/esm/calcite-action-group_2.entry.js +3 -3
- package/dist/esm/calcite-action-pad.entry.js +4 -4
- package/dist/esm/calcite-action_2.entry.js +5 -5
- package/dist/esm/calcite-alert.entry.js +3 -3
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +3 -3
- package/dist/esm/calcite-block.entry.js +3 -3
- package/dist/esm/calcite-button.entry.js +5 -5
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip-group.entry.js +1 -1
- package/dist/esm/calcite-chip_3.entry.js +797 -0
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
- package/dist/esm/calcite-color-picker.entry.js +3 -3
- package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
- package/dist/esm/calcite-combobox_6.entry.js +83 -35
- package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
- package/dist/esm/calcite-date-picker.entry.js +5 -5
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter_3.entry.js +3 -3
- package/dist/esm/calcite-flow-item.entry.js +3 -3
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +4 -4
- package/dist/esm/calcite-input-date-picker.entry.js +9 -9
- package/dist/esm/calcite-input-number_2.entry.js +5 -5
- package/dist/esm/{calcite-input-time-picker-7da2e80a.js → calcite-input-time-picker-fe6e499a.js} +55 -55
- package/dist/esm/calcite-input-time-picker.entry.js +8 -8
- package/dist/esm/calcite-input-time-zone.entry.js +5 -5
- package/dist/esm/calcite-input_2.entry.js +5 -5
- package/dist/esm/calcite-label.entry.js +2 -2
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-menu-item.entry.js +3 -3
- package/dist/esm/calcite-menu.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +4 -4
- package/dist/esm/calcite-navigation.entry.js +1 -1
- package/dist/esm/calcite-option_2.entry.js +3 -3
- package/dist/esm/calcite-pagination.entry.js +3 -3
- package/dist/esm/calcite-panel_2.entry.js +3 -3
- package/dist/esm/calcite-pick-list-group.entry.js +1 -1
- package/dist/esm/calcite-pick-list-item.entry.js +3 -3
- package/dist/esm/calcite-pick-list.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- package/dist/esm/calcite-rating.entry.js +5 -5
- package/dist/esm/calcite-scrim.entry.js +3 -3
- package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
- package/dist/esm/calcite-shell-center-row.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +7 -6
- package/dist/esm/calcite-sortable-list.entry.js +2 -2
- package/dist/esm/calcite-stepper-item.entry.js +2 -2
- package/dist/esm/calcite-stepper.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-text-area.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-time-picker.entry.js +4 -4
- package/dist/esm/calcite-tip-manager.entry.js +3 -3
- package/dist/esm/calcite-tip.entry.js +3 -3
- package/dist/esm/calcite-tree_3.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +169 -79
- package/dist/esm/clean-url-bce022e6.js +567 -0
- package/dist/esm/crowdsource-manager.entry.js +22 -7
- package/dist/esm/{cs-1052c5ac.js → cs-af5f115e.js} +8 -8
- package/dist/esm/{da-b7ed9204.js → da-06d9e22c.js} +8 -8
- package/dist/esm/{date-bd5b879c.js → date-641ae749.js} +1 -1
- package/dist/esm/{de-at-a993e5ae.js → de-at-f55a700a.js} +8 -8
- package/dist/esm/{de-ch-acff745d.js → de-ch-7307675f.js} +8 -8
- package/dist/esm/{de-bb68e752.js → de-dc98363f.js} +8 -8
- package/dist/esm/{dom-37f2dec9.js → dom-2b326ec3.js} +1 -1
- package/dist/esm/{downloadUtils-42156cd8.js → downloadUtils-ac67a786.js} +297 -52
- package/dist/esm/edit-card_2.entry.js +8 -3
- package/dist/esm/{el-9de96ff0.js → el-91c64808.js} +8 -8
- package/dist/esm/{en-au-f68b6bde.js → en-au-df08cc25.js} +8 -8
- package/dist/esm/{en-ca-5360517e.js → en-ca-175f7c0f.js} +8 -8
- package/dist/esm/{en-gb-de0b3125.js → en-gb-90a08c7f.js} +8 -8
- package/dist/esm/{es-5ecbba77.js → es-5cb54b05.js} +8 -8
- package/dist/esm/{es-mx-aa126462.js → es-mx-3a0cb804.js} +8 -8
- package/dist/esm/{et-7113eeb8.js → et-eceac6dc.js} +8 -8
- package/dist/esm/{fi-ffa60f15.js → fi-26e1c14f.js} +8 -8
- package/dist/esm/{floating-ui-7cde67cf.js → floating-ui-9f8e4ed4.js} +1 -1
- package/dist/esm/{focusTrapComponent-ec344399.js → focusTrapComponent-ad2c3a31.js} +1 -1
- package/dist/esm/{form-24e6ef1d.js → form-0871d2c6.js} +1 -1
- package/dist/esm/{fr-681c5bf6.js → fr-12a5b0f7.js} +8 -8
- package/dist/esm/{fr-ch-9af1f8b1.js → fr-ch-e3406887.js} +8 -8
- package/dist/esm/{he-5188f277.js → he-61eba811.js} +8 -8
- package/dist/esm/{hi-6a31e3a4.js → hi-a50282b5.js} +8 -8
- package/dist/esm/{hr-0598e59d.js → hr-da8bffaf.js} +8 -8
- package/dist/esm/{hu-13cb9f41.js → hu-dab932f1.js} +8 -8
- package/dist/esm/{id-7f342499.js → id-de468947.js} +8 -8
- package/dist/esm/{index.es-f47c4153.js → index.es-f553598f.js} +3 -2
- package/dist/esm/{it-57d790f2.js → it-375d9936.js} +8 -8
- package/dist/esm/{it-ch-081af760.js → it-ch-7e663d63.js} +8 -8
- package/dist/esm/{ja-3affb68e.js → ja-36dbe39d.js} +8 -8
- package/dist/esm/{ko-736632aa.js → ko-858bc871.js} +8 -8
- package/dist/esm/{label-b6dfb4d5.js → label-b8caf984.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-146251f7.js → locale-00000ab4.js} +1 -1
- package/dist/esm/{lt-e7d9b1c3.js → lt-d6dfa7e4.js} +8 -8
- package/dist/esm/{lv-4d1a507e.js → lv-facd25c5.js} +8 -8
- package/dist/esm/map-select-tools_3.entry.js +10 -7
- package/dist/esm/{mapViewUtils-00a04d52.js → mapViewUtils-8141d8c1.js} +39 -53
- package/dist/esm/{mk-f960312d.js → mk-5ed05b6a.js} +8 -8
- package/dist/esm/{nb-4556b5e9.js → nb-936fc687.js} +8 -8
- package/dist/esm/{nl-8e281c01.js → nl-a923d626.js} +8 -8
- package/dist/esm/{pl-1460fd5a.js → pl-b1426275.js} +8 -8
- package/dist/esm/{pt-660332b6.js → pt-1ac2453f.js} +8 -8
- package/dist/esm/{pt-br-dba48f49.js → pt-br-7194cc5f.js} +8 -8
- package/dist/esm/public-notification.entry.js +7 -6
- package/dist/esm/{publicNotificationStore-90a6a274.js → publicNotificationStore-dcf39a55.js} +0 -4
- package/dist/esm/{ro-ac18f292.js → ro-518aaed1.js} +8 -8
- package/dist/esm/{ru-b914f6b7.js → ru-762127a3.js} +8 -8
- package/dist/esm/{shared-list-render-cc889757.js → shared-list-render-ec232615.js} +1 -1
- package/dist/esm/{sk-1be12963.js → sk-f367b7ba.js} +8 -8
- package/dist/esm/{sl-5d47e4e4.js → sl-052fd4d2.js} +8 -8
- package/dist/esm/solution-configuration.entry.js +25 -24
- package/dist/esm/solution-contents_3.entry.js +2 -1
- package/dist/esm/{solution-store-cf902566.js → solution-store-b29d50f7.js} +2 -562
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/{sortableComponent-8a84709a.js → sortableComponent-ebd6bb72.js} +1 -1
- package/dist/esm/{sr-3281c92d.js → sr-4dc0fdb9.js} +8 -8
- package/dist/esm/{sv-e5169404.js → sv-bdc87a4d.js} +8 -8
- package/dist/esm/{t9n-d9c203e4.js → t9n-9791aa0c.js} +1 -1
- package/dist/esm/{th-937796b8.js → th-d9df674c.js} +8 -8
- package/dist/esm/{time-fa1151aa.js → time-73378c4a.js} +1 -1
- package/dist/esm/{tr-6d3b100b.js → tr-61e134eb.js} +8 -8
- package/dist/esm/{uk-a6edcacf.js → uk-ea3d8da7.js} +8 -8
- package/dist/esm/{utils-667cc396.js → utils-593fafd7.js} +1 -1
- package/dist/esm/{utils-24a35b5a.js → utils-bd52db7d.js} +2 -2
- package/dist/esm/{vi-bf4c179c.js → vi-ade1c25b.js} +8 -8
- package/dist/esm/{zh-cn-de1858cb.js → zh-cn-b8756118.js} +8 -8
- package/dist/esm/{zh-hk-12fa404f.js → zh-hk-d18c05d9.js} +8 -8
- package/dist/esm/{zh-tw-5c4220e5.js → zh-tw-9c98ff7c.js} +8 -8
- package/dist/solutions-components/{p-3b891cc4.entry.js → p-01fea8d5.entry.js} +1 -1
- package/dist/solutions-components/{p-65022e7f.entry.js → p-02ff64f4.entry.js} +1 -1
- package/dist/solutions-components/p-062254a6.entry.js +6 -0
- package/dist/solutions-components/{p-bff158ff.js → p-062d2f9a.js} +1 -1
- package/dist/solutions-components/{p-f4e5b7e5.entry.js → p-084bced1.entry.js} +1 -1
- package/dist/solutions-components/{p-c261335b.entry.js → p-088e4cfc.entry.js} +1 -1
- package/dist/solutions-components/p-08b52ed8.entry.js +6 -0
- package/dist/solutions-components/{p-96239d0d.js → p-08e35485.js} +1 -1
- package/dist/solutions-components/{p-3d3772fb.js → p-0d14d33a.js} +1 -1
- package/dist/solutions-components/{p-7f271c31.js → p-11550b3c.js} +3 -3
- package/dist/solutions-components/{p-ad19f9b0.entry.js → p-120c4098.entry.js} +1 -1
- package/dist/solutions-components/{p-45419d93.entry.js → p-12bcd474.entry.js} +1 -1
- package/dist/solutions-components/{p-bd82849c.entry.js → p-1597ec4b.entry.js} +1 -1
- package/dist/solutions-components/p-16362eb4.js +36 -0
- package/dist/solutions-components/{p-afb35c95.js → p-17d176b5.js} +14 -43
- package/dist/solutions-components/{p-3691a072.js → p-1ab414e0.js} +2 -2
- package/dist/solutions-components/{p-127c3866.js → p-1c5787b1.js} +1 -1
- package/dist/solutions-components/{p-b97886b3.entry.js → p-1d9a5198.entry.js} +1 -1
- package/dist/solutions-components/{p-8e3e1ce8.entry.js → p-1dd5c4e6.entry.js} +1 -1
- package/dist/solutions-components/{p-97b69f54.entry.js → p-1e62d118.entry.js} +1 -1
- package/dist/solutions-components/{p-537c34a4.entry.js → p-1fae3819.entry.js} +1 -1
- package/dist/solutions-components/{p-82f0b25b.js → p-21aa112d.js} +1 -1
- package/dist/solutions-components/{p-f8944f59.entry.js → p-252a9a7f.entry.js} +1 -1
- package/dist/solutions-components/{p-80ea5869.js → p-26b28806.js} +1 -1
- package/dist/solutions-components/{p-dac10448.js → p-280fd963.js} +3 -3
- package/dist/solutions-components/{p-79d7f324.js → p-29049359.js} +1 -1
- package/dist/solutions-components/{p-c033b8ec.entry.js → p-2b378389.entry.js} +1 -1
- package/dist/solutions-components/{p-19ec0463.js → p-2bdd1a5d.js} +1 -1
- package/dist/solutions-components/{p-cacfa6ae.js → p-2ee21e9d.js} +1 -1
- package/dist/solutions-components/{p-300f4299.js → p-2f42ae51.js} +1 -1
- package/dist/solutions-components/{p-418be467.js → p-30b3261c.js} +1 -1
- package/dist/solutions-components/{p-4d91443a.entry.js → p-32ba2223.entry.js} +1 -1
- package/dist/solutions-components/{p-702c6093.js → p-34673137.js} +1 -1
- package/dist/solutions-components/{p-61af54b9.entry.js → p-3566ee69.entry.js} +1 -1
- package/dist/solutions-components/{p-90a9126f.js → p-358b9cc8.js} +1 -1
- package/dist/solutions-components/p-3a8d82a2.js +11 -0
- package/dist/solutions-components/{p-628c170b.entry.js → p-3ab94526.entry.js} +1 -1
- package/dist/solutions-components/{p-9791fbf1.entry.js → p-3d7aa1b2.entry.js} +1 -1
- package/dist/solutions-components/{p-b1daad7e.js → p-3f7119c1.js} +1 -1
- package/dist/solutions-components/{p-f0f5ecb2.js → p-3fcd035e.js} +1 -1
- package/dist/solutions-components/{p-3766be72.js → p-419c9d89.js} +1 -1
- package/dist/solutions-components/p-453d1b31.entry.js +6 -0
- package/dist/solutions-components/{p-337f6adf.js → p-46918548.js} +1 -1
- package/dist/solutions-components/p-49e9e4e3.js +12 -0
- package/dist/solutions-components/p-4d942b0f.entry.js +36 -0
- package/dist/solutions-components/{p-85e0d2a3.js → p-4fc92419.js} +1 -1
- package/dist/solutions-components/{p-0d08a75d.entry.js → p-52afbe07.entry.js} +1 -1
- package/dist/solutions-components/{p-9391bb74.js → p-573d0763.js} +1 -1
- package/dist/solutions-components/p-57cf6784.entry.js +6 -0
- package/dist/solutions-components/{p-87971116.entry.js → p-59ef9461.entry.js} +1 -1
- package/dist/solutions-components/{p-25718b9f.entry.js → p-5e5749c0.entry.js} +1 -1
- package/dist/solutions-components/{p-54064b61.entry.js → p-5ff22d2e.entry.js} +1 -1
- package/dist/solutions-components/{p-4bd793ef.entry.js → p-617f32a0.entry.js} +1 -1
- package/dist/solutions-components/p-64b22d57.entry.js +6 -0
- package/dist/solutions-components/{p-747a1293.js → p-6510c06c.js} +1 -1
- package/dist/solutions-components/p-654dd5df.entry.js +6 -0
- package/dist/solutions-components/{p-1f69762c.js → p-65ba4d10.js} +1 -1
- package/dist/solutions-components/{p-4cb7cdb7.entry.js → p-65ffe4b0.entry.js} +1 -1
- package/dist/solutions-components/{p-1b4d6511.js → p-68007503.js} +1 -1
- package/dist/solutions-components/{p-e849d2ba.entry.js → p-6ba8483c.entry.js} +2 -2
- package/dist/solutions-components/{p-9961a2f9.entry.js → p-6c8c7b98.entry.js} +2 -2
- package/dist/solutions-components/{p-ff863f3d.entry.js → p-6e5d9ae9.entry.js} +1 -1
- package/dist/solutions-components/{p-b6a1c34f.entry.js → p-6ebf870c.entry.js} +1 -1
- package/dist/solutions-components/{p-d2d3e4b5.js → p-72f34a0a.js} +1 -1
- package/dist/solutions-components/{p-981fc8e4.entry.js → p-7359a6ac.entry.js} +1 -1
- package/dist/solutions-components/{p-9abb1c4c.entry.js → p-73fe6f7e.entry.js} +1 -1
- package/dist/solutions-components/{p-62e3adbb.js → p-7452d79a.js} +1 -1
- package/dist/solutions-components/{p-34169501.js → p-76c2c379.js} +1 -1
- package/dist/solutions-components/{p-941721ba.js → p-788aa5d7.js} +1 -1
- package/dist/solutions-components/{p-557d4cc5.js → p-79cc0531.js} +2 -2
- package/dist/solutions-components/{p-a19d8147.js → p-7a0fa011.js} +1 -1
- package/dist/solutions-components/{p-019fe9fe.entry.js → p-7a55cee6.entry.js} +3 -3
- package/dist/solutions-components/{p-48329056.entry.js → p-7bc63171.entry.js} +1 -1
- package/dist/solutions-components/{p-e7304151.entry.js → p-81664d83.entry.js} +1 -1
- package/dist/solutions-components/{p-9504c1b7.js → p-8354f486.js} +1 -1
- package/dist/solutions-components/{p-f812e3ee.entry.js → p-84dff306.entry.js} +1 -1
- package/dist/solutions-components/{p-a59dba2f.js → p-8594fe6b.js} +1 -1
- package/dist/solutions-components/{p-ae3ec77d.js → p-8b2d396e.js} +1 -1
- package/dist/solutions-components/{p-38cc8a4d.js → p-8ec6ea34.js} +1 -1
- package/dist/solutions-components/{p-da760d1d.entry.js → p-8ee00658.entry.js} +1 -1
- package/dist/solutions-components/{p-38211628.js → p-905fcf73.js} +1 -1
- package/dist/solutions-components/{p-e502ccce.entry.js → p-929909bc.entry.js} +1 -1
- package/dist/solutions-components/{p-dd5f68f2.js → p-948b5722.js} +1 -1
- package/dist/solutions-components/{p-39fe9a4c.js → p-956f3207.js} +1 -1
- package/dist/solutions-components/{p-f7aa542c.js → p-96287d23.js} +1 -1
- package/dist/solutions-components/{p-68630513.entry.js → p-964c0e7d.entry.js} +1 -1
- package/dist/solutions-components/{p-b09d8c0e.entry.js → p-98051370.entry.js} +1 -1
- package/dist/solutions-components/{p-efd70bf7.entry.js → p-9a94f48c.entry.js} +2 -2
- package/dist/solutions-components/{p-318790b8.js → p-9b94501c.js} +1 -1
- package/dist/solutions-components/{p-69e26726.js → p-9d4467a3.js} +1 -1
- package/dist/solutions-components/{p-f6cf9943.js → p-9e3c9cd2.js} +1 -1
- package/dist/solutions-components/{p-30542275.js → p-9fd59203.js} +1 -1
- package/dist/solutions-components/{p-d902b790.js → p-a201bffc.js} +1 -1
- package/dist/solutions-components/{p-89cbb86a.js → p-a26711e8.js} +3 -3
- package/dist/solutions-components/{p-1552c479.entry.js → p-a3729795.entry.js} +1 -1
- package/dist/solutions-components/{p-ae4ad673.entry.js → p-a47ed290.entry.js} +2 -2
- package/dist/solutions-components/{p-ca5be55f.entry.js → p-a5ef322f.entry.js} +2 -2
- package/dist/solutions-components/{p-3658ebd8.entry.js → p-a97e8d6a.entry.js} +1 -1
- package/dist/solutions-components/{p-2937523d.js → p-aaea9203.js} +1 -1
- package/dist/solutions-components/{p-b7093e6d.entry.js → p-ad1d56b1.entry.js} +1 -1
- package/dist/solutions-components/{p-0ca528ec.js → p-adeb0e8f.js} +1 -1
- package/dist/solutions-components/{p-31d2a105.entry.js → p-af63959a.entry.js} +1 -1
- package/dist/solutions-components/{p-fbd71543.entry.js → p-b1125581.entry.js} +2 -2
- package/dist/solutions-components/p-b1c8c6d7.entry.js +6 -0
- package/dist/solutions-components/{p-b029c6d8.js → p-b20a31c8.js} +1 -1
- package/dist/solutions-components/{p-71400268.js → p-b81131b3.js} +1 -1
- package/dist/solutions-components/{p-cc624b0c.entry.js → p-b89c5865.entry.js} +1 -1
- package/dist/solutions-components/{p-245d667e.js → p-b9b52743.js} +1 -1
- package/dist/solutions-components/p-b9d29f30.entry.js +6 -0
- package/dist/solutions-components/{p-0870f436.entry.js → p-ba99e562.entry.js} +1 -1
- package/dist/solutions-components/{p-2d614afc.js → p-bc548c06.js} +1 -1
- package/dist/solutions-components/{p-29b2f046.js → p-bccbdeb5.js} +1 -1
- package/dist/solutions-components/{p-f72e0965.entry.js → p-bd318e33.entry.js} +1 -1
- package/dist/solutions-components/{p-74aa84f6.js → p-bd766e49.js} +1 -1
- package/dist/solutions-components/{p-9b75102b.entry.js → p-c073d2d6.entry.js} +1 -1
- package/dist/solutions-components/p-c6b7e7ff.js +11 -0
- package/dist/solutions-components/{p-0503c78d.js → p-c8d0ce92.js} +44 -29
- package/dist/solutions-components/{p-dc80cb69.entry.js → p-ca0b3a2b.entry.js} +1 -1
- package/dist/solutions-components/{p-e9fcf408.js → p-d5228aed.js} +1 -1
- package/dist/solutions-components/{p-80b87453.js → p-d98caa4c.js} +1 -1
- package/dist/solutions-components/{p-45b829b5.js → p-dd9c065e.js} +1 -1
- package/dist/solutions-components/{p-05b2bdf9.js → p-dedc167c.js} +1 -1
- package/dist/solutions-components/{p-a16feeec.js → p-e4f9b782.js} +1 -1
- package/dist/solutions-components/{p-ac1bd870.entry.js → p-e572a692.entry.js} +1 -1
- package/dist/solutions-components/{p-74521615.entry.js → p-e5dda947.entry.js} +1 -1
- package/dist/solutions-components/{p-d793ec96.entry.js → p-e76949eb.entry.js} +5 -5
- package/dist/solutions-components/{p-bbfc2724.js → p-e7fbf2fe.js} +1 -1
- package/dist/solutions-components/{p-dda325a4.entry.js → p-e9ba0c7f.entry.js} +1 -1
- package/dist/solutions-components/{p-75e707d1.js → p-eb60ec2a.js} +1 -1
- package/dist/solutions-components/p-ecc95259.js +20 -0
- package/dist/solutions-components/{p-85791b16.entry.js → p-ee144348.entry.js} +1 -1
- package/dist/solutions-components/p-ee7e2f00.entry.js +34 -0
- package/dist/solutions-components/{p-4b4559f9.js → p-f03bed0c.js} +1 -1
- package/dist/solutions-components/{p-7a11983d.js → p-f5028a8e.js} +1 -1
- package/dist/solutions-components/{p-fb23ba4a.entry.js → p-f50cf603.entry.js} +1 -1
- package/dist/solutions-components/{p-f7b520ae.js → p-f7d8b6b3.js} +1 -1
- package/dist/solutions-components/{p-792fcd62.entry.js → p-fb0f2016.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +257 -85
- package/dist/solutions-components/utils/interfaces.ts +12 -1
- package/dist/solutions-components/utils/mapViewUtils.ts +41 -57
- package/dist/solutions-components/utils/publicNotificationStore.ts +0 -4
- package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +2 -0
- package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +5 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +45 -1
- package/dist/types/components/edit-card/edit-card.d.ts +8 -0
- package/dist/types/components/layer-table/layer-table.d.ts +82 -26
- package/dist/types/components/map-card/map-card.d.ts +25 -1
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +50 -3
- package/dist/types/components/map-picker/map-picker.d.ts +2 -2
- package/dist/types/components/map-tools/map-tools.d.ts +21 -1
- package/dist/types/components/pdf-download/pdf-download.d.ts +4 -2
- package/dist/types/components.d.ts +218 -4
- package/dist/types/preact.d.ts +6 -3
- package/dist/types/utils/downloadUtils.d.ts +34 -16
- package/dist/types/utils/interfaces.d.ts +10 -1
- package/dist/types/utils/mapViewUtils.d.ts +8 -24
- package/dist/types/utils/publicNotificationStore.d.ts +0 -2
- package/package.json +8 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +0 -259
- package/dist/cjs/calcite-notice.cjs.entry.js +0 -139
- package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -439
- package/dist/esm/calcite-chip.entry.js +0 -255
- package/dist/esm/calcite-notice.entry.js +0 -135
- package/dist/esm/calcite-tooltip.entry.js +0 -435
- package/dist/solutions-components/p-06712292.js +0 -11
- package/dist/solutions-components/p-0a0c3764.js +0 -11
- package/dist/solutions-components/p-12a7c2db.entry.js +0 -6
- package/dist/solutions-components/p-1a47516a.entry.js +0 -22
- package/dist/solutions-components/p-2cff8331.entry.js +0 -6
- package/dist/solutions-components/p-3a7cd2b0.entry.js +0 -37
- package/dist/solutions-components/p-3e9fc0aa.entry.js +0 -11
- package/dist/solutions-components/p-712ea336.entry.js +0 -11
- package/dist/solutions-components/p-767002cd.js +0 -36
- package/dist/solutions-components/p-8e9d9e6a.js +0 -12
- package/dist/solutions-components/p-97088307.entry.js +0 -6
- package/dist/solutions-components/p-a16e6f5f.entry.js +0 -6
- package/dist/solutions-components/p-d118a76e.entry.js +0 -6
- package/dist/solutions-components/p-d54c2dfd.entry.js +0 -6
- package/dist/solutions-components/p-d7d466e8.entry.js +0 -6
- package/dist/solutions-components/p-ffbe89cf.entry.js +0 -6
@@ -9,13 +9,14 @@ import { g as getLocaleComponentStrings } from './locale.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './icon.js';
|
10
10
|
import { d as defineCustomElement$1 } from './notice.js';
|
11
11
|
|
12
|
-
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{--calcite-ui-background:none;padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-ui-foreground-1) !important}";
|
12
|
+
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{--calcite-ui-background:none;padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-ui-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-ui-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}";
|
13
13
|
|
14
14
|
const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLElement {
|
15
15
|
constructor() {
|
16
16
|
super();
|
17
17
|
this.__registerHost();
|
18
18
|
this.closeEdit = createEvent(this, "closeEdit", 7);
|
19
|
+
this.editsComplete = createEvent(this, "editsComplete", 7);
|
19
20
|
/**
|
20
21
|
* boolean: When true the Editor widget should be closed
|
21
22
|
*/
|
@@ -78,6 +79,10 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
78
79
|
}
|
79
80
|
if (((_a = this.graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = this.graphics[0]) === null || _b === void 0 ? void 0 : _b.layer)) {
|
80
81
|
this._layer = this.graphics[0].layer;
|
82
|
+
if (this._layerEditHandle) {
|
83
|
+
this._layerEditHandle.remove();
|
84
|
+
}
|
85
|
+
this._layerEditHandle = this._layer.on("edits", () => this.editsComplete.emit());
|
81
86
|
}
|
82
87
|
}
|
83
88
|
/**
|
@@ -16,7 +16,7 @@ import { d as defineCustomElement$3 } from './shell.js';
|
|
16
16
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
17
17
|
import { d as defineCustomElement$1 } from './edit-card2.js';
|
18
18
|
|
19
|
-
const infoCardCss = ":host{display:block;--calcite-label-margin-bottom:0}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:8px}tr:nth-child(odd){background:var(--calcite-ui-foreground-2)}.bottom-border{padding-bottom:0.5rem;border-bottom:1px solid var(--calcite-ui-border-1)}.padding-1-2{padding:0.5rem}.padding-top-1-2{padding-top:0.5rem}.font-color-3{color:var(--calcite-ui-text-3)}.display-none{display:none}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.
|
19
|
+
const infoCardCss = ":host{display:block;--calcite-label-margin-bottom:0}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:8px}tr:nth-child(odd){background:var(--calcite-ui-foreground-2)}.bottom-border{padding-bottom:0.5rem;border-bottom:1px solid var(--calcite-ui-border-1)}.padding-1-2{padding:0.5rem}.padding-top-1-2{padding-top:0.5rem}.font-color-3{color:var(--calcite-ui-text-3)}.display-none{display:none}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-features__footer{display:none !important}.button-container{justify-content:space-between;align-items:center}.top-border{border-top:1px solid var(--calcite-ui-border-1)}.min-width-100{min-width:100px}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-ui-foreground-1) !important;height:100% !important}";
|
20
20
|
|
21
21
|
const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLElement {
|
22
22
|
constructor() {
|
@@ -107,7 +107,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
107
107
|
const featureNodeClass = this.isLoading || this._editRecordOpen ? "display-none" : "position-absolute";
|
108
108
|
const editClass = !this.isLoading && this._editRecordOpen ? "position-absolute" : "display-none";
|
109
109
|
const editButtonClass = !this.isLoading && this._editRecordOpen ? "display-none" : "";
|
110
|
-
return (h(Host, null, h("calcite-shell", null, h("calcite-loader", { class: loadingClass, label: this._translations.fetchingData }), h("div", { class: "esri-widget " + featureNodeClass, id: "features-node" }), h("div", { class: `${editButtonClass}
|
110
|
+
return (h(Host, null, h("calcite-shell", null, h("calcite-loader", { class: loadingClass, label: this._translations.fetchingData }), h("div", { class: "esri-widget " + featureNodeClass, id: "features-node" }), h("div", { class: `${editButtonClass} width-100`, slot: "footer" }, h("div", { class: "display-flex top-border padding-1-2" }, h("calcite-button", { appearance: "solid", "icon-start": "pencil", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": "solutions-edit" }, h("span", null, this._translations.edit))), h("div", { class: "display-flex padding-1-2 button-container top-border" }, h("div", { class: "min-width-100" }, h("calcite-button", { appearance: "outline", id: "solutions-back", onClick: () => this._back(), width: "full" }, this._translations.back), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, h("span", null, this._translations.back))), h("div", null, this._getCount()), h("div", { class: "min-width-100" }, h("calcite-button", { appearance: "outline", id: "solutions-next", onClick: () => this._next(), width: "full" }, this._translations.next), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-next" }, h("span", null, this._translations.next))))), h("edit-card", { class: editClass, graphicIndex: (_a = this._features) === null || _a === void 0 ? void 0 : _a.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { slot: "title" }, this._translations.editDisabled), h("div", { slot: "message" }, this._translations.enableEditing)))));
|
111
111
|
}
|
112
112
|
//--------------------------------------------------------------------------
|
113
113
|
//
|
@@ -6,24 +6,25 @@
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
7
|
import { l as loadModules } from './loadModules.js';
|
8
8
|
import { g as getLocaleComponentStrings } from './locale.js';
|
9
|
-
import { a as
|
10
|
-
import {
|
9
|
+
import { a as goToSelection, g as getLayerOrTable } from './mapViewUtils.js';
|
10
|
+
import { b as queryAllIds, q as queryFeaturesByID } from './queryUtils.js';
|
11
11
|
import { d as downloadCSV } from './downloadUtils.js';
|
12
|
-
import { d as defineCustomElement$
|
13
|
-
import { d as defineCustomElement$
|
14
|
-
import { d as defineCustomElement$
|
15
|
-
import { d as defineCustomElement$
|
16
|
-
import { d as defineCustomElement$
|
17
|
-
import { d as defineCustomElement$
|
18
|
-
import { d as defineCustomElement$
|
19
|
-
import { d as defineCustomElement$
|
20
|
-
import { d as defineCustomElement$
|
21
|
-
import { d as defineCustomElement$
|
22
|
-
import { d as defineCustomElement$
|
23
|
-
import { d as defineCustomElement$
|
24
|
-
import { d as defineCustomElement$
|
25
|
-
import { d as defineCustomElement$
|
26
|
-
import { d as defineCustomElement$
|
12
|
+
import { d as defineCustomElement$o } from './action.js';
|
13
|
+
import { d as defineCustomElement$n } from './action-bar.js';
|
14
|
+
import { d as defineCustomElement$m } from './action-group.js';
|
15
|
+
import { d as defineCustomElement$l } from './action-menu.js';
|
16
|
+
import { d as defineCustomElement$k } from './alert.js';
|
17
|
+
import { d as defineCustomElement$j } from './button.js';
|
18
|
+
import { d as defineCustomElement$i } from './chip.js';
|
19
|
+
import { d as defineCustomElement$h } from './combobox.js';
|
20
|
+
import { d as defineCustomElement$g } from './combobox-item.js';
|
21
|
+
import { d as defineCustomElement$f } from './dropdown.js';
|
22
|
+
import { d as defineCustomElement$e } from './dropdown-group.js';
|
23
|
+
import { d as defineCustomElement$d } from './dropdown-item.js';
|
24
|
+
import { d as defineCustomElement$c } from './icon.js';
|
25
|
+
import { d as defineCustomElement$b } from './loader.js';
|
26
|
+
import { d as defineCustomElement$a } from './modal.js';
|
27
|
+
import { d as defineCustomElement$9 } from './notice.js';
|
27
28
|
import { d as defineCustomElement$8 } from './option.js';
|
28
29
|
import { d as defineCustomElement$7 } from './panel.js';
|
29
30
|
import { d as defineCustomElement$6 } from './popover.js';
|
@@ -33,7 +34,7 @@ import { d as defineCustomElement$3 } from './shell.js';
|
|
33
34
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
34
35
|
import { d as defineCustomElement$1 } from './map-layer-picker2.js';
|
35
36
|
|
36
|
-
const layerTableCss = ":host{display:block}.height-full{height:100%}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}";
|
37
|
+
const layerTableCss = ":host{display:block}.height-full{height:100%}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-ui-danger)}";
|
37
38
|
|
38
39
|
const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTMLElement {
|
39
40
|
constructor() {
|
@@ -59,12 +60,16 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
59
60
|
this.onTableNodeCreate = (node) => {
|
60
61
|
this._tableNode = node;
|
61
62
|
};
|
63
|
+
this.enableAutoRefresh = undefined;
|
64
|
+
this.enableInlineEdit = undefined;
|
62
65
|
this.mapInfo = undefined;
|
63
66
|
this.mapView = undefined;
|
67
|
+
this.onlyShowUpdatableLayers = undefined;
|
64
68
|
this.showNewestFirst = undefined;
|
65
69
|
this.zoomAndScrollToSelected = undefined;
|
66
70
|
this._alertOpen = false;
|
67
71
|
this._fetchingData = false;
|
72
|
+
this._isDeleting = false;
|
68
73
|
this._layer = undefined;
|
69
74
|
this._selectedIndexes = [];
|
70
75
|
this._showOnlySelected = false;
|
@@ -80,13 +85,12 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
80
85
|
* watch for changes in map view and get the first layer
|
81
86
|
*/
|
82
87
|
async mapViewWatchHandler() {
|
83
|
-
this.
|
84
|
-
|
85
|
-
|
86
|
-
this.reactiveUtils.on(() => this.mapView, "click", (event) => {
|
88
|
+
if (this._mapClickHandle) {
|
89
|
+
this._mapClickHandle.remove();
|
90
|
+
}
|
91
|
+
this._mapClickHandle = this.reactiveUtils.on(() => this.mapView, "click", (event) => {
|
87
92
|
void this._mapClicked(event);
|
88
93
|
});
|
89
|
-
this._fetchingData = false;
|
90
94
|
}
|
91
95
|
/**
|
92
96
|
* watch for changes in layer view and verify if it has editing enabled
|
@@ -143,6 +147,22 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
143
147
|
}
|
144
148
|
}
|
145
149
|
}
|
150
|
+
/**
|
151
|
+
* Refresh the table when edits are completed
|
152
|
+
*
|
153
|
+
*/
|
154
|
+
editsComplete() {
|
155
|
+
this._refresh();
|
156
|
+
}
|
157
|
+
/**
|
158
|
+
* Refresh the table when edits are completed
|
159
|
+
*
|
160
|
+
*/
|
161
|
+
noLayersFound() {
|
162
|
+
this._layer = undefined;
|
163
|
+
this._allIds = [];
|
164
|
+
this._clearSelection();
|
165
|
+
}
|
146
166
|
//--------------------------------------------------------------------------
|
147
167
|
//
|
148
168
|
// Functions (lifecycle)
|
@@ -161,17 +181,13 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
161
181
|
* Renders the component.
|
162
182
|
*/
|
163
183
|
render() {
|
164
|
-
if (!this._layer) {
|
165
|
-
return null;
|
166
|
-
}
|
167
184
|
const tableNodeClass = this._fetchingData ? "display-none" : "";
|
168
185
|
const loadingClass = this._fetchingData ? "" : "display-none";
|
169
|
-
const alertActionClass = this._alertShowAction ? "" : "display-none";
|
170
186
|
const total = this._allIds.length.toString();
|
171
187
|
const selected = this._selectedIndexes.length.toString();
|
172
188
|
return (h(Host, null, h("calcite-shell", null, this._getTableControlRow("header"), h("div", { class: "height-full width-full" }, h("calcite-panel", { class: "height-full width-full" }, h("calcite-loader", { class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { class: tableNodeClass, ref: this.onTableNodeCreate })), h("div", { class: "bottom-left background text-color" }, this._translations.recordsSelected
|
173
189
|
.replace("{{total}}", total)
|
174
|
-
.replace("{{selected}}", selected))),
|
190
|
+
.replace("{{selected}}", selected))), this._getEditDisabledWarning()), this._deleteMessage()));
|
175
191
|
}
|
176
192
|
//--------------------------------------------------------------------------
|
177
193
|
//
|
@@ -202,9 +218,37 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
202
218
|
*/
|
203
219
|
_getTableControlRow(slot) {
|
204
220
|
const featuresSelected = this._selectedIndexes.length > 0;
|
205
|
-
return (h("div", { class: "display-flex table-border height-51", slot: slot }, h("calcite-action-bar", { expandDisabled: true, expanded: true, layout: "horizontal" }, h("div", { class: "border-end" }, h("map-layer-picker", { appearance: "transparent", mapView: this.mapView, onLayerSelectionChange: (evt) => this._layerSelectionChanged(evt), placeholderIcon: "layers", scale: "l", type: "dropdown" })),
|
221
|
+
return (h("div", { class: "display-flex table-border height-51", slot: slot }, h("calcite-action-bar", { expandDisabled: true, expanded: true, layout: "horizontal" }, h("div", { class: "border-end" }, h("map-layer-picker", { appearance: "transparent", mapView: this.mapView, onLayerSelectionChange: (evt) => this._layerSelectionChanged(evt), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", type: "dropdown" })), this._getAction("zoom-to-object", this._translations.zoom, () => this._zoom(), !featuresSelected), this._getAction("filter", this._translations.filters, () => this._filter(), false), this._deleteEnabled ? this._getDangerAction("trash", this._translations.delete, () => this._delete(), !featuresSelected) : undefined, this._getAction("erase", this._translations.clearSelection, () => this._clearSelection(), !featuresSelected)), h("calcite-dropdown", { disabled: this._layer === undefined }, h("calcite-action", { appearance: "solid", label: "", slot: "trigger", text: "" }, h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), h("calcite-dropdown-group", { "selection-mode": "none" }, h("calcite-dropdown-item", { iconStart: "list-check-all", onClick: () => this._selectAll() }, this._translations.selectAll), h("calcite-dropdown-item", { iconStart: "selected-items-filter", onClick: () => this._toggleShowSelected() }, this._showOnlySelected ? this._translations.showAll :
|
206
222
|
this._translations.showSelected), h("calcite-dropdown-item", { iconStart: "compare", onClick: () => this._switchSelected() }, this._translations.switchSelected), h("calcite-dropdown-item", { iconStart: "refresh", onClick: () => this._refresh() }, this._translations.refresh), h("calcite-dropdown-item", { iconStart: "export", onClick: () => void this._exportToCSV() }, this._translations.exportCSV)))));
|
207
223
|
}
|
224
|
+
/**
|
225
|
+
* Get an action and tooltip
|
226
|
+
*
|
227
|
+
* @param icon string the name of the icon to display, will also be used as the id
|
228
|
+
* @param label string the text to display and label the action
|
229
|
+
* @param func any the function to execute
|
230
|
+
* @param disabled boolean when true the user will not be able to interact with the action
|
231
|
+
*
|
232
|
+
* @returns VNode The node representing the DOM element that will contain the action
|
233
|
+
*/
|
234
|
+
_getAction(icon, label, func, disabled) {
|
235
|
+
const _disabled = this._layer === undefined ? true : disabled;
|
236
|
+
return (h("div", { class: "display-flex" }, h("calcite-action", { appearance: "solid", disabled: _disabled, icon: icon, id: icon, label: label, onClick: func, text: label, textEnabled: true }), h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": icon }, h("span", null, label))));
|
237
|
+
}
|
238
|
+
/**
|
239
|
+
* Get an action with danger color icon and text
|
240
|
+
*
|
241
|
+
* @param icon string the name of the icon to display, will also be used as the id
|
242
|
+
* @param label string the text to display and label the action
|
243
|
+
* @param func any the function to execute
|
244
|
+
* @param disabled boolean when true the user will not be able to interact with the action
|
245
|
+
*
|
246
|
+
* @returns VNode The node representing the DOM element that will contain the action
|
247
|
+
*/
|
248
|
+
_getDangerAction(icon, label, func, disabled) {
|
249
|
+
const _disabled = this._layer === undefined ? true : disabled;
|
250
|
+
return (h("div", { class: "display-flex" }, h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: "" }, h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label)), h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": icon }, h("span", null, label))));
|
251
|
+
}
|
208
252
|
/**
|
209
253
|
* Initialize the FeatureTable
|
210
254
|
*
|
@@ -214,11 +258,12 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
214
258
|
*/
|
215
259
|
async _getTable(node, columnTemplates) {
|
216
260
|
if (this._layer) {
|
217
|
-
await this._layer.when(
|
261
|
+
await this._layer.when(() => {
|
218
262
|
this._table = new this.FeatureTable({
|
263
|
+
autoRefreshEnabled: this.enableAutoRefresh,
|
219
264
|
layer: this._layer,
|
220
265
|
view: this.mapView,
|
221
|
-
|
266
|
+
editingEnabled: this._editEnabled && this.enableInlineEdit,
|
222
267
|
highlightEnabled: true,
|
223
268
|
multiSortEnabled: false,
|
224
269
|
visibleElements: {
|
@@ -230,24 +275,25 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
230
275
|
},
|
231
276
|
container: node
|
232
277
|
});
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
278
|
+
});
|
279
|
+
this._checkEditEnabled();
|
280
|
+
await this._table.when(() => {
|
281
|
+
this._table.highlightIds.on("change", () => {
|
282
|
+
this._selectedIndexes = this._table.highlightIds.toArray();
|
283
|
+
if (this._showOnlySelected) {
|
284
|
+
if (this._selectedIndexes.length > 0) {
|
285
|
+
this._table.filterBySelection();
|
286
|
+
}
|
287
|
+
else {
|
288
|
+
this._toggleShowSelected();
|
243
289
|
}
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
290
|
+
}
|
291
|
+
this.featureSelectionChange.emit(this._selectedIndexes);
|
292
|
+
});
|
293
|
+
this.reactiveUtils.watch(() => this._table.activeSortOrders, (sortOrders) => {
|
294
|
+
var _a, _b, _c, _d;
|
295
|
+
this._sortActive = this._layer ? (sortOrders.length > 0 && ((_a = sortOrders[0]) === null || _a === void 0 ? void 0 : _a.direction) === "asc" || ((_b = sortOrders[0]) === null || _b === void 0 ? void 0 : _b.direction) === "desc") ||
|
296
|
+
((_c = sortOrders[0]) === null || _c === void 0 ? void 0 : _c.direction) === null && ((_d = sortOrders[0]) === null || _d === void 0 ? void 0 : _d.fieldName) === this._layer.objectIdField : false;
|
251
297
|
});
|
252
298
|
});
|
253
299
|
}
|
@@ -258,22 +304,41 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
258
304
|
* @returns void
|
259
305
|
*/
|
260
306
|
async _resetTable() {
|
261
|
-
if (this.
|
307
|
+
if (this._table) {
|
262
308
|
this._clearSelection();
|
263
309
|
this._allIds = [];
|
264
310
|
this.featureSelectionChange.emit(this._selectedIndexes);
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
311
|
+
if (this._layer) {
|
312
|
+
await this._layer.when(() => {
|
313
|
+
const columnTemplates = this._getColumnTemplates(this._layer.id);
|
314
|
+
this._table.layer = this._layer;
|
315
|
+
this._table.tableTemplate.columnTemplates = columnTemplates;
|
316
|
+
this._table.view = this.mapView;
|
317
|
+
this._checkEditEnabled();
|
318
|
+
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
319
|
+
});
|
320
|
+
await this._table.when(() => {
|
321
|
+
this._table.clearSelectionFilter();
|
322
|
+
});
|
323
|
+
this._showOnlySelected = false;
|
324
|
+
this._sortActive = false;
|
325
|
+
await this._sortTable();
|
326
|
+
}
|
327
|
+
else {
|
328
|
+
this._table.view = this.mapView;
|
329
|
+
this._table.layer = this._layer;
|
330
|
+
}
|
275
331
|
}
|
276
332
|
}
|
333
|
+
/**
|
334
|
+
* Verify edit capabilities of the layer
|
335
|
+
*
|
336
|
+
* @returns void
|
337
|
+
*/
|
338
|
+
_checkEditEnabled() {
|
339
|
+
this._editEnabled = this._layer.editingEnabled && this._layer.capabilities.operations.supportsUpdate;
|
340
|
+
this._deleteEnabled = this._layer.editingEnabled && this._layer.capabilities.operations.supportsDelete;
|
341
|
+
}
|
277
342
|
/**
|
278
343
|
* Sort the objectid field in descending order
|
279
344
|
*
|
@@ -283,15 +348,48 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
283
348
|
if (this._table && this._layer && !this._sortActive) {
|
284
349
|
if (!this._tableSorting && this.showNewestFirst) {
|
285
350
|
this._tableSorting = true;
|
286
|
-
await this._table.when(
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
});
|
351
|
+
await this._table.when();
|
352
|
+
await this._layer.when(() => {
|
353
|
+
this._table.sortColumn(this._layer.objectIdField, "desc");
|
354
|
+
this._tableSorting = false;
|
291
355
|
});
|
292
356
|
}
|
293
357
|
}
|
294
358
|
}
|
359
|
+
/**
|
360
|
+
* Show warning when editing is disabled
|
361
|
+
*
|
362
|
+
* @returns node with warning message
|
363
|
+
*/
|
364
|
+
_getEditDisabledWarning() {
|
365
|
+
return (h("calcite-alert", { icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen && !this._confirmDelete, placement: "top" }, h("div", { slot: "title" }, this._translations.deleteDisabled), h("div", { slot: "message" }, this._translations.enableEditing)));
|
366
|
+
}
|
367
|
+
/**
|
368
|
+
* Show delete confirmation message
|
369
|
+
*
|
370
|
+
* @returns node to confirm or deny the delete operation
|
371
|
+
*/
|
372
|
+
_deleteMessage() {
|
373
|
+
return (h("calcite-modal", { "aria-labelledby": "modal-title", kind: "danger", open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, h("calcite-icon", { "aria-hidden": "true", class: "padding-end-1 danger-color", icon: "exclamation-mark-triangle", scale: "m" }), this._translations.deleteFeature), h("div", { slot: "content" }, this._translations.confirm), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._alertClosed(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
|
374
|
+
}
|
375
|
+
/**
|
376
|
+
* Delete the currently selected features
|
377
|
+
*
|
378
|
+
* @returns void
|
379
|
+
*/
|
380
|
+
async _deleteFeatures() {
|
381
|
+
this._isDeleting = true;
|
382
|
+
const deleteFeatures = this._table.highlightIds.toArray().map((objectId) => {
|
383
|
+
return { objectId };
|
384
|
+
});
|
385
|
+
await this._layer.applyEdits({
|
386
|
+
deleteFeatures
|
387
|
+
});
|
388
|
+
await this._table.refresh();
|
389
|
+
this._allIds = await queryAllIds(this._layer);
|
390
|
+
this._isDeleting = false;
|
391
|
+
this._alertClosed();
|
392
|
+
}
|
295
393
|
/**
|
296
394
|
* Handle map click events to keep table and map click selection in sync
|
297
395
|
*
|
@@ -327,6 +425,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
327
425
|
*/
|
328
426
|
_alertClosed() {
|
329
427
|
this._alertOpen = false;
|
428
|
+
this._confirmDelete = false;
|
330
429
|
}
|
331
430
|
/**
|
332
431
|
* Select or deselect all rows
|
@@ -400,7 +499,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
400
499
|
ids,
|
401
500
|
layer: this._layer
|
402
501
|
};
|
403
|
-
void downloadCSV(
|
502
|
+
void downloadCSV(null, //???
|
503
|
+
exportInfos, false, // formatUsingLayerPopup
|
404
504
|
false, // removeDuplicates
|
405
505
|
true);
|
406
506
|
}
|
@@ -427,25 +527,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
427
527
|
*/
|
428
528
|
_delete() {
|
429
529
|
if (this._editEnabled) {
|
430
|
-
this.
|
431
|
-
this._alertTitle = this._translations.deleteRows;
|
432
|
-
this._alertActionText = this._translations.delete;
|
433
|
-
this._alertShowAction = true;
|
434
|
-
this._alertMessage = this._translations.confirm;
|
435
|
-
this._alertKind = "danger";
|
436
|
-
this._alertActionFunction = () => {
|
437
|
-
void this._layer.applyEdits({
|
438
|
-
deleteFeatures: this._table.highlightIds.toArray()
|
439
|
-
});
|
440
|
-
this._alertOpen = false;
|
441
|
-
};
|
442
|
-
}
|
443
|
-
else {
|
444
|
-
this._alertIcon = "layer-broken";
|
445
|
-
this._alertTitle = this._translations.deleteDisabled;
|
446
|
-
this._alertShowAction = false;
|
447
|
-
this._alertMessage = this._translations.enableEditing;
|
448
|
-
this._alertKind = "warning";
|
530
|
+
this._confirmDelete = true;
|
449
531
|
}
|
450
532
|
this._alertOpen = true;
|
451
533
|
}
|
@@ -467,11 +549,12 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
467
549
|
* @returns a promise that will resolve when the operation is complete
|
468
550
|
*/
|
469
551
|
async _layerSelectionChanged(evt) {
|
552
|
+
var _a;
|
470
553
|
const id = evt.detail[0];
|
471
|
-
if (id !== this._layer.id || this._allIds.length === 0) {
|
554
|
+
if (id !== ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id) || this._allIds.length === 0) {
|
472
555
|
this._fetchingData = true;
|
473
556
|
const columnTemplates = this._getColumnTemplates(id);
|
474
|
-
this._layer = await
|
557
|
+
this._layer = await getLayerOrTable(this.mapView, id);
|
475
558
|
this._allIds = await queryAllIds(this._layer);
|
476
559
|
if (!this._table) {
|
477
560
|
await this._getTable(this._tableNode, columnTemplates);
|
@@ -526,24 +609,28 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
526
609
|
}; }
|
527
610
|
static get style() { return layerTableCss; }
|
528
611
|
}, [0, "layer-table", {
|
612
|
+
"enableAutoRefresh": [4, "enable-auto-refresh"],
|
613
|
+
"enableInlineEdit": [4, "enable-inline-edit"],
|
529
614
|
"mapInfo": [16],
|
530
615
|
"mapView": [16],
|
616
|
+
"onlyShowUpdatableLayers": [4, "only-show-updatable-layers"],
|
531
617
|
"showNewestFirst": [4, "show-newest-first"],
|
532
618
|
"zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
|
533
619
|
"_alertOpen": [32],
|
534
620
|
"_fetchingData": [32],
|
621
|
+
"_isDeleting": [32],
|
535
622
|
"_layer": [32],
|
536
623
|
"_selectedIndexes": [32],
|
537
624
|
"_showOnlySelected": [32],
|
538
625
|
"_sortActive": [32],
|
539
626
|
"_translations": [32],
|
540
627
|
"getSelectedGraphics": [64]
|
541
|
-
}, [[8, "selectionChanged", "selectionChanged"]]]);
|
628
|
+
}, [[8, "selectionChanged", "selectionChanged"], [8, "editsComplete", "editsComplete"], [8, "noLayersFound", "noLayersFound"]]]);
|
542
629
|
function defineCustomElement() {
|
543
630
|
if (typeof customElements === "undefined") {
|
544
631
|
return;
|
545
632
|
}
|
546
|
-
const components = ["layer-table", "calcite-action", "calcite-action-bar", "calcite-action-group", "calcite-action-menu", "calcite-alert", "calcite-button", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-dropdown", "calcite-dropdown-group", "calcite-dropdown-item", "calcite-icon", "calcite-
|
633
|
+
const components = ["layer-table", "calcite-action", "calcite-action-bar", "calcite-action-group", "calcite-action-menu", "calcite-alert", "calcite-button", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-dropdown", "calcite-dropdown-group", "calcite-dropdown-item", "calcite-icon", "calcite-loader", "calcite-modal", "calcite-notice", "calcite-option", "calcite-panel", "calcite-popover", "calcite-scrim", "calcite-select", "calcite-shell", "calcite-tooltip", "map-layer-picker"];
|
547
634
|
components.forEach(tagName => { switch (tagName) {
|
548
635
|
case "layer-table":
|
549
636
|
if (!customElements.get(tagName)) {
|
@@ -552,75 +639,80 @@ function defineCustomElement() {
|
|
552
639
|
break;
|
553
640
|
case "calcite-action":
|
554
641
|
if (!customElements.get(tagName)) {
|
555
|
-
defineCustomElement$
|
642
|
+
defineCustomElement$o();
|
556
643
|
}
|
557
644
|
break;
|
558
645
|
case "calcite-action-bar":
|
559
646
|
if (!customElements.get(tagName)) {
|
560
|
-
defineCustomElement$
|
647
|
+
defineCustomElement$n();
|
561
648
|
}
|
562
649
|
break;
|
563
650
|
case "calcite-action-group":
|
564
651
|
if (!customElements.get(tagName)) {
|
565
|
-
defineCustomElement$
|
652
|
+
defineCustomElement$m();
|
566
653
|
}
|
567
654
|
break;
|
568
655
|
case "calcite-action-menu":
|
569
656
|
if (!customElements.get(tagName)) {
|
570
|
-
defineCustomElement$
|
657
|
+
defineCustomElement$l();
|
571
658
|
}
|
572
659
|
break;
|
573
660
|
case "calcite-alert":
|
574
661
|
if (!customElements.get(tagName)) {
|
575
|
-
defineCustomElement$
|
662
|
+
defineCustomElement$k();
|
576
663
|
}
|
577
664
|
break;
|
578
665
|
case "calcite-button":
|
579
666
|
if (!customElements.get(tagName)) {
|
580
|
-
defineCustomElement$
|
667
|
+
defineCustomElement$j();
|
581
668
|
}
|
582
669
|
break;
|
583
670
|
case "calcite-chip":
|
584
671
|
if (!customElements.get(tagName)) {
|
585
|
-
defineCustomElement$
|
672
|
+
defineCustomElement$i();
|
586
673
|
}
|
587
674
|
break;
|
588
675
|
case "calcite-combobox":
|
589
676
|
if (!customElements.get(tagName)) {
|
590
|
-
defineCustomElement$
|
677
|
+
defineCustomElement$h();
|
591
678
|
}
|
592
679
|
break;
|
593
680
|
case "calcite-combobox-item":
|
594
681
|
if (!customElements.get(tagName)) {
|
595
|
-
defineCustomElement$
|
682
|
+
defineCustomElement$g();
|
596
683
|
}
|
597
684
|
break;
|
598
685
|
case "calcite-dropdown":
|
599
686
|
if (!customElements.get(tagName)) {
|
600
|
-
defineCustomElement$
|
687
|
+
defineCustomElement$f();
|
601
688
|
}
|
602
689
|
break;
|
603
690
|
case "calcite-dropdown-group":
|
604
691
|
if (!customElements.get(tagName)) {
|
605
|
-
defineCustomElement$
|
692
|
+
defineCustomElement$e();
|
606
693
|
}
|
607
694
|
break;
|
608
695
|
case "calcite-dropdown-item":
|
609
696
|
if (!customElements.get(tagName)) {
|
610
|
-
defineCustomElement$
|
697
|
+
defineCustomElement$d();
|
611
698
|
}
|
612
699
|
break;
|
613
700
|
case "calcite-icon":
|
701
|
+
if (!customElements.get(tagName)) {
|
702
|
+
defineCustomElement$c();
|
703
|
+
}
|
704
|
+
break;
|
705
|
+
case "calcite-loader":
|
614
706
|
if (!customElements.get(tagName)) {
|
615
707
|
defineCustomElement$b();
|
616
708
|
}
|
617
709
|
break;
|
618
|
-
case "calcite-
|
710
|
+
case "calcite-modal":
|
619
711
|
if (!customElements.get(tagName)) {
|
620
712
|
defineCustomElement$a();
|
621
713
|
}
|
622
714
|
break;
|
623
|
-
case "calcite-
|
715
|
+
case "calcite-notice":
|
624
716
|
if (!customElements.get(tagName)) {
|
625
717
|
defineCustomElement$9();
|
626
718
|
}
|
@@ -36,10 +36,16 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
36
36
|
super();
|
37
37
|
this.__registerHost();
|
38
38
|
this.mapChanged = createEvent(this, "mapChanged", 7);
|
39
|
+
this.beforeMapChanged = createEvent(this, "beforeMapChanged", 7);
|
39
40
|
/**
|
40
41
|
* string: the id of map currently displayed
|
41
42
|
*/
|
42
43
|
this._loadedId = "";
|
44
|
+
this.enableLegend = undefined;
|
45
|
+
this.enableFullscreen = undefined;
|
46
|
+
this.enableSearch = undefined;
|
47
|
+
this.enableBasemap = undefined;
|
48
|
+
this.basemapConfig = undefined;
|
43
49
|
this.mapInfos = [];
|
44
50
|
this.mapView = undefined;
|
45
51
|
this._searchConfiguration = undefined;
|
@@ -66,7 +72,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
66
72
|
* Renders the component.
|
67
73
|
*/
|
68
74
|
render() {
|
69
|
-
return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: "map-height", ref: (el) => (this._mapDiv = el) }), h("map-tools", { class: "box-shadow", mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
|
75
|
+
return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: "map-height", ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: "box-shadow", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
|
70
76
|
}
|
71
77
|
//--------------------------------------------------------------------------
|
72
78
|
//
|
@@ -116,22 +122,28 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
116
122
|
});
|
117
123
|
this._loadedId = id;
|
118
124
|
this._searchConfiguration = this._webMapInfo.searchConfiguration;
|
119
|
-
this.
|
120
|
-
id: id,
|
121
|
-
mapView: this.mapView
|
122
|
-
});
|
125
|
+
this.beforeMapChanged.emit();
|
123
126
|
await this.mapView.when(() => {
|
124
127
|
const home = new this.Home({
|
125
128
|
view: this.mapView
|
126
129
|
});
|
127
130
|
this.mapView.ui.add(home, { position: "top-left", index: 3 });
|
128
131
|
this.mapView.ui.add(this._mapTools, { position: "top-right", index: 0 });
|
132
|
+
this.mapChanged.emit({
|
133
|
+
id: id,
|
134
|
+
mapView: this.mapView
|
135
|
+
});
|
129
136
|
});
|
130
137
|
}
|
131
138
|
}
|
132
139
|
get el() { return this; }
|
133
140
|
static get style() { return mapCardCss; }
|
134
141
|
}, [0, "map-card", {
|
142
|
+
"enableLegend": [4, "enable-legend"],
|
143
|
+
"enableFullscreen": [4, "enable-fullscreen"],
|
144
|
+
"enableSearch": [4, "enable-search"],
|
145
|
+
"enableBasemap": [4, "enable-basemap"],
|
146
|
+
"basemapConfig": [16],
|
135
147
|
"mapInfos": [16],
|
136
148
|
"mapView": [16],
|
137
149
|
"_searchConfiguration": [32],
|