@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
@@ -21,7 +21,7 @@
|
|
21
21
|
import { Host, h } from "@stencil/core";
|
22
22
|
import { loadModules } from "../../utils/loadModules";
|
23
23
|
import { getLocaleComponentStrings } from "../../utils/locale";
|
24
|
-
import {
|
24
|
+
import { getLayerOrTable, goToSelection } from "../../utils/mapViewUtils";
|
25
25
|
import { queryFeaturesByID, queryAllIds } from "../../utils/queryUtils";
|
26
26
|
import * as downloadUtils from "../../utils/downloadUtils";
|
27
27
|
export class LayerTable {
|
@@ -45,12 +45,16 @@ export class LayerTable {
|
|
45
45
|
this.onTableNodeCreate = (node) => {
|
46
46
|
this._tableNode = node;
|
47
47
|
};
|
48
|
+
this.enableAutoRefresh = undefined;
|
49
|
+
this.enableInlineEdit = undefined;
|
48
50
|
this.mapInfo = undefined;
|
49
51
|
this.mapView = undefined;
|
52
|
+
this.onlyShowUpdatableLayers = undefined;
|
50
53
|
this.showNewestFirst = undefined;
|
51
54
|
this.zoomAndScrollToSelected = undefined;
|
52
55
|
this._alertOpen = false;
|
53
56
|
this._fetchingData = false;
|
57
|
+
this._isDeleting = false;
|
54
58
|
this._layer = undefined;
|
55
59
|
this._selectedIndexes = [];
|
56
60
|
this._showOnlySelected = false;
|
@@ -66,13 +70,12 @@ export class LayerTable {
|
|
66
70
|
* watch for changes in map view and get the first layer
|
67
71
|
*/
|
68
72
|
async mapViewWatchHandler() {
|
69
|
-
this.
|
70
|
-
|
71
|
-
|
72
|
-
this.reactiveUtils.on(() => this.mapView, "click", (event) => {
|
73
|
+
if (this._mapClickHandle) {
|
74
|
+
this._mapClickHandle.remove();
|
75
|
+
}
|
76
|
+
this._mapClickHandle = this.reactiveUtils.on(() => this.mapView, "click", (event) => {
|
73
77
|
void this._mapClicked(event);
|
74
78
|
});
|
75
|
-
this._fetchingData = false;
|
76
79
|
}
|
77
80
|
/**
|
78
81
|
* watch for changes in layer view and verify if it has editing enabled
|
@@ -129,6 +132,22 @@ export class LayerTable {
|
|
129
132
|
}
|
130
133
|
}
|
131
134
|
}
|
135
|
+
/**
|
136
|
+
* Refresh the table when edits are completed
|
137
|
+
*
|
138
|
+
*/
|
139
|
+
editsComplete() {
|
140
|
+
this._refresh();
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* Refresh the table when edits are completed
|
144
|
+
*
|
145
|
+
*/
|
146
|
+
noLayersFound() {
|
147
|
+
this._layer = undefined;
|
148
|
+
this._allIds = [];
|
149
|
+
this._clearSelection();
|
150
|
+
}
|
132
151
|
//--------------------------------------------------------------------------
|
133
152
|
//
|
134
153
|
// Functions (lifecycle)
|
@@ -147,17 +166,13 @@ export class LayerTable {
|
|
147
166
|
* Renders the component.
|
148
167
|
*/
|
149
168
|
render() {
|
150
|
-
if (!this._layer) {
|
151
|
-
return null;
|
152
|
-
}
|
153
169
|
const tableNodeClass = this._fetchingData ? "display-none" : "";
|
154
170
|
const loadingClass = this._fetchingData ? "" : "display-none";
|
155
|
-
const alertActionClass = this._alertShowAction ? "" : "display-none";
|
156
171
|
const total = this._allIds.length.toString();
|
157
172
|
const selected = this._selectedIndexes.length.toString();
|
158
173
|
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
|
159
174
|
.replace("{{total}}", total)
|
160
|
-
.replace("{{selected}}", selected))),
|
175
|
+
.replace("{{selected}}", selected))), this._getEditDisabledWarning()), this._deleteMessage()));
|
161
176
|
}
|
162
177
|
//--------------------------------------------------------------------------
|
163
178
|
//
|
@@ -188,9 +203,37 @@ export class LayerTable {
|
|
188
203
|
*/
|
189
204
|
_getTableControlRow(slot) {
|
190
205
|
const featuresSelected = this._selectedIndexes.length > 0;
|
191
|
-
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" })),
|
206
|
+
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 :
|
192
207
|
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)))));
|
193
208
|
}
|
209
|
+
/**
|
210
|
+
* Get an action and tooltip
|
211
|
+
*
|
212
|
+
* @param icon string the name of the icon to display, will also be used as the id
|
213
|
+
* @param label string the text to display and label the action
|
214
|
+
* @param func any the function to execute
|
215
|
+
* @param disabled boolean when true the user will not be able to interact with the action
|
216
|
+
*
|
217
|
+
* @returns VNode The node representing the DOM element that will contain the action
|
218
|
+
*/
|
219
|
+
_getAction(icon, label, func, disabled) {
|
220
|
+
const _disabled = this._layer === undefined ? true : disabled;
|
221
|
+
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))));
|
222
|
+
}
|
223
|
+
/**
|
224
|
+
* Get an action with danger color icon and text
|
225
|
+
*
|
226
|
+
* @param icon string the name of the icon to display, will also be used as the id
|
227
|
+
* @param label string the text to display and label the action
|
228
|
+
* @param func any the function to execute
|
229
|
+
* @param disabled boolean when true the user will not be able to interact with the action
|
230
|
+
*
|
231
|
+
* @returns VNode The node representing the DOM element that will contain the action
|
232
|
+
*/
|
233
|
+
_getDangerAction(icon, label, func, disabled) {
|
234
|
+
const _disabled = this._layer === undefined ? true : disabled;
|
235
|
+
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))));
|
236
|
+
}
|
194
237
|
/**
|
195
238
|
* Initialize the FeatureTable
|
196
239
|
*
|
@@ -200,11 +243,12 @@ export class LayerTable {
|
|
200
243
|
*/
|
201
244
|
async _getTable(node, columnTemplates) {
|
202
245
|
if (this._layer) {
|
203
|
-
await this._layer.when(
|
246
|
+
await this._layer.when(() => {
|
204
247
|
this._table = new this.FeatureTable({
|
248
|
+
autoRefreshEnabled: this.enableAutoRefresh,
|
205
249
|
layer: this._layer,
|
206
250
|
view: this.mapView,
|
207
|
-
|
251
|
+
editingEnabled: this._editEnabled && this.enableInlineEdit,
|
208
252
|
highlightEnabled: true,
|
209
253
|
multiSortEnabled: false,
|
210
254
|
visibleElements: {
|
@@ -216,24 +260,25 @@ export class LayerTable {
|
|
216
260
|
},
|
217
261
|
container: node
|
218
262
|
});
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
263
|
+
});
|
264
|
+
this._checkEditEnabled();
|
265
|
+
await this._table.when(() => {
|
266
|
+
this._table.highlightIds.on("change", () => {
|
267
|
+
this._selectedIndexes = this._table.highlightIds.toArray();
|
268
|
+
if (this._showOnlySelected) {
|
269
|
+
if (this._selectedIndexes.length > 0) {
|
270
|
+
this._table.filterBySelection();
|
271
|
+
}
|
272
|
+
else {
|
273
|
+
this._toggleShowSelected();
|
229
274
|
}
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
275
|
+
}
|
276
|
+
this.featureSelectionChange.emit(this._selectedIndexes);
|
277
|
+
});
|
278
|
+
this.reactiveUtils.watch(() => this._table.activeSortOrders, (sortOrders) => {
|
279
|
+
var _a, _b, _c, _d;
|
280
|
+
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") ||
|
281
|
+
((_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;
|
237
282
|
});
|
238
283
|
});
|
239
284
|
}
|
@@ -244,22 +289,41 @@ export class LayerTable {
|
|
244
289
|
* @returns void
|
245
290
|
*/
|
246
291
|
async _resetTable() {
|
247
|
-
if (this.
|
292
|
+
if (this._table) {
|
248
293
|
this._clearSelection();
|
249
294
|
this._allIds = [];
|
250
295
|
this.featureSelectionChange.emit(this._selectedIndexes);
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
296
|
+
if (this._layer) {
|
297
|
+
await this._layer.when(() => {
|
298
|
+
const columnTemplates = this._getColumnTemplates(this._layer.id);
|
299
|
+
this._table.layer = this._layer;
|
300
|
+
this._table.tableTemplate.columnTemplates = columnTemplates;
|
301
|
+
this._table.view = this.mapView;
|
302
|
+
this._checkEditEnabled();
|
303
|
+
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
304
|
+
});
|
305
|
+
await this._table.when(() => {
|
306
|
+
this._table.clearSelectionFilter();
|
307
|
+
});
|
308
|
+
this._showOnlySelected = false;
|
309
|
+
this._sortActive = false;
|
310
|
+
await this._sortTable();
|
311
|
+
}
|
312
|
+
else {
|
313
|
+
this._table.view = this.mapView;
|
314
|
+
this._table.layer = this._layer;
|
315
|
+
}
|
261
316
|
}
|
262
317
|
}
|
318
|
+
/**
|
319
|
+
* Verify edit capabilities of the layer
|
320
|
+
*
|
321
|
+
* @returns void
|
322
|
+
*/
|
323
|
+
_checkEditEnabled() {
|
324
|
+
this._editEnabled = this._layer.editingEnabled && this._layer.capabilities.operations.supportsUpdate;
|
325
|
+
this._deleteEnabled = this._layer.editingEnabled && this._layer.capabilities.operations.supportsDelete;
|
326
|
+
}
|
263
327
|
/**
|
264
328
|
* Sort the objectid field in descending order
|
265
329
|
*
|
@@ -269,15 +333,48 @@ export class LayerTable {
|
|
269
333
|
if (this._table && this._layer && !this._sortActive) {
|
270
334
|
if (!this._tableSorting && this.showNewestFirst) {
|
271
335
|
this._tableSorting = true;
|
272
|
-
await this._table.when(
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
});
|
336
|
+
await this._table.when();
|
337
|
+
await this._layer.when(() => {
|
338
|
+
this._table.sortColumn(this._layer.objectIdField, "desc");
|
339
|
+
this._tableSorting = false;
|
277
340
|
});
|
278
341
|
}
|
279
342
|
}
|
280
343
|
}
|
344
|
+
/**
|
345
|
+
* Show warning when editing is disabled
|
346
|
+
*
|
347
|
+
* @returns node with warning message
|
348
|
+
*/
|
349
|
+
_getEditDisabledWarning() {
|
350
|
+
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)));
|
351
|
+
}
|
352
|
+
/**
|
353
|
+
* Show delete confirmation message
|
354
|
+
*
|
355
|
+
* @returns node to confirm or deny the delete operation
|
356
|
+
*/
|
357
|
+
_deleteMessage() {
|
358
|
+
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)));
|
359
|
+
}
|
360
|
+
/**
|
361
|
+
* Delete the currently selected features
|
362
|
+
*
|
363
|
+
* @returns void
|
364
|
+
*/
|
365
|
+
async _deleteFeatures() {
|
366
|
+
this._isDeleting = true;
|
367
|
+
const deleteFeatures = this._table.highlightIds.toArray().map((objectId) => {
|
368
|
+
return { objectId };
|
369
|
+
});
|
370
|
+
await this._layer.applyEdits({
|
371
|
+
deleteFeatures
|
372
|
+
});
|
373
|
+
await this._table.refresh();
|
374
|
+
this._allIds = await queryAllIds(this._layer);
|
375
|
+
this._isDeleting = false;
|
376
|
+
this._alertClosed();
|
377
|
+
}
|
281
378
|
/**
|
282
379
|
* Handle map click events to keep table and map click selection in sync
|
283
380
|
*
|
@@ -313,6 +410,7 @@ export class LayerTable {
|
|
313
410
|
*/
|
314
411
|
_alertClosed() {
|
315
412
|
this._alertOpen = false;
|
413
|
+
this._confirmDelete = false;
|
316
414
|
}
|
317
415
|
/**
|
318
416
|
* Select or deselect all rows
|
@@ -386,7 +484,8 @@ export class LayerTable {
|
|
386
484
|
ids,
|
387
485
|
layer: this._layer
|
388
486
|
};
|
389
|
-
void downloadUtils.downloadCSV(
|
487
|
+
void downloadUtils.downloadCSV(null, //???
|
488
|
+
exportInfos, false, // formatUsingLayerPopup
|
390
489
|
false, // removeDuplicates
|
391
490
|
true);
|
392
491
|
}
|
@@ -413,25 +512,7 @@ export class LayerTable {
|
|
413
512
|
*/
|
414
513
|
_delete() {
|
415
514
|
if (this._editEnabled) {
|
416
|
-
this.
|
417
|
-
this._alertTitle = this._translations.deleteRows;
|
418
|
-
this._alertActionText = this._translations.delete;
|
419
|
-
this._alertShowAction = true;
|
420
|
-
this._alertMessage = this._translations.confirm;
|
421
|
-
this._alertKind = "danger";
|
422
|
-
this._alertActionFunction = () => {
|
423
|
-
void this._layer.applyEdits({
|
424
|
-
deleteFeatures: this._table.highlightIds.toArray()
|
425
|
-
});
|
426
|
-
this._alertOpen = false;
|
427
|
-
};
|
428
|
-
}
|
429
|
-
else {
|
430
|
-
this._alertIcon = "layer-broken";
|
431
|
-
this._alertTitle = this._translations.deleteDisabled;
|
432
|
-
this._alertShowAction = false;
|
433
|
-
this._alertMessage = this._translations.enableEditing;
|
434
|
-
this._alertKind = "warning";
|
515
|
+
this._confirmDelete = true;
|
435
516
|
}
|
436
517
|
this._alertOpen = true;
|
437
518
|
}
|
@@ -453,11 +534,12 @@ export class LayerTable {
|
|
453
534
|
* @returns a promise that will resolve when the operation is complete
|
454
535
|
*/
|
455
536
|
async _layerSelectionChanged(evt) {
|
537
|
+
var _a;
|
456
538
|
const id = evt.detail[0];
|
457
|
-
if (id !== this._layer.id || this._allIds.length === 0) {
|
539
|
+
if (id !== ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id) || this._allIds.length === 0) {
|
458
540
|
this._fetchingData = true;
|
459
541
|
const columnTemplates = this._getColumnTemplates(id);
|
460
|
-
this._layer = await
|
542
|
+
this._layer = await getLayerOrTable(this.mapView, id);
|
461
543
|
this._allIds = await queryAllIds(this._layer);
|
462
544
|
if (!this._table) {
|
463
545
|
await this._getTable(this._tableNode, columnTemplates);
|
@@ -517,6 +599,40 @@ export class LayerTable {
|
|
517
599
|
}
|
518
600
|
static get properties() {
|
519
601
|
return {
|
602
|
+
"enableAutoRefresh": {
|
603
|
+
"type": "boolean",
|
604
|
+
"mutable": false,
|
605
|
+
"complexType": {
|
606
|
+
"original": "boolean",
|
607
|
+
"resolved": "boolean",
|
608
|
+
"references": {}
|
609
|
+
},
|
610
|
+
"required": false,
|
611
|
+
"optional": false,
|
612
|
+
"docs": {
|
613
|
+
"tags": [],
|
614
|
+
"text": "boolean: when true the layer table will auto refresh the data"
|
615
|
+
},
|
616
|
+
"attribute": "enable-auto-refresh",
|
617
|
+
"reflect": false
|
618
|
+
},
|
619
|
+
"enableInlineEdit": {
|
620
|
+
"type": "boolean",
|
621
|
+
"mutable": false,
|
622
|
+
"complexType": {
|
623
|
+
"original": "boolean",
|
624
|
+
"resolved": "boolean",
|
625
|
+
"references": {}
|
626
|
+
},
|
627
|
+
"required": false,
|
628
|
+
"optional": false,
|
629
|
+
"docs": {
|
630
|
+
"tags": [],
|
631
|
+
"text": "boolean: when true edits can be applied directly within the table"
|
632
|
+
},
|
633
|
+
"attribute": "enable-inline-edit",
|
634
|
+
"reflect": false
|
635
|
+
},
|
520
636
|
"mapInfo": {
|
521
637
|
"type": "unknown",
|
522
638
|
"mutable": false,
|
@@ -558,6 +674,23 @@ export class LayerTable {
|
|
558
674
|
"text": "esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html"
|
559
675
|
}
|
560
676
|
},
|
677
|
+
"onlyShowUpdatableLayers": {
|
678
|
+
"type": "boolean",
|
679
|
+
"mutable": false,
|
680
|
+
"complexType": {
|
681
|
+
"original": "boolean",
|
682
|
+
"resolved": "boolean",
|
683
|
+
"references": {}
|
684
|
+
},
|
685
|
+
"required": false,
|
686
|
+
"optional": false,
|
687
|
+
"docs": {
|
688
|
+
"tags": [],
|
689
|
+
"text": "boolean: When true only editable layers that support the update capability will be available"
|
690
|
+
},
|
691
|
+
"attribute": "only-show-updatable-layers",
|
692
|
+
"reflect": false
|
693
|
+
},
|
561
694
|
"showNewestFirst": {
|
562
695
|
"type": "boolean",
|
563
696
|
"mutable": false,
|
@@ -598,6 +731,7 @@ export class LayerTable {
|
|
598
731
|
return {
|
599
732
|
"_alertOpen": {},
|
600
733
|
"_fetchingData": {},
|
734
|
+
"_isDeleting": {},
|
601
735
|
"_layer": {},
|
602
736
|
"_selectedIndexes": {},
|
603
737
|
"_showOnlySelected": {},
|
@@ -671,6 +805,18 @@ export class LayerTable {
|
|
671
805
|
"target": "window",
|
672
806
|
"capture": false,
|
673
807
|
"passive": false
|
808
|
+
}, {
|
809
|
+
"name": "editsComplete",
|
810
|
+
"method": "editsComplete",
|
811
|
+
"target": "window",
|
812
|
+
"capture": false,
|
813
|
+
"passive": false
|
814
|
+
}, {
|
815
|
+
"name": "noLayersFound",
|
816
|
+
"method": "noLayersFound",
|
817
|
+
"target": "window",
|
818
|
+
"capture": false,
|
819
|
+
"passive": false
|
674
820
|
}];
|
675
821
|
}
|
676
822
|
}
|
@@ -32,6 +32,11 @@ export class MapCard {
|
|
32
32
|
* string: the id of map currently displayed
|
33
33
|
*/
|
34
34
|
this._loadedId = "";
|
35
|
+
this.enableLegend = undefined;
|
36
|
+
this.enableFullscreen = undefined;
|
37
|
+
this.enableSearch = undefined;
|
38
|
+
this.enableBasemap = undefined;
|
39
|
+
this.basemapConfig = undefined;
|
35
40
|
this.mapInfos = [];
|
36
41
|
this.mapView = undefined;
|
37
42
|
this._searchConfiguration = undefined;
|
@@ -58,7 +63,7 @@ export class MapCard {
|
|
58
63
|
* Renders the component.
|
59
64
|
*/
|
60
65
|
render() {
|
61
|
-
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 })));
|
66
|
+
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 })));
|
62
67
|
}
|
63
68
|
//--------------------------------------------------------------------------
|
64
69
|
//
|
@@ -108,16 +113,17 @@ export class MapCard {
|
|
108
113
|
});
|
109
114
|
this._loadedId = id;
|
110
115
|
this._searchConfiguration = this._webMapInfo.searchConfiguration;
|
111
|
-
this.
|
112
|
-
id: id,
|
113
|
-
mapView: this.mapView
|
114
|
-
});
|
116
|
+
this.beforeMapChanged.emit();
|
115
117
|
await this.mapView.when(() => {
|
116
118
|
const home = new this.Home({
|
117
119
|
view: this.mapView
|
118
120
|
});
|
119
121
|
this.mapView.ui.add(home, { position: "top-left", index: 3 });
|
120
122
|
this.mapView.ui.add(this._mapTools, { position: "top-right", index: 0 });
|
123
|
+
this.mapChanged.emit({
|
124
|
+
id: id,
|
125
|
+
mapView: this.mapView
|
126
|
+
});
|
121
127
|
});
|
122
128
|
}
|
123
129
|
}
|
@@ -134,6 +140,95 @@ export class MapCard {
|
|
134
140
|
}
|
135
141
|
static get properties() {
|
136
142
|
return {
|
143
|
+
"enableLegend": {
|
144
|
+
"type": "boolean",
|
145
|
+
"mutable": false,
|
146
|
+
"complexType": {
|
147
|
+
"original": "boolean",
|
148
|
+
"resolved": "boolean",
|
149
|
+
"references": {}
|
150
|
+
},
|
151
|
+
"required": false,
|
152
|
+
"optional": false,
|
153
|
+
"docs": {
|
154
|
+
"tags": [],
|
155
|
+
"text": "boolean: when true the legend widget will be available"
|
156
|
+
},
|
157
|
+
"attribute": "enable-legend",
|
158
|
+
"reflect": false
|
159
|
+
},
|
160
|
+
"enableFullscreen": {
|
161
|
+
"type": "boolean",
|
162
|
+
"mutable": false,
|
163
|
+
"complexType": {
|
164
|
+
"original": "boolean",
|
165
|
+
"resolved": "boolean",
|
166
|
+
"references": {}
|
167
|
+
},
|
168
|
+
"required": false,
|
169
|
+
"optional": false,
|
170
|
+
"docs": {
|
171
|
+
"tags": [],
|
172
|
+
"text": "boolean: when true the fullscreen widget will be available"
|
173
|
+
},
|
174
|
+
"attribute": "enable-fullscreen",
|
175
|
+
"reflect": false
|
176
|
+
},
|
177
|
+
"enableSearch": {
|
178
|
+
"type": "boolean",
|
179
|
+
"mutable": false,
|
180
|
+
"complexType": {
|
181
|
+
"original": "boolean",
|
182
|
+
"resolved": "boolean",
|
183
|
+
"references": {}
|
184
|
+
},
|
185
|
+
"required": false,
|
186
|
+
"optional": false,
|
187
|
+
"docs": {
|
188
|
+
"tags": [],
|
189
|
+
"text": "boolean: when true the search widget will be available"
|
190
|
+
},
|
191
|
+
"attribute": "enable-search",
|
192
|
+
"reflect": false
|
193
|
+
},
|
194
|
+
"enableBasemap": {
|
195
|
+
"type": "boolean",
|
196
|
+
"mutable": false,
|
197
|
+
"complexType": {
|
198
|
+
"original": "boolean",
|
199
|
+
"resolved": "boolean",
|
200
|
+
"references": {}
|
201
|
+
},
|
202
|
+
"required": false,
|
203
|
+
"optional": false,
|
204
|
+
"docs": {
|
205
|
+
"tags": [],
|
206
|
+
"text": "boolean: when true the basemap widget will be available"
|
207
|
+
},
|
208
|
+
"attribute": "enable-basemap",
|
209
|
+
"reflect": false
|
210
|
+
},
|
211
|
+
"basemapConfig": {
|
212
|
+
"type": "unknown",
|
213
|
+
"mutable": false,
|
214
|
+
"complexType": {
|
215
|
+
"original": "IBasemapConfig",
|
216
|
+
"resolved": "IBasemapConfig",
|
217
|
+
"references": {
|
218
|
+
"IBasemapConfig": {
|
219
|
+
"location": "import",
|
220
|
+
"path": "../../utils/interfaces",
|
221
|
+
"id": "src/utils/interfaces.ts::IBasemapConfig"
|
222
|
+
}
|
223
|
+
}
|
224
|
+
},
|
225
|
+
"required": false,
|
226
|
+
"optional": false,
|
227
|
+
"docs": {
|
228
|
+
"tags": [],
|
229
|
+
"text": "IBasemapConfig: List of any basemaps to filter out from the basemap widget"
|
230
|
+
}
|
231
|
+
},
|
137
232
|
"mapInfos": {
|
138
233
|
"type": "unknown",
|
139
234
|
"mutable": false,
|
@@ -206,6 +301,21 @@ export class MapCard {
|
|
206
301
|
}
|
207
302
|
}
|
208
303
|
}
|
304
|
+
}, {
|
305
|
+
"method": "beforeMapChanged",
|
306
|
+
"name": "beforeMapChanged",
|
307
|
+
"bubbles": true,
|
308
|
+
"cancelable": true,
|
309
|
+
"composed": true,
|
310
|
+
"docs": {
|
311
|
+
"tags": [],
|
312
|
+
"text": "Emitted before a new map is loaded"
|
313
|
+
},
|
314
|
+
"complexType": {
|
315
|
+
"original": "void",
|
316
|
+
"resolved": "void",
|
317
|
+
"references": {}
|
318
|
+
}
|
209
319
|
}];
|
210
320
|
}
|
211
321
|
static get elementRef() { return "el"; }
|