@esri/solutions-components 0.10.23 → 0.10.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{calcite-accordion-item.cjs.entry.js → calcite-accordion_2.cjs.entry.js} +83 -1
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/calcite-block_5.cjs.entry.js +5 -7
- package/dist/cjs/{calcite-carousel.cjs.entry.js → calcite-carousel_2.cjs.entry.js} +52 -18
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
- package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-tree_2.cjs.entry.js} +0 -317
- package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
- package/dist/cjs/{downloadUtils-470f6a27.js → downloadUtils-17f08e5e.js} +235 -160
- package/dist/cjs/feature-list.cjs.entry.js +2 -2
- package/dist/cjs/{index.es-6387d8fb.js → index.es-2518dd41.js} +36 -47
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +106 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +8 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +34 -14
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +59 -29
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/{popupUtils-c38f840d.js → popupUtils-24306e6b.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
- package/dist/cjs/solution-item-accordion.cjs.entry.js +233 -0
- package/dist/cjs/solution-item-icon.cjs.entry.js +328 -0
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/cjs/{utils-9343bd5b.js → utils-62072741.js} +23 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +3 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/layer-table/layer-table.js +3 -3
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +23 -0
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +287 -0
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/solution-item-accordion.html +345 -0
- package/dist/collection/utils/interfaces.ts +11 -0
- package/dist/{esm/calcite-accordion-item.entry.js → components/accordion-item.js} +47 -16
- package/dist/{esm/calcite-accordion.entry.js → components/accordion.js} +36 -10
- package/dist/components/calcite-accordion-item.js +1 -222
- package/dist/components/calcite-accordion.js +1 -110
- package/dist/components/calcite-carousel-item.js +1 -54
- package/dist/components/calcite-carousel.js +1 -517
- package/dist/{esm/calcite-carousel-item.entry.js → components/carousel-item.js} +28 -9
- package/dist/{esm/calcite-carousel.entry.js → components/carousel.js} +76 -19
- package/dist/components/downloadUtils.js +234 -159
- package/dist/components/index.es.js +35 -46
- package/dist/components/instant-apps-app-guide.js +184 -0
- package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
- package/dist/components/instant-apps-control-panel.js +1 -1
- package/dist/components/instant-apps-export-views.js +1 -1
- package/dist/components/instant-apps-export.js +1 -1
- package/dist/components/instant-apps-filter-list2.js +3 -5
- package/dist/components/instant-apps-header2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-classic2.js +8 -3
- package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +2 -2
- package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +2 -2
- package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-layer-element2.js +2 -2
- package/dist/components/instant-apps-interactive-legend-legend-element2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-relationship2.js +2 -2
- package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
- package/dist/components/instant-apps-landing-page.js +1 -1
- package/dist/components/instant-apps-language-switcher.js +3 -3
- package/dist/components/instant-apps-language-translator-item2.js +1 -1
- package/dist/components/instant-apps-language-translator-search2.js +1 -1
- package/dist/components/instant-apps-language-translator2.js +33 -13
- package/dist/components/instant-apps-measurement-tool2.js +2 -2
- package/dist/components/instant-apps-measurement.js +1 -1
- package/dist/components/instant-apps-popover.js +1 -1
- package/dist/components/instant-apps-scoreboard.js +1 -1
- package/dist/components/instant-apps-sign-in2.js +1 -1
- package/dist/components/instant-apps-social-share2.js +2 -2
- package/dist/components/instant-apps-splash.js +1 -1
- package/dist/components/instant-apps-time-filter.js +59 -29
- package/dist/components/layer-table2.js +3 -3
- package/dist/components/solution-item-accordion.d.ts +11 -0
- package/dist/components/solution-item-accordion.js +336 -0
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/components/utils4.js +22 -1
- package/dist/esm/{ExpandToggle-b5147279.js → ExpandToggle-076b4360.js} +1 -1
- package/dist/esm/{ar-e0e64e78.js → ar-3e3c0d14.js} +8 -8
- package/dist/esm/{bg-d2d8dbe0.js → bg-a872736b.js} +8 -8
- package/dist/esm/{bs-d883901d.js → bs-fe545c28.js} +8 -8
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/{ca-064729ad.js → ca-8a2abdaa.js} +8 -8
- package/dist/esm/calcite-accordion_2.entry.js +279 -0
- package/dist/esm/calcite-action-bar.entry.js +4 -4
- package/dist/esm/calcite-action-group.entry.js +3 -3
- package/dist/esm/calcite-action-menu_2.entry.js +3 -3
- package/dist/esm/calcite-action-pad_2.entry.js +6 -6
- package/dist/esm/calcite-action_2.entry.js +6 -6
- package/dist/esm/calcite-alert_5.entry.js +6 -6
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +3 -3
- package/dist/esm/calcite-block_5.entry.js +14 -16
- package/dist/esm/calcite-button.entry.js +5 -5
- package/dist/esm/calcite-card-group.entry.js +1 -1
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-carousel_2.entry.js +500 -0
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip-group.entry.js +1 -1
- package/dist/esm/calcite-chip_2.entry.js +4 -4
- 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_3.entry.js +8 -8
- package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
- package/dist/esm/calcite-dialog.entry.js +5 -5
- package/dist/esm/calcite-dropdown_2.entry.js +3 -3
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter_5.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +4 -4
- package/dist/esm/calcite-icon_2.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +4 -4
- 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-66e7a9f3.js → calcite-input-time-picker-2fbabd28.js} +56 -56
- 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_3.entry.js +5 -5
- package/dist/esm/calcite-navigation.entry.js +1 -1
- package/dist/esm/calcite-notice.entry.js +4 -4
- package/dist/esm/calcite-option_2.entry.js +3 -3
- package/dist/esm/calcite-pagination.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-group.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/calcite-shell-center-row.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +10 -10
- 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-group.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/{calcite-tree_3.entry.js → calcite-tree_2.entry.js} +3 -319
- package/dist/esm/card-manager_3.entry.js +4 -4
- package/dist/esm/{cs-3751e560.js → cs-f9bfb6dd.js} +8 -8
- package/dist/esm/{da-227f8ad5.js → da-0528de8d.js} +8 -8
- package/dist/esm/{date-87a67cb4.js → date-f0c83d13.js} +1 -1
- package/dist/esm/{de-at-66232b80.js → de-at-c7c45014.js} +8 -8
- package/dist/esm/{de-ch-1264ed4c.js → de-ch-e9338f1b.js} +8 -8
- package/dist/esm/{de-a5d2b25b.js → de-d149b983.js} +8 -8
- package/dist/esm/{dom-63d2d41c.js → dom-42a638f6.js} +1 -1
- package/dist/esm/{downloadUtils-d1f791c5.js → downloadUtils-4a34c86a.js} +235 -160
- package/dist/esm/{el-f5bf7ca3.js → el-d86fff8e.js} +8 -8
- package/dist/esm/{en-au-2ac8f62e.js → en-au-e722c119.js} +8 -8
- package/dist/esm/{en-ca-a1602b49.js → en-ca-8f38a3b8.js} +8 -8
- package/dist/esm/{en-gb-28354b2e.js → en-gb-24dd064c.js} +8 -8
- package/dist/esm/{es-feb7aad2.js → es-39a9e113.js} +8 -8
- package/dist/esm/{es-mx-5d64f899.js → es-mx-fa0cbd42.js} +8 -8
- package/dist/esm/{et-173d2f49.js → et-51eabe80.js} +8 -8
- package/dist/esm/feature-list.entry.js +2 -2
- package/dist/esm/{fi-ff9bb719.js → fi-64ca8666.js} +8 -8
- package/dist/esm/{floating-ui-c7ae81d9.js → floating-ui-a14930d0.js} +1 -1
- package/dist/esm/{focusTrapComponent-833b1234.js → focusTrapComponent-c1def619.js} +1 -1
- package/dist/esm/{form-08e1bcb7.js → form-46367137.js} +1 -1
- package/dist/esm/{fr-ch-491f1abe.js → fr-ch-6fe6a6e6.js} +8 -8
- package/dist/esm/{fr-e3af6835.js → fr-e20306bf.js} +8 -8
- package/dist/esm/{he-47aa8dde.js → he-32ec6cce.js} +8 -8
- package/dist/esm/{hi-1700df3e.js → hi-da2b085c.js} +8 -8
- package/dist/esm/{hr-68b828f5.js → hr-5a52222a.js} +8 -8
- package/dist/esm/{hu-df6a8f29.js → hu-d3bbacef.js} +8 -8
- package/dist/esm/{id-8091582d.js → id-dcdac250.js} +8 -8
- package/dist/esm/{index.es-decad494.js → index.es-5f44061b.js} +36 -47
- package/dist/esm/instant-apps-app-guide.entry.js +102 -0
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-export-views.entry.js +1 -1
- package/dist/esm/instant-apps-export.entry.js +1 -1
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +8 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +7 -7
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +1 -1
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
- package/dist/esm/instant-apps-language-translator.entry.js +34 -14
- package/dist/esm/instant-apps-measurement.entry.js +1 -1
- package/dist/esm/instant-apps-popover.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
- package/dist/esm/instant-apps-sign-in.entry.js +1 -1
- package/dist/esm/instant-apps-splash.entry.js +1 -1
- package/dist/esm/instant-apps-time-filter.entry.js +59 -29
- package/dist/esm/{it-1f5e149d.js → it-360f430f.js} +8 -8
- package/dist/esm/{it-ch-bf7fcac6.js → it-ch-0ec68776.js} +8 -8
- package/dist/esm/{ja-a5117166.js → ja-a95cae4c.js} +8 -8
- package/dist/esm/{ko-9d7a9e79.js → ko-f0edd78f.js} +8 -8
- package/dist/esm/{label-4c4e06d6.js → label-f2ec1100.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-4441c976.js → locale-a53a7bc6.js} +1 -1
- package/dist/esm/{lt-2e1c53de.js → lt-bff432da.js} +8 -8
- package/dist/esm/{lv-ca1ba866.js → lv-0c7edf32.js} +8 -8
- package/dist/esm/map-select-tools_3.entry.js +1 -1
- package/dist/esm/{mk-421d0d41.js → mk-876446b8.js} +8 -8
- package/dist/esm/{nb-5b103e32.js → nb-25537e87.js} +8 -8
- package/dist/esm/{nl-eac33461.js → nl-8be84da3.js} +8 -8
- package/dist/esm/{openCloseComponent-c8c8645b.js → openCloseComponent-9d44719e.js} +1 -1
- package/dist/esm/{pl-03531ccb.js → pl-8d4fe5a7.js} +8 -8
- package/dist/esm/{popupUtils-4e0a103f.js → popupUtils-3ccb86bd.js} +1 -1
- package/dist/esm/{pt-br-dee45728.js → pt-br-3015e62b.js} +8 -8
- package/dist/esm/{pt-b5d8bffc.js → pt-dcc887b4.js} +8 -8
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/{ro-df6cb584.js → ro-b973c654.js} +8 -8
- package/dist/esm/{ru-e7c02faa.js → ru-59a7f10b.js} +8 -8
- package/dist/esm/{shared-list-render-cadae2eb.js → shared-list-render-097ee366.js} +1 -1
- package/dist/esm/{sk-cae387d2.js → sk-a00e5b97.js} +8 -8
- package/dist/esm/{sl-2892ad87.js → sl-55c8a748.js} +8 -8
- package/dist/esm/solution-contents_3.entry.js +1 -1
- package/dist/esm/solution-item-accordion.entry.js +229 -0
- package/dist/esm/solution-item-icon.entry.js +324 -0
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/esm/{sr-11e6839f.js → sr-e4fc3293.js} +8 -8
- package/dist/esm/{sv-fd5c6ca5.js → sv-f0782d2a.js} +8 -8
- package/dist/esm/{t9n-b7ea1a61.js → t9n-b33c486a.js} +1 -1
- package/dist/esm/{th-170cf6b1.js → th-d2abb499.js} +8 -8
- package/dist/esm/{time-a7f1020b.js → time-f99aceff.js} +1 -1
- package/dist/esm/{tr-1d6ca382.js → tr-512413e1.js} +8 -8
- package/dist/esm/{uk-35eec84e.js → uk-79fe44f1.js} +8 -8
- package/dist/esm/{utils-6493bff2.js → utils-6f13e31e.js} +22 -1
- package/dist/esm/{utils-62514064.js → utils-d67a6d71.js} +1 -1
- package/dist/esm/{vi-2713ee26.js → vi-53b51e7a.js} +8 -8
- package/dist/esm/{zh-cn-ed066014.js → zh-cn-7d19a53a.js} +8 -8
- package/dist/esm/{zh-hk-a118dced.js → zh-hk-4fb6c3eb.js} +8 -8
- package/dist/esm/{zh-tw-c9bbf220.js → zh-tw-6a5d2c2b.js} +8 -8
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +75 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +16 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +3 -0
- package/dist/solutions-components/demos/solution-item-accordion.html +345 -0
- package/dist/solutions-components/p-022d51db.js +6 -0
- package/dist/solutions-components/{p-cd5a9034.entry.js → p-030e5077.entry.js} +1 -1
- package/dist/solutions-components/{p-92ba99ff.js → p-03f3cf77.js} +1 -1
- package/dist/solutions-components/{p-fb3e0eae.js → p-03ffbb1b.js} +1 -1
- package/dist/solutions-components/{p-ee9b7fab.js → p-0a1a9ff1.js} +1 -1
- package/dist/solutions-components/p-0a64be62.js +6 -0
- package/dist/solutions-components/{p-bb0f549a.js → p-0ded20f0.js} +1 -1
- package/dist/solutions-components/{p-f6f2018a.js → p-12be6545.js} +1 -1
- package/dist/solutions-components/{p-da80cfbc.entry.js → p-1692858b.entry.js} +1 -1
- package/dist/solutions-components/{p-c40b0ec5.js → p-174aa4da.js} +1 -1
- package/dist/solutions-components/{p-222e0445.entry.js → p-1826154b.entry.js} +1 -1
- package/dist/solutions-components/{p-8c6a301f.entry.js → p-18307307.entry.js} +2 -2
- package/dist/solutions-components/{p-c163b67f.js → p-1a047db6.js} +1 -1
- package/dist/solutions-components/{p-5067d77e.entry.js → p-1c5f17cb.entry.js} +1 -1
- package/dist/solutions-components/{p-01dae909.js → p-1df2d94d.js} +1 -1
- package/dist/solutions-components/{p-64bf4d2e.entry.js → p-216ae423.entry.js} +1 -1
- package/dist/solutions-components/{p-7586e1de.entry.js → p-219f0273.entry.js} +1 -1
- package/dist/solutions-components/{p-ae8ed06a.entry.js → p-283e344a.entry.js} +1 -1
- package/dist/solutions-components/{p-691cb5f4.js → p-290dee0b.js} +2 -2
- package/dist/solutions-components/{p-91b7a7dc.entry.js → p-2a059548.entry.js} +1 -1
- package/dist/solutions-components/{p-8da5aeea.entry.js → p-2bb9b365.entry.js} +1 -1
- package/dist/solutions-components/{p-7c854814.js → p-2caf1f94.js} +2 -2
- package/dist/solutions-components/{p-919e9de7.entry.js → p-2cb47eff.entry.js} +2 -2
- package/dist/solutions-components/{p-e5736093.entry.js → p-2d2b06db.entry.js} +1 -1
- package/dist/solutions-components/{p-de8121a4.js → p-2d2dcf8a.js} +1 -1
- package/dist/solutions-components/{p-9bc84681.js → p-2d5e428d.js} +1 -1
- package/dist/solutions-components/{p-508b2b7b.js → p-2e7d005f.js} +1 -1
- package/dist/solutions-components/{p-bc6cf10f.entry.js → p-3016bf77.entry.js} +1 -1
- package/dist/solutions-components/{p-08d1cc1f.js → p-3244e59a.js} +1 -1
- package/dist/solutions-components/{p-66b01781.js → p-365169c2.js} +2 -2
- package/dist/solutions-components/{p-245c35ce.js → p-372e4640.js} +1 -1
- package/dist/solutions-components/p-374d0fdc.entry.js +6 -0
- package/dist/solutions-components/p-39e9ae5c.entry.js +6 -0
- package/dist/solutions-components/p-3d6f8c9e.entry.js +29 -0
- package/dist/solutions-components/{p-458a3f01.entry.js → p-3de85f54.entry.js} +1 -1
- package/dist/solutions-components/{p-c7046172.entry.js → p-3e9a487b.entry.js} +2 -2
- package/dist/solutions-components/{p-7b2ef872.entry.js → p-42710186.entry.js} +1 -1
- package/dist/solutions-components/{p-c5facecd.entry.js → p-44270ade.entry.js} +1 -1
- package/dist/solutions-components/{p-d1cc620f.entry.js → p-47398e76.entry.js} +1 -1
- package/dist/solutions-components/{p-d784f756.entry.js → p-4881885b.entry.js} +3 -3
- package/dist/solutions-components/{p-5a76a4c8.entry.js → p-496b7a1f.entry.js} +1 -1
- package/dist/solutions-components/{p-9db30b19.entry.js → p-4aafcac7.entry.js} +1 -1
- package/dist/solutions-components/{p-2aa44a02.entry.js → p-4cfe3d80.entry.js} +2 -2
- package/dist/solutions-components/{p-cf9e6515.entry.js → p-4feaf7db.entry.js} +2 -2
- package/dist/solutions-components/{p-a37d1b17.entry.js → p-50323300.entry.js} +1 -1
- package/dist/solutions-components/{p-5f705984.js → p-50ab7903.js} +1 -1
- package/dist/solutions-components/{p-960a4993.entry.js → p-50c2d3e5.entry.js} +1 -1
- package/dist/solutions-components/{p-712873f0.js → p-50e2a33b.js} +1 -1
- package/dist/solutions-components/{p-54b7e680.js → p-51abfcb7.js} +1 -1
- package/dist/solutions-components/{p-25b5ffea.js → p-524a996f.js} +1 -1
- package/dist/solutions-components/{p-02ea30d1.entry.js → p-54879c84.entry.js} +1 -1
- package/dist/solutions-components/{p-23dd68de.entry.js → p-5550f101.entry.js} +1 -1
- package/dist/solutions-components/{p-040b6e44.entry.js → p-5714f5ca.entry.js} +1 -1
- package/dist/solutions-components/{p-52f19286.entry.js → p-57be85fb.entry.js} +1 -1
- package/dist/solutions-components/p-58d8ee47.js +6 -0
- package/dist/solutions-components/{p-0b6e5486.js → p-5959580d.js} +1 -1
- package/dist/solutions-components/{p-9524e5e4.js → p-59695ccc.js} +1 -1
- package/dist/solutions-components/{p-87f928a5.entry.js → p-59b3e946.entry.js} +2 -2
- package/dist/solutions-components/{p-6b0fa1eb.entry.js → p-5a997dc9.entry.js} +1 -1
- package/dist/solutions-components/{p-29a09798.js → p-5ba9df82.js} +2 -2
- package/dist/solutions-components/{p-9fa7a7ad.entry.js → p-5cef36d6.entry.js} +1 -1
- package/dist/solutions-components/{p-732bb88c.entry.js → p-5d398871.entry.js} +1 -1
- package/dist/solutions-components/{p-7fce703f.entry.js → p-5d58d70c.entry.js} +1 -1
- package/dist/solutions-components/{p-0e851a4b.js → p-62dadb51.js} +1 -1
- package/dist/solutions-components/{p-981ab7fc.entry.js → p-62ed6a7a.entry.js} +1 -1
- package/dist/solutions-components/{p-49bbe45e.js → p-63f9004a.js} +1 -1
- package/dist/solutions-components/{p-40f5df15.entry.js → p-64906bb5.entry.js} +2 -2
- package/dist/solutions-components/{p-7ae41cd8.js → p-65fe42ef.js} +1 -1
- package/dist/solutions-components/{p-c25e8c35.js → p-66cee72b.js} +1 -1
- package/dist/solutions-components/{p-a85fd786.entry.js → p-6b1d1546.entry.js} +1 -1
- package/dist/solutions-components/{p-0dc73313.js → p-6b21efce.js} +1 -1
- package/dist/solutions-components/{p-79f78acc.entry.js → p-6cf1225a.entry.js} +1 -1
- package/dist/solutions-components/{p-6c080ac7.entry.js → p-6d4db88b.entry.js} +8 -2
- package/dist/solutions-components/{p-b76ed1c7.entry.js → p-6d894d47.entry.js} +2 -2
- package/dist/solutions-components/{p-26a3ba5e.entry.js → p-6e0439fa.entry.js} +1 -1
- package/dist/solutions-components/p-6e118057.js +11 -0
- package/dist/solutions-components/{p-267ef1b8.entry.js → p-6f594492.entry.js} +2 -2
- package/dist/solutions-components/{p-30903105.entry.js → p-70f2898c.entry.js} +1 -1
- package/dist/solutions-components/p-72bce122.entry.js +6 -0
- package/dist/solutions-components/{p-67c34d05.entry.js → p-72ee63b0.entry.js} +1 -1
- package/dist/solutions-components/{p-e4ef6f49.js → p-754a5334.js} +1 -1
- package/dist/solutions-components/{p-2264e8d5.entry.js → p-76efd680.entry.js} +1 -1
- package/dist/solutions-components/{p-5a3cab12.entry.js → p-7758a533.entry.js} +1 -1
- package/dist/solutions-components/{p-cd6eee11.js → p-7a820f38.js} +1 -1
- package/dist/solutions-components/{p-bae65813.entry.js → p-7b122a6e.entry.js} +1 -1
- package/dist/solutions-components/{p-1a06bf01.js → p-7e762fa7.js} +1 -1
- package/dist/solutions-components/{p-004d601f.entry.js → p-7f147e8b.entry.js} +1 -1
- package/dist/solutions-components/{p-a79f4c52.entry.js → p-82185ebf.entry.js} +1 -1
- package/dist/solutions-components/{p-d47abf9b.entry.js → p-827037ce.entry.js} +1 -1
- package/dist/solutions-components/{p-cb07016a.entry.js → p-88c6ece3.entry.js} +2 -2
- package/dist/solutions-components/{p-94ae78d6.js → p-8a683cdc.js} +1 -1
- package/dist/solutions-components/{p-304cef31.js → p-8d453a3a.js} +3 -3
- package/dist/solutions-components/{p-886fbbe3.entry.js → p-8ef003ec.entry.js} +1 -1
- package/dist/solutions-components/p-8fb651e5.entry.js +6 -0
- package/dist/solutions-components/{p-b8ce880d.js → p-92008b90.js} +1 -1
- package/dist/solutions-components/{p-1490c752.js → p-926664d9.js} +1 -1
- package/dist/solutions-components/{p-4e7aa926.js → p-94397114.js} +1 -1
- package/dist/solutions-components/{p-b3e8da19.entry.js → p-94805d7f.entry.js} +1 -1
- package/dist/solutions-components/p-94c518ff.entry.js +6 -0
- package/dist/solutions-components/{p-936037e4.js → p-97aa6766.js} +1 -1
- package/dist/solutions-components/{p-8bb2c169.js → p-984ce9da.js} +1 -1
- package/dist/solutions-components/{p-9c5f4347.js → p-99e6cb74.js} +1 -1
- package/dist/solutions-components/{p-de3ee7a6.entry.js → p-9d12b3f1.entry.js} +1 -1
- package/dist/solutions-components/{p-4fe5e9c3.entry.js → p-9ee72dba.entry.js} +1 -1
- package/dist/solutions-components/{p-dfeb6a2e.entry.js → p-9f3aebd0.entry.js} +1 -1
- package/dist/solutions-components/{p-a5e64f6b.entry.js → p-a1093fee.entry.js} +1 -1
- package/dist/solutions-components/{p-8537518d.entry.js → p-a2a2c6a2.entry.js} +1 -1
- package/dist/solutions-components/{p-c4953b5e.entry.js → p-a2dbc38b.entry.js} +1 -1
- package/dist/solutions-components/{p-6319ca20.js → p-a4255b97.js} +1 -1
- package/dist/solutions-components/{p-b8f33145.js → p-a4e73041.js} +1 -1
- package/dist/solutions-components/{p-1017609e.js → p-a5fc6ab7.js} +2 -2
- package/dist/solutions-components/{p-d75ef009.entry.js → p-a60a2c8b.entry.js} +1 -1
- package/dist/solutions-components/{p-254f6e23.entry.js → p-a6a0df5c.entry.js} +1 -1
- package/dist/solutions-components/{p-33db098c.js → p-a7395caf.js} +1 -1
- package/dist/solutions-components/{p-eb2859d6.js → p-a7761371.js} +1 -1
- package/dist/solutions-components/{p-e74bc7b3.js → p-a8b70e9a.js} +1 -1
- package/dist/solutions-components/{p-fedbf657.entry.js → p-a8d83bc3.entry.js} +1 -1
- package/dist/solutions-components/p-aa36f70e.entry.js +6 -0
- package/dist/solutions-components/{p-c0d25be5.entry.js → p-ac7868a6.entry.js} +1 -1
- package/dist/solutions-components/{p-04294b8e.js → p-ac92679c.js} +1 -1
- package/dist/solutions-components/{p-e0ee0556.entry.js → p-ad441ffa.entry.js} +1 -1
- package/dist/solutions-components/{p-ac11cf8f.entry.js → p-add869b6.entry.js} +1 -1
- package/dist/solutions-components/{p-b96233e3.entry.js → p-af3e49d8.entry.js} +1 -1
- package/dist/solutions-components/{p-c7eaade6.entry.js → p-b310402f.entry.js} +1 -1
- package/dist/solutions-components/{p-996daf05.entry.js → p-b4d708cd.entry.js} +1 -1
- package/dist/solutions-components/{p-5f7c1e49.js → p-b7e63ac2.js} +1 -1
- package/dist/solutions-components/{p-a4e35c2d.entry.js → p-b9b2f7a9.entry.js} +1 -1
- package/dist/solutions-components/{p-3c1ecf85.entry.js → p-bb040eab.entry.js} +1 -1
- package/dist/solutions-components/{p-53b5a39e.js → p-bcc2d4ff.js} +1 -1
- package/dist/solutions-components/{p-66afdfdd.entry.js → p-bcce9d28.entry.js} +1 -1
- package/dist/solutions-components/{p-8fb06a85.entry.js → p-c60c5991.entry.js} +1 -1
- package/dist/solutions-components/{p-062f4457.js → p-c6ef8cca.js} +1 -1
- package/dist/solutions-components/{p-1ef6a1c2.entry.js → p-c718930a.entry.js} +1 -1
- package/dist/solutions-components/{p-270ead49.js → p-c94b0e1a.js} +1 -1
- package/dist/solutions-components/{p-5440c8dd.js → p-cba6953c.js} +1 -1
- package/dist/solutions-components/{p-976ad17d.entry.js → p-d00ca970.entry.js} +1 -1
- package/dist/solutions-components/p-d2033cfa.entry.js +6 -0
- package/dist/solutions-components/{p-ca6055a3.js → p-d2ee8b82.js} +1 -1
- package/dist/solutions-components/p-d4ab82e3.entry.js +17 -0
- package/dist/solutions-components/{p-798b9928.entry.js → p-d7711a84.entry.js} +1 -1
- package/dist/solutions-components/{p-4c179300.entry.js → p-d7871f0d.entry.js} +1 -1
- package/dist/solutions-components/{p-f7bc99fb.entry.js → p-dc264663.entry.js} +3 -3
- package/dist/solutions-components/{p-aa68a36e.entry.js → p-dcaae1e9.entry.js} +2 -2
- package/dist/solutions-components/{p-770a0e12.js → p-dcebc541.js} +1 -1
- package/dist/solutions-components/{p-9277a339.entry.js → p-de3719f2.entry.js} +1 -1
- package/dist/solutions-components/{p-74fbad1c.js → p-dec62e5d.js} +30 -31
- package/dist/solutions-components/{p-aa341d46.entry.js → p-e068dfb9.entry.js} +1 -1
- package/dist/solutions-components/p-e0b65115.js +11 -0
- package/dist/solutions-components/{p-550da58b.js → p-e0fd4006.js} +1 -1
- package/dist/solutions-components/{p-8614d1a0.entry.js → p-e26cf5f5.entry.js} +1 -1
- package/dist/solutions-components/{p-0d6b3f44.js → p-e6798e38.js} +1 -1
- package/dist/solutions-components/p-e8aa44e2.entry.js +6 -0
- package/dist/solutions-components/{p-19b466d0.js → p-ea8d2558.js} +1 -1
- package/dist/solutions-components/{p-fcd33b4f.js → p-ef187f1d.js} +1 -1
- package/dist/solutions-components/{p-b4d92441.entry.js → p-efca5cea.entry.js} +1 -1
- package/dist/solutions-components/{p-40175313.entry.js → p-f4360468.entry.js} +1 -1
- package/dist/solutions-components/{p-80f49acc.js → p-f4d7f757.js} +1 -1
- package/dist/solutions-components/{p-95c3b305.entry.js → p-f72fa647.entry.js} +1 -1
- package/dist/solutions-components/{p-347d9ce0.js → p-f7e45464.js} +1 -1
- package/dist/solutions-components/{p-990d8b4b.js → p-f7ffcd95.js} +1 -1
- package/dist/solutions-components/{p-9560a1fd.entry.js → p-fa7c50f8.entry.js} +1 -1
- package/dist/solutions-components/{p-707ee1d1.entry.js → p-fd9fb1ba.entry.js} +2 -2
- package/dist/solutions-components/{p-986ff43b.entry.js → p-fdb201ff.entry.js} +1 -1
- package/dist/solutions-components/{p-924ec704.js → p-fe0add26.js} +1 -1
- package/dist/solutions-components/{p-54a9017c.entry.js → p-ff105078.entry.js} +1 -1
- package/dist/solutions-components/{p-fa68f43a.entry.js → p-ff639390.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +11 -0
- package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +117 -0
- package/dist/types/components.d.ts +23 -2
- package/dist/types/preact.d.ts +4 -0
- package/dist/types/utils/interfaces.d.ts +10 -0
- package/package.json +7 -7
- package/dist/cjs/calcite-accordion.cjs.entry.js +0 -95
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +0 -46
- package/dist/solutions-components/p-2007eaa4.entry.js +0 -6
- package/dist/solutions-components/p-23ce9afa.entry.js +0 -11
- package/dist/solutions-components/p-27a25ece.entry.js +0 -6
- package/dist/solutions-components/p-2d17790c.js +0 -6
- package/dist/solutions-components/p-2e06ec97.js +0 -6
- package/dist/solutions-components/p-3a47fde6.entry.js +0 -11
- package/dist/solutions-components/p-41c34a67.js +0 -6
- package/dist/solutions-components/p-79f5a8be.js +0 -11
- package/dist/solutions-components/p-93d8ef73.entry.js +0 -6
- package/dist/solutions-components/p-a0b62b46.entry.js +0 -6
- package/dist/solutions-components/p-aef41a6d.entry.js +0 -11
- package/dist/solutions-components/p-b8b78283.entry.js +0 -29
- package/dist/solutions-components/p-d36878db.js +0 -11
- package/dist/solutions-components/p-fd79adec.entry.js +0 -6
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as e,g as s}from"./p-6eb37ed2.js";import{n as a}from"./p-64a34d92.js";import{i as c,c as o,d as h}from"./p-
|
6
|
+
import{r as t,c as i,h as e,g as s}from"./p-6eb37ed2.js";import{n as a}from"./p-64a34d92.js";import{i as c,c as o,d as h}from"./p-8d453a3a.js";import{u as n,c as r,s as l,d}from"./p-a5fc6ab7.js";import{a as u,p as b,i as p,b as m,g as f,c as k,d as v,e as w,h as g,j as y,m as x}from"./p-12be6545.js";import{g as S}from"./p-27d462c0.js";import{c as D,s as $,a as I}from"./p-3e828614.js";import{d as z,g as A}from"./p-d9e930c8.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1c249530.js";import"./p-4b9b7778.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
@@ -3,9 +3,9 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{
|
6
|
+
import{p as n,q as t,a as e}from"./p-66cee72b.js";import{c}from"./p-27d462c0.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
10
|
* v2.12.2
|
11
|
-
*/const o="calciteInternalLabelClick",s="calciteInternalLabelConnected",
|
11
|
+
*/const o="calciteInternalLabelClick",s="calciteInternalLabelConnected",a="calciteInternalLabelDisconnected",i="calcite-label",r=new WeakMap,u=new WeakMap,f=new WeakMap,l=new WeakMap,m=new Set,d=n=>{const{id:c}=n,o=c&&t(n,{selector:`${i}[for="${c}"]`});if(o)return o;const s=e(n,i);return!s||function(n,t){let e;const c="custom-element-ancestor-check",o=c=>{c.stopImmediatePropagation();const o=c.composedPath();e=o.slice(o.indexOf(t),o.indexOf(n))};n.addEventListener(c,o,{once:!0}),t.dispatchEvent(new CustomEvent(c,{composed:!0,bubbles:!0})),n.removeEventListener(c,o);return e.filter((e=>e!==t&&e!==n)).filter((n=>n.tagName?.includes("-"))).length>0}(s,n)?null:s};function p(n){if(!n)return;const t=d(n.el);if(u.has(t)&&t===n.labelEl||!t&&m.has(n))return;const e=W.bind(n);if(t){n.labelEl=t;const c=r.get(t)||[];c.push(n),r.set(t,c.sort(h)),u.has(n.labelEl)||(u.set(n.labelEl,w),n.labelEl.addEventListener(o,w)),m.delete(n),document.removeEventListener(s,f.get(n)),l.set(n,e),document.addEventListener(a,e)}else m.has(n)||(e(),document.removeEventListener(a,l.get(n)))}function b(n){if(!n)return;if(m.delete(n),document.removeEventListener(s,f.get(n)),document.removeEventListener(a,l.get(n)),f.delete(n),l.delete(n),!n.labelEl)return;const t=r.get(n.labelEl);1===t.length&&(n.labelEl.removeEventListener(o,u.get(n.labelEl)),u.delete(n.labelEl)),r.set(n.labelEl,t.filter((t=>t!==n)).sort(h)),n.labelEl=null}function h(t,e){return n(t.el,e.el)?-1:1}function k(n){return n.label||n.labelEl?.textContent?.trim()||""}function w(n){const t=n.detail.sourceEvent.target,e=r.get(this),c=e.find((n=>n.el===t));if(e.includes(c))return;const o=e[0];o.disabled||o.onLabelClick(n)}function M(){m.has(this)&&p(this)}function W(){m.add(this);const n=f.get(this)||M.bind(this);f.set(this,n),document.addEventListener(s,n)}async function C(n){if(await c(n),r.has(n))return;const t=n.ownerDocument?.getElementById(n.for);t&&requestAnimationFrame((()=>{for(const n of m)if(n.el===t){p(n);break}}))}export{C as a,a as b,p as c,b as d,k as g,s as l}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as i,c as e,h as t,H as a,g as n}from"./p-6eb37ed2.js";import{
|
6
|
+
import{r as i,c as e,h as t,H as a,g as n}from"./p-6eb37ed2.js";import{u as s,h as o,f as c}from"./p-66cee72b.js";import{d as l,a as h,c as r,u as d}from"./p-174aa4da.js";import{s as p,a as m,c as b}from"./p-3e828614.js";import{c as x}from"./p-1c249530.js";import{o as v}from"./p-6e118057.js";import{C as g}from"./p-8bfa18b7.js";import"./p-aaa56cbf.js";import"./p-0ef9d36b.js";import"./p-4b9b7778.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
10
|
* v2.12.2
|
11
|
-
*/const f="container",w="container--open",y="content",u="container--embedded",k=class{constructor(t){i(this,t),this.calciteSheetBeforeClose=e(this,"calciteSheetBeforeClose",6),this.calciteSheetClose=e(this,"calciteSheetClose",6),this.calciteSheetBeforeOpen=e(this,"calciteSheetBeforeOpen",6),this.calciteSheetOpen=e(this,"calciteSheetOpen",6),this.openTransitionProp="opacity",this.ignoreOpenChange=!1,this.mutationObserver=x("mutation",(()=>this.handleMutationObserver())),this.setContentId=i=>{this.contentId=s(i)},this.setTransitionEl=i=>{this.transitionEl=i},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteSheetOpen",this.openEnd)},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeSheet=async()=>{if(this.beforeClose)try{await this.beforeClose(this.el)}catch(i){return void requestAnimationFrame((()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1}))}this.opened=!1,this.removeOverflowHiddenClass()},this.beforeClose=void 0,this.displayMode="overlay",this.embedded=!1,this.escapeDisabled=!1,this.heightScale="m",this.focusTrapDisabled=!1,this.label=void 0,this.open=!1,this.opened=!1,this.outsideCloseDisabled=!1,this.position="inline-start",this.widthScale="m"}handleFocusTrapDisabled(i){this.open&&(i?l(this):h(this))}toggleSheet(i){this.ignoreOpenChange||(i?this.openSheet():this.closeSheet())}handleOpenedChange(){v(this)}async componentWillLoad(){p(this),this.open&&requestAnimationFrame((()=>this.openSheet()))}componentDidLoad(){m(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),r(this)}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),l(this),this.embedded=!1}render(){const i=o(this.el);return t(a,{key:"682efb5e9586947743259232dfed9a90ef44b4c2","aria-describedby":this.contentId,"aria-label":this.label,"aria-modal":"true",role:"dialog"},t("div",{key:"ed1647113f217d7fe34ec91fdbc7fa60310c33a2",class:{[f]:!0,[w]:this.opened,[u]:this.embedded,[g.rtl]:"rtl"===i},ref:this.setTransitionEl},t("calcite-scrim",{key:"a5dd8c8d81bb5d5536a43113f09120dfb708cf14",class:"scrim",onClick:this.handleOutsideClose}),t("div",{key:"350faeae89f75b8e52079cd68c28ee66c1162762",class:{[y]:!0},ref:this.setContentId},t("slot",{key:"8a0e9e782232088a62efa78881f6f165e2d01d4e"}))))}handleEscape(i){!this.open||this.escapeDisabled||"Escape"!==i.key||i.defaultPrevented||(this.open=!1,i.preventDefault())}async setFocus(){await b(this),c(this.el)}async updateFocusTrapElements(){d(this)}onBeforeOpen(){this.calciteSheetBeforeOpen.emit()}onOpen(){this.calciteSheetOpen.emit(),h(this)}onBeforeClose(){this.calciteSheetBeforeClose.emit()}onClose(){this.calciteSheetClose.emit(),l(this)}openSheet(){this.el.addEventListener("calciteSheetOpen",this.openEnd),this.opened=!0,this.embedded||(this.initialOverflowCSS=document.documentElement.style.overflow,document.documentElement.style.setProperty("overflow","hidden"))}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",this.initialOverflowCSS)}handleMutationObserver(){this.updateFocusTrapElements()}get el(){return n(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],open:["toggleSheet"],opened:["handleOpenedChange"]}}};k.style=":host{position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;visibility:hidden !important;--calcite-sheet-scrim-background-internal:rgba(0, 0, 0, 0.85);--calcite-scrim-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08), 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04)}.container{visibility:hidden;position:fixed;z-index:var(--calcite-z-index-overlay);display:flex;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal:translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal:translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([display-mode=overlay][position=inline-start]) .container{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .container{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .container{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .container{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .container,:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .container,:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([display-mode=float][position^=inline]) .container{block-size:calc(100% - 1.5rem);max-block-size:calc(100% - 1.5rem);min-block-size:calc(100% - 1.5rem)}:host([display-mode=float][position^=block]) .container{inline-size:calc(100% - 1.5rem);max-inline-size:calc(100% - 1.5rem);min-inline-size:calc(100% - 1.5rem)}:host([position^=inline][width-scale=s]){--calcite-sheet-width-internal:var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 260px)}:host([position^=inline][width-scale=m]){--calcite-sheet-width-internal:var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 300px)}:host([position^=inline][width-scale=l]){--calcite-sheet-width-internal:var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 340px)}:host([position^=block][height-scale=s]){--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 30vh)}:host([position^=block][height-scale=m]){--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 50vh)}:host([position^=block][height-scale=l]){--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background:var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}:host([opened]){visibility:visible !important}.content{position:relative;z-index:var(--calcite-z-index-modal);box-sizing:border-box;display:block;max-inline-size:100%;overflow-y:hidden;padding:0px;background-color:var(--calcite-color-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transform:var(--calcite-sheet-hidden-position-internal)}.container--open .content{transform:translate3d(0, 0, 0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container{border-radius:0.25rem}:host([display-mode=float]) .container{padding:0.75rem}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}:host([position=inline-start]) .content,:host([position=inline-end]) .content{block-size:100%}:host([position=block-start]) .content,:host([position=block-end]) .content{inline-size:100%}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}";export{k as calcite_sheet}
|
11
|
+
*/const w="container",f="container--open",y="content",u="container--embedded",k=class{constructor(t){i(this,t),this.calciteSheetBeforeClose=e(this,"calciteSheetBeforeClose",6),this.calciteSheetClose=e(this,"calciteSheetClose",6),this.calciteSheetBeforeOpen=e(this,"calciteSheetBeforeOpen",6),this.calciteSheetOpen=e(this,"calciteSheetOpen",6),this.openTransitionProp="opacity",this.ignoreOpenChange=!1,this.mutationObserver=x("mutation",(()=>this.handleMutationObserver())),this.setContentId=i=>{this.contentId=s(i)},this.setTransitionEl=i=>{this.transitionEl=i},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteSheetOpen",this.openEnd)},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeSheet=async()=>{if(this.beforeClose)try{await this.beforeClose(this.el)}catch(i){return void requestAnimationFrame((()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1}))}this.opened=!1,this.removeOverflowHiddenClass()},this.beforeClose=void 0,this.displayMode="overlay",this.embedded=!1,this.escapeDisabled=!1,this.heightScale="m",this.focusTrapDisabled=!1,this.label=void 0,this.open=!1,this.opened=!1,this.outsideCloseDisabled=!1,this.position="inline-start",this.widthScale="m"}handleFocusTrapDisabled(i){this.open&&(i?l(this):h(this))}toggleSheet(i){this.ignoreOpenChange||(i?this.openSheet():this.closeSheet())}handleOpenedChange(){v(this)}async componentWillLoad(){p(this),this.open&&requestAnimationFrame((()=>this.openSheet()))}componentDidLoad(){m(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),r(this)}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),l(this),this.embedded=!1}render(){const i=o(this.el);return t(a,{key:"682efb5e9586947743259232dfed9a90ef44b4c2","aria-describedby":this.contentId,"aria-label":this.label,"aria-modal":"true",role:"dialog"},t("div",{key:"ed1647113f217d7fe34ec91fdbc7fa60310c33a2",class:{[w]:!0,[f]:this.opened,[u]:this.embedded,[g.rtl]:"rtl"===i},ref:this.setTransitionEl},t("calcite-scrim",{key:"a5dd8c8d81bb5d5536a43113f09120dfb708cf14",class:"scrim",onClick:this.handleOutsideClose}),t("div",{key:"350faeae89f75b8e52079cd68c28ee66c1162762",class:{[y]:!0},ref:this.setContentId},t("slot",{key:"8a0e9e782232088a62efa78881f6f165e2d01d4e"}))))}handleEscape(i){!this.open||this.escapeDisabled||"Escape"!==i.key||i.defaultPrevented||(this.open=!1,i.preventDefault())}async setFocus(){await b(this),c(this.el)}async updateFocusTrapElements(){d(this)}onBeforeOpen(){this.calciteSheetBeforeOpen.emit()}onOpen(){this.calciteSheetOpen.emit(),h(this)}onBeforeClose(){this.calciteSheetBeforeClose.emit()}onClose(){this.calciteSheetClose.emit(),l(this)}openSheet(){this.el.addEventListener("calciteSheetOpen",this.openEnd),this.opened=!0,this.embedded||(this.initialOverflowCSS=document.documentElement.style.overflow,document.documentElement.style.setProperty("overflow","hidden"))}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",this.initialOverflowCSS)}handleMutationObserver(){this.updateFocusTrapElements()}get el(){return n(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],open:["toggleSheet"],opened:["handleOpenedChange"]}}};k.style=":host{position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;visibility:hidden !important;--calcite-sheet-scrim-background-internal:rgba(0, 0, 0, 0.85);--calcite-scrim-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08), 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04)}.container{visibility:hidden;position:fixed;z-index:var(--calcite-z-index-overlay);display:flex;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal:translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal:translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([display-mode=overlay][position=inline-start]) .container{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .container{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .container{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .container{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .container,:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .container,:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([display-mode=float][position^=inline]) .container{block-size:calc(100% - 1.5rem);max-block-size:calc(100% - 1.5rem);min-block-size:calc(100% - 1.5rem)}:host([display-mode=float][position^=block]) .container{inline-size:calc(100% - 1.5rem);max-inline-size:calc(100% - 1.5rem);min-inline-size:calc(100% - 1.5rem)}:host([position^=inline][width-scale=s]){--calcite-sheet-width-internal:var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 260px)}:host([position^=inline][width-scale=m]){--calcite-sheet-width-internal:var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 300px)}:host([position^=inline][width-scale=l]){--calcite-sheet-width-internal:var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 340px)}:host([position^=block][height-scale=s]){--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 30vh)}:host([position^=block][height-scale=m]){--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 50vh)}:host([position^=block][height-scale=l]){--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background:var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}:host([opened]){visibility:visible !important}.content{position:relative;z-index:var(--calcite-z-index-modal);box-sizing:border-box;display:block;max-inline-size:100%;overflow-y:hidden;padding:0px;background-color:var(--calcite-color-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transform:var(--calcite-sheet-hidden-position-internal)}.container--open .content{transform:translate3d(0, 0, 0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container{border-radius:0.25rem}:host([display-mode=float]) .container{padding:0.75rem}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}:host([position=inline-start]) .content,:host([position=inline-end]) .content{block-size:100%}:host([position=block-start]) .content,:host([position=block-end]) .content{inline-size:100%}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}";export{k as calcite_sheet}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,c as n,h as t,g as
|
6
|
+
import{r as e,c as n,h as t,g as i}from"./p-6eb37ed2.js";import{v as a,g as s}from"./p-1e4aca17.js";import"./p-4cd4cb85.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.js";const p=class{constructor(t){e(this,t),this.groupLayerCaptionElementExpandUpdatedEvent=n(this,"groupLayerCaptionElementExpandUpdated",7),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}render(){var e,n,i,p;const c=a(this.activeLayerInfo),{expanded:l}=this,d=l?null===(e=this.messages)||void 0===e?void 0:e.collapse:null===(n=this.messages)||void 0===n?void 0:n.expand,r=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return t("header",{key:"f7fc15a482577d3dc46bf2c75a7e3349d7565654",class:`instant-apps-interactive-legend__header ${s(this.el)}`,style:{borderLeft:"1px solid var(--calcite-color-border-3)"}},t("span",{key:"e8652d3efbba23460e516c7a482b9c58711bfd6e"},t("span",{key:"0b3aa10dd2da8634101fca455b5a611f6d3e4436",class:"instant-apps-interactive-legend__header-action-container"},t("calcite-action",{key:"3f311642dd154822d105fa5ecd21bd5cfe7dcf0c",onClick:this.toggleExpanded(),icon:l?"chevron-down":"chevron-up",appearance:"transparent",text:d,label:d,scale:"s"}),t("h3",{key:"0d7eb0a5958b4f661772f59faf287836818aaeeb",class:`esri-widget__heading esri-legend__service-label${r}`,title:null===(i=this.activeLayerInfo)||void 0===i?void 0:i.title},null===(p=this.activeLayerInfo)||void 0===p?void 0:p.title)),this.featureCount&&c?t("instant-apps-interactive-legend-count",{activeLayerInfo:this.activeLayerInfo,"show-total":!0,messages:this.messages,legendvm:this.legendvm}):null))}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.groupLayerCaptionElementExpandUpdatedEvent.emit(this.expanded)}}get el(){return i(this)}};p.style=".sc-instant-apps-interactive-legend-group-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption{overflow:hidden;margin:0;overflow-x:hidden;display:inline-block;font-size:var(--instant-apps-interactive-legend-heading-font-size);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption header.sc-instant-apps-interactive-legend-group-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption h3.sc-instant-apps-interactive-legend-group-legend-element-caption{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption .instant-apps-interactive-legend__heading-text--group-item.sc-instant-apps-interactive-legend-group-legend-element-caption{-webkit-line-clamp:2;line-clamp:2}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption span.sc-instant-apps-interactive-legend-group-legend-element-caption{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption .instant-apps-interactive-legend__header-action-container.sc-instant-apps-interactive-legend-group-legend-element-caption{display:flex;align-items:center}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption header.sc-instant-apps-interactive-legend-group-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget--panel.sc-instant-apps-interactive-legend-group-legend-element-caption{margin:0}.calcite-mode-dark.sc-instant-apps-interactive-legend-group-legend-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-group-legend-element-caption{background-color:#242424;color:var(--calcite-color-text-1)}.calcite-mode-light.sc-instant-apps-interactive-legend-group-legend-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-group-legend-element-caption{background-color:#ffffff;color:var(--calcite-color-text-1)}";export{p as instant_apps_interactive_legend_group_legend_element_caption}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as _}from"./p-
|
6
|
+
import{d as _}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var m={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(_){return _+"일"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(_){return _<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};_.locale(m,null,!0);export{m as default}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as _}from"./p-
|
6
|
+
import{d as _}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var r="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),t="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),p="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),m="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),s=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function o(_,r,t){var p,m;return"m"===t?r?"минута":"минуту":_+" "+(p=+_,m={mm:r?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[t].split("_"),p%10==1&&p%100!=11?m[0]:p%10>=2&&p%10<=4&&(p%100<10||p%100>=20)?m[1]:m[2])}var e=function(_,p){return s.test(p)?r[_.month()]:t[_.month()]};e.s=t,e.f=r;var a=function(_,r){return s.test(r)?p[_.month()]:m[_.month()]};a.s=m,a.f=p;var i={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:e,monthsShort:a,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:o,mm:o,h:"час",hh:o,d:"день",dd:o,M:"месяц",MM:o,y:"год",yy:o},ordinal:function(_){return _},meridiem:function(_){return _<4?"ночи":_<12?"утра":_<17?"дня":"вечера"}};_.locale(i,null,!0);export{i as default}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as _}from"./p-
|
6
|
+
import{d as _}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var m={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_){return _+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(_){return _<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};_.locale(m,null,!0);export{m as default}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as e,h as i,H as s,g as o}from"./p-6eb37ed2.js";import{f as a,t as n,
|
6
|
+
import{r as t,c as e,h as i,H as s,g as o}from"./p-6eb37ed2.js";import{f as a,t as n,b as c,d as r}from"./p-66cee72b.js";import{f as l,c as d,d as h,a as p,F as m,r as f}from"./p-984ce9da.js";import{g as b}from"./p-aaa56cbf.js";import{c as u,u as w,d as g,I as v}from"./p-1ce2608d.js";import{i as y}from"./p-64a34d92.js";import{c as k,s as x,a as D}from"./p-3e828614.js";import{c as I}from"./p-1c249530.js";import{o as z}from"./p-6e118057.js";import{g as E}from"./p-27d462c0.js";import{C}from"./p-b5575639.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-c8d3207e.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{f as t,h as e}from"./p-6eb37ed2.js";import{
|
6
|
+
import{f as t,h as e}from"./p-6eb37ed2.js";import{h as o}from"./p-66cee72b.js";import{S as a}from"./p-150394be.js";import{S as n}from"./p-fa56b7c2.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
@@ -3,9 +3,9 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{h as n}from"./p-6eb37ed2.js";import{
|
6
|
+
import{h as n}from"./p-6eb37ed2.js";import{q as t,a as i}from"./p-66cee72b.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
10
|
* v2.12.2
|
11
|
-
*/const e=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"],o="hidden-form-input";function s(n){return"checked"in n}const
|
11
|
+
*/const e=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"],o="hidden-form-input";function s(n){return"checked"in n}const a=new WeakMap,c=new WeakSet;function r(n){return"CALCITE-RADIO-BUTTON"===n.nodeName?i(n,"calcite-radio-button-group"):n}const u=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});function l(n){const t=n?.target,i=t?.validationMessage,o=r(t?.parentElement);if(!o)return;const s=o?.nodeName?.toLowerCase(),a=s?.split("-");if(a.length<2||"calcite"!==a[0])return;n?.preventDefault(),"validity"in o&&(o.validity=t?.validity),o.dispatchEvent(u),function(n,{status:t,message:i,icon:e}){"status"in n&&(n.status=t),"validationIcon"in n&&"string"!=typeof n.validationIcon&&(n.validationIcon=e),"validationMessage"in n&&!n.validationMessage&&(n.validationMessage=i)}(o,{message:i,icon:!0,status:"invalid"});const c=function(n){return`${n.split("-").map(((n,t)=>0===t?n:`${n[0].toUpperCase()}${n.slice(1)}`)).join("")}${e.includes(n)?"Input":"Change"}`}(s);o.addEventListener(c,(()=>{"status"in o&&(o.status="idle"),"validationIcon"in o&&!o.validationIcon&&(o.validationIcon=!1),"validationMessage"in o&&o.validationMessage===i&&(o.validationMessage=""),"validity"in o&&(o.validity=t?.validity)}),{once:!0})}function f(n){const{formEl:t}=n;return!!t&&(t.addEventListener("invalid",l,!0),t.requestSubmit(),t.removeEventListener("invalid",l,!0),requestAnimationFrame((()=>{const n=t.querySelectorAll("[status=invalid]");for(const t of n)if(t?.validationMessage){t?.setFocus();break}})),!0)}function d(n){n.formEl?.reset()}function m(n){const{el:t,value:e}=n,o=p(n);if(!o||function(n,t){if(i(t.parentElement,"[form]"))return!0;const e="calciteInternalFormComponentRegister";let o=!1;return n.addEventListener(e,(n=>{o=n.composedPath().some((n=>c.has(n))),n.stopPropagation()}),{once:!0}),t.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0})),o}(o,t))return;n.formEl=o,n.defaultValue=e,s(n)&&(n.defaultChecked=n.checked);const r=(n.onFormReset||v).bind(n);o.addEventListener("reset",r),a.set(n.el,r),c.add(t)}function p(n){const{el:e,form:o}=n;return o?t(e,{id:o}):i(e,"form")}function v(){"status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),s(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function b(n){const{el:t,formEl:i}=n;if(!i)return;const e=a.get(t);i.removeEventListener("reset",e),a.delete(t),n.formEl=null,c.delete(t)}function h(n,t){n.defaultValue=t}const I="calciteInternalHiddenInputInput",g=n=>{n.target.dispatchEvent(new CustomEvent(I,{bubbles:!0}))},w=n=>n.removeEventListener("input",g);function C(n,t,i){const{defaultValue:e,disabled:o,form:a,name:c,required:u}=n;t.defaultValue=e,t.disabled=o,t.name=c,t.required=u,t.tabIndex=-1,a?t.setAttribute("form",a):t.removeAttribute("form"),s(n)?(t.checked=n.checked,t.defaultChecked=n.defaultChecked,t.value=n.checked?i||"on":""):t.value=i||"",n.syncHiddenFormInput?.(t);const l=r(n.el);if(l&&"validity"in l)for(const n in{...t?.validity})l.validity[n]=t.validity[n]}const E=({component:t})=>(function(n){const{el:t,formEl:i,name:e,value:s}=n,{ownerDocument:a}=t,c=t.querySelectorAll(`input[slot="${o}"]`);if(!i||!e)return void c.forEach((n=>{w(n),n.remove()}));const r=Array.isArray(s)?s:[s],u=[],l=new Set;let f;c.forEach((t=>{const i=r.find((n=>n==t.value));null!=i?(l.add(i),C(n,t,i)):u.push(t)})),r.forEach((t=>{if(l.has(t))return;let i=u.pop();i||(i=a.createElement("input"),i.slot=o),f||(f=a.createDocumentFragment()),f.append(i),i.addEventListener("input",g),C(n,i,t)})),f&&t.append(f),u.forEach((n=>{w(n),n.remove()}))}(t),n("slot",{name:o}));export{E as H,h as a,m as c,b as d,p as f,I as i,d as r,f as s}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as
|
6
|
+
import{d as a}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var e={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(a){return a+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};a.locale(e,null,!0);export{e as default}
|
@@ -0,0 +1,6 @@
|
|
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{r as t,c as i,g as s,h as e,H as h,F as a}from"./p-6eb37ed2.js";import{g as o,l}from"./p-2058b5d9.js";import{g as n,q as c,e as d,f as r,i as p,j as b,c as f}from"./p-d572627c.js";import{d as u}from"./p-dec62e5d.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-d0d020a5.js";import"./p-7530a02f.js";import"./p-9bb44f57.js";const m=class{constructor(s){t(this,s),this.createWorkFlowStarted=i(this,"createWorkFlowStarted",7),this.backFromCreateWorkFlow=i(this,"backFromCreateWorkFlow",7),this.featureOrRecordSubmitted=i(this,"featureOrRecordSubmitted",7),this.customInfoText=void 0,this.enableEditGeometry=!1,this.isMobile=void 0,this.layer=void 0,this.mapView=void 0,this.zoomAndScrollToSelected=void 0,this.selectedFeaturesIds=void 0,this.enableCreateFeatures=!0,this._cardLoading=!1,this._graphics=void 0,this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._translations=void 0}get el(){return s(this)}_isFeatureCreated=!1;_createFeature;createWorkFlowStarted;backFromCreateWorkFlow;featureOrRecordSubmitted;async featureSelectionChange(t){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();const i=t.detail;this._graphics=await this._getFeaturesByIds(i)}async layerSelectionChange(t){this._showCreateFeatureComponent&&this._backFromCreateFeature();const i=t.detail[0];this.layer=await n(this.mapView,i)}async componentWillLoad(){await this._getTranslations(),this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}render(){const t=this._graphics?.length>0?"":"display-none",i=0===this._graphics?.length&&this._showCreateFeatureComponent?"":"display-none",s=this._graphics?.length>0||this._showCreateFeatureComponent?"display-none":"",a=this.layer?.isTable,o=a?this._translations.createRecord:this._translations.createFeature,l=this.enableCreateFeatures&&this.layer?.capabilities?.operations?.supportsAdd;return e(h,{key:"6089a5003e4ee08df4da7ecbcf8e6a3c8628f8bf"},e("div",{key:"60dc1c21c650cce5165f56a0e040feba3652ae10",class:"overflow-auto height-full"},e("calcite-shell",{key:"530a3173010e32fe062dc313ed3805833228f0fd",class:"position-relative "+t},e("div",{key:"af2350dac50f8ecc576cdeb528b350557057ff8d",class:"position-static z-index-500"},e("info-card",{key:"626b34ec1ed2fc7e52f0ee2f9ae4520d1bcceb08",enableEditGeometry:this.enableEditGeometry,graphics:this._graphics,isLoading:this._cardLoading,isMobile:this.isMobile,mapView:this.mapView}))),e("calcite-shell",{key:"642531296a90d92068592eef75bc4632438a4cbc",class:"position-relative "+s},e("calcite-flow-item",{key:"b15e856439afdf9f08df9ff22f4e7dd7fee74273"},e("calcite-panel",{key:"9305e17349e3b653565d1c183e118bdc3b791e23"},e("div",{key:"25cf89836b8d20c6728842c5372e2c17dda967e6",class:"padding-1"},e("calcite-notice",{key:"8df4a9c3e037f1b9f6131371d36a23e845db7ee2",icon:"table",open:!0},e("div",{key:"5c613ab8e9b9c25fc9f824e1007c3c4fa48b15b5",slot:"message"},this.customInfoText||this._translations.selectFeaturesToStart))),l&&e("calcite-button",{key:"ba88fcd64b3cf2ae1fc36da58581974473d4e0b3",disabled:!this.layer,onClick:()=>this._createFeatureBtnClicked(),slot:"footer",width:"full"},a?this._translations.createRecord:this._translations.createFeature)))),e("calcite-shell",{key:"5e64963bf756e397c819a4c60112191031d9113f",class:"position-relative "+i},e("calcite-flow-item",{key:"7d93240bffd381e2ed1e6dc10126b30cb1a143f9"},e("calcite-panel",{key:"6ae7f4917394521b3226e38e07ac8eaf8c29b58e",heading:o},e("calcite-action",{key:"60cfdea79ad19ba0b62a9fb2ef3a6495c41b1f53",class:"back-button hydrated",icon:"chevron-left",onClick:this._backFromCreateFeature.bind(this),scale:"s",slot:"header-actions-start",text:"back"}),this.getEditorComponent(),this._showSubmitBtn&&e("calcite-button",{key:"ab10ab259363cee6b872f7e6619518125141759e",appearance:"solid",class:"footer-top-button footer-button",onClick:()=>{this._createFeature.submit()},slot:"footer",width:"full"},this._translations.create))))))}getEditorComponent(){return e("div",null,this._showCreateFeatureComponent&&e("create-feature",{customizeSubmit:!0,mapView:this.mapView,onDrawComplete:()=>{this._showSubmitBtn=!0},onEditingAttachment:t=>{this._showSubmitBtn=!t.detail},onProgressStatus:()=>{setTimeout((()=>{this._isFeatureCreated=!1}),2e3)},onSuccess:this._featureCreated.bind(this),ref:t=>this._createFeature=t,selectedLayerId:this.layer?.id}))}async _getFeaturesByIds(t){return(t.length>0?await c(t,this.layer,[],!0,this.mapView.spatialReference):[]).sort(((i,s)=>t.indexOf(i.getObjectId())-t.indexOf(s.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeature&&(await this._createFeature.close(),this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit()),this._showSubmitBtn=!1}_featureCreated(){this._createFeature.close(),this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._isFeatureCreated=!0,this.featureOrRecordSubmitted.emit(),setTimeout((()=>{this._showCreateFeatureComponent=!0}),50)}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}};m.style=":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}.position-static{position:static !important}.z-index-500{z-index:500 !important}card-manager{display:block}";const w=class{constructor(s){t(this,s),this.featureSelectionChange=i(this,"featureSelectionChange",7),this.toggleFilter=i(this,"toggleFilter",7),this.defaultGlobalId=void 0,this.defaultLayerId=void 0,this.defaultOid=void 0,this.enableAutoRefresh=void 0,this.enableColumnReorder=!0,this.enableCSV=void 0,this.enableInlineEdit=void 0,this.enableShare=void 0,this.isMobile=void 0,this.mapHidden=void 0,this.mapInfo=void 0,this.mapView=void 0,this.onlyShowUpdatableLayers=void 0,this.selectedIds=[],this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=void 0,this.zoomAndScrollToSelected=void 0,this.zoomToScale=void 0,this.createFilterModal=!0,this._allIds=[],this._controlsThatFit=void 0,this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._layer=void 0,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=void 0,this._translations=void 0,this._fullTextSearchInfo=void 0,this._searchPlaceHolder=""}get el(){return s(this)}FeatureTable;TableTemplate;_columnsInfo;_ctrlIsPressed=!1;_currentId;_editEnabled;_defaultFilterHonored=!1;_defaultGlobalIdHonored=!1;_defaultOidHonored=!1;_defaultVisibleToolSizeInfos;_definitionExpression;_deleteEnabled;_filterList;_floorExpression;_floorField;_floorFacility;_floorLevel;_floorSite;_layerExpressions;_loaded=!1;_mapClickHandle;_observerSet=!1;_previousCurrentId;reactiveUtils;_refreshHandle;_resizeObserver;_selectAllElement;_selectionFromMap=!1;_shareNode;_shiftIsPressed=!1;_showHideDropdown;_skipOnChange=!1;_moreDropdown;_table;_tableNode;_timeout;_toolbar;_toolbarSizeInfos;_searchExpression;async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}enableCSVWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}enableShareWatchHandler(){this._toolbar&&this._updateToolbar()}_controlsThatFitWatchHandler(){const t=this._controlsThatFit?this._controlsThatFit.reduce(((t,i)=>(t.push(i.id),t)),[]):[];this._toolInfos=this._toolInfos?.map((i=>{if(i&&this._controlsThatFit){const s=this._getId(i.icon);return i.isOverflow=t.indexOf(s)<0,i}}))}mapHiddenWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}isMobileWatchHandler(){this._toolInfos||this.isMobile||this._initToolInfos()}async mapInfoWatchHandler(){this._resetColumnTemplates(),this.createFilterModal&&this._initLayerExpressions(),this._initToolInfos(),this._updateToolbar(),await this._sortTable()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression=void 0,this._searchExpression=void 0,this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",(t=>{this._mapClicked(t)})))}async _layerWatchHandler(){this._fetchingData=!0,await(this._layer?.when((async()=>{this._definitionExpression=this._layer.definitionExpression,this._floorField=this._layer.floorInfo?.floorField,this._updateFloorDefinitionExpression(),await this._resetTable(),this.createFilterModal&&this._initLayerExpressions(),this._updateShareUrl(),this._fetchingData=!1})))}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0]))}async filterReset(){await this._handleFilterListReset()}async filterUpdate(){await this._handleFilterUpdate()}async closeFilter(){await this._closeFilter()}async refresh(){this._table&&await this._refresh()}featureSelectionChange;toggleFilter;async selectionChanged(t){const i=t.detail.selectedFeature[0],s=i.getObjectId(),e=this._table;if(e.rowHighlightIds.length&&e.rowHighlightIds.removeAll(),e.rowHighlightIds.add(s),this.zoomAndScrollToSelected){const t=this._table.viewModel.getObjectIdIndex(s);this._table.scrollToIndex(t);const e=i.layer;let h;this.mapView.allLayerViews.toArray().some((t=>{if(t.layer.title===e.title&&"feature"===t.layer.type)return h=t,!0})),h&&await d([s],h,this.mapView,!0,void 0,this.zoomToScale)}}async layerSelectionChange(t){await this._layerSelectionChanged(t)}async editsComplete(t){const i=t.detail;"delete"!==i&&"add"!==i||(this._allIds=await r(this._layer)),await this._refresh()}async facilityChanged(t){this._floorFacility=t.detail,this._updateFloorDefinitionExpression()}async levelChanged(t){this._floorLevel=t.detail,this._updateFloorDefinitionExpression()}async siteChanged(t){this._floorSite=t.detail,this._updateFloorDefinitionExpression()}noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initToolInfos(),this._resizeObserver||(this._resizeObserver=new ResizeObserver((()=>this._onResize())))}render(){const t=this._fetchingData?"display-none":"",i=this._fetchingData?"":"display-none",s=this._allIds.length.toString(),a=this.selectedIds.length.toString(),o=this.isMobile?"height-full":"height-full-adjusted",l=this._canShowFullTextSearch();return this._validateActiveActions(),e(h,{key:"0e14ca1d140deaad1b6b1c299a29b160c983a84f"},e("calcite-shell",{key:"6da3feca55877d2ca3ac4df044ece161964c5b30"},this._getTableControlRow("header"),e("div",{key:"987267204fadb58d10741586adf9c2603a2c782d",class:`width-full ${o}`},e("calcite-panel",{key:"3d8fb99e75c7456082846a1876460514d3b36cc3",class:"height-full width-full"},l&&e("calcite-input",{key:"2251920546d0948bd67eb705ea68a4cdf7c735c1",clearable:!0,icon:"search",onCalciteInputChange:t=>{this._searchTextChanged(t)},placeholder:this._searchPlaceHolder,title:this._searchPlaceHolder,type:"search"}),e("calcite-loader",{key:"8c9deefa9aef65838e93171505c1b4a5bc34d7d9",class:i,label:this._translations.fetchingData,scale:"l"}),e("div",{key:"376ad6c086b24157533054c027a9738738625630",class:t,ref:this.onTableNodeCreate}))),this.isMobile?void 0:e("div",{class:"bottom-left text-color height-19"},this._translations.recordsSelected.replace("{{total}}",s).replace("{{selected}}",a))),this.createFilterModal&&this._filterModal())}async componentDidLoad(){this.isMobile||this._observerSet||(this._resizeObserver.observe(this._toolbar),this._observerSet=!0),document.onclick=t=>this._handleDocumentClick(t),document.onkeydown=t=>this._handleKeyDown(t),document.onkeyup=t=>this._handleKeyUp(t)}componentDidRender(){this._updateToolbar()}async _initModules(){const[t,i,s]=await l(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate"]);this.FeatureTable=t,this.reactiveUtils=i,this.TableTemplate=s}async _searchTextChanged(t){this._fullTextSearchInfo.forEach((i=>{i.searchTerm=t.target.value})),this._searchFullText()}async _searchFullText(){if(this._searchExpression&&this._clearSearchDefinitionExpression(),this._fullTextSearchInfo.length&&this._fullTextSearchInfo[0].searchTerm){const t=this._layer.createQuery();t.fullText=this._fullTextSearchInfo;const i=await this._layer.queryObjectIds(t);this._updateSearchDefinitionExpression(i?.length?i:[-1])}}_clearSearchDefinitionExpression(){const t=this._layer.definitionExpression;this._searchExpression&&t?.indexOf(this._searchExpression)>-1&&(this._layer.definitionExpression=t?.indexOf(" AND ("+this._searchExpression)>-1?t.replace(` AND (${this._searchExpression})`,""):t.replace(this._searchExpression,"")),this._searchExpression=void 0}_updateSearchDefinitionExpression(t){const i=this._layer.definitionExpression;if(t?.length){const s=`objectId in(${t})`;this._layer.definitionExpression=i?.indexOf(this._searchExpression)>-1?i.replace(this._searchExpression,s):i?`${i} AND (${s})`:s,this._searchExpression=s}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return((this._layer?.capabilities)?.query)?.supportsFullTextSearch&&this._layer.indexes.items.filter((t=>"FullText"==t.indexType)).length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],((this._layer?.capabilities)?.query)?.supportsFullTextSearch){const t=this._layer.indexes?.filter((t=>"FullText"==t.indexType));if(t?.length){const i=[];t.forEach((t=>{i.push(...t.fields.split(","))}));const s=[];i.forEach((t=>{const i=this._layer.getField(t.trim());s.push(i.alias)})),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",s.join(" | ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_onResize(){this._updateToolbar()}_getTableControlRow(t){return e("div",{class:"display-flex border-bottom height-51-px",ref:t=>this._toolbar=t,slot:t},this._getActionBar(),this.isMobile?void 0:this._getDropdown("more-table-options"),this.enableShare&&!this.isMobile?this._getShare("share"):void 0)}_getActionBar(){const t=this.isMobile?"width-full":"",i=this.isMobile?"border-top":"";return e("calcite-action-bar",{class:t,expandDisabled:!0,expanded:!0,id:this._getId("bar"),layout:"horizontal"},e("div",{class:`border-end ${t} ${i}`,id:"solutions-map-layer-picker-container"},e("map-layer-picker",{appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,mapView:this.mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",scale:"l",selectedIds:this._layer?[this._layer?.id]:[],showSingleLayerAsLabel:!0,showTables:!0,type:"dropdown"})),this.isMobile?void 0:this._getActions())}_getActions(){const t=this._getActionItems();return t?.reduce(((t,i)=>(i&&!i.isOverflow&&t.push(i.isDanger?this._getDangerAction(i.icon,i.label,i.func,i.disabled):i.isSublist?e("calcite-dropdown",{closeOnSelectDisabled:!0,id:this._getId(i.icon),onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._showHideDropdown=t},this._getAction(i.active,this._showHideOpen?"chevron-down":i.icon,i.indicator,i.label,i.func,i.disabled,i.loading,"trigger"),this._showHideOpen?this._getFieldlist():void 0):this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading)),t)),[])}_getFieldlist(){return this._columnsInfo?e("calcite-dropdown-group",{"selection-mode":"multiple"},Object.keys(this._columnsInfo).map((t=>{const i=this._columnsInfo[t];return e("calcite-dropdown-item",{id:`layer-table-${t.toLowerCase().replaceAll(" ","")}`,onClick:t=>{const i=t.target;this._columnsInfo[i.id]=i.selected,i.selected?this._table.showColumn(i.id):this._table.hideColumn(i.id)},selected:i},t)}))):void 0}_validateEnabledActions(){const t=this._featuresSelected(),i=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,s=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach((e=>{e&&s.indexOf(e.icon)>-1&&(e.disabled="pencil"===e.icon?!i:!t)}))}_validateActiveActions(){const t=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach((i=>{i&&t.indexOf(i.icon)>-1&&("filter"===i.icon&&(i.indicator=this._filterActive),"list-check-all"===i.icon&&(i.active=this._selectAllActive),"selected-items-filter"===i.icon&&(i.active=this._showOnlySelected))}))}_initToolInfos(){const t=this._featuresSelected(),i=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,s=this._featuresEmpty(),e=this._hasFilterExpressions();this._translations&&(this._toolInfos=[this.mapHidden?void 0:{active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!t,isOverflow:!1},e?{active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.createFilterModal?this._toggleFilter():this.toggleFilter.emit(),disabled:!1,isOverflow:!1}:void 0,this.mapHidden?void 0:{active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>alert(this._translations.editMultiple),disabled:!i,isOverflow:!1},this._deleteEnabled?{active:void 0,icon:"trash",indicator:void 0,label:void 0,func:void 0,disabled:!t,isDanger:!0,isOverflow:!1}:void 0,{active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this._clearSelection(),disabled:!t,isOverflow:!1},{active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!t,isOverflow:!1},{active:!1,icon:"list-check-all",indicator:!1,func:()=>this._selectAll(),label:this._translations.selectAll,disabled:s,isOverflow:!1},{active:!1,icon:"compare",indicator:!1,func:()=>this._switchSelected(),label:this._translations.switchSelected,disabled:s,isOverflow:!1},{active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1,isOverflow:!1},this.enableCSV?{active:!1,icon:"export",indicator:!1,func:()=>{this._exportToCSV()},label:this._translations.exportCSV,loading:this._csvExporting,disabled:s,isOverflow:!1}:void 0,{active:!1,icon:this._showHideOpen?"chevron-down":"chevron-right",indicator:!1,func:()=>this._toggleShowHide(),label:this._translations.showHideColumns,disabled:!1,isOverflow:!1,isSublist:!0}],this._defaultVisibleToolSizeInfos=void 0)}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){const t=`${this._floorField} = '${this._floorLevel}'`,i=this._layer.definitionExpression;this._layer.definitionExpression=i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):i?`${i} AND (${t})`:t,this._floorExpression=t}}_featuresSelected(){return this.selectedIds.length>0}_featuresEmpty(){return 0===this._allIds.length}_hasFilterExpressions(){let t;return this.mapInfo?.filterConfig?.layerExpressions&&this._layer?.id&&(t=this.mapInfo.filterConfig.layerExpressions.filter((t=>t.id===this._layer.id))),t?.length>0}_updateToolbar(){this._timeout&&clearTimeout(this._timeout),!this.isMobile&&this._toolbar&&this._toolInfos&&(this._timeout=setTimeout((()=>{clearTimeout(this._timeout),this._setToolbarSizeInfos();const t=this._toolbar.offsetWidth;let i=this._toolbarSizeInfos.reduce(((t,i)=>t+i.width),0);const s=["solutions-more","solutions-map-layer-picker-container","solutions-action-share"];if(i>t){if(this._toolbarSizeInfos.length>0){const e=[...this._toolbarSizeInfos].reverse().reduce(((e,h)=>(s.indexOf(h.id)<0&&(i>t?i-=h.width:e.push(h)),e)),[]).reverse();this._setControlsThatFit(e,s)}}else if(this._defaultVisibleToolSizeInfos){const e=this._toolbarSizeInfos.reduce(((t,i)=>(t.push(i.id),t)),[]);let h=!1;const a=[...this._defaultVisibleToolSizeInfos].reduce(((a,o)=>(!h&&s.indexOf(o.id)<0&&(e.indexOf(o.id)>-1||i+o.width<=t)?(e.indexOf(o.id)<0&&(i+=o.width),a.push(o)):s.indexOf(o.id)<0&&i+o.width>t&&(h=!0),a)),[]);this._setControlsThatFit(a,s)}}),250))}_setControlsThatFit(t,i){let s=JSON.stringify(t)!==JSON.stringify(this._controlsThatFit);const e=document.getElementById("solutions-action-bar");e?.childNodes?.forEach((t=>{i.indexOf(t.id)<0&&!s&&(s=this._controlsThatFit.map((t=>t.id)).indexOf(t.id)<0)})),s&&(this._controlsThatFit=[...t])}_setToolbarSizeInfos(){let t=!1;this._toolbarSizeInfos=[],this._toolbar.childNodes.forEach(((i,s)=>{0===s?i.childNodes.forEach((i=>{this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0)})):i.referenceElement||(this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0))})),t&&!this._defaultVisibleToolSizeInfos&&(this._defaultVisibleToolSizeInfos=[...this._toolbarSizeInfos])}_getActionItems(){return this._toolInfos?.filter((t=>t&&!t.isOverflow))}_getDropdown(t){const i=this._getDropdownItems();return i.length>0?e("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this._layer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._moreDropdown=t},e("calcite-action",{appearance:"solid",id:t,label:"",onClick:()=>this._closeShowHide(),slot:"trigger",text:""},e("calcite-button",{appearance:"transparent",iconEnd:"chevron-down",kind:"neutral"},this._translations.more)),e("calcite-dropdown-group",{"selection-mode":"none"},i.map((t=>e("calcite-dropdown-group",{class:t.disabled?"disabled":"",selectionMode:t.disabled?"none":"single"},e("calcite-dropdown-item",{disabled:t.loading,iconStart:t.isSublist&&this._showHideOpen?"chevron-down":t.loading?"":t.icon,id:`layer-table-${t.icon}`,onClick:t.func},t.loading?e("div",{class:"display-flex"},e("calcite-loader",{inline:!0,label:t.label,scale:"m"}),t.label):t.label))))),this._showHideOpen?this._getFieldlist():void 0):void 0}_getDropdownItems(){return this._toolInfos?.filter((t=>t&&t.isOverflow))}_getAction(t,i,s,h,a,o,l,n){const c=void 0===this._layer||o;return e("div",{class:"display-flex",id:this._getId(i),slot:n},e("calcite-action",{active:t,appearance:"solid",disabled:c,icon:i,id:`layer-table-${i}`,indicator:s,label:h,loading:l,onClick:a,text:h,textEnabled:!0}),this._getToolTip("bottom",i,h))}_getShare(t){return e("div",{class:"share-action",id:this._getId(t)},e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"instant-app-share",embed:this.shareIncludeEmbed,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",socialMedia:this.shareIncludeSocial,view:this.mapView}),this._getToolTip("bottom",t,this._translations.share))}_updateShareUrl(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this.mapInfo?.id?i.searchParams.set("webmap",this.mapInfo.id):i.searchParams.delete("webmap"),this._layer?.id?i.searchParams.set("layer",this._layer.id):i.searchParams.delete("layer"),this.selectedIds?.length>0?i.searchParams.set("oid",this.selectedIds.join(",")):i.searchParams.delete("oid"),this._shareNode.shareUrl=i.href}_getToolTip(t,i,s){return document.getElementById(i)?e("calcite-tooltip",{placement:t,"reference-element":i},e("span",null,s)):void 0}_getId(t){return`solutions-action-${t}`}_getDangerAction(t,i,s,h){const a=void 0===this._layer||h;return e("div",{class:"display-flex",id:this._getId(t)},"trash"===t?e("delete-button",{buttonType:"action",class:"display-flex",disabled:a,icon:t,ids:this._getIds(),layer:this._layer}):e("calcite-action",{appearance:"solid",disabled:a,id:t,onClick:s,text:""},e("calcite-button",{appearance:"transparent",iconStart:t,kind:"danger"},i)),this._getToolTip("bottom",t,i))}_getIds(){return this._table.highlightIds.toArray()}onTableNodeCreate=t=>{this._tableNode=t};async _getTable(t,i){this._layer&&(await this._layer.when((()=>{this._table=new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!0,multiSortEnabled:!1,visibleElements:{header:!1,menu:!1},tableTemplate:{columnTemplates:i},container:t})})),await this._table.when((()=>{this._table.highlightIds.on("change",(t=>{this._handleOnChange(t)}))})))}async _handleOnChange(t){const i=[...this._table.highlightIds.toArray()];if(this._skipOnChange)this._skipOnChange=!1;else{if(!this._ctrlIsPressed&&!this._shiftIsPressed||this._selectionFromMap&&this._shiftIsPressed)if(this.selectedIds.length>0){this._skipOnChange=!0;const s=this.selectedIds.length>1&&1===t.removed.length?t.removed:i.filter((t=>this.selectedIds.indexOf(t)<0));this._clearSelection(),this.selectedIds=[...s],s.length>0?this._table.highlightIds.add(s[0]):this._skipOnChange=!1}else this.selectedIds=i.reverse();else if(this._ctrlIsPressed)this.selectedIds=i.reverse();else if(this._shiftIsPressed&&i?.length>0)if(this._skipOnChange=!0,this._previousCurrentId=this._currentId,this._currentId=[...i].reverse()[0],1===i.length)this._skipOnChange=!1;else if(this._previousCurrentId!==this._currentId){const t=this._table.activeSortOrders.reduce(((t,i)=>(t.push(`${i.fieldName} ${i.direction}`),t)),[]),s=await p(0,this._layer,[],t);let e=!1;const h=this._table.viewModel.getObjectIdIndex(this._previousCurrentId),a=this._table.viewModel.getObjectIdIndex(this._currentId);this._skipOnChange=(h<a?h:a)+1!==(a>h?a:h);const o=s.reduce(((t,i)=>{const s=i;return s===this._currentId||s===this._previousCurrentId?(e=!e,t.indexOf(s)<0&&t.push(s)):e&&t.indexOf(s)<0&&t.push(s),t}),[]),l=h<a?o.reverse():o;this.selectedIds=[...new Set([...l,...this.selectedIds])],this._table.highlightIds.addMany(this.selectedIds.filter((t=>i.indexOf(t)<0)))}this._finishOnChange()}this._currentId=[...this._table.highlightIds.toArray()].reverse()[0],this._selectionFromMap=!1}_finishOnChange(){this._showOnlySelected&&(this._featuresSelected()?this._table.filterBySelection():this._toggleShowSelected()),this.featureSelectionChange.emit(this.selectedIds)}_resetColumnTemplates(){const t=this._getColumnTemplates(this._layer?.id,this._layer?.fields),i=t?.some(((t,i)=>JSON.stringify(this._table?.tableTemplate.columnTemplates[i])!==JSON.stringify(t)));if(this._table&&t&&(i||!this._columnsInfo)){this._table.tableTemplate=new this.TableTemplate({columnTemplates:t});const i=t.map((t=>t.fieldName));this._initColumnsInfo(i)}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await r(this._layer),this._table)this._table.view=this.mapView,this._table.layer=this._layer;else{const t=this._getColumnTemplates(this._layer.id,this._layer?.fields);await this._getTable(this._tableNode,t)}await this._initLayerRefresh(),this._checkEditEnabled(),this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout((()=>{this._loaded||(console.log(`table.state: ${this._table.state}`),this.finishLoading())}),1e3),await this.reactiveUtils.once((()=>"loaded"===this._table.state)).then((async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table.highlightIds.removeAll(),this._table.clearSelectionFilter(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),this._initToolInfos(),this._updateToolbar()}catch(t){console.log(t)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._refreshHandle=this._layer.on("refresh",(t=>{t.dataChanged&&(this._skipOnChange=!0,this._updateAllIds())}))}async _updateAllIds(){this._allIds=await r(this._layer),this.selectedIds=this.selectedIds.filter((t=>this._allIds.indexOf(t)>-1)),await this._refresh()}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=void 0,this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId?.length>0&&this._table){const t=await b(this.defaultGlobalId,this._layer),i=t?.length>0?t.map((t=>t.getObjectId())):void 0;i&&await this._selectDefaultFeature(i),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=void 0,this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(t){const i=this._table?.columns.reduce(((i,s)=>((!t||t?.indexOf(s.name)>-1)&&(i[s.name]=!s.hidden),i)),{}),s=this._table?.columns.map((t=>t.name));(t?t.filter((t=>s.indexOf(t)<0)):[]).forEach((t=>{i[t]=!0})),this._columnsInfo=t?t.reduce(((t,s)=>(t[s]=i[s],t)),{}):i}async _selectDefaultFeature(t){t.length>0&&this._table.highlightIds.addMany(t)}_checkEditEnabled(){this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._deleteEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsDelete}async _sortTable(){let t,i=this._layer?.objectIdField,s="desc";this.mapInfo?.layerOptions?.layers?.length>0&&this._layer?.id&&(t=this.mapInfo.layerOptions.layers.filter((t=>t.id===this._layer.id)),t&&t.length>0&&(t=t[0],t.sortField&&t.fields?.includes(t.sortField)&&(i=t.sortField),s=t?.sortOrder?t.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when((()=>{this._table.sortColumn(i,s)})))}_forceShowHide(){this._showHideDropdown&&(this._showHideDropdown.open=this._showHideOpen),this._moreDropdown&&(this._moreDropdown.open=this._showHideOpen)}_toggleShowHide(){this._showHideOpen=!this._showHideOpen}_closeShowHide(){this._showHideOpen=!1}_handleDocumentClick(t){const i=t.target?.id;this._showHideOpen&&Object.keys(this._columnsInfo).indexOf(i)<0&&"solutions-subset-list"!==i&&"chevron-right"!==i&&(this._closeShowHide(),this._moreDropdown&&(this._moreDropdown.open=!1),this._showHideDropdown&&(this._showHideDropdown.open=!1))}_handleKeyDown(t){this._ctrlIsPressed=t.ctrlKey,this._shiftIsPressed=t.shiftKey}_handleKeyUp(t){this._ctrlIsPressed=t.ctrlKey,this._shiftIsPressed=t.shiftKey}_filterModal(){return e("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},e("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},this._translations?.filter?.replace("{{title}}",this._layer?.title)),e("div",{slot:"content"},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:async()=>this._closeFilter(),comboboxOverlayPositioning:"fixed",layerExpressions:this._layerExpressions,onFilterListReset:()=>{this._handleFilterListReset()},onFilterUpdate:()=>{this._handleFilterUpdate()},ref:t=>this._filterList=t,view:this.mapView,zoomBtn:!1})))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(){const t=this._layer.definitionExpression;if(this._floorExpression){const i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=this._definitionExpression!==this._layer.definitionExpression&&(!this._floorExpression||this._layer.definitionExpression!==this._floorExpression),this._updateShareUrl(),await this._searchFullText()}async _closeFilter(){this._filterOpen&&(this._allIds=await r(this._layer),this._filterOpen=!1)}async _mapClicked(t){const i={include:this._layer},s=await this.mapView.hitTest(t.screenPoint,i);s.results.length>0?(s.results.forEach((t=>{const i=t.graphic.getObjectId();this._table.highlightIds.indexOf(i)<0&&(this._selectionFromMap=!0,this._table.highlightIds.add(i))})),this._showOnlySelected&&this._table.filterBySelection()):this._clearSelection()}_selectAll(){const t=this._allIds;this._table.highlightIds.removeAll(),this._skipOnChange=!0,this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange(),this._selectAllActive=!0}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._showOnlySelected?this._table.filterBySelection():this._table.clearSelectionFilter()}_clearSelection(){this.selectedIds=[],this._table?.highlightIds.removeAll(),this._table?.rowHighlightIds.removeAll(),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){const t=this.mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=t?t.filter((t=>t.id===this._layer?.id)):[],this._filterList.layerExpressions=this._layerExpressions,this._filterActive=this._layerExpressions.filter((t=>t.expressions.filter((t=>t.active)).length>0)).length>0}_switchSelected(){const t=[...this.selectedIds];this._table.highlightIds.removeAll();const i=this._allIds.reduce(((i,s)=>(t.indexOf(s)<0&&i.push(s),i)),[]).sort(((t,i)=>t-i));this._skipOnChange=!0,this._table.highlightIds.addMany(i),this.selectedIds=i,this._finishOnChange()}async _exportToCSV(){const t={},i=this._table.highlightIds.toArray();t[this._layer.id]={selectionSetNames:[this._layer.title],ids:i,layer:this._layer};const s=this._table.columns.toArray().reduce(((t,i)=>(i.hidden||t.push(i.name.toLocaleLowerCase()),t)),[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,await u(null,t,!1,!1,!0,s,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}_updateToolInfoLoading(t,i){this._toolInfos.some((s=>{if(s?.icon===t)return s.loading=i,!0}))}async _refresh(){await this._table.refresh(),this._allIds=await r(this._layer),this.featureSelectionChange.emit(this.selectedIds)}async _zoom(){if(this._layer){const t=await f(this.mapView,this._layer.id);await d(this.selectedIds,t,this.mapView,!0,void 0,this.zoomToScale)}}async _layerSelectionChanged(t){const i=t.detail[0];if(i!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0;const t=await n(this.mapView,i);t&&await t.when((()=>{this._layer=t,this._getFullTextSearchInfo()}))}this._fetchingData=!1}_getColumnTemplates(t,i){let s;this.mapInfo?.layerOptions?.layers.some((i=>{if(i.id===t)return s=i,!0}));const e=s?.fields&&s?.fieldOrder?s.fieldOrder.filter((t=>s.fields.indexOf(t)>-1)):void 0;let h;return i&&(h=s&&s?.fields?i.reduce(((t,i)=>{if(s.fields.indexOf(i.name)>-1){const s={type:"field",fieldName:i.name,label:i.alias,menuConfig:this._getMenuConfig(i.name)};t.push(s)}return t}),[]).sort(this._sortFields.bind(this,s?.fieldOrder)):i.map((t=>({type:"field",fieldName:t.name,label:t.alias,menuConfig:this._getMenuConfig(t.name)})))),e?h?.sort(this._sortFields.bind(this,e)):h}_sortFields(t,i,s){return t?.indexOf(i.fieldName)-t.indexOf(s.fieldName)}_getMenuConfig(t){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(t)}}]}}_handleHideClick(t){this._columnsInfo[t]=!1,this._table.hideColumn(t),this._table.tableTemplate.columnTemplates.forEach((i=>{i.fieldName===t&&(i.visible=!1)}))}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}static get watchers(){return{defaultOid:["defaultOidWatchHandler"],defaultGlobalId:["defaultGlobalIdWatchHandler"],enableCSV:["enableCSVWatchHandler"],enableInlineEdit:["enableInlineEditWatchHandler"],enableShare:["enableShareWatchHandler"],_controlsThatFit:["_controlsThatFitWatchHandler"],mapHidden:["mapHiddenWatchHandler"],isMobile:["isMobileWatchHandler"],mapInfo:["mapInfoWatchHandler"],mapView:["mapViewWatchHandler"],_layer:["_layerWatchHandler"],selectedIds:["selectedIdsWatchHandler"]}}};function g(t){return function(t){return-1!==t?.indexOf("http://")}(t)?t.replace(/^http:\/\//,"https://"):t}w.style=':host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir="rtl"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir="rtl"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}.esri-feature-table__table-container{height:100%}';const y=class{constructor(s){t(this,s),this.mapChanged=i(this,"mapChanged",7),this.beforeMapChanged=i(this,"beforeMapChanged",7),this.toggleFilter=i(this,"toggleFilter",7),this.appProxies=void 0,this.defaultWebmapId="",this.defaultLayerId=void 0,this.enableHome=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableSingleExpand=!0,this.enableSearch=void 0,this.enableBasemap=void 0,this.basemapConfig=void 0,this.hidden=void 0,this.homeZoomIndex=3,this.homeZoomPosition="top-left",this.homeZoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.mapView=void 0,this.stackTools=!0,this.theme=void 0,this.toolOrder=void 0,this.isMapLayout=void 0,this.selectedFeaturesIds=void 0,this.selectedLayer=void 0,this.zoomToScale=void 0,this.onlyShowUpdatableLayers=void 0,this.isMobile=void 0,this.mapInfo=void 0,this._translations=void 0,this._searchConfiguration=void 0,this._webMapInfo=void 0,this._showHideOpen=!1}get el(){return s(this)}esriConfig;Home;MapView;WebMap;_defaultWebmapHonored=!1;_homeWidget;_loadedId="";_mapDiv;_mapPicker;_mapTools;_moreDropdown;_mapListExpanded=!1;_filterActive=!1;_definitionExpression;enableHomeWatchHandler(){this._initHome()}async selectedLayerWatchHandler(){await(this.selectedLayer?.when((async()=>{this._definitionExpression=this.selectedLayer.definitionExpression})))}async filterReset(){this._filterActive=!1}async updateFilter(){this._filterActive=this._definitionExpression!==this.selectedLayer.definitionExpression}mapChanged;beforeMapChanged;toggleFilter;async mapInfoChange(t){await this._loadMap(t.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){const t=this.isMapLayout?"display-flex height-50-px":"",i=this.hidden?"visibility-hidden-1":"",s="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",a=this.mapInfos?.length>1?"":"display-none",o=this.mapInfos?.length>1?"map-height":"height-full",l=this.isMobile?"width-full":"",n=this.isMobile?"border-top":"",c=this.isMapLayout?"":"display-none";return e(h,{key:"6f827d045d920101c70f55e80a422383f94bae56"},e("div",{key:"50215e8f899cf6321b228b0ee5b8a0ba9e1911c4",class:`${t}`},e("map-picker",{key:"46dd475d52684cc239963160ab79019970fa13d2",class:a,isMapLayout:this.isMapLayout,mapInfos:this.mapInfos,ref:t=>this._mapPicker=t}),e("div",{key:"8a8f260bb3a22b5bc2b933f94ab940e8750a9757",class:`mapView-header display-flex ${c}`},e("div",{key:"a8ceb2a88432fbc052f00961a03d43cbf61dc076",class:`border-end ${l} ${n}`,id:"solutions-map-layer-picker-container"},this.mapView&&e("map-layer-picker",{key:"0c0c3e24b05491044d5bb42f460152eeb003dec2",appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,mapView:this.mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",scale:"l",selectedIds:this.selectedLayer?[this.selectedLayer.id]:[],showSingleLayerAsLabel:!0,showTables:!0,type:"dropdown"})),this._getDropDownItem())),e("div",{key:"6091fdd6540a8eda0df227251a581347c734369c",class:`${o} ${i}`,ref:t=>this._mapDiv=t}),e("map-tools",{key:"eb0823b1b1babd12822e0d8ee91bc76169a51476",basemapConfig:this.basemapConfig,class:`box-shadow ${s}`,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:t=>this._mapTools=t,searchConfiguration:this._searchConfiguration,stackTools:this.stackTools,toolOrder:this.toolOrder}))}async componentDidRender(){document.onclick=t=>this._handleDocumentClick(t)}async _initModules(){const[t,i,s,e]=await l(["esri/WebMap","esri/views/MapView","esri/widgets/Home","esri/config"]);this.WebMap=t,this.MapView=i,this.Home=s,this.esriConfig=e}async _loadMap(t){const i=!this._defaultWebmapHonored&&this.defaultWebmapId,s=this.mapInfos?.filter((t=>t.id===this.defaultWebmapId)),e=JSON.stringify(t)!==JSON.stringify(this._webMapInfo);this._webMapInfo=i&&s?s[0]:!t?.id&&this.mapInfos.length>0?this.mapInfos[0]:t;const h=this._webMapInfo.id,a=i&&t?.id===this.defaultWebmapId;if(this._loadedId!==h&&!i||a){const t=new this.WebMap({portalItem:{id:h}});this.appProxies&&(await t.load(),await(o=t,l=this.esriConfig,n=this.appProxies,n&&n.forEach((t=>{o.allLayers.forEach((i=>{i&&i.url===t.sourceUrl&&(i.url=g(t.proxyUrl),i.portalItem&&i.portalItem.when((()=>{i.portalItem.url=g(t.proxyUrl)})),l.request?.interceptors?.push({urls:t.sourceUrl,before:i=>{i.url&&i.url===t.sourceUrl&&(i.url=g(t.proxyUrl))}}))}))})),o)),this.mapView=new this.MapView({container:this._mapDiv,map:t,resizeAlign:"center"}),this._loadedId=h,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),await this.mapView.when((()=>{this._initHome(),this.mapView.ui.add(this._mapTools,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=!!a||this._defaultWebmapHonored,this.mapChanged.emit({id:h,mapView:this.mapView})}))}else i?(this._defaultWebmapHonored=!0,this._mapPicker.setMapByID(h)):e&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:h,mapView:this.mapView}));var o,l,n}_initHome(){if(this.enableHome){this._homeWidget=new this.Home({view:this.mapView}),this.mapView.ui.add(this._homeWidget,{position:this.homeZoomPosition,index:this.homeZoomIndex});const t="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";this._homeWidget.domNode.style.height=t,this._homeWidget.domNode.style.width=t}else this._homeWidget&&this.mapView.ui.remove(this._homeWidget)}_toggleShowHide(){this._showHideOpen=!this._showHideOpen}_forceShowHide(){this._moreDropdown&&(this._moreDropdown.open=this._showHideOpen)}_handleDocumentClick(t){const i=t.target?.id;this._showHideOpen&&"solutions-subset-list"!==i&&"solutions-more"!==i&&"chevron-down"!==i&&this._moreDropdown&&(this._showHideOpen=!1,this._moreDropdown.open=!1),"MAP-PICKER"===t.target.tagName&&(this._mapListExpanded=!this._mapListExpanded,this._mapPicker.toggle(this._mapListExpanded)),"MAP-PICKER"!==t.target.tagName&&(this._mapListExpanded=!1,this._mapPicker.close())}async _zoom(){if(this.selectedLayer){const t=await f(this.mapView,this.selectedLayer.id);await d(this.selectedFeaturesIds,t,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_hasFilterExpressions(){let t;return this.mapInfo?.filterConfig?.layerExpressions&&this.selectedLayer?.id&&(t=this.mapInfo.filterConfig.layerExpressions.filter((t=>t.id===this.selectedLayer.id))),t?.length>0}_getDropDownItem(){return e("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this.selectedLayer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._moreDropdown=t,widthScale:"l"},e("calcite-action",{appearance:"solid",id:"solutions-more",label:"",onClick:()=>this._toggleShowHide(),slot:"trigger",text:""},e("calcite-button",{appearance:"transparent",iconEnd:this._showHideOpen?"chevron-up":"chevron-down",kind:"neutral"},this._translations.more)),e("calcite-dropdown-group",{selectionMode:"none"},this._getDropDownItems()))}_getDropDownItems(){const t=this.selectedFeaturesIds?.length>0,i=this.selectedFeaturesIds?.length>1,s=this._hasFilterExpressions();return e(a,null,e("calcite-dropdown-group",{selectionMode:"none"},e("calcite-dropdown-item",{disabled:!i,iconStart:"pencil",id:"solutions-subset-list",onClick:()=>alert(this._translations.editMultiple)},this._translations.editMultiple)),e("calcite-dropdown-group",{selectionMode:"none"},e("calcite-dropdown-item",{iconStart:"refresh",id:"solutions-subset-list",onClick:()=>{this.selectedLayer.refresh()}},this._translations.refresh)),e("calcite-dropdown-group",{selectionMode:"none"},e("calcite-dropdown-item",{disabled:!t,iconStart:"zoom-to-object",id:"solutions-subset-list",onClick:this._zoom.bind(this)},this._translations.zoom)),s&&e("calcite-dropdown-group",null,e("calcite-dropdown-item",{disabled:!1,iconStart:"filter",id:"solutions-subset-list",onClick:this._toggleFilter.bind(this),selected:this._filterActive},this._translations.filters)))}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}static get watchers(){return{enableHome:["enableHomeWatchHandler"],selectedLayer:["selectedLayerWatchHandler"]}}};y.style=":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 51px)}.height-full{height:100%}.height-50-px{height:50px}.box-shadow{box-shadow:none !important}.visibility-hidden-1{visibility:hidden;height:1px;}.display-none{display:none}";export{m as card_manager,w as layer_table,y as map_card}
|
@@ -0,0 +1,6 @@
|
|
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{r as t,g as e,h as i,H as s}from"./p-6eb37ed2.js";import{g as a}from"./p-2058b5d9.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const r=class{constructor(e){t(this,e),this.templateInfos=[],this._sortedTemplateInfos=[],this._translations=void 0}get el(){return e(this)}_sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic","Real Time Analytic","Feed","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"];_types=[];async templateInfosWatchHandler(){this._types=[],this._sortedTemplateInfos=this._sortTemplates()}async componentWillLoad(){await this._getTranslations()}async componentWillRender(){0===this._sortedTemplateInfos.length&&this.templateInfos?.length>0&&(this._sortedTemplateInfos=this._sortTemplates())}render(){return i(s,{key:"c9fea75fb3cd0558366bb086eccb28c4e2b7b07d"},this._getAccordion())}_getAccordion(){return i("calcite-accordion",null,this._sortedTemplateInfos.reduce(((t,e)=>(this._types.indexOf(e.type)<0&&(this._types.push(e.type),t.push(this._getAccordionItem(e))),t)),[]))}_getAccordionItem(t){const e=this._sortedTemplateInfos.filter((e=>e.type===t.type));return i("calcite-accordion-item",{description:`${t.type} (${e.length})`},i("solution-item-icon",{class:"padding-start-1",slot:"actions-start",type:t.type,typeKeywords:t.typeKeywords}),this._getList(e))}_getList(t){return i("calcite-list",{class:"padding-start-1"},t.map((t=>this._getListItem(t))))}_getListItem(t){return i("calcite-list-item",{description:t.description,label:t.title,value:t.id})}_sortTemplates(){return this.templateInfos.sort(((t,e)=>{const i=this._updateType(t),s=this._updateType(e);return this._sortOrder.indexOf(i)-this._sortOrder.indexOf(s)}))}_updateType(t){let e=t.type;return"Feature Service"===t.type&&(e=t.typeKeywords.indexOf("View Service")>-1?"Feature Layer (hosted, view)":"Feature Layer (hosted)"),"Web Mapping Application"===t.type&&(e=t.typeKeywords.indexOf("configurableApp")>-1?"Instant App":e),t.type="Geoprocessing Service"===t.type?"Tool":"Vector Tile Service"===t.type?"Tile Layer":e,this._sortOrder.indexOf(e)<0&&(e="TypeNotFound"),e}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{templateInfos:["templateInfosWatchHandler"]}}};r.style=":host{display:block}.padding-start-1{padding-inline-start:1rem}";export{r as solution_item_accordion}
|