@esri/solutions-components 0.7.23 → 0.7.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/t9n/crowdsource-manager/resources.json +1 -3
- package/dist/assets/t9n/crowdsource-manager/resources_en.json +1 -3
- package/dist/assets/t9n/crowdsource-reporter/resources.json +18 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_en.json +18 -1
- package/dist/assets/t9n/delete-button/resources.json +8 -0
- package/dist/assets/t9n/delete-button/resources_en.json +8 -0
- package/dist/assets/t9n/feature-list/resources.json +4 -0
- package/dist/assets/t9n/feature-list/resources_en.json +4 -0
- package/dist/assets/t9n/info-card/resources.json +1 -1
- package/dist/assets/t9n/info-card/resources_en.json +1 -1
- package/dist/assets/t9n/layer-list/resources.json +4 -0
- package/dist/assets/t9n/layer-list/resources_en.json +4 -0
- package/dist/assets/t9n/layer-table/resources.json +0 -9
- package/dist/assets/t9n/layer-table/resources_en.json +0 -9
- package/dist/cjs/basemap-gallery_5.cjs.entry.js +573 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +255 -0
- package/dist/cjs/calcite-alert_3.cjs.entry.js +136 -357
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +2 -1
- package/dist/cjs/{calcite-action-bar_3.cjs.entry.js → calcite-filter_5.cjs.entry.js} +333 -172
- package/dist/cjs/calcite-flow_4.cjs.entry.js +658 -0
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +22 -11
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -1
- package/dist/cjs/{card-manager_3.cjs.entry.js → card-manager_2.cjs.entry.js} +48 -268
- package/dist/cjs/crowdsource-manager.cjs.entry.js +18 -3
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +215 -36
- package/dist/cjs/{basemap-gallery_7.cjs.entry.js → info-card_4.cjs.entry.js} +322 -409
- package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +41 -1
- package/dist/cjs/layout-manager.cjs.entry.js +2 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-9db09b63.js → locale-1ff119f5.js} +19 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/popupUtils-8d5b6e94.js +99 -0
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +2 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +16 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +23 -2
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +73 -0
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +349 -56
- package/dist/collection/components/delete-button/delete-button.css +19 -0
- package/dist/collection/components/delete-button/delete-button.js +299 -0
- package/dist/collection/components/delete-button/test/delete-button.e2e.js +29 -0
- package/dist/collection/components/delete-button/test/delete-button.spec.js +37 -0
- package/dist/collection/components/feature-list/feature-list.css +38 -0
- package/dist/collection/components/feature-list/feature-list.js +303 -0
- package/dist/collection/components/info-card/info-card.js +65 -21
- package/dist/collection/components/layer-list/layer-list.css +28 -0
- package/dist/collection/components/layer-list/layer-list.js +288 -0
- package/dist/collection/components/layer-table/layer-table.js +63 -116
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +31 -1
- package/dist/collection/demos/crowdsource-reporter.html +42 -70
- package/dist/collection/demos/feature-list.html +43 -0
- package/dist/collection/demos/layer-list.html +43 -0
- package/dist/collection/utils/interfaces.ts +4 -0
- package/dist/components/calcite-flow-item.js +1 -261
- package/dist/components/calcite-flow.js +1 -165
- package/dist/components/card-manager2.js +38 -26
- package/dist/components/crowdsource-manager.js +110 -89
- package/dist/components/crowdsource-reporter.js +463 -42
- package/dist/components/delete-button.d.ts +11 -0
- package/dist/components/delete-button.js +11 -0
- package/dist/components/delete-button2.js +209 -0
- package/dist/components/feature-list.d.ts +11 -0
- package/dist/components/feature-list.js +11 -0
- package/dist/components/feature-list2.js +281 -0
- package/dist/{esm/calcite-flow-item.entry.js → components/flow-item.js} +94 -19
- package/dist/{esm/calcite-flow.entry.js → components/flow.js} +33 -10
- package/dist/components/info-card2.js +87 -136
- package/dist/components/instant-apps-export.js +1 -1
- package/dist/components/instant-apps-filter-list2.js +22 -11
- package/dist/components/instant-apps-language-translator2.js +48 -4
- package/dist/components/layer-list.d.ts +11 -0
- package/dist/components/layer-list.js +11 -0
- package/dist/components/layer-list2.js +268 -0
- package/dist/components/layer-table2.js +126 -165
- package/dist/components/locale.js +19 -2
- package/dist/components/popupUtils.js +97 -0
- package/dist/components/queryUtils.js +1 -1
- package/dist/components/solution-spatial-ref2.js +17 -2
- package/dist/esm/{ExpandToggle-540998b5.js → ExpandToggle-96688cda.js} +1 -1
- package/dist/esm/{ar-35006b74.js → ar-29711364.js} +8 -8
- package/dist/esm/basemap-gallery_5.entry.js +565 -0
- package/dist/esm/{bg-c289978f.js → bg-c0f5033b.js} +8 -8
- package/dist/esm/{bs-6f9fb44a.js → bs-60479ce5.js} +8 -8
- package/dist/esm/buffer-tools_3.entry.js +3 -3
- package/dist/esm/{ca-7962c8b7.js → ca-4317b986.js} +8 -8
- package/dist/esm/calcite-accordion-item.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +251 -0
- package/dist/esm/calcite-action-group.entry.js +3 -3
- package/dist/esm/calcite-action-menu_2.entry.js +5 -5
- package/dist/esm/calcite-action-pad_2.entry.js +4 -4
- package/dist/esm/calcite-action_2.entry.js +3 -3
- package/dist/esm/calcite-alert_3.entry.js +141 -362
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +3 -3
- package/dist/esm/calcite-block_2.entry.js +5 -5
- 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.entry.js +3 -3
- 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 +11 -10
- package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/{calcite-action-bar_3.entry.js → calcite-filter_5.entry.js} +363 -204
- package/dist/esm/calcite-flow_4.entry.js +651 -0
- package/dist/esm/calcite-graph_2.entry.js +4 -4
- 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_3.entry.js +31 -20
- package/dist/esm/calcite-input-number.entry.js +5 -5
- package/dist/esm/calcite-input-text.entry.js +5 -5
- package/dist/esm/{calcite-input-time-picker-63439178.js → calcite-input-time-picker-2e1b2157.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-meter.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-notice.entry.js +3 -3
- 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-sheet.entry.js +2 -2
- package/dist/esm/calcite-shell-center-row.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +8 -7
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-stepper-item.entry.js +3 -3
- package/dist/esm/calcite-stepper.entry.js +3 -3
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-table-cell_2.entry.js +3 -3
- package/dist/esm/calcite-table-row.entry.js +1 -1
- package/dist/esm/calcite-table.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-tooltip.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +1 -1
- package/dist/esm/{card-manager_3.entry.js → card-manager_2.entry.js} +51 -270
- package/dist/esm/{common-2cf42ac2.js → common-d04ccc0d.js} +1 -1
- package/dist/esm/crowdsource-manager.entry.js +19 -4
- package/dist/esm/crowdsource-reporter.entry.js +215 -36
- package/dist/esm/{cs-6d13069b.js → cs-da404a04.js} +8 -8
- package/dist/esm/{da-14097e6c.js → da-1afac3fa.js} +8 -8
- package/dist/esm/{date-1743b515.js → date-8b4a8f33.js} +1 -1
- package/dist/esm/{de-dff2571b.js → de-98f3129e.js} +8 -8
- package/dist/esm/{de-at-b733db65.js → de-at-ed4817af.js} +8 -8
- package/dist/esm/{de-ch-5ad0cb74.js → de-ch-556c82c8.js} +8 -8
- package/dist/esm/{dom-492b1b24.js → dom-8f926f33.js} +1 -1
- package/dist/esm/{downloadUtils-13579d93.js → downloadUtils-067dc2ff.js} +2 -2
- package/dist/esm/{el-688e05ba.js → el-394dfd74.js} +8 -8
- package/dist/esm/{en-au-357e70d8.js → en-au-6dde1e7e.js} +8 -8
- package/dist/esm/{en-ca-1e0b6b47.js → en-ca-420be416.js} +8 -8
- package/dist/esm/{en-gb-861a17f2.js → en-gb-0a7caa85.js} +8 -8
- package/dist/esm/{es-291ab4bd.js → es-2e1beb99.js} +8 -8
- package/dist/esm/{es-mx-0a7283a7.js → es-mx-ef132a24.js} +8 -8
- package/dist/esm/{et-addd2617.js → et-83d139c1.js} +8 -8
- package/dist/esm/{fi-469884d5.js → fi-8b81ed94.js} +8 -8
- package/dist/esm/{floating-ui-03eb4c82.js → floating-ui-c397f653.js} +1 -1
- package/dist/esm/{focusTrapComponent-2e7de651.js → focusTrapComponent-14368766.js} +1 -1
- package/dist/esm/{form-9bccaf85.js → form-133b00c7.js} +1 -1
- package/dist/esm/{fr-f5cb34ca.js → fr-c47c114a.js} +8 -8
- package/dist/esm/{fr-ch-115d3fda.js → fr-ch-97635343.js} +8 -8
- package/dist/esm/{he-6e5f5c56.js → he-ed2a12b9.js} +8 -8
- package/dist/esm/{hi-503240c2.js → hi-a05727ac.js} +8 -8
- package/dist/esm/{hr-cc08d6fc.js → hr-d01671ca.js} +8 -8
- package/dist/esm/{hu-69ac240d.js → hu-16506ca7.js} +8 -8
- package/dist/esm/{id-99547746.js → id-e9367e87.js} +8 -8
- package/dist/esm/{index.es-04d2e63e.js → index.es-92e46d8b.js} +3 -3
- package/dist/esm/{basemap-gallery_7.entry.js → info-card_4.entry.js} +322 -406
- package/dist/esm/instant-apps-export.entry.js +1 -1
- package/dist/esm/instant-apps-language-translator.entry.js +42 -2
- package/dist/esm/{interfaces-341e3ab3.js → interfaces-586e863c.js} +1 -1
- package/dist/esm/{it-dbb6ea7d.js → it-14246b4a.js} +8 -8
- package/dist/esm/{it-ch-a83801f6.js → it-ch-a877e111.js} +8 -8
- package/dist/esm/{ja-79dbb02f.js → ja-67a0cfa0.js} +8 -8
- package/dist/esm/{ko-31ebe067.js → ko-35b0b83a.js} +8 -8
- package/dist/esm/{label-14301f4d.js → label-cd393c81.js} +1 -1
- package/dist/esm/layout-manager.entry.js +3 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-834c52c6.js → locale-13e3c96c.js} +19 -2
- package/dist/esm/{locale-8cfa3086.js → locale-6107ef11.js} +1 -1
- package/dist/esm/{lt-94d3f4b8.js → lt-71014faf.js} +8 -8
- package/dist/esm/{lv-d770ed0d.js → lv-def9df38.js} +8 -8
- package/dist/esm/map-select-tools_3.entry.js +4 -4
- package/dist/esm/{mapViewUtils-8fe70944.js → mapViewUtils-6daedef8.js} +2 -2
- package/dist/esm/{mk-1046d60a.js → mk-bfeac49e.js} +8 -8
- package/dist/esm/{nb-dad0b4b9.js → nb-0723b461.js} +8 -8
- package/dist/esm/{nl-a968c4b7.js → nl-89663165.js} +8 -8
- package/dist/esm/{pl-a0037bd3.js → pl-0157c37c.js} +8 -8
- package/dist/esm/popupUtils-b71f30fc.js +97 -0
- package/dist/esm/{pt-e3d9370c.js → pt-80d1520c.js} +8 -8
- package/dist/esm/{pt-br-44c11565.js → pt-br-ee5003c7.js} +8 -8
- package/dist/esm/public-notification.entry.js +4 -4
- package/dist/esm/{ro-290e025d.js → ro-eff987f8.js} +8 -8
- package/dist/esm/{ru-38ff91f1.js → ru-62839398.js} +8 -8
- package/dist/esm/{shared-list-render-89e4bcff.js → shared-list-render-a2ab63e8.js} +1 -1
- package/dist/esm/{sk-9622a24b.js → sk-c2f4bd58.js} +8 -8
- package/dist/esm/{sl-6bc83a24.js → sl-328ff1db.js} +8 -8
- package/dist/esm/solution-configuration.entry.js +4 -3
- package/dist/esm/solution-contents_3.entry.js +19 -5
- package/dist/esm/{solution-store-b08696f7.js → solution-store-19f7825b.js} +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +4 -3
- package/dist/esm/{sr-35e575d8.js → sr-75a3ad46.js} +8 -8
- package/dist/esm/{sv-d80fa359.js → sv-10da5ef2.js} +8 -8
- package/dist/esm/{t9n-3c5e55ab.js → t9n-f16911e7.js} +1 -1
- package/dist/esm/{th-23e71d40.js → th-aa112042.js} +8 -8
- package/dist/esm/{time-d956a7c8.js → time-855b3426.js} +1 -1
- package/dist/esm/{tr-961fd2f3.js → tr-5925a2f5.js} +8 -8
- package/dist/esm/{uk-4e8a425a.js → uk-c40eeb9f.js} +8 -8
- package/dist/esm/{utils-56206ec2.js → utils-93fd55c4.js} +2 -2
- package/dist/esm/{utils-8287806a.js → utils-c3509713.js} +1 -1
- package/dist/esm/{vi-ad983882.js → vi-27922b93.js} +8 -8
- package/dist/esm/{zh-cn-5b6fd039.js → zh-cn-38a2e1d3.js} +8 -8
- package/dist/esm/{zh-hk-7439b11d.js → zh-hk-e0217bd1.js} +8 -8
- package/dist/esm/{zh-tw-cf384663.js → zh-tw-31f0447c.js} +8 -8
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +0 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +42 -70
- package/dist/solutions-components/demos/feature-list.html +43 -0
- package/dist/solutions-components/demos/layer-list.html +43 -0
- package/dist/solutions-components/{p-c634d047.entry.js → p-01032eec.entry.js} +2 -18
- package/dist/solutions-components/{p-e7951fcb.js → p-0392679d.js} +1 -1
- package/dist/solutions-components/{p-3022da2d.js → p-05f702ae.js} +1 -1
- package/dist/solutions-components/{p-4da72ee8.entry.js → p-068f5a8c.entry.js} +1 -1
- package/dist/solutions-components/{p-4f71a1a0.js → p-0d774e41.js} +1 -1
- package/dist/solutions-components/{p-0e723ffc.js → p-0f6b58b2.js} +1 -1
- package/dist/solutions-components/{p-ec8f042e.entry.js → p-10410f92.entry.js} +1 -1
- package/dist/solutions-components/{p-6a4b1e48.entry.js → p-10f2d6b0.entry.js} +2 -2
- package/dist/solutions-components/{p-5d2ccc75.entry.js → p-13be5cf5.entry.js} +1 -1
- package/dist/solutions-components/{p-58054bc2.js → p-14548a83.js} +1 -1
- package/dist/solutions-components/{p-c9f87acb.js → p-14ff1465.js} +2 -2
- package/dist/solutions-components/{p-026b1345.js → p-17668cb7.js} +3 -3
- package/dist/solutions-components/{p-5e530f8c.js → p-1c75bb3d.js} +1 -1
- package/dist/solutions-components/p-1f7046e9.entry.js +6 -0
- package/dist/solutions-components/{p-121a5dac.entry.js → p-234a8293.entry.js} +1 -1
- package/dist/solutions-components/{p-355249fc.js → p-2447b332.js} +1 -1
- package/dist/solutions-components/{p-48828002.entry.js → p-24c699b0.entry.js} +1 -1
- package/dist/solutions-components/{p-9bcbc1cc.js → p-2592e0dd.js} +1 -1
- package/dist/solutions-components/{p-b78a1c21.js → p-28b33708.js} +1 -1
- package/dist/solutions-components/{p-fa6ef970.js → p-2d68a6fd.js} +1 -1
- package/dist/solutions-components/{p-6437fee1.entry.js → p-2e2d01de.entry.js} +1 -1
- package/dist/solutions-components/{p-5e9b05c0.entry.js → p-2f425700.entry.js} +1 -1
- package/dist/solutions-components/p-3606c4b8.entry.js +6 -0
- package/dist/solutions-components/{p-6c3cdd09.entry.js → p-364486d1.entry.js} +1 -1
- package/dist/solutions-components/{p-85a89f1d.entry.js → p-368cbb2c.entry.js} +1 -1
- package/dist/solutions-components/{p-c68a6d4f.js → p-36cbf14f.js} +1 -1
- package/dist/solutions-components/{p-52ad6ff9.entry.js → p-36f247db.entry.js} +1 -1
- package/dist/solutions-components/{p-080249de.js → p-38544b17.js} +1 -1
- package/dist/solutions-components/{p-a0be72b6.entry.js → p-3a73ee38.entry.js} +1 -1
- package/dist/solutions-components/{p-532b7378.entry.js → p-3ad4426b.entry.js} +1 -1
- package/dist/solutions-components/{p-5752785e.entry.js → p-3c10901a.entry.js} +1 -1
- package/dist/solutions-components/{p-6e406a7b.js → p-3c7d0eb9.js} +1 -1
- package/dist/solutions-components/{p-bf23173c.js → p-411b73a7.js} +1 -1
- package/dist/solutions-components/{p-76d60881.entry.js → p-429e1284.entry.js} +1 -1
- package/dist/solutions-components/{p-f3d277c2.entry.js → p-42f0e1fa.entry.js} +1 -1
- package/dist/solutions-components/{p-1fc220c7.js → p-4416d288.js} +1 -1
- package/dist/solutions-components/{p-663a433a.entry.js → p-451b16b3.entry.js} +2 -2
- package/dist/solutions-components/{p-b5d1b979.js → p-4566438a.js} +3 -3
- package/dist/solutions-components/{p-7a06dcdf.js → p-4647b2a6.js} +1 -1
- package/dist/solutions-components/{p-75fbe76c.js → p-480d0789.js} +1 -1
- package/dist/solutions-components/p-49b02dda.entry.js +6 -0
- package/dist/solutions-components/{p-722ae773.js → p-49fb1bfa.js} +2 -2
- package/dist/solutions-components/{p-17183100.js → p-4abf1c34.js} +1 -1
- package/dist/solutions-components/p-4ae36626.js +6 -0
- package/dist/solutions-components/{p-5c3fd315.entry.js → p-4bff69aa.entry.js} +1 -1
- package/dist/solutions-components/{p-f8f18a94.entry.js → p-4ccdac24.entry.js} +1 -1
- package/dist/solutions-components/{p-a3a64af2.entry.js → p-4d402bcf.entry.js} +1 -1
- package/dist/solutions-components/{p-7e82a730.js → p-4d8fc031.js} +1 -1
- package/dist/solutions-components/{p-1c720ed5.entry.js → p-4d99cb49.entry.js} +1 -1
- package/dist/solutions-components/p-4fbadb84.entry.js +6 -0
- package/dist/solutions-components/{p-e0276e26.entry.js → p-5268d845.entry.js} +2 -2
- package/dist/solutions-components/{p-f3f09834.js → p-5e12026e.js} +1 -1
- package/dist/solutions-components/p-5e832d65.entry.js +6 -0
- package/dist/solutions-components/{p-ffee4847.entry.js → p-5fe99315.entry.js} +1 -1
- package/dist/solutions-components/{p-d6208a47.js → p-6105d57c.js} +1 -1
- package/dist/solutions-components/{p-f3dfb34f.entry.js → p-613315a7.entry.js} +1 -1
- package/dist/solutions-components/{p-0d97c2c5.entry.js → p-62eba559.entry.js} +1 -1
- package/dist/solutions-components/{p-40235cb7.entry.js → p-63fa7791.entry.js} +1 -1
- package/dist/solutions-components/{p-cfccae7c.js → p-6604ac77.js} +1 -1
- package/dist/solutions-components/{p-9b1766ef.entry.js → p-674be06c.entry.js} +1 -1
- package/dist/solutions-components/{p-a4aef40c.entry.js → p-67ff8e9a.entry.js} +1 -1
- package/dist/solutions-components/{p-16df3a9e.entry.js → p-685257d1.entry.js} +1 -1
- package/dist/solutions-components/{p-4647c429.js → p-68e0adcf.js} +1 -1
- package/dist/solutions-components/{p-fc8338c6.entry.js → p-68e84199.entry.js} +1 -1
- package/dist/solutions-components/{p-aa3092cf.js → p-69763854.js} +1 -1
- package/dist/solutions-components/{p-e31754c8.js → p-6ae45648.js} +1 -1
- package/dist/solutions-components/{p-98013072.entry.js → p-6cce7009.entry.js} +1 -1
- package/dist/solutions-components/{p-34cacf32.js → p-6d511162.js} +1 -1
- package/dist/solutions-components/{p-337acb3c.js → p-727596e6.js} +1 -1
- package/dist/solutions-components/{p-b170916e.js → p-73100e79.js} +2 -2
- package/dist/solutions-components/{p-23662977.entry.js → p-734bc1b0.entry.js} +2 -2
- package/dist/solutions-components/{p-f3626331.entry.js → p-752ece4a.entry.js} +2 -2
- package/dist/solutions-components/{p-ecdd587c.entry.js → p-75e2a322.entry.js} +3 -3
- package/dist/solutions-components/{p-ca33fa09.entry.js → p-787203af.entry.js} +1 -1
- package/dist/solutions-components/{p-a9fc934d.js → p-79110824.js} +1 -1
- package/dist/solutions-components/{p-b82179c0.js → p-793cad54.js} +1 -1
- package/dist/solutions-components/{p-0250dec5.js → p-797aa505.js} +1 -1
- package/dist/solutions-components/{p-133de052.entry.js → p-7ebd34df.entry.js} +1 -1
- package/dist/solutions-components/{p-8934e858.entry.js → p-809b7e47.entry.js} +2 -2
- package/dist/solutions-components/{p-ca97465b.js → p-83fd31d5.js} +1 -1
- package/dist/solutions-components/{p-2e1f7c0e.entry.js → p-84378c8d.entry.js} +2 -2
- package/dist/solutions-components/p-864b1d72.entry.js +6 -0
- package/dist/solutions-components/{p-50ea26de.entry.js → p-8b47b607.entry.js} +1 -1
- package/dist/solutions-components/{p-f4e91113.js → p-8d49a084.js} +1 -1
- package/dist/solutions-components/{p-f84848b0.entry.js → p-8fabb8a4.entry.js} +1 -1
- package/dist/solutions-components/p-8fc072ca.entry.js +6 -0
- package/dist/solutions-components/{p-29602eff.entry.js → p-96c2ed64.entry.js} +1 -1
- package/dist/solutions-components/{p-b42bde59.entry.js → p-978d936a.entry.js} +1 -1
- package/dist/solutions-components/{p-79ba73cb.js → p-981e9549.js} +1 -1
- package/dist/solutions-components/{p-02714171.entry.js → p-98308b13.entry.js} +2 -2
- package/dist/solutions-components/p-99c5701d.entry.js +6 -0
- package/dist/solutions-components/{p-fe68d502.js → p-9cbfd8cd.js} +1 -1
- package/dist/solutions-components/{p-8f8fe5d0.entry.js → p-a09c8edf.entry.js} +1 -1
- package/dist/solutions-components/p-a2d3df14.entry.js +6 -0
- package/dist/solutions-components/{p-ac6a3e13.js → p-a5272d7e.js} +1 -1
- package/dist/solutions-components/p-a5c5b24d.js +6 -0
- package/dist/solutions-components/{p-5d9ad152.entry.js → p-a5e93c7e.entry.js} +1 -1
- package/dist/solutions-components/{p-07b31dc9.js → p-a6bb4148.js} +1 -1
- package/dist/solutions-components/{p-11b59592.entry.js → p-a8c9ac0b.entry.js} +2 -2
- package/dist/solutions-components/{p-41f7bc94.entry.js → p-a9bd945b.entry.js} +1 -1
- package/dist/solutions-components/p-ab006ace.js +21 -0
- package/dist/solutions-components/{p-634835fe.js → p-abdd289e.js} +1 -1
- package/dist/solutions-components/{p-43e67b3c.entry.js → p-aca29f67.entry.js} +2 -2
- package/dist/solutions-components/{p-8118146c.entry.js → p-ad96cd8b.entry.js} +1 -1
- package/dist/solutions-components/{p-8772a573.js → p-af1bb992.js} +1 -1
- package/dist/solutions-components/{p-36eb8399.js → p-b1b768f7.js} +4 -4
- package/dist/solutions-components/{p-dd37c504.js → p-b29677ca.js} +1 -1
- package/dist/solutions-components/{p-82b4ab94.js → p-b2c5e62b.js} +1 -1
- package/dist/solutions-components/{p-db436a77.entry.js → p-b326b592.entry.js} +1 -1
- package/dist/solutions-components/{p-a4772574.js → p-b7285bd5.js} +1 -1
- package/dist/solutions-components/{p-8b5b4662.js → p-b8959537.js} +1 -1
- package/dist/solutions-components/p-ba56035f.entry.js +6 -0
- package/dist/solutions-components/{p-c21f578f.js → p-baf4cb37.js} +1 -1
- package/dist/solutions-components/{p-799c3f19.js → p-bfebff0e.js} +1 -1
- package/dist/solutions-components/p-c0ed2b83.entry.js +6 -0
- package/dist/solutions-components/p-c0f97ed2.entry.js +6 -0
- package/dist/solutions-components/{p-4af32c75.js → p-c1cf3ebc.js} +1 -1
- package/dist/solutions-components/{p-cfb83693.js → p-c3190f85.js} +1 -1
- package/dist/solutions-components/{p-0511c98c.js → p-c4ebb5d1.js} +1 -1
- package/dist/solutions-components/p-c56fd16c.entry.js +11 -0
- package/dist/solutions-components/{p-2d1b8cfa.js → p-c6b9a129.js} +1 -1
- package/dist/solutions-components/{p-1cb4c542.entry.js → p-c7e7da9a.entry.js} +1 -1
- package/dist/solutions-components/{p-d8b3d156.entry.js → p-ca4023f4.entry.js} +1 -1
- package/dist/solutions-components/p-cb1d29d4.entry.js +17 -0
- package/dist/solutions-components/p-cc88bb42.entry.js +6 -0
- package/dist/solutions-components/{p-034d43fb.js → p-cdee3846.js} +1 -1
- package/dist/solutions-components/{p-c5cb8804.js → p-cfb3d66a.js} +1 -1
- package/dist/solutions-components/{p-ebbeec9f.entry.js → p-d2d7d6b4.entry.js} +2 -2
- package/dist/solutions-components/{p-dd071507.js → p-d44e2fd7.js} +1 -1
- package/dist/solutions-components/{p-48a5ae32.entry.js → p-d50f34c4.entry.js} +1 -1
- package/dist/solutions-components/{p-5953ebe8.entry.js → p-d9061e5d.entry.js} +1 -1
- package/dist/solutions-components/{p-414240b2.js → p-d9a59fcc.js} +1 -1
- package/dist/solutions-components/{p-24286e8c.entry.js → p-db69f4ba.entry.js} +1 -1
- package/dist/solutions-components/{p-ede84883.js → p-de281b08.js} +2 -2
- package/dist/solutions-components/{p-a11fca14.js → p-df118036.js} +1 -1
- package/dist/solutions-components/p-e274f3b0.entry.js +23 -0
- package/dist/solutions-components/p-e3061220.entry.js +6 -0
- package/dist/solutions-components/{p-4613e205.js → p-e6d4bdce.js} +1 -1
- package/dist/solutions-components/{p-3c5d3b4a.js → p-e6dfc80f.js} +1 -1
- package/dist/solutions-components/{p-92ea9e81.js → p-e834d132.js} +1 -1
- package/dist/solutions-components/{p-f9eb2f2d.js → p-ee4e5212.js} +1 -1
- package/dist/solutions-components/{p-efce2e85.js → p-ef05dea5.js} +1 -1
- package/dist/solutions-components/{p-5fd1eb64.js → p-f0d68a3f.js} +2 -2
- package/dist/solutions-components/p-f17941f1.entry.js +6 -0
- package/dist/solutions-components/{p-9e3b8632.entry.js → p-f1e6ce96.entry.js} +1 -1
- package/dist/solutions-components/p-f54f3719.entry.js +17 -0
- package/dist/solutions-components/{p-fdb1ace8.entry.js → p-fb1c6811.entry.js} +2 -2
- package/dist/solutions-components/p-fec77450.js +21 -0
- package/dist/solutions-components/{p-50764143.entry.js → p-ff460d05.entry.js} +3 -3
- package/dist/solutions-components/{p-d1ca57f3.entry.js → p-ff7c9bc3.entry.js} +1 -1
- package/dist/solutions-components/{p-0b47b407.js → p-ffa2c430.js} +1 -1
- package/dist/solutions-components/{p-89520d31.entry.js → p-ffbed9b2.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +4 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +159 -11
- package/dist/types/components/delete-button/delete-button.d.ts +120 -0
- package/dist/types/components/feature-list/feature-list.d.ts +128 -0
- package/dist/types/components/info-card/info-card.d.ts +19 -0
- package/dist/types/components/layer-list/layer-list.d.ts +133 -0
- package/dist/types/components/layer-table/layer-table.d.ts +12 -40
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +5 -1
- package/dist/types/components.d.ts +269 -11
- package/dist/types/preact.d.ts +15 -1
- package/dist/types/utils/interfaces.d.ts +2 -0
- package/package.json +2 -2
- package/dist/cjs/calcite-filter_2.cjs.entry.js +0 -237
- package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -197
- package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
- package/dist/cjs/calcite-handle.cjs.entry.js +0 -184
- package/dist/cjs/resources-55ba2752.js +0 -29
- package/dist/esm/calcite-filter_2.entry.js +0 -232
- package/dist/esm/calcite-handle.entry.js +0 -180
- package/dist/esm/resources-221791b0.js +0 -26
- package/dist/solutions-components/p-0200864c.entry.js +0 -11
- package/dist/solutions-components/p-02fad071.entry.js +0 -6
- package/dist/solutions-components/p-04f05bc5.entry.js +0 -6
- package/dist/solutions-components/p-166d5bcc.entry.js +0 -6
- package/dist/solutions-components/p-1711c535.entry.js +0 -6
- package/dist/solutions-components/p-1f88a556.entry.js +0 -6
- package/dist/solutions-components/p-2ddd9cf8.entry.js +0 -6
- package/dist/solutions-components/p-3cf20613.entry.js +0 -17
- package/dist/solutions-components/p-43546966.entry.js +0 -6
- package/dist/solutions-components/p-6b943f52.js +0 -21
- package/dist/solutions-components/p-79f95735.entry.js +0 -11
- package/dist/solutions-components/p-7f333e23.js +0 -11
- package/dist/solutions-components/p-897037f0.entry.js +0 -6
- package/dist/solutions-components/p-8c7fc78f.entry.js +0 -11
- package/dist/solutions-components/p-941ab8c0.js +0 -6
- package/dist/solutions-components/p-96974e5f.js +0 -6
- package/dist/solutions-components/p-a32b61ee.entry.js +0 -6
- package/dist/solutions-components/p-ad9fbb2a.entry.js +0 -6
- package/dist/solutions-components/p-bacc9b0d.entry.js +0 -6
- package/dist/solutions-components/p-c252997f.entry.js +0 -17
- package/dist/solutions-components/p-c5db42ad.entry.js +0 -6
- package/dist/solutions-components/p-e89c5860.entry.js +0 -6
- package/dist/solutions-components/p-eb9b003a.entry.js +0 -11
- package/dist/solutions-components/p-eff7f407.entry.js +0 -6
@@ -753,7 +753,7 @@ function resetDatePicker(datePicker) {
|
|
753
753
|
}
|
754
754
|
}
|
755
755
|
|
756
|
-
const instantAppsFilterListCss = ":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100
|
756
|
+
const instantAppsFilterListCss = ":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:48px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:-moz-min-content;width:min-content}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}";
|
757
757
|
|
758
758
|
const CSS$1 = {
|
759
759
|
base: 'instant-apps-filter-list',
|
@@ -954,12 +954,15 @@ const InstantAppsFilterList = class {
|
|
954
954
|
return this.renderCombobox(layerExpression, expression);
|
955
955
|
}
|
956
956
|
else if (type === 'number' || type == 'range') {
|
957
|
-
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down') {
|
957
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
958
958
|
return this.renderCombobox(layerExpression, expression);
|
959
959
|
}
|
960
960
|
return this.renderNumberSlider(layerExpression, expression);
|
961
961
|
}
|
962
962
|
else if (type === 'date') {
|
963
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
964
|
+
return this.renderCombobox(layerExpression, expression);
|
965
|
+
}
|
963
966
|
return this.renderDatePicker(layerExpression, expression);
|
964
967
|
}
|
965
968
|
return;
|
@@ -994,7 +997,7 @@ const InstantAppsFilterList = class {
|
|
994
997
|
this.resetDatePicker(expression);
|
995
998
|
}
|
996
999
|
else if (type === 'number' || type === 'range') {
|
997
|
-
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down') {
|
1000
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
998
1001
|
this.resetCombobox(expression);
|
999
1002
|
}
|
1000
1003
|
else {
|
@@ -1045,8 +1048,9 @@ const InstantAppsFilterList = class {
|
|
1045
1048
|
}
|
1046
1049
|
}
|
1047
1050
|
resetAllFilters() {
|
1048
|
-
var _a, _b, _c;
|
1049
|
-
(_c = (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.allLayers) === null || _c === void 0 ? void 0 : _c.
|
1051
|
+
var _a, _b, _c, _d, _e;
|
1052
|
+
const allLayersAndTables = (_c = (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.allLayers) === null || _c === void 0 ? void 0 : _c.concat((_e = (_d = this.view) === null || _d === void 0 ? void 0 : _d.map) === null || _e === void 0 ? void 0 : _e.allTables);
|
1053
|
+
allLayersAndTables === null || allLayersAndTables === void 0 ? void 0 : allLayersAndTables.forEach(layer => {
|
1050
1054
|
var _a, _b;
|
1051
1055
|
if (supportedTypes.includes(layer.type)) {
|
1052
1056
|
const fl = layer;
|
@@ -1083,7 +1087,7 @@ const InstantAppsFilterList = class {
|
|
1083
1087
|
const { field } = expression;
|
1084
1088
|
if (field != null) {
|
1085
1089
|
this.setExpressionFormat(layer, expression, field);
|
1086
|
-
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down') {
|
1090
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
1087
1091
|
const fields = (await this.getFeatureAttributes(layer, field));
|
1088
1092
|
fields.sort((a, b) => a - b);
|
1089
1093
|
expression.fields = fields;
|
@@ -1282,7 +1286,12 @@ const InstantAppsFilterList = class {
|
|
1282
1286
|
update = await this.updateNumberExpression(layerExpression, expression);
|
1283
1287
|
}
|
1284
1288
|
else if (type === 'date') {
|
1285
|
-
|
1289
|
+
if (expression.displayOption === 'drop-down') {
|
1290
|
+
update = await this.updateStringExpression(layerExpression, expression);
|
1291
|
+
}
|
1292
|
+
else {
|
1293
|
+
update = await this.updateDateExpression(layerExpression, expression);
|
1294
|
+
}
|
1286
1295
|
}
|
1287
1296
|
else if (type === 'coded-value') {
|
1288
1297
|
update = this.updateCodedValueExpression(expression, layerField);
|
@@ -1445,7 +1454,7 @@ const InstantAppsFilterList = class {
|
|
1445
1454
|
}
|
1446
1455
|
updateFilter(layerExpression, defExpressions, filters) {
|
1447
1456
|
const { id } = layerExpression;
|
1448
|
-
const fl = this.view.map.findLayerById(id);
|
1457
|
+
const fl = (this.view.map.findLayerById(id) || this.view.map.findTableById(id));
|
1449
1458
|
if (fl != null) {
|
1450
1459
|
if (fl.type === 'point-cloud') {
|
1451
1460
|
this.updateFilterLayerPCLFilter(fl, filters);
|
@@ -1488,8 +1497,9 @@ const InstantAppsFilterList = class {
|
|
1488
1497
|
this.initDefExpressions = {};
|
1489
1498
|
this.initPointCloudFilters = {};
|
1490
1499
|
this.initMapImageExpressions = {};
|
1491
|
-
|
1492
|
-
|
1500
|
+
const layersAndTables = map.allLayers.concat(map.allTables);
|
1501
|
+
for (let i = 0; i < layersAndTables.length; i++) {
|
1502
|
+
const layer = layersAndTables.getItemAt(i);
|
1493
1503
|
if (supportedTypes.includes(layer.type)) {
|
1494
1504
|
const fl = layer;
|
1495
1505
|
if (fl.type === 'point-cloud') {
|
@@ -1685,7 +1695,8 @@ const InstantAppsFilterList = class {
|
|
1685
1695
|
return (layerExpression === null || layerExpression === void 0 ? void 0 : layerExpression.sublayerId) != null ? (_b = (_a = this.initMapImageExpressions) === null || _a === void 0 ? void 0 : _a[layerExpression.id]) === null || _b === void 0 ? void 0 : _b[layerExpression.sublayerId] : (_c = this.initDefExpressions) === null || _c === void 0 ? void 0 : _c[layerExpression.id];
|
1686
1696
|
}
|
1687
1697
|
findFilterLayer(layerExpression) {
|
1688
|
-
const
|
1698
|
+
const allLayersAndTables = this.view.map.allLayers.concat(this.view.map.allTables);
|
1699
|
+
const layer = allLayersAndTables.find(({ id }) => id === layerExpression.id);
|
1689
1700
|
if (layer.type === 'map-image') {
|
1690
1701
|
return layer === null || layer === void 0 ? void 0 : layer.findSublayerById(layerExpression.sublayerId);
|
1691
1702
|
}
|
@@ -23,7 +23,7 @@ const sharedListRender = require('./shared-list-render-25bedff5.js');
|
|
23
23
|
const sortableComponent = require('./sortableComponent-188f3290.js');
|
24
24
|
const resources$2 = require('./resources-228f9286.js');
|
25
25
|
const resources$1 = require('./resources-d2d7b7c7.js');
|
26
|
-
const locale$1 = require('./locale-
|
26
|
+
const locale$1 = require('./locale-1ff119f5.js');
|
27
27
|
const solutionStore = require('./solution-store-ab6c980f.js');
|
28
28
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
29
29
|
const solutionResource = require('./solution-resource-abec7452.js');
|
@@ -33,6 +33,7 @@ require('./browser-9a43b900.js');
|
|
33
33
|
require('./array-1d19377b.js');
|
34
34
|
require('./resources-9400a252.js');
|
35
35
|
require('./debounce-30afab47.js');
|
36
|
+
require('./loadModules-46d14e81.js');
|
36
37
|
require('./esri-loader-a91c0ec1.js');
|
37
38
|
require('./_commonjsHelpers-384729db.js');
|
38
39
|
require('./index-22bb61da.js');
|
@@ -8,13 +8,13 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-b8a649fc.js');
|
11
|
-
const locale = require('./locale-
|
11
|
+
const locale = require('./locale-1ff119f5.js');
|
12
12
|
const mapViewUtils = require('./mapViewUtils-8aa325de.js');
|
13
13
|
const loadModules = require('./loadModules-46d14e81.js');
|
14
14
|
const downloadUtils = require('./downloadUtils-401356b5.js');
|
15
|
+
require('./interfaces-7cd0a48a.js');
|
15
16
|
require('./esri-loader-a91c0ec1.js');
|
16
17
|
require('./_commonjsHelpers-384729db.js');
|
17
|
-
require('./interfaces-7cd0a48a.js');
|
18
18
|
require('./solution-resource-abec7452.js');
|
19
19
|
require('./index-f64944ad.js');
|
20
20
|
require('./restHelpersGet-e0737480.js');
|
@@ -171,19 +171,17 @@ const LayerTable = class {
|
|
171
171
|
this.mapInfo = undefined;
|
172
172
|
this.mapView = undefined;
|
173
173
|
this.onlyShowUpdatableLayers = undefined;
|
174
|
+
this.selectedIds = [];
|
174
175
|
this.shareIncludeEmbed = undefined;
|
175
176
|
this.shareIncludeSocial = undefined;
|
176
177
|
this.showNewestFirst = undefined;
|
177
178
|
this.zoomAndScrollToSelected = undefined;
|
178
|
-
this._confirmDelete = false;
|
179
179
|
this._controlsThatFit = undefined;
|
180
180
|
this._fetchingData = false;
|
181
181
|
this._filterActive = false;
|
182
182
|
this._filterOpen = false;
|
183
|
-
this._isDeleting = false;
|
184
183
|
this._layer = undefined;
|
185
184
|
this._selectAllActive = false;
|
186
|
-
this._selectedIndexes = [];
|
187
185
|
this._showHideOpen = false;
|
188
186
|
this._showOnlySelected = false;
|
189
187
|
this._sortActive = false;
|
@@ -276,10 +274,10 @@ const LayerTable = class {
|
|
276
274
|
/**
|
277
275
|
* watch for selection changes
|
278
276
|
*/
|
279
|
-
async
|
277
|
+
async _selectedIdsWatchHandler() {
|
280
278
|
this._updateShareUrl();
|
281
279
|
this._validateEnabledActions();
|
282
|
-
if (this._selectAllActive && this.
|
280
|
+
if (this._selectAllActive && this.selectedIds.length !== this._allIds.length) {
|
283
281
|
this._selectAllActive = false;
|
284
282
|
}
|
285
283
|
}
|
@@ -291,19 +289,6 @@ const LayerTable = class {
|
|
291
289
|
await this._sortTable();
|
292
290
|
}
|
293
291
|
}
|
294
|
-
//--------------------------------------------------------------------------
|
295
|
-
//
|
296
|
-
// Methods (public)
|
297
|
-
//
|
298
|
-
//--------------------------------------------------------------------------
|
299
|
-
/**
|
300
|
-
* Delete currently selected features
|
301
|
-
*
|
302
|
-
* @returns Promise resolving when the process is complete
|
303
|
-
*/
|
304
|
-
async deleteFeatures() {
|
305
|
-
return this._delete();
|
306
|
-
}
|
307
292
|
/**
|
308
293
|
* Scroll and zoom to the selected feature from the Features widget.
|
309
294
|
*
|
@@ -332,7 +317,11 @@ const LayerTable = class {
|
|
332
317
|
/**
|
333
318
|
* Refresh the table when edits are completed
|
334
319
|
*/
|
335
|
-
async editsComplete() {
|
320
|
+
async editsComplete(evt) {
|
321
|
+
const editType = evt.detail;
|
322
|
+
if (editType === "delete" || editType === "add") {
|
323
|
+
this._allIds = await mapViewUtils.queryAllIds(this._layer);
|
324
|
+
}
|
336
325
|
await this._refresh();
|
337
326
|
}
|
338
327
|
/**
|
@@ -375,12 +364,12 @@ const LayerTable = class {
|
|
375
364
|
const tableNodeClass = this._fetchingData ? "display-none" : "";
|
376
365
|
const loadingClass = this._fetchingData ? "" : "display-none";
|
377
366
|
const total = this._allIds.length.toString();
|
378
|
-
const selected = this.
|
367
|
+
const selected = this.selectedIds.length.toString();
|
379
368
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
380
369
|
this._validateActiveActions();
|
381
370
|
return (index.h(index.Host, null, index.h("calcite-shell", null, this._getTableControlRow("header"), index.h("div", { class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { class: "height-full width-full" }, index.h("calcite-loader", { class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
382
371
|
.replace("{{total}}", total)
|
383
|
-
.replace("{{selected}}", selected))) : undefined)), this.
|
372
|
+
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
384
373
|
}
|
385
374
|
/**
|
386
375
|
* Called once after the component is loaded
|
@@ -558,11 +547,11 @@ const LayerTable = class {
|
|
558
547
|
isOverflow: false
|
559
548
|
} : undefined,
|
560
549
|
this._deleteEnabled ? {
|
561
|
-
active:
|
550
|
+
active: undefined,
|
562
551
|
icon: "trash",
|
563
|
-
indicator:
|
564
|
-
label:
|
565
|
-
func:
|
552
|
+
indicator: undefined,
|
553
|
+
label: undefined,
|
554
|
+
func: undefined,
|
566
555
|
disabled: !featuresSelected,
|
567
556
|
isDanger: true,
|
568
557
|
isOverflow: false
|
@@ -644,7 +633,7 @@ const LayerTable = class {
|
|
644
633
|
* @returns boolean
|
645
634
|
*/
|
646
635
|
_featuresSelected() {
|
647
|
-
return this.
|
636
|
+
return this.selectedIds.length > 0;
|
648
637
|
}
|
649
638
|
/**
|
650
639
|
* Return true when we have no features
|
@@ -856,8 +845,8 @@ const LayerTable = class {
|
|
856
845
|
else {
|
857
846
|
urlObj.searchParams.delete("layer");
|
858
847
|
}
|
859
|
-
if (((_d = this.
|
860
|
-
urlObj.searchParams.set("oid", this.
|
848
|
+
if (((_d = this.selectedIds) === null || _d === void 0 ? void 0 : _d.length) > 0) {
|
849
|
+
urlObj.searchParams.set("oid", this.selectedIds.join(","));
|
861
850
|
}
|
862
851
|
else {
|
863
852
|
urlObj.searchParams.delete("oid");
|
@@ -879,7 +868,6 @@ const LayerTable = class {
|
|
879
868
|
urlObj.searchParams.delete("filter");
|
880
869
|
}
|
881
870
|
this._shareNode.shareUrl = urlObj.href;
|
882
|
-
history.pushState(history.state, document.title, urlObj.href);
|
883
871
|
}
|
884
872
|
/**
|
885
873
|
* Get a tooltip
|
@@ -916,7 +904,15 @@ const LayerTable = class {
|
|
916
904
|
*/
|
917
905
|
_getDangerAction(icon, label, func, disabled) {
|
918
906
|
const _disabled = this._layer === undefined ? true : disabled;
|
919
|
-
return (index.h("div", { class: "display-flex", id: this._getId(icon) }, index.h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: "" }, index.h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label)), this._getToolTip("bottom", icon, label)));
|
907
|
+
return (index.h("div", { class: "display-flex", id: this._getId(icon) }, icon === "trash" ? (index.h("delete-button", { buttonType: "action", class: "display-flex", disabled: _disabled, icon: icon, ids: this._getIds(), layer: this._layer })) : (index.h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: "" }, index.h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label))), this._getToolTip("bottom", icon, label)));
|
908
|
+
}
|
909
|
+
/**
|
910
|
+
* Return all currently selected IDs from the table
|
911
|
+
*
|
912
|
+
* @param number[] the selected ids
|
913
|
+
*/
|
914
|
+
_getIds() {
|
915
|
+
return this._table.highlightIds.toArray();
|
920
916
|
}
|
921
917
|
/**
|
922
918
|
* Initialize the FeatureTable
|
@@ -962,15 +958,15 @@ const LayerTable = class {
|
|
962
958
|
const ids = [...this._table.highlightIds.toArray()];
|
963
959
|
if (!this._skipOnChange) {
|
964
960
|
if (!this._ctrlIsPressed && !this._shiftIsPressed) {
|
965
|
-
if (this.
|
961
|
+
if (this.selectedIds.length > 0) {
|
966
962
|
this._skipOnChange = true;
|
967
963
|
// only readd in specific case where we have multiple selected and then click one of the currently selected
|
968
|
-
const reAdd = this.
|
969
|
-
const
|
964
|
+
const reAdd = this.selectedIds.length > 1 && evt.removed.length === 1;
|
965
|
+
const newIds = reAdd ? evt.removed : ids.filter(id => this.selectedIds.indexOf(id) < 0);
|
970
966
|
this._clearSelection();
|
971
|
-
this.
|
972
|
-
if (
|
973
|
-
this._table.highlightIds.add(
|
967
|
+
this.selectedIds = [...newIds];
|
968
|
+
if (newIds.length > 0) {
|
969
|
+
this._table.highlightIds.add(newIds[0]);
|
974
970
|
}
|
975
971
|
else {
|
976
972
|
this._skipOnChange = false;
|
@@ -978,11 +974,11 @@ const LayerTable = class {
|
|
978
974
|
}
|
979
975
|
else {
|
980
976
|
// https://github.com/Esri/solutions-components/issues/365
|
981
|
-
this.
|
977
|
+
this.selectedIds = ids.reverse();
|
982
978
|
}
|
983
979
|
}
|
984
980
|
else if (this._ctrlIsPressed) {
|
985
|
-
this.
|
981
|
+
this.selectedIds = ids.reverse();
|
986
982
|
}
|
987
983
|
else if (this._shiftIsPressed) {
|
988
984
|
this._skipOnChange = true;
|
@@ -1001,7 +997,7 @@ const LayerTable = class {
|
|
1001
997
|
const startIndex = _start < _end ? _start : _end;
|
1002
998
|
const endIndex = _end > _start ? _end : _start;
|
1003
999
|
this._skipOnChange = startIndex + 1 !== endIndex;
|
1004
|
-
const
|
1000
|
+
const selectedIds = oids.reduce((prev, cur) => {
|
1005
1001
|
const id = cur;
|
1006
1002
|
const index = this._table.viewModel.getObjectIdIndex(id);
|
1007
1003
|
if ((id === this._currentId || id === this._previousCurrentId)) {
|
@@ -1018,13 +1014,13 @@ const LayerTable = class {
|
|
1018
1014
|
}
|
1019
1015
|
// Also add index based check.
|
1020
1016
|
// In some cases the FeatureTable and Layer query will have differences in how null/undefined field values are sorted
|
1021
|
-
if ((this.
|
1017
|
+
if ((this.selectedIds.indexOf(id) > -1 || (index >= startIndex && index <= endIndex)) && prev.indexOf(id) < 0 && index > -1) {
|
1022
1018
|
prev.push(id);
|
1023
1019
|
}
|
1024
1020
|
return prev;
|
1025
1021
|
}, []);
|
1026
|
-
this.
|
1027
|
-
this._table.highlightIds.addMany(this.
|
1022
|
+
this.selectedIds = _start < _end ? selectedIds.reverse() : selectedIds;
|
1023
|
+
this._table.highlightIds.addMany(this.selectedIds.filter(i => ids.indexOf(i) < 0));
|
1028
1024
|
}
|
1029
1025
|
}
|
1030
1026
|
this._finishOnChange();
|
@@ -1046,7 +1042,7 @@ const LayerTable = class {
|
|
1046
1042
|
this._toggleShowSelected();
|
1047
1043
|
}
|
1048
1044
|
}
|
1049
|
-
this.featureSelectionChange.emit(this.
|
1045
|
+
this.featureSelectionChange.emit(this.selectedIds);
|
1050
1046
|
}
|
1051
1047
|
/**
|
1052
1048
|
* Reset basic table props
|
@@ -1055,7 +1051,7 @@ const LayerTable = class {
|
|
1055
1051
|
var _a;
|
1056
1052
|
this._clearSelection();
|
1057
1053
|
this._allIds = [];
|
1058
|
-
this.featureSelectionChange.emit(this.
|
1054
|
+
this.featureSelectionChange.emit(this.selectedIds);
|
1059
1055
|
const columnTemplates = this._getColumnTemplates(this._layer.id, (_a = this._layer) === null || _a === void 0 ? void 0 : _a.fields);
|
1060
1056
|
this._allIds = await mapViewUtils.queryAllIds(this._layer);
|
1061
1057
|
if (!this._table) {
|
@@ -1225,30 +1221,6 @@ const LayerTable = class {
|
|
1225
1221
|
this._filterOpen = false;
|
1226
1222
|
}
|
1227
1223
|
}
|
1228
|
-
/**
|
1229
|
-
* Show delete confirmation message
|
1230
|
-
*
|
1231
|
-
* @returns node to confirm or deny the delete operation
|
1232
|
-
*/
|
1233
|
-
_deleteMessage() {
|
1234
|
-
return (index.h("calcite-modal", { "aria-labelledby": "modal-title", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, index.h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations.deleteFeature), index.h("div", { slot: "content" }, this._translations.confirm), index.h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), slot: "secondary", width: "full" }, this._translations.cancel), index.h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
|
1235
|
-
}
|
1236
|
-
/**
|
1237
|
-
* Delete the currently selected features
|
1238
|
-
*/
|
1239
|
-
async _deleteFeatures() {
|
1240
|
-
this._isDeleting = true;
|
1241
|
-
const deleteFeatures = this._table.highlightIds.toArray().map((objectId) => {
|
1242
|
-
return { objectId };
|
1243
|
-
});
|
1244
|
-
await this._layer.applyEdits({
|
1245
|
-
deleteFeatures
|
1246
|
-
});
|
1247
|
-
await this._table.refresh();
|
1248
|
-
this._allIds = await mapViewUtils.queryAllIds(this._layer);
|
1249
|
-
this._isDeleting = false;
|
1250
|
-
this._deleteClosed();
|
1251
|
-
}
|
1252
1224
|
/**
|
1253
1225
|
* Handle map click events to keep table and map click selection in sync
|
1254
1226
|
*
|
@@ -1276,12 +1248,6 @@ const LayerTable = class {
|
|
1276
1248
|
}
|
1277
1249
|
}
|
1278
1250
|
}
|
1279
|
-
/**
|
1280
|
-
* Set the alertOpen member to false when the alert is closed
|
1281
|
-
*/
|
1282
|
-
_deleteClosed() {
|
1283
|
-
this._confirmDelete = false;
|
1284
|
-
}
|
1285
1251
|
/**
|
1286
1252
|
* Select or deselect all rows
|
1287
1253
|
*/
|
@@ -1290,7 +1256,7 @@ const LayerTable = class {
|
|
1290
1256
|
this._table.highlightIds.removeAll();
|
1291
1257
|
this._skipOnChange = true;
|
1292
1258
|
this._table.highlightIds.addMany(ids);
|
1293
|
-
this.
|
1259
|
+
this.selectedIds = ids;
|
1294
1260
|
this._finishOnChange();
|
1295
1261
|
this._selectAllActive = true;
|
1296
1262
|
}
|
@@ -1312,7 +1278,7 @@ const LayerTable = class {
|
|
1312
1278
|
*/
|
1313
1279
|
_clearSelection() {
|
1314
1280
|
var _a;
|
1315
|
-
this.
|
1281
|
+
this.selectedIds = [];
|
1316
1282
|
(_a = this._table) === null || _a === void 0 ? void 0 : _a.highlightIds.removeAll();
|
1317
1283
|
this._finishOnChange();
|
1318
1284
|
}
|
@@ -1335,7 +1301,7 @@ const LayerTable = class {
|
|
1335
1301
|
* Select all rows that are not currently selectd
|
1336
1302
|
*/
|
1337
1303
|
_switchSelected() {
|
1338
|
-
const currentIndexes = [...this.
|
1304
|
+
const currentIndexes = [...this.selectedIds];
|
1339
1305
|
this._table.highlightIds.removeAll();
|
1340
1306
|
const ids = this._allIds.reduce((prev, _cur) => {
|
1341
1307
|
if (currentIndexes.indexOf(_cur) < 0) {
|
@@ -1345,7 +1311,7 @@ const LayerTable = class {
|
|
1345
1311
|
}, []).sort((a, b) => a - b);
|
1346
1312
|
this._skipOnChange = true;
|
1347
1313
|
this._table.highlightIds.addMany(ids);
|
1348
|
-
this.
|
1314
|
+
this.selectedIds = ids;
|
1349
1315
|
this._finishOnChange();
|
1350
1316
|
}
|
1351
1317
|
/**
|
@@ -1378,7 +1344,7 @@ const LayerTable = class {
|
|
1378
1344
|
*/
|
1379
1345
|
async _refresh() {
|
1380
1346
|
await this._table.refresh();
|
1381
|
-
this.featureSelectionChange.emit(this.
|
1347
|
+
this.featureSelectionChange.emit(this.selectedIds);
|
1382
1348
|
}
|
1383
1349
|
/**
|
1384
1350
|
* Zoom to all selected features
|
@@ -1388,14 +1354,6 @@ const LayerTable = class {
|
|
1388
1354
|
_zoom() {
|
1389
1355
|
this._table.zoomToSelection();
|
1390
1356
|
}
|
1391
|
-
/**
|
1392
|
-
* Delete all selected records or shows an alert if the layer does not have editing enabled
|
1393
|
-
*
|
1394
|
-
* @returns a promise that will resolve when the operation is complete
|
1395
|
-
*/
|
1396
|
-
_delete() {
|
1397
|
-
this._confirmDelete = true;
|
1398
|
-
}
|
1399
1357
|
/**
|
1400
1358
|
* Handles layer selection change to show new table
|
1401
1359
|
*
|
@@ -1501,189 +1459,11 @@ const LayerTable = class {
|
|
1501
1459
|
"mapInfo": ["mapInfoWatchHandler"],
|
1502
1460
|
"mapView": ["mapViewWatchHandler"],
|
1503
1461
|
"_layer": ["_layerWatchHandler"],
|
1504
|
-
"
|
1462
|
+
"_selectedIds": ["_selectedIdsWatchHandler"],
|
1505
1463
|
"_sortActive": ["_sortActiveWatchHandler"]
|
1506
1464
|
}; }
|
1507
1465
|
};
|
1508
1466
|
LayerTable.style = layerTableCss;
|
1509
1467
|
|
1510
|
-
const mapCardCss = ":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 51px)}.height-full{height:100%}.box-shadow{box-shadow:none !important}.visibility-hidden{visibility:hidden}.display-none{display:none}";
|
1511
|
-
|
1512
|
-
const MapCard = class {
|
1513
|
-
constructor(hostRef) {
|
1514
|
-
index.registerInstance(this, hostRef);
|
1515
|
-
this.mapChanged = index.createEvent(this, "mapChanged", 7);
|
1516
|
-
this.beforeMapChanged = index.createEvent(this, "beforeMapChanged", 7);
|
1517
|
-
/**
|
1518
|
-
* boolean: When true the default map provided via url params has been loaded and should no longer override other maps
|
1519
|
-
*/
|
1520
|
-
this._defaultWebmapHonored = false;
|
1521
|
-
/**
|
1522
|
-
* string: the id of map currently displayed
|
1523
|
-
*/
|
1524
|
-
this._loadedId = "";
|
1525
|
-
this.defaultWebmapId = "";
|
1526
|
-
this.enableHome = undefined;
|
1527
|
-
this.enableLegend = undefined;
|
1528
|
-
this.enableFloorFilter = undefined;
|
1529
|
-
this.enableFullscreen = undefined;
|
1530
|
-
this.enableSingleExpand = true;
|
1531
|
-
this.enableSearch = undefined;
|
1532
|
-
this.enableBasemap = undefined;
|
1533
|
-
this.basemapConfig = undefined;
|
1534
|
-
this.hidden = undefined;
|
1535
|
-
this.homeZoomIndex = 3;
|
1536
|
-
this.homeZoomPosition = "top-left";
|
1537
|
-
this.homeZoomToolsSize = "m";
|
1538
|
-
this.mapInfos = [];
|
1539
|
-
this.mapWidgetsIndex = 0;
|
1540
|
-
this.mapWidgetsPosition = "top-right";
|
1541
|
-
this.mapWidgetsSize = "m";
|
1542
|
-
this.mapView = undefined;
|
1543
|
-
this.stackTools = true;
|
1544
|
-
this.theme = undefined;
|
1545
|
-
this.toolOrder = undefined;
|
1546
|
-
this._searchConfiguration = undefined;
|
1547
|
-
this._webMapInfo = undefined;
|
1548
|
-
}
|
1549
|
-
//--------------------------------------------------------------------------
|
1550
|
-
//
|
1551
|
-
// Watch handlers
|
1552
|
-
//
|
1553
|
-
//--------------------------------------------------------------------------
|
1554
|
-
/**
|
1555
|
-
* Add/remove home widget
|
1556
|
-
*/
|
1557
|
-
enableHomeWatchHandler() {
|
1558
|
-
this._initHome();
|
1559
|
-
}
|
1560
|
-
/**
|
1561
|
-
* Listen for changes to map info and load the appropriate map
|
1562
|
-
*/
|
1563
|
-
async mapInfoChange(evt) {
|
1564
|
-
await this._loadMap(evt.detail);
|
1565
|
-
}
|
1566
|
-
//--------------------------------------------------------------------------
|
1567
|
-
//
|
1568
|
-
// Functions (lifecycle)
|
1569
|
-
//
|
1570
|
-
//--------------------------------------------------------------------------
|
1571
|
-
/**
|
1572
|
-
* StencilJS: Called once just after the component is first connected to the DOM.
|
1573
|
-
*/
|
1574
|
-
async componentWillLoad() {
|
1575
|
-
await this._initModules();
|
1576
|
-
}
|
1577
|
-
/**
|
1578
|
-
* Renders the component.
|
1579
|
-
*/
|
1580
|
-
render() {
|
1581
|
-
var _a, _b;
|
1582
|
-
const mapClass = this.hidden ? "visibility-hidden" : "";
|
1583
|
-
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
1584
|
-
const mapPickerClass = ((_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.length) > 1 ? "" : "display-none";
|
1585
|
-
const mapHeightClass = ((_b = this.mapInfos) === null || _b === void 0 ? void 0 : _b.length) > 1 ? "map-height" : "height-full";
|
1586
|
-
return (index.h(index.Host, null, index.h("map-picker", { class: mapPickerClass, mapInfos: this.mapInfos, ref: (el) => this._mapPicker = el }), index.h("div", { class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), index.h("map-tools", { basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
1587
|
-
}
|
1588
|
-
//--------------------------------------------------------------------------
|
1589
|
-
//
|
1590
|
-
// Functions (protected)
|
1591
|
-
//
|
1592
|
-
//--------------------------------------------------------------------------
|
1593
|
-
/**
|
1594
|
-
* Load esri javascript api modules
|
1595
|
-
*
|
1596
|
-
* @returns Promise resolving when function is done
|
1597
|
-
*
|
1598
|
-
* @protected
|
1599
|
-
*/
|
1600
|
-
async _initModules() {
|
1601
|
-
const [WebMap, MapView, Home] = await loadModules.loadModules([
|
1602
|
-
"esri/WebMap",
|
1603
|
-
"esri/views/MapView",
|
1604
|
-
"esri/widgets/Home"
|
1605
|
-
]);
|
1606
|
-
this.WebMap = WebMap;
|
1607
|
-
this.MapView = MapView;
|
1608
|
-
this.Home = Home;
|
1609
|
-
}
|
1610
|
-
/**
|
1611
|
-
* Load the webmap for the provided webMapInfo
|
1612
|
-
*
|
1613
|
-
* @param webMapInfo the webmap id and name to load
|
1614
|
-
*/
|
1615
|
-
async _loadMap(webMapInfo) {
|
1616
|
-
var _a;
|
1617
|
-
// on the first render use the default webmap id if provided otherwise use the first child of the provided mapInfos
|
1618
|
-
const loadDefaultMap = !this._defaultWebmapHonored && this.defaultWebmapId;
|
1619
|
-
const defaultMap = (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(i => i.id === this.defaultWebmapId);
|
1620
|
-
const mapConfigChanged = JSON.stringify(webMapInfo) !== JSON.stringify(this._webMapInfo);
|
1621
|
-
this._webMapInfo = loadDefaultMap && defaultMap ? defaultMap[0] :
|
1622
|
-
!(webMapInfo === null || webMapInfo === void 0 ? void 0 : webMapInfo.id) && this.mapInfos.length > 0 ? this.mapInfos[0] : webMapInfo;
|
1623
|
-
const id = this._webMapInfo.id;
|
1624
|
-
const isDefaultMap = loadDefaultMap && (webMapInfo === null || webMapInfo === void 0 ? void 0 : webMapInfo.id) === this.defaultWebmapId;
|
1625
|
-
if ((this._loadedId !== id && !loadDefaultMap) || isDefaultMap) {
|
1626
|
-
const webMap = new this.WebMap({
|
1627
|
-
portalItem: { id }
|
1628
|
-
});
|
1629
|
-
this.mapView = new this.MapView({
|
1630
|
-
container: this._mapDiv,
|
1631
|
-
map: webMap,
|
1632
|
-
resizeAlign: "center"
|
1633
|
-
});
|
1634
|
-
this._loadedId = id;
|
1635
|
-
this._searchConfiguration = this._webMapInfo.searchConfiguration;
|
1636
|
-
this.beforeMapChanged.emit();
|
1637
|
-
await this.mapView.when(() => {
|
1638
|
-
this._initHome();
|
1639
|
-
this.mapView.ui.add(this._mapTools, { position: this.mapWidgetsPosition, index: this.mapWidgetsIndex });
|
1640
|
-
this._defaultWebmapHonored = isDefaultMap ? true : this._defaultWebmapHonored;
|
1641
|
-
this.mapChanged.emit({
|
1642
|
-
id: id,
|
1643
|
-
mapView: this.mapView
|
1644
|
-
});
|
1645
|
-
});
|
1646
|
-
}
|
1647
|
-
else if (loadDefaultMap) {
|
1648
|
-
this._defaultWebmapHonored = true;
|
1649
|
-
this._mapPicker.setMapByID(id);
|
1650
|
-
}
|
1651
|
-
else if (mapConfigChanged) {
|
1652
|
-
// Map is the same so no need to reload but we need to update for any changes from the config
|
1653
|
-
this._searchConfiguration = this._webMapInfo.searchConfiguration;
|
1654
|
-
this.beforeMapChanged.emit();
|
1655
|
-
this.mapChanged.emit({
|
1656
|
-
id: id,
|
1657
|
-
mapView: this.mapView
|
1658
|
-
});
|
1659
|
-
}
|
1660
|
-
}
|
1661
|
-
/**
|
1662
|
-
* Add/remove the home widget base on enableHome prop
|
1663
|
-
*
|
1664
|
-
* @protected
|
1665
|
-
*/
|
1666
|
-
_initHome() {
|
1667
|
-
if (this.enableHome) {
|
1668
|
-
this._homeWidget = new this.Home({
|
1669
|
-
view: this.mapView
|
1670
|
-
});
|
1671
|
-
this.mapView.ui.add(this._homeWidget, { position: this.homeZoomPosition, index: this.homeZoomIndex });
|
1672
|
-
const size = this.homeZoomToolsSize === "s" ? "32px" : this.homeZoomToolsSize === "m" ? "40px" : "48px";
|
1673
|
-
this._homeWidget.domNode.style.height = size;
|
1674
|
-
this._homeWidget.domNode.style.width = size;
|
1675
|
-
}
|
1676
|
-
else if (this._homeWidget) {
|
1677
|
-
this.mapView.ui.remove(this._homeWidget);
|
1678
|
-
}
|
1679
|
-
}
|
1680
|
-
get el() { return index.getElement(this); }
|
1681
|
-
static get watchers() { return {
|
1682
|
-
"enableHome": ["enableHomeWatchHandler"]
|
1683
|
-
}; }
|
1684
|
-
};
|
1685
|
-
MapCard.style = mapCardCss;
|
1686
|
-
|
1687
1468
|
exports.card_manager = CardManager;
|
1688
1469
|
exports.layer_table = LayerTable;
|
1689
|
-
exports.map_card = MapCard;
|