@esri/solutions-components 0.7.23 → 0.7.24
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,209 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
+
import { g as getLocaleComponentStrings } from './locale.js';
|
8
|
+
import { d as defineCustomElement$6 } from './action.js';
|
9
|
+
import { d as defineCustomElement$5 } from './button.js';
|
10
|
+
import { d as defineCustomElement$4 } from './icon.js';
|
11
|
+
import { d as defineCustomElement$3 } from './loader.js';
|
12
|
+
import { d as defineCustomElement$2 } from './modal.js';
|
13
|
+
import { d as defineCustomElement$1 } from './scrim.js';
|
14
|
+
|
15
|
+
const deleteButtonCss = ":host{display:block}";
|
16
|
+
|
17
|
+
const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends HTMLElement {
|
18
|
+
constructor() {
|
19
|
+
super();
|
20
|
+
this.__registerHost();
|
21
|
+
this.__attachShadow();
|
22
|
+
this.editsComplete = createEvent(this, "editsComplete", 7);
|
23
|
+
this.buttonType = "button";
|
24
|
+
this.disabled = false;
|
25
|
+
this.icon = undefined;
|
26
|
+
this.ids = [];
|
27
|
+
this.layer = undefined;
|
28
|
+
this._confirmDelete = false;
|
29
|
+
this._deleteEndabled = false;
|
30
|
+
this._isDeleting = false;
|
31
|
+
this._supportsDelete = undefined;
|
32
|
+
this._translations = undefined;
|
33
|
+
}
|
34
|
+
//--------------------------------------------------------------------------
|
35
|
+
//
|
36
|
+
// Properties (protected)
|
37
|
+
//
|
38
|
+
//--------------------------------------------------------------------------
|
39
|
+
//--------------------------------------------------------------------------
|
40
|
+
//
|
41
|
+
// Watch handlers
|
42
|
+
//
|
43
|
+
//--------------------------------------------------------------------------
|
44
|
+
/**
|
45
|
+
* watch for changes in layer view and verify if it has editing enabled
|
46
|
+
*/
|
47
|
+
async idsWatchHandler() {
|
48
|
+
this._setDeleteEnabled();
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* watch for changes in layer view and verify if it has editing enabled
|
52
|
+
*/
|
53
|
+
async layerWatchHandler() {
|
54
|
+
this._setDeleteEnabled();
|
55
|
+
}
|
56
|
+
//--------------------------------------------------------------------------
|
57
|
+
//
|
58
|
+
// Functions (lifecycle)
|
59
|
+
//
|
60
|
+
//--------------------------------------------------------------------------
|
61
|
+
/**
|
62
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
63
|
+
*
|
64
|
+
* @returns Promise when complete
|
65
|
+
*/
|
66
|
+
async componentWillLoad() {
|
67
|
+
await this._getTranslations();
|
68
|
+
}
|
69
|
+
/**
|
70
|
+
* Renders the component.
|
71
|
+
*/
|
72
|
+
render() {
|
73
|
+
return (h(Host, null, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s" }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage()));
|
74
|
+
}
|
75
|
+
/**
|
76
|
+
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
77
|
+
*/
|
78
|
+
async componentDidLoad() {
|
79
|
+
this._setDeleteEnabled();
|
80
|
+
}
|
81
|
+
//--------------------------------------------------------------------------
|
82
|
+
//
|
83
|
+
// Functions (protected)
|
84
|
+
//
|
85
|
+
//--------------------------------------------------------------------------
|
86
|
+
/**
|
87
|
+
* Verify if the layer supports delete and that we have 1 or more ids
|
88
|
+
*/
|
89
|
+
_setDeleteEnabled() {
|
90
|
+
var _a, _b, _c, _d;
|
91
|
+
this._supportsDelete = ((_a = this.layer) === null || _a === void 0 ? void 0 : _a.editingEnabled) && ((_d = (_c = (_b = this.layer) === null || _b === void 0 ? void 0 : _b.capabilities) === null || _c === void 0 ? void 0 : _c.operations) === null || _d === void 0 ? void 0 : _d.supportsDelete);
|
92
|
+
this._deleteEndabled = !this.disabled || this._supportsDelete && this.ids.length > 0;
|
93
|
+
}
|
94
|
+
/**
|
95
|
+
* Delete all selected records or shows an alert if the layer does not have editing enabled
|
96
|
+
*
|
97
|
+
* @returns a promise that will resolve when the operation is complete
|
98
|
+
*/
|
99
|
+
_delete() {
|
100
|
+
this._confirmDelete = true;
|
101
|
+
}
|
102
|
+
/**
|
103
|
+
* Show delete confirmation message
|
104
|
+
*
|
105
|
+
* @returns node to confirm or deny the delete operation
|
106
|
+
*/
|
107
|
+
_deleteMessage() {
|
108
|
+
const confirmMessage = this.ids.length === 1 ? this._translations.confirmSingle :
|
109
|
+
this._translations.confirmMultiple;
|
110
|
+
return (h("calcite-modal", { "aria-labelledby": "modal-title", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations.deleteFeature), h("div", { slot: "content" }, confirmMessage), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), 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)));
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* Delete the currently selected features
|
114
|
+
*/
|
115
|
+
async _deleteFeatures() {
|
116
|
+
this._isDeleting = true;
|
117
|
+
const deleteFeatures = this.ids.map((objectId) => {
|
118
|
+
return { objectId };
|
119
|
+
});
|
120
|
+
await this.layer.applyEdits({
|
121
|
+
deleteFeatures
|
122
|
+
});
|
123
|
+
this._isDeleting = false;
|
124
|
+
this._deleteClosed();
|
125
|
+
this.editsComplete.emit("delete");
|
126
|
+
}
|
127
|
+
/**
|
128
|
+
* Set the alertOpen member to false when the alert is closed
|
129
|
+
*/
|
130
|
+
_deleteClosed() {
|
131
|
+
this._confirmDelete = false;
|
132
|
+
}
|
133
|
+
/**
|
134
|
+
* Fetches the component's translations
|
135
|
+
*
|
136
|
+
* @returns Promise when complete
|
137
|
+
* @protected
|
138
|
+
*/
|
139
|
+
async _getTranslations() {
|
140
|
+
const messages = await getLocaleComponentStrings(this.el);
|
141
|
+
this._translations = messages[0];
|
142
|
+
}
|
143
|
+
get el() { return this; }
|
144
|
+
static get watchers() { return {
|
145
|
+
"ids": ["idsWatchHandler"],
|
146
|
+
"layer": ["layerWatchHandler"]
|
147
|
+
}; }
|
148
|
+
static get style() { return deleteButtonCss; }
|
149
|
+
}, [1, "delete-button", {
|
150
|
+
"buttonType": [1, "button-type"],
|
151
|
+
"disabled": [4],
|
152
|
+
"icon": [1],
|
153
|
+
"ids": [16],
|
154
|
+
"layer": [16],
|
155
|
+
"_confirmDelete": [32],
|
156
|
+
"_deleteEndabled": [32],
|
157
|
+
"_isDeleting": [32],
|
158
|
+
"_supportsDelete": [32],
|
159
|
+
"_translations": [32]
|
160
|
+
}, undefined, {
|
161
|
+
"ids": ["idsWatchHandler"],
|
162
|
+
"layer": ["layerWatchHandler"]
|
163
|
+
}]);
|
164
|
+
function defineCustomElement() {
|
165
|
+
if (typeof customElements === "undefined") {
|
166
|
+
return;
|
167
|
+
}
|
168
|
+
const components = ["delete-button", "calcite-action", "calcite-button", "calcite-icon", "calcite-loader", "calcite-modal", "calcite-scrim"];
|
169
|
+
components.forEach(tagName => { switch (tagName) {
|
170
|
+
case "delete-button":
|
171
|
+
if (!customElements.get(tagName)) {
|
172
|
+
customElements.define(tagName, DeleteButton);
|
173
|
+
}
|
174
|
+
break;
|
175
|
+
case "calcite-action":
|
176
|
+
if (!customElements.get(tagName)) {
|
177
|
+
defineCustomElement$6();
|
178
|
+
}
|
179
|
+
break;
|
180
|
+
case "calcite-button":
|
181
|
+
if (!customElements.get(tagName)) {
|
182
|
+
defineCustomElement$5();
|
183
|
+
}
|
184
|
+
break;
|
185
|
+
case "calcite-icon":
|
186
|
+
if (!customElements.get(tagName)) {
|
187
|
+
defineCustomElement$4();
|
188
|
+
}
|
189
|
+
break;
|
190
|
+
case "calcite-loader":
|
191
|
+
if (!customElements.get(tagName)) {
|
192
|
+
defineCustomElement$3();
|
193
|
+
}
|
194
|
+
break;
|
195
|
+
case "calcite-modal":
|
196
|
+
if (!customElements.get(tagName)) {
|
197
|
+
defineCustomElement$2();
|
198
|
+
}
|
199
|
+
break;
|
200
|
+
case "calcite-scrim":
|
201
|
+
if (!customElements.get(tagName)) {
|
202
|
+
defineCustomElement$1();
|
203
|
+
}
|
204
|
+
break;
|
205
|
+
} });
|
206
|
+
}
|
207
|
+
defineCustomElement();
|
208
|
+
|
209
|
+
export { DeleteButton as D, defineCustomElement as d };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface FeatureList extends Components.FeatureList, HTMLElement {}
|
4
|
+
export const FeatureList: {
|
5
|
+
prototype: FeatureList;
|
6
|
+
new (): FeatureList;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { F as FeatureList$1, d as defineCustomElement$1 } from './feature-list2.js';
|
7
|
+
|
8
|
+
const FeatureList = FeatureList$1;
|
9
|
+
const defineCustomElement = defineCustomElement$1;
|
10
|
+
|
11
|
+
export { FeatureList, defineCustomElement };
|
@@ -0,0 +1,281 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
7
|
+
import { P as PopupUtils } from './popupUtils.js';
|
8
|
+
import { g as getLayerOrTable, e as getFeatureLayerView, h as highlightFeatures } from './mapViewUtils.js';
|
9
|
+
import { g as getLocaleComponentStrings } from './locale.js';
|
10
|
+
import { d as defineCustomElement$g } from './action.js';
|
11
|
+
import { d as defineCustomElement$f } from './action-menu.js';
|
12
|
+
import { d as defineCustomElement$e } from './filter2.js';
|
13
|
+
import { d as defineCustomElement$d } from './handle.js';
|
14
|
+
import { d as defineCustomElement$c } from './icon.js';
|
15
|
+
import { d as defineCustomElement$b } from './input.js';
|
16
|
+
import { d as defineCustomElement$a } from './list.js';
|
17
|
+
import { d as defineCustomElement$9 } from './list-item.js';
|
18
|
+
import { d as defineCustomElement$8 } from './loader.js';
|
19
|
+
import { d as defineCustomElement$7 } from './notice.js';
|
20
|
+
import { d as defineCustomElement$6 } from './pagination.js';
|
21
|
+
import { d as defineCustomElement$5 } from './panel.js';
|
22
|
+
import { d as defineCustomElement$4 } from './popover.js';
|
23
|
+
import { d as defineCustomElement$3 } from './progress.js';
|
24
|
+
import { d as defineCustomElement$2 } from './scrim.js';
|
25
|
+
import { d as defineCustomElement$1 } from './stack.js';
|
26
|
+
|
27
|
+
const featureListCss = ":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.popup-title{font-weight:500;padding:10px 12px}";
|
28
|
+
|
29
|
+
const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends HTMLElement {
|
30
|
+
constructor() {
|
31
|
+
super();
|
32
|
+
this.__registerHost();
|
33
|
+
this.featureSelect = createEvent(this, "featureSelect", 7);
|
34
|
+
this.selectedLayerId = undefined;
|
35
|
+
this.mapView = undefined;
|
36
|
+
this.noFeaturesFoundMsg = undefined;
|
37
|
+
this.pageSize = 100;
|
38
|
+
this.highlightOnMap = false;
|
39
|
+
this._featureItems = [];
|
40
|
+
this._featuresCount = 0;
|
41
|
+
this._isLoading = false;
|
42
|
+
this._translations = undefined;
|
43
|
+
}
|
44
|
+
//--------------------------------------------------------------------------
|
45
|
+
//
|
46
|
+
// Functions (lifecycle)
|
47
|
+
//
|
48
|
+
//--------------------------------------------------------------------------
|
49
|
+
/**
|
50
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
51
|
+
* @returns Promise when complete
|
52
|
+
*/
|
53
|
+
async componentWillLoad() {
|
54
|
+
await this._getTranslations();
|
55
|
+
this._isLoading = true;
|
56
|
+
this._popupUtils = new PopupUtils();
|
57
|
+
this._selectedLayer = await getLayerOrTable(this.mapView, this.selectedLayerId);
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
61
|
+
*/
|
62
|
+
async componentDidLoad() {
|
63
|
+
if (this._selectedLayer) {
|
64
|
+
this._featureItems = await this.queryPage(0);
|
65
|
+
this._featuresCount = await this._selectedLayer.queryFeatureCount();
|
66
|
+
this._isLoading = false;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
/**
|
70
|
+
* Renders the component.
|
71
|
+
*/
|
72
|
+
render() {
|
73
|
+
return (h("calcite-panel", { "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { scale: "m" }), this._featureItems.length === 0 && !this._isLoading && h("calcite-notice", { class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { "selection-appearance": "border", "selection-mode": "single" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
74
|
+
h("div", { class: "width-full", slot: "footer" }, h("calcite-pagination", { class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, "start-item": "1", "total-items": this._featuresCount }))));
|
75
|
+
}
|
76
|
+
//--------------------------------------------------------------------------
|
77
|
+
//
|
78
|
+
// Functions (protected)
|
79
|
+
//
|
80
|
+
//--------------------------------------------------------------------------
|
81
|
+
/**
|
82
|
+
* On page change get the next updated feature list
|
83
|
+
* @param event page change event
|
84
|
+
* @protected
|
85
|
+
*/
|
86
|
+
async pageChanged(event) {
|
87
|
+
this._isLoading = true;
|
88
|
+
if (this._highlightHandle) {
|
89
|
+
this._highlightHandle.remove();
|
90
|
+
this._highlightHandle = null;
|
91
|
+
}
|
92
|
+
const page = event.target.startItem - 1;
|
93
|
+
this._featureItems = await this.queryPage(page);
|
94
|
+
this._isLoading = false;
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
* On feature click in feature list highlight the feature on the map
|
98
|
+
* @param event feature clicked event
|
99
|
+
* @protected
|
100
|
+
*/
|
101
|
+
async featureClicked(event, selectedFeature) {
|
102
|
+
//clear previous highlight and remove the highlightHandle
|
103
|
+
if (this.highlightOnMap && this._highlightHandle) {
|
104
|
+
this._highlightHandle.remove();
|
105
|
+
this._highlightHandle = null;
|
106
|
+
}
|
107
|
+
//highlight on map only if it is selected item
|
108
|
+
if (event.target.selected) {
|
109
|
+
if (this.highlightOnMap) {
|
110
|
+
const selectedFeatureObjectId = Number(event.target.value);
|
111
|
+
const selectedLayerView = await getFeatureLayerView(this.mapView, this.selectedLayerId);
|
112
|
+
this._highlightHandle = await highlightFeatures([selectedFeatureObjectId], selectedLayerView, this.mapView, true);
|
113
|
+
}
|
114
|
+
this.featureSelect.emit(selectedFeature);
|
115
|
+
}
|
116
|
+
}
|
117
|
+
/**
|
118
|
+
* Query the selected feature layer, in descending order of object id's
|
119
|
+
* @param page 0th page number in the pagination item
|
120
|
+
* @returns List of features items to be rendered
|
121
|
+
* @protected
|
122
|
+
*/
|
123
|
+
async queryPage(page) {
|
124
|
+
const featureLayer = this._selectedLayer;
|
125
|
+
const query = {
|
126
|
+
start: page,
|
127
|
+
num: this.pageSize,
|
128
|
+
outFields: ["*"],
|
129
|
+
orderByFields: [featureLayer.objectIdField + " DESC"],
|
130
|
+
returnGeometry: true,
|
131
|
+
where: featureLayer.definitionExpression
|
132
|
+
};
|
133
|
+
const featureSet = await featureLayer.queryFeatures(query);
|
134
|
+
return await this.createFeatureItem(featureSet);
|
135
|
+
}
|
136
|
+
/**
|
137
|
+
* Creates list of items using the popup titles
|
138
|
+
* @param featureSet Queried FeatureSet
|
139
|
+
* @returns List of features items to be rendered
|
140
|
+
* @protected
|
141
|
+
*/
|
142
|
+
async createFeatureItem(featureSet) {
|
143
|
+
const currentFeatures = featureSet === null || featureSet === void 0 ? void 0 : featureSet.features;
|
144
|
+
const items = currentFeatures.map(async (feature) => {
|
145
|
+
const popupTitle = await this._popupUtils.getPopupTitle(feature);
|
146
|
+
return this.getFeatureItem(feature, popupTitle);
|
147
|
+
});
|
148
|
+
return Promise.all(items);
|
149
|
+
}
|
150
|
+
/**
|
151
|
+
* Get each feature item
|
152
|
+
* @param selectedFeature Each individual feature instance to be listed
|
153
|
+
* @param popupTitle feature popup title
|
154
|
+
* @returns individual feature item to be rendered
|
155
|
+
* @protected
|
156
|
+
*/
|
157
|
+
getFeatureItem(selectedFeature, popupTitle) {
|
158
|
+
//get the object id value of the feature
|
159
|
+
const oId = selectedFeature.attributes[this._selectedLayer.objectIdField].toString();
|
160
|
+
//use object id if popupTitle is null or undefined
|
161
|
+
popupTitle = popupTitle !== null && popupTitle !== void 0 ? popupTitle : oId;
|
162
|
+
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, value: oId }, h("div", { class: "popup-title", slot: "content-start" }, popupTitle), h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
|
163
|
+
}
|
164
|
+
/**
|
165
|
+
* Fetches the component's translations
|
166
|
+
* @returns Promise when complete
|
167
|
+
* @protected
|
168
|
+
*/
|
169
|
+
async _getTranslations() {
|
170
|
+
const messages = await getLocaleComponentStrings(this.el);
|
171
|
+
this._translations = messages[0];
|
172
|
+
}
|
173
|
+
get el() { return this; }
|
174
|
+
static get style() { return featureListCss; }
|
175
|
+
}, [0, "feature-list", {
|
176
|
+
"selectedLayerId": [1, "selected-layer-id"],
|
177
|
+
"mapView": [16],
|
178
|
+
"noFeaturesFoundMsg": [1, "no-features-found-msg"],
|
179
|
+
"pageSize": [2, "page-size"],
|
180
|
+
"highlightOnMap": [4, "highlight-on-map"],
|
181
|
+
"_featureItems": [32],
|
182
|
+
"_featuresCount": [32],
|
183
|
+
"_isLoading": [32],
|
184
|
+
"_translations": [32]
|
185
|
+
}]);
|
186
|
+
function defineCustomElement() {
|
187
|
+
if (typeof customElements === "undefined") {
|
188
|
+
return;
|
189
|
+
}
|
190
|
+
const components = ["feature-list", "calcite-action", "calcite-action-menu", "calcite-filter", "calcite-handle", "calcite-icon", "calcite-input", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-notice", "calcite-pagination", "calcite-panel", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-stack"];
|
191
|
+
components.forEach(tagName => { switch (tagName) {
|
192
|
+
case "feature-list":
|
193
|
+
if (!customElements.get(tagName)) {
|
194
|
+
customElements.define(tagName, FeatureList);
|
195
|
+
}
|
196
|
+
break;
|
197
|
+
case "calcite-action":
|
198
|
+
if (!customElements.get(tagName)) {
|
199
|
+
defineCustomElement$g();
|
200
|
+
}
|
201
|
+
break;
|
202
|
+
case "calcite-action-menu":
|
203
|
+
if (!customElements.get(tagName)) {
|
204
|
+
defineCustomElement$f();
|
205
|
+
}
|
206
|
+
break;
|
207
|
+
case "calcite-filter":
|
208
|
+
if (!customElements.get(tagName)) {
|
209
|
+
defineCustomElement$e();
|
210
|
+
}
|
211
|
+
break;
|
212
|
+
case "calcite-handle":
|
213
|
+
if (!customElements.get(tagName)) {
|
214
|
+
defineCustomElement$d();
|
215
|
+
}
|
216
|
+
break;
|
217
|
+
case "calcite-icon":
|
218
|
+
if (!customElements.get(tagName)) {
|
219
|
+
defineCustomElement$c();
|
220
|
+
}
|
221
|
+
break;
|
222
|
+
case "calcite-input":
|
223
|
+
if (!customElements.get(tagName)) {
|
224
|
+
defineCustomElement$b();
|
225
|
+
}
|
226
|
+
break;
|
227
|
+
case "calcite-list":
|
228
|
+
if (!customElements.get(tagName)) {
|
229
|
+
defineCustomElement$a();
|
230
|
+
}
|
231
|
+
break;
|
232
|
+
case "calcite-list-item":
|
233
|
+
if (!customElements.get(tagName)) {
|
234
|
+
defineCustomElement$9();
|
235
|
+
}
|
236
|
+
break;
|
237
|
+
case "calcite-loader":
|
238
|
+
if (!customElements.get(tagName)) {
|
239
|
+
defineCustomElement$8();
|
240
|
+
}
|
241
|
+
break;
|
242
|
+
case "calcite-notice":
|
243
|
+
if (!customElements.get(tagName)) {
|
244
|
+
defineCustomElement$7();
|
245
|
+
}
|
246
|
+
break;
|
247
|
+
case "calcite-pagination":
|
248
|
+
if (!customElements.get(tagName)) {
|
249
|
+
defineCustomElement$6();
|
250
|
+
}
|
251
|
+
break;
|
252
|
+
case "calcite-panel":
|
253
|
+
if (!customElements.get(tagName)) {
|
254
|
+
defineCustomElement$5();
|
255
|
+
}
|
256
|
+
break;
|
257
|
+
case "calcite-popover":
|
258
|
+
if (!customElements.get(tagName)) {
|
259
|
+
defineCustomElement$4();
|
260
|
+
}
|
261
|
+
break;
|
262
|
+
case "calcite-progress":
|
263
|
+
if (!customElements.get(tagName)) {
|
264
|
+
defineCustomElement$3();
|
265
|
+
}
|
266
|
+
break;
|
267
|
+
case "calcite-scrim":
|
268
|
+
if (!customElements.get(tagName)) {
|
269
|
+
defineCustomElement$2();
|
270
|
+
}
|
271
|
+
break;
|
272
|
+
case "calcite-stack":
|
273
|
+
if (!customElements.get(tagName)) {
|
274
|
+
defineCustomElement$1();
|
275
|
+
}
|
276
|
+
break;
|
277
|
+
} });
|
278
|
+
}
|
279
|
+
defineCustomElement();
|
280
|
+
|
281
|
+
export { FeatureList as F, defineCustomElement as d };
|
@@ -3,18 +3,19 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import { c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive } from './interactive
|
9
|
-
import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentFocusable } from './loadable
|
10
|
-
import { c as connectLocalized, d as disconnectLocalized } from './
|
11
|
-
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n
|
12
|
-
import { S as SLOTS$1 } from './
|
13
|
-
import './
|
14
|
-
import './
|
15
|
-
import './
|
16
|
-
import './
|
17
|
-
import './
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
+
import { g as getElementDir } from './dom.js';
|
8
|
+
import { c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive } from './interactive.js';
|
9
|
+
import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentFocusable } from './loadable.js';
|
10
|
+
import { c as connectLocalized, d as disconnectLocalized } from './locale2.js';
|
11
|
+
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n.js';
|
12
|
+
import { S as SLOTS$1, d as defineCustomElement$3 } from './panel.js';
|
13
|
+
import { d as defineCustomElement$7 } from './action.js';
|
14
|
+
import { d as defineCustomElement$6 } from './action-menu.js';
|
15
|
+
import { d as defineCustomElement$5 } from './icon.js';
|
16
|
+
import { d as defineCustomElement$4 } from './loader.js';
|
17
|
+
import { d as defineCustomElement$2 } from './popover.js';
|
18
|
+
import { d as defineCustomElement$1 } from './scrim.js';
|
18
19
|
|
19
20
|
/*!
|
20
21
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
@@ -41,9 +42,11 @@ const SLOTS = {
|
|
41
42
|
|
42
43
|
const flowItemCss = ":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}calcite-panel{--calcite-panel-footer-padding:var(--calcite-flow-item-footer-padding);--calcite-panel-header-border-block-end:var(--calcite-flow-item-header-border-block-end)}:host([hidden]){display:none}[hidden]{display:none}";
|
43
44
|
|
44
|
-
const FlowItem = class {
|
45
|
-
constructor(
|
46
|
-
|
45
|
+
const FlowItem = /*@__PURE__*/ proxyCustomElement(class FlowItem extends HTMLElement {
|
46
|
+
constructor() {
|
47
|
+
super();
|
48
|
+
this.__registerHost();
|
49
|
+
this.__attachShadow();
|
47
50
|
this.calciteFlowItemBack = createEvent(this, "calciteFlowItemBack", 7);
|
48
51
|
this.calciteFlowItemScroll = createEvent(this, "calciteFlowItemScroll", 6);
|
49
52
|
this.calciteFlowItemClose = createEvent(this, "calciteFlowItemClose", 6);
|
@@ -182,12 +185,84 @@ const FlowItem = class {
|
|
182
185
|
ref: this.setContainerRef }, this.renderBackButton(), h("slot", { name: SLOTS.actionBar, slot: SLOTS$1.actionBar }), h("slot", { name: SLOTS.headerActionsStart, slot: SLOTS$1.headerActionsStart }), h("slot", { name: SLOTS.headerActionsEnd, slot: SLOTS$1.headerActionsEnd }), h("slot", { name: SLOTS.headerContent, slot: SLOTS$1.headerContent }), h("slot", { name: SLOTS.headerMenuActions, slot: SLOTS$1.headerMenuActions }), h("slot", { name: SLOTS.fab, slot: SLOTS$1.fab }), h("slot", { name: SLOTS.footerActions, slot: SLOTS$1.footerActions }), h("slot", { name: SLOTS.footer, slot: SLOTS$1.footer }), h("slot", null))));
|
183
186
|
}
|
184
187
|
static get assetsDirs() { return ["assets"]; }
|
185
|
-
get el() { return
|
188
|
+
get el() { return this; }
|
186
189
|
static get watchers() { return {
|
187
190
|
"messageOverrides": ["onMessagesChange"],
|
188
191
|
"effectiveLocale": ["effectiveLocaleChange"]
|
189
192
|
}; }
|
190
|
-
}
|
191
|
-
|
193
|
+
static get style() { return flowItemCss; }
|
194
|
+
}, [1, "calcite-flow-item", {
|
195
|
+
"closable": [516],
|
196
|
+
"closed": [516],
|
197
|
+
"collapsed": [516],
|
198
|
+
"collapseDirection": [1, "collapse-direction"],
|
199
|
+
"collapsible": [516],
|
200
|
+
"beforeBack": [16],
|
201
|
+
"description": [1],
|
202
|
+
"disabled": [516],
|
203
|
+
"heading": [1],
|
204
|
+
"headingLevel": [514, "heading-level"],
|
205
|
+
"loading": [516],
|
206
|
+
"menuOpen": [516, "menu-open"],
|
207
|
+
"messageOverrides": [1040],
|
208
|
+
"messages": [1040],
|
209
|
+
"showBackButton": [4, "show-back-button"],
|
210
|
+
"defaultMessages": [32],
|
211
|
+
"effectiveLocale": [32],
|
212
|
+
"setFocus": [64],
|
213
|
+
"scrollContentTo": [64]
|
214
|
+
}, undefined, {
|
215
|
+
"messageOverrides": ["onMessagesChange"],
|
216
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
217
|
+
}]);
|
218
|
+
function defineCustomElement() {
|
219
|
+
if (typeof customElements === "undefined") {
|
220
|
+
return;
|
221
|
+
}
|
222
|
+
const components = ["calcite-flow-item", "calcite-action", "calcite-action-menu", "calcite-icon", "calcite-loader", "calcite-panel", "calcite-popover", "calcite-scrim"];
|
223
|
+
components.forEach(tagName => { switch (tagName) {
|
224
|
+
case "calcite-flow-item":
|
225
|
+
if (!customElements.get(tagName)) {
|
226
|
+
customElements.define(tagName, FlowItem);
|
227
|
+
}
|
228
|
+
break;
|
229
|
+
case "calcite-action":
|
230
|
+
if (!customElements.get(tagName)) {
|
231
|
+
defineCustomElement$7();
|
232
|
+
}
|
233
|
+
break;
|
234
|
+
case "calcite-action-menu":
|
235
|
+
if (!customElements.get(tagName)) {
|
236
|
+
defineCustomElement$6();
|
237
|
+
}
|
238
|
+
break;
|
239
|
+
case "calcite-icon":
|
240
|
+
if (!customElements.get(tagName)) {
|
241
|
+
defineCustomElement$5();
|
242
|
+
}
|
243
|
+
break;
|
244
|
+
case "calcite-loader":
|
245
|
+
if (!customElements.get(tagName)) {
|
246
|
+
defineCustomElement$4();
|
247
|
+
}
|
248
|
+
break;
|
249
|
+
case "calcite-panel":
|
250
|
+
if (!customElements.get(tagName)) {
|
251
|
+
defineCustomElement$3();
|
252
|
+
}
|
253
|
+
break;
|
254
|
+
case "calcite-popover":
|
255
|
+
if (!customElements.get(tagName)) {
|
256
|
+
defineCustomElement$2();
|
257
|
+
}
|
258
|
+
break;
|
259
|
+
case "calcite-scrim":
|
260
|
+
if (!customElements.get(tagName)) {
|
261
|
+
defineCustomElement$1();
|
262
|
+
}
|
263
|
+
break;
|
264
|
+
} });
|
265
|
+
}
|
266
|
+
defineCustomElement();
|
192
267
|
|
193
|
-
export { FlowItem as
|
268
|
+
export { FlowItem as F, defineCustomElement as d };
|