@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
@@ -0,0 +1,500 @@
|
|
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 registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b793d9aa.js';
|
7
|
+
import { e as slotChangeGetAssignedElements, b as focusElementInGroup, t as toAriaBoolean, h as getElementDir, v as whenAnimationDone } from './dom-42a638f6.js';
|
8
|
+
import { c as connectLocalized, d as disconnectLocalized } from './locale-a53a7bc6.js';
|
9
|
+
import { g as guid } from './guid-42656051.js';
|
10
|
+
import { c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive, I as InteractiveContainer } from './interactive-b2a41b8b.js';
|
11
|
+
import { a as setComponentLoaded, s as setUpLoadableComponent, c as componentFocusable } from './loadable-1a9b14b8.js';
|
12
|
+
import { c as connectMessages, d as disconnectMessages, s as setUpMessages, u as updateMessages } from './t9n-b33c486a.js';
|
13
|
+
import { g as getRoundRobinIndex } from './array-ddb2593b.js';
|
14
|
+
import './resources-745dec87.js';
|
15
|
+
import './key-d6dfb50e.js';
|
16
|
+
import './observers-6cac5525.js';
|
17
|
+
import './browser-a791205e.js';
|
18
|
+
|
19
|
+
/*!
|
20
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
21
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
22
|
+
* v2.12.2
|
23
|
+
*/
|
24
|
+
const DURATION = 6000;
|
25
|
+
const CSS$1 = {
|
26
|
+
container: "container",
|
27
|
+
containerOverlaid: "container--overlaid",
|
28
|
+
containerEdged: "container--edged",
|
29
|
+
itemContainer: "item-container",
|
30
|
+
itemContainerForward: "item-container--forward",
|
31
|
+
itemContainerBackward: "item-container--backward",
|
32
|
+
pagination: "pagination",
|
33
|
+
paginationItems: "pagination-items",
|
34
|
+
paginationItem: "pagination-item",
|
35
|
+
paginationItemIndividual: "pagination-item--individual",
|
36
|
+
paginationItemSelected: "pagination-item--selected",
|
37
|
+
pageNext: "page-next",
|
38
|
+
pagePrevious: "page-previous",
|
39
|
+
autoplayControl: "autoplay-control",
|
40
|
+
autoplayProgress: "autoplay-progress",
|
41
|
+
};
|
42
|
+
const ICONS = {
|
43
|
+
chevronLeft: "chevron-left",
|
44
|
+
chevronRight: "chevron-right",
|
45
|
+
inactive: "bullet-point",
|
46
|
+
active: "bullet-point-large",
|
47
|
+
pause: "pause-f",
|
48
|
+
play: "play-f",
|
49
|
+
};
|
50
|
+
|
51
|
+
const carouselCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;inline-size:100%;--calcite-internal-internal-carousel-item-space:1.5rem;--calcite-internal-internal-carousel-item-space-wide:3.5rem;--calcite-internal-internal-carousel-item-background-color:var(\n --calcite-internal-carousel-item-background-color,\n var(--calcite-color-foreground-1)\n );--calcite-internal-internal-carousel-item-background-color-hover:var(\n --calcite-internal-carousel-item-background-color-hover,\n var(--calcite-color-foreground-2)\n );--calcite-internal-internal-carousel-item-background-color-active:var(\n --calcite-internal-carousel-item-background-color-active,\n var(--calcite-color-foreground-2)\n );--calcite-internal-internal-carousel-item-background-color-selected:var(\n --calcite-internal-carousel-item-background-color-selected,\n var(--calcite-color-foreground-1)\n );--calcite-internal-internal-carousel-item-icon-color-hover:var(\n --calcite-internal-carousel-item-icon-color-hover,\n var(--calcite-action-color-transparent-hover)\n );--calcite-internal-internal-carousel-item-icon-color:var(\n --calcite-internal-carousel-item-icon-color,\n var(--calcite-color-border-3)\n );--calcite-internal-internal-carousel-item-icon-color-selected:var(\n --calcite-internal-carousel-item-icon-color-selected,\n var(--calcite-color-brand)\n );--calcite-internal-internal-carousel-control-color-hover:var(\n --calcite-internal-carousel-control-color-hover,\n var(--calcite-internal-carousel-item-icon-color-hover)\n );--calcite-internal-internal-carousel-control-color:var(\n --calcite-internal-carousel-item-icon-color,\n var(--calcite-color-border-input)\n );--calcite-internal-internal-carousel-autoplay-progress-background-color:var(\n --calcite-internal-carousel-autoplay-progress-background-color,\n var(--calcite-color-border-3)\n );--calcite-internal-internal-carousel-autoplay-progress-fill-color:var(\n --calcite-internal-carousel-autoplay-progress-fill-color,\n var(--calcite-color-brand)\n )}.container{position:relative;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);outline-color:transparent}.container:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.container--edged:not(.container--overlaid){padding-inline:var(--calcite-internal-internal-carousel-item-space-wide);inline-size:calc(100% - var(--calcite-internal-internal-carousel-item-space-wide) * 2)}.item-container{display:flex;flex:1 1 auto;align-items:flex-start;justify-content:center;overflow:auto;padding:0.25rem;animation-name:none;animation-duration:var(--calcite-animation-timing)}.container--overlaid .item-container{padding:0px}.item-container--forward{animation-name:item-forward}.item-container--backward{animation-name:item-backward}calcite-carousel-item:not([selected]){opacity:0}.pagination{margin:0.75rem;display:flex;flex-direction:row;align-items:center;justify-content:center;inline-size:auto}.pagination-items{display:flex;flex-direction:row;align-items:center}.container--overlaid .pagination{position:absolute}.pagination-item.page-next,.pagination-item.page-previous{color:var(--calcite-internal-internal-carousel-control-color)}.pagination-item.page-next:hover,.pagination-item.page-previous:hover{color:var(--calcite-internal-internal-carousel-control-color-hover)}.container--edged .page-next,.container--edged .page-previous{block-size:3rem;inline-size:3rem;position:absolute;inset-block-start:50%;transform:translateY(-50%)}.container--edged .page-next{inset-inline-end:0}.container--edged .page-previous{inset-inline-start:0}.container--overlaid .pagination{inset-block-start:unset;inset-block-end:0;inset-inline:0}.pagination-item.autoplay-control{position:relative;color:var(--calcite-internal-internal-carousel-control-color);--calcite-color-brand:var(--calcite-internal-internal-carousel-autoplay-progress-fill-color);--calcite-color-border-3:var(--calcite-internal-internal-carousel-autoplay-progress-background-color)}.autoplay-control:focus .autoplay-progress{inset-block-end:4px;inset-inline:2px;inline-size:calc(100% - 4px)}.autoplay-progress{position:absolute;inset-block-end:2px;inset-inline:0;inline-size:100%}.pagination-item{margin:0px;block-size:2rem;inline-size:2rem;cursor:pointer;align-items:center;border-style:none;background-color:transparent;outline-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;-webkit-appearance:none;display:flex;align-content:center;justify-content:center;--calcite-color-foreground-1:var(--calcite-internal-internal-carousel-item-background-color);color:var(--calcite-internal-internal-carousel-item-icon-color)}.pagination-item:hover{background-color:var(--calcite-internal-internal-carousel-item-background-color-hover);color:var(--calcite-internal-internal-carousel-item-icon-color-hover)}.pagination-item:focus{background-color:var(--calcite-internal-internal-carousel-item-background-color-active);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.pagination-item:active{background-color:var(--calcite-internal-internal-carousel-item-background-color-active);color:var(--calcite-internal-internal-carousel-item-icon-color-hover)}.pagination-item calcite-icon{color:inherit;pointer-events:none}.pagination-item.pagination-item--selected{--calcite-color-foreground-1:var(--calcite-internal-internal-carousel-item-background-color-selected);--calcite-color-foreground-3:var(--calcite-internal-internal-carousel-item-background-color-selected);color:var(--calcite-internal-internal-carousel-item-icon-color-selected)}.container--overlaid .pagination-item{background-color:var(--calcite-internal-internal-carousel-item-background-color)}.container--overlaid .pagination-item:hover{background-color:var(--calcite-internal-internal-carousel-item-background-color-hover)}.container--overlaid .pagination-item:focus{background-color:var(--calcite-internal-internal-carousel-item-background-color-active)}.container--overlaid .pagination-item:active{background-color:var(--calcite-internal-internal-carousel-item-background-color-active)}@keyframes item-forward{0%{transform:translate3d(100px, 0, 0)}100%{transform:translate3d(0, 0, 0)}}@keyframes item-backward{0%{transform:translate3d(-100px, 0, 0)}100%{transform:translate3d(0, 0, 0)}}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";
|
52
|
+
const CalciteCarouselStyle0 = carouselCss;
|
53
|
+
|
54
|
+
const Carousel = class {
|
55
|
+
constructor(hostRef) {
|
56
|
+
registerInstance(this, hostRef);
|
57
|
+
this.calciteCarouselChange = createEvent(this, "calciteCarouselChange", 6);
|
58
|
+
this.calciteCarouselPlay = createEvent(this, "calciteCarouselPlay", 6);
|
59
|
+
this.calciteCarouselStop = createEvent(this, "calciteCarouselStop", 6);
|
60
|
+
this.calciteCarouselPause = createEvent(this, "calciteCarouselPause", 6);
|
61
|
+
this.calciteCarouselResume = createEvent(this, "calciteCarouselResume", 6);
|
62
|
+
this.containerId = `calcite-carousel-container-${guid()}`;
|
63
|
+
this.slideDurationInterval = null;
|
64
|
+
this.slideInterval = null;
|
65
|
+
this.autoplayHandler = () => {
|
66
|
+
this.clearIntervals();
|
67
|
+
this.slideDurationInterval = setInterval(this.timer, this.autoplayDuration / 100);
|
68
|
+
};
|
69
|
+
this.timer = () => {
|
70
|
+
let time = this.slideDurationRemaining;
|
71
|
+
const notSuspended = (!this.suspendedDueToFocus && !this.suspendedDueToHover) || this.userPreventsSuspend;
|
72
|
+
if (notSuspended) {
|
73
|
+
if (time <= 0.01) {
|
74
|
+
time = 1;
|
75
|
+
this.nextItem(false);
|
76
|
+
}
|
77
|
+
else {
|
78
|
+
time = time - 0.01;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
if (time > 0) {
|
82
|
+
this.slideDurationRemaining = time;
|
83
|
+
}
|
84
|
+
};
|
85
|
+
this.handleSlotChange = (event) => {
|
86
|
+
const items = slotChangeGetAssignedElements(event);
|
87
|
+
if (items.length < 1) {
|
88
|
+
return;
|
89
|
+
}
|
90
|
+
const activeItemIndex = items.findIndex((item) => item.selected);
|
91
|
+
const requestedSelectedIndex = activeItemIndex > -1 ? activeItemIndex : 0;
|
92
|
+
this.items = items;
|
93
|
+
this.setSelectedItem(requestedSelectedIndex, false);
|
94
|
+
};
|
95
|
+
this.setSelectedItem = (requestedIndex, emit) => {
|
96
|
+
const previousSelected = this.selectedIndex;
|
97
|
+
this.items.forEach((el, index) => {
|
98
|
+
const isMatch = requestedIndex === index;
|
99
|
+
el.selected = isMatch;
|
100
|
+
if (isMatch) {
|
101
|
+
this.selectedItem = el;
|
102
|
+
this.selectedIndex = index;
|
103
|
+
}
|
104
|
+
});
|
105
|
+
if (emit) {
|
106
|
+
this.playing = false;
|
107
|
+
if (previousSelected !== this.selectedIndex) {
|
108
|
+
this.calciteCarouselChange.emit();
|
109
|
+
}
|
110
|
+
}
|
111
|
+
};
|
112
|
+
this.handleArrowClick = (event) => {
|
113
|
+
const direction = event.target.dataset.direction;
|
114
|
+
if (direction === "next") {
|
115
|
+
this.direction = "forward";
|
116
|
+
this.nextItem(true);
|
117
|
+
}
|
118
|
+
else if (direction === "previous") {
|
119
|
+
this.direction = "backward";
|
120
|
+
this.previousItem();
|
121
|
+
}
|
122
|
+
};
|
123
|
+
this.handleItemSelection = (event) => {
|
124
|
+
const item = event.target;
|
125
|
+
const requestedPosition = parseInt(item.dataset.index);
|
126
|
+
if (requestedPosition === this.selectedIndex) {
|
127
|
+
return;
|
128
|
+
}
|
129
|
+
if (this.playing) {
|
130
|
+
this.handlePause(true);
|
131
|
+
}
|
132
|
+
this.direction = requestedPosition > this.selectedIndex ? "forward" : "backward";
|
133
|
+
this.setSelectedItem(requestedPosition, true);
|
134
|
+
};
|
135
|
+
this.toggleRotation = () => {
|
136
|
+
this.userPreventsSuspend = true;
|
137
|
+
if (this.playing) {
|
138
|
+
this.handlePause(true);
|
139
|
+
}
|
140
|
+
else {
|
141
|
+
this.handlePlay(true);
|
142
|
+
}
|
143
|
+
};
|
144
|
+
this.handleFocusIn = () => {
|
145
|
+
const isPlaying = this.playing;
|
146
|
+
if (isPlaying) {
|
147
|
+
this.suspendedDueToFocus = true;
|
148
|
+
}
|
149
|
+
if ((!this.suspendedDueToFocus || !this.suspendedDueToHover) && isPlaying) {
|
150
|
+
this.calciteCarouselPause.emit();
|
151
|
+
}
|
152
|
+
};
|
153
|
+
this.handleMouseIn = () => {
|
154
|
+
const isPlaying = this.playing;
|
155
|
+
if (isPlaying) {
|
156
|
+
this.suspendedDueToHover = true;
|
157
|
+
}
|
158
|
+
if ((!this.suspendedDueToFocus || !this.suspendedDueToHover) && isPlaying) {
|
159
|
+
this.calciteCarouselPause.emit();
|
160
|
+
}
|
161
|
+
};
|
162
|
+
this.handleMouseOut = (event) => {
|
163
|
+
const leavingComponent = !this.el.contains(event.relatedTarget);
|
164
|
+
const isPlaying = this.playing;
|
165
|
+
if (leavingComponent && isPlaying) {
|
166
|
+
this.suspendedDueToHover = false;
|
167
|
+
}
|
168
|
+
if (leavingComponent && isPlaying && !this.suspendedDueToFocus) {
|
169
|
+
this.userPreventsSuspend = false;
|
170
|
+
this.calciteCarouselResume.emit();
|
171
|
+
}
|
172
|
+
};
|
173
|
+
this.handleFocusOut = (event) => {
|
174
|
+
const leavingComponent = !event.composedPath().includes(event.relatedTarget);
|
175
|
+
const isPlaying = this.playing;
|
176
|
+
if (leavingComponent && isPlaying) {
|
177
|
+
this.suspendedDueToFocus = false;
|
178
|
+
}
|
179
|
+
if (leavingComponent && isPlaying && !this.suspendedDueToHover) {
|
180
|
+
this.userPreventsSuspend = false;
|
181
|
+
this.calciteCarouselResume.emit();
|
182
|
+
}
|
183
|
+
};
|
184
|
+
this.containerKeyDownHandler = (event) => {
|
185
|
+
if (event.target !== this.container) {
|
186
|
+
return;
|
187
|
+
}
|
188
|
+
const lastItem = this.items.length - 1;
|
189
|
+
switch (event.key) {
|
190
|
+
case " ":
|
191
|
+
case "Enter":
|
192
|
+
event.preventDefault();
|
193
|
+
if (this.autoplay === "" || this.autoplay || this.autoplay === "paused") {
|
194
|
+
this.toggleRotation();
|
195
|
+
}
|
196
|
+
break;
|
197
|
+
case "ArrowRight":
|
198
|
+
this.direction = "forward";
|
199
|
+
this.nextItem(true);
|
200
|
+
break;
|
201
|
+
case "ArrowLeft":
|
202
|
+
this.direction = "backward";
|
203
|
+
this.previousItem();
|
204
|
+
break;
|
205
|
+
case "Home":
|
206
|
+
event.preventDefault();
|
207
|
+
if (this.selectedIndex === 0) {
|
208
|
+
return;
|
209
|
+
}
|
210
|
+
this.direction = "backward";
|
211
|
+
this.setSelectedItem(0, true);
|
212
|
+
break;
|
213
|
+
case "End":
|
214
|
+
event.preventDefault();
|
215
|
+
if (this.selectedIndex === lastItem) {
|
216
|
+
return;
|
217
|
+
}
|
218
|
+
this.direction = "forward";
|
219
|
+
this.setSelectedItem(lastItem, true);
|
220
|
+
break;
|
221
|
+
}
|
222
|
+
};
|
223
|
+
this.tabListKeyDownHandler = (event) => {
|
224
|
+
const interactiveItems = Array(...this.tabList.querySelectorAll("button"));
|
225
|
+
const currentEl = event.target;
|
226
|
+
switch (event.key) {
|
227
|
+
case "ArrowRight":
|
228
|
+
focusElementInGroup(interactiveItems, currentEl, "next");
|
229
|
+
break;
|
230
|
+
case "ArrowLeft":
|
231
|
+
focusElementInGroup(interactiveItems, currentEl, "previous");
|
232
|
+
break;
|
233
|
+
case "Home":
|
234
|
+
event.preventDefault();
|
235
|
+
focusElementInGroup(interactiveItems, currentEl, "first");
|
236
|
+
break;
|
237
|
+
case "End":
|
238
|
+
event.preventDefault();
|
239
|
+
focusElementInGroup(interactiveItems, currentEl, "last");
|
240
|
+
break;
|
241
|
+
}
|
242
|
+
};
|
243
|
+
this.storeTabListRef = (el) => {
|
244
|
+
this.tabList = el;
|
245
|
+
};
|
246
|
+
this.storeContainerRef = (el) => {
|
247
|
+
this.container = el;
|
248
|
+
};
|
249
|
+
this.storeItemContainerRef = (el) => {
|
250
|
+
this.itemContainer = el;
|
251
|
+
};
|
252
|
+
// --------------------------------------------------------------------------
|
253
|
+
//
|
254
|
+
// Render Methods
|
255
|
+
//
|
256
|
+
// --------------------------------------------------------------------------
|
257
|
+
this.renderRotationControl = () => {
|
258
|
+
const text = this.playing ? this.messages.pause : this.messages.play;
|
259
|
+
return (h("button", { "aria-label": text, class: {
|
260
|
+
[CSS$1.paginationItem]: true,
|
261
|
+
[CSS$1.autoplayControl]: true,
|
262
|
+
}, onClick: this.toggleRotation, title: text }, h("calcite-icon", { icon: this.playing ? ICONS.pause : ICONS.play, scale: "s" }), this.playing && (h("calcite-progress", { class: CSS$1.autoplayProgress, label: this.messages.carouselItemProgress, value: this.slideDurationRemaining }))));
|
263
|
+
};
|
264
|
+
this.renderPaginationArea = () => (h("div", { class: {
|
265
|
+
[CSS$1.pagination]: true,
|
266
|
+
[CSS$1.containerOverlaid]: this.controlOverlay,
|
267
|
+
}, onKeyDown: this.tabListKeyDownHandler, ref: this.storeTabListRef }, (this.playing || this.autoplay === "" || this.autoplay || this.autoplay === "paused") &&
|
268
|
+
this.renderRotationControl(), this.arrowType === "inline" && this.renderArrow("previous"), this.renderPaginationItems(), this.arrowType === "inline" && this.renderArrow("next")));
|
269
|
+
this.renderPaginationItems = () => (h("div", { "aria-label": this.label, class: CSS$1.paginationItems, role: "tablist" }, this.items.map((item, index) => {
|
270
|
+
const isMatch = index === this.selectedIndex;
|
271
|
+
return (h("button", { "aria-controls": !isMatch ? item.id : undefined, "aria-selected": toAriaBoolean(isMatch), class: {
|
272
|
+
[CSS$1.paginationItem]: true,
|
273
|
+
[CSS$1.paginationItemIndividual]: true,
|
274
|
+
[CSS$1.paginationItemSelected]: isMatch,
|
275
|
+
}, "data-index": index, key: item.id, onClick: this.handleItemSelection, role: "tab", title: item.label }, h("calcite-icon", { icon: isMatch ? ICONS.active : ICONS.inactive, scale: "l" })));
|
276
|
+
})));
|
277
|
+
this.renderArrow = (direction) => {
|
278
|
+
const isPrev = direction === "previous";
|
279
|
+
const dir = getElementDir(this.el);
|
280
|
+
const scale = this.arrowType === "edge" ? "m" : "s";
|
281
|
+
const css = isPrev ? CSS$1.pagePrevious : CSS$1.pageNext;
|
282
|
+
const title = isPrev ? this.messages.previous : this.messages.next;
|
283
|
+
const icon = isPrev ? ICONS.chevronLeft : ICONS.chevronRight;
|
284
|
+
return (h("button", { "aria-controls": this.containerId, class: { [CSS$1.paginationItem]: true, [css]: true }, "data-direction": direction, onClick: this.handleArrowClick, title: title }, h("calcite-icon", { flipRtl: dir === "rtl", icon: icon, scale: scale })));
|
285
|
+
};
|
286
|
+
this.autoplay = false;
|
287
|
+
this.arrowType = "inline";
|
288
|
+
this.autoplayDuration = DURATION;
|
289
|
+
this.controlOverlay = false;
|
290
|
+
this.disabled = false;
|
291
|
+
this.label = undefined;
|
292
|
+
this.messages = undefined;
|
293
|
+
this.messageOverrides = undefined;
|
294
|
+
this.paused = undefined;
|
295
|
+
this.selectedItem = undefined;
|
296
|
+
this.selectedIndex = undefined;
|
297
|
+
this.items = [];
|
298
|
+
this.direction = "standby";
|
299
|
+
this.defaultMessages = undefined;
|
300
|
+
this.playing = false;
|
301
|
+
this.suspendedDueToFocus = false;
|
302
|
+
this.suspendedDueToHover = false;
|
303
|
+
this.userPreventsSuspend = false;
|
304
|
+
this.effectiveLocale = "";
|
305
|
+
this.suspendedSlideDurationRemaining = 1;
|
306
|
+
this.slideDurationRemaining = 1;
|
307
|
+
}
|
308
|
+
autoplayWatcher(autoplay) {
|
309
|
+
if (!autoplay) {
|
310
|
+
this.handlePause(false);
|
311
|
+
}
|
312
|
+
}
|
313
|
+
onMessagesChange() {
|
314
|
+
/* wired up by t9n util */
|
315
|
+
}
|
316
|
+
// --------------------------------------------------------------------------
|
317
|
+
//
|
318
|
+
// Lifecycle
|
319
|
+
//
|
320
|
+
// --------------------------------------------------------------------------
|
321
|
+
connectedCallback() {
|
322
|
+
connectInteractive(this);
|
323
|
+
connectLocalized(this);
|
324
|
+
connectMessages(this);
|
325
|
+
}
|
326
|
+
componentDidLoad() {
|
327
|
+
setComponentLoaded(this);
|
328
|
+
}
|
329
|
+
componentDidRender() {
|
330
|
+
updateHostInteraction(this);
|
331
|
+
}
|
332
|
+
disconnectedCallback() {
|
333
|
+
disconnectInteractive(this);
|
334
|
+
disconnectLocalized(this);
|
335
|
+
disconnectMessages(this);
|
336
|
+
this.clearIntervals();
|
337
|
+
}
|
338
|
+
async componentWillLoad() {
|
339
|
+
/* When the 'autoplay' property of type 'boolean | string' is set to true, the value is "". */
|
340
|
+
if ((this.autoplay === "" || this.autoplay) && this.autoplay !== "paused") {
|
341
|
+
this.handlePlay(false);
|
342
|
+
}
|
343
|
+
else if (this.autoplay === "paused") {
|
344
|
+
this.paused = true;
|
345
|
+
}
|
346
|
+
setUpLoadableComponent(this);
|
347
|
+
await setUpMessages(this);
|
348
|
+
}
|
349
|
+
// --------------------------------------------------------------------------
|
350
|
+
//
|
351
|
+
// Public Methods
|
352
|
+
//
|
353
|
+
// --------------------------------------------------------------------------
|
354
|
+
/** Sets focus on the component. */
|
355
|
+
async setFocus() {
|
356
|
+
await componentFocusable(this);
|
357
|
+
this.container?.focus();
|
358
|
+
}
|
359
|
+
/** Play the carousel. If `autoplay` is not enabled (initialized either to `true` or `"paused"`), these methods will have no effect. */
|
360
|
+
async play() {
|
361
|
+
/* When the 'autoplay' property of type 'boolean | string' is set to true, the value is "". */
|
362
|
+
if (this.playing || (this.autoplay !== "" && !this.autoplay && this.autoplay !== "paused")) {
|
363
|
+
return;
|
364
|
+
}
|
365
|
+
this.handlePlay(true);
|
366
|
+
}
|
367
|
+
/** Stop the carousel. If `autoplay` is not enabled (initialized either to `true` or `"paused"`), these methods will have no effect. */
|
368
|
+
async stop() {
|
369
|
+
if (!this.playing) {
|
370
|
+
return;
|
371
|
+
}
|
372
|
+
this.handlePause(true);
|
373
|
+
}
|
374
|
+
async directionWatcher(direction) {
|
375
|
+
if (direction === "standby") {
|
376
|
+
return;
|
377
|
+
}
|
378
|
+
await whenAnimationDone(this.itemContainer, direction === "forward" ? "item-forward" : "item-backward");
|
379
|
+
this.direction = "standby";
|
380
|
+
}
|
381
|
+
playingWatcher() {
|
382
|
+
this.paused = !this.playing;
|
383
|
+
}
|
384
|
+
suspendWatcher() {
|
385
|
+
if (!this.suspendedDueToFocus && !this.suspendedDueToHover) {
|
386
|
+
this.suspendEnd();
|
387
|
+
}
|
388
|
+
else {
|
389
|
+
this.suspendStart();
|
390
|
+
}
|
391
|
+
}
|
392
|
+
async effectiveLocaleChange() {
|
393
|
+
await updateMessages(this, this.effectiveLocale);
|
394
|
+
}
|
395
|
+
// --------------------------------------------------------------------------
|
396
|
+
//
|
397
|
+
// Private Methods
|
398
|
+
//
|
399
|
+
// --------------------------------------------------------------------------
|
400
|
+
clearIntervals() {
|
401
|
+
clearInterval(this.slideDurationInterval);
|
402
|
+
clearInterval(this.slideInterval);
|
403
|
+
}
|
404
|
+
nextItem(emit) {
|
405
|
+
if (this.playing && emit) {
|
406
|
+
this.playing = false;
|
407
|
+
}
|
408
|
+
const nextIndex = getRoundRobinIndex(this.selectedIndex + 1, this.items.length);
|
409
|
+
this.setSelectedItem(nextIndex, emit);
|
410
|
+
}
|
411
|
+
previousItem() {
|
412
|
+
this.playing = false;
|
413
|
+
const prevIndex = getRoundRobinIndex(Math.max(this.selectedIndex - 1, -1), this.items.length);
|
414
|
+
this.setSelectedItem(prevIndex, true);
|
415
|
+
}
|
416
|
+
handlePlay(emit) {
|
417
|
+
this.playing = true;
|
418
|
+
this.autoplayHandler();
|
419
|
+
this.slideInterval = setInterval(this.autoplayHandler, this.autoplayDuration);
|
420
|
+
if (emit) {
|
421
|
+
this.calciteCarouselPlay.emit();
|
422
|
+
}
|
423
|
+
}
|
424
|
+
handlePause(emit) {
|
425
|
+
this.playing = false;
|
426
|
+
this.clearIntervals();
|
427
|
+
this.slideDurationRemaining = 1;
|
428
|
+
this.suspendedSlideDurationRemaining = 1;
|
429
|
+
if (emit) {
|
430
|
+
this.calciteCarouselStop.emit();
|
431
|
+
}
|
432
|
+
}
|
433
|
+
suspendStart() {
|
434
|
+
this.suspendedSlideDurationRemaining = this.slideDurationRemaining;
|
435
|
+
}
|
436
|
+
suspendEnd() {
|
437
|
+
this.slideDurationRemaining = this.suspendedSlideDurationRemaining;
|
438
|
+
}
|
439
|
+
render() {
|
440
|
+
const { direction } = this;
|
441
|
+
return (h(Host, { key: 'bff4155cb4358665eb6530b6637322598604d873' }, h(InteractiveContainer, { key: '7a388be689aca07856f350963c33bce1d4e5e278', disabled: this.disabled }, h("div", { key: 'c53c92b22ace937c0d2a6568ddd729ccb1b91108', "aria-label": this.label, "aria-live": this.playing ? "off" : "polite", "aria-roledescription": this.messages.carousel, class: {
|
442
|
+
[CSS$1.container]: true,
|
443
|
+
[CSS$1.containerOverlaid]: this.controlOverlay,
|
444
|
+
[CSS$1.containerEdged]: this.arrowType === "edge",
|
445
|
+
}, onFocusin: this.handleFocusIn, onFocusout: this.handleFocusOut, onKeyDown: this.containerKeyDownHandler, onMouseEnter: this.handleMouseIn, onMouseLeave: this.handleMouseOut, ref: this.storeContainerRef, role: "group", tabIndex: 0 }, h("section", { key: 'cae379b167a37ef82417ab308c7d623300790122', class: {
|
446
|
+
[CSS$1.itemContainer]: true,
|
447
|
+
[CSS$1.itemContainerForward]: direction === "forward",
|
448
|
+
[CSS$1.itemContainerBackward]: direction === "backward",
|
449
|
+
}, id: this.containerId,
|
450
|
+
// eslint-disable-next-line react/jsx-sort-props -- auto-generated by @esri/calcite-components/enforce-ref-last-prop
|
451
|
+
ref: this.storeItemContainerRef }, h("slot", { key: 'bf14a67b46e8946e9cafc57a8d0625b65513f702', onSlotchange: this.handleSlotChange })), this.items.length > 1 && this.renderPaginationArea(), this.arrowType === "edge" && this.renderArrow("previous"), this.arrowType === "edge" && this.renderArrow("next")))));
|
452
|
+
}
|
453
|
+
static get assetsDirs() { return ["assets"]; }
|
454
|
+
get el() { return getElement(this); }
|
455
|
+
static get watchers() { return {
|
456
|
+
"autoplay": ["autoplayWatcher"],
|
457
|
+
"messageOverrides": ["onMessagesChange"],
|
458
|
+
"direction": ["directionWatcher"],
|
459
|
+
"playing": ["playingWatcher"],
|
460
|
+
"suspendedDueToFocus": ["suspendWatcher"],
|
461
|
+
"suspendedDueToHover": ["suspendWatcher"],
|
462
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
463
|
+
}; }
|
464
|
+
};
|
465
|
+
Carousel.style = CalciteCarouselStyle0;
|
466
|
+
|
467
|
+
/*!
|
468
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
469
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
470
|
+
* v2.12.2
|
471
|
+
*/
|
472
|
+
const CSS = {
|
473
|
+
container: "container",
|
474
|
+
selected: "selected",
|
475
|
+
};
|
476
|
+
|
477
|
+
const carouselItemCss = ":host{display:flex}.container{display:none;inline-size:var(--calcite-container-size-content-fluid)}:host([selected]) .container{display:block}:host([hidden]){display:none}[hidden]{display:none}";
|
478
|
+
const CalciteCarouselItemStyle0 = carouselItemCss;
|
479
|
+
|
480
|
+
const CarouselItem = class {
|
481
|
+
constructor(hostRef) {
|
482
|
+
registerInstance(this, hostRef);
|
483
|
+
this.guid = `calcite-carousel-item-${guid()}`;
|
484
|
+
this.label = undefined;
|
485
|
+
this.selected = false;
|
486
|
+
}
|
487
|
+
// --------------------------------------------------------------------------
|
488
|
+
//
|
489
|
+
// Render Methods
|
490
|
+
//
|
491
|
+
// --------------------------------------------------------------------------
|
492
|
+
render() {
|
493
|
+
const id = this.el.id || this.guid;
|
494
|
+
return (h(Host, { key: '6d4ac387ae1b4748050c82d8387edd30e6c0e662', id: id }, h("div", { key: 'c6a4c67d99dd6e34198b2d128efb518e757277ce', "aria-label": this.label, class: { [CSS.container]: true, [CSS.selected]: this.selected }, role: "tabpanel" }, h("slot", { key: '2ed94883d41dba5430a39933c6fe91bb25b12703' }))));
|
495
|
+
}
|
496
|
+
get el() { return getElement(this); }
|
497
|
+
};
|
498
|
+
CarouselItem.style = CalciteCarouselItemStyle0;
|
499
|
+
|
500
|
+
export { Carousel as calcite_carousel, CarouselItem as calcite_carousel_item };
|
@@ -4,12 +4,12 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b793d9aa.js';
|
7
|
-
import {
|
8
|
-
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-
|
7
|
+
import { h as getElementDir, t as toAriaBoolean } from './dom-42a638f6.js';
|
8
|
+
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-46367137.js';
|
9
9
|
import { g as guid } from './guid-42656051.js';
|
10
10
|
import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction, I as InteractiveContainer } from './interactive-b2a41b8b.js';
|
11
11
|
import { i as isActivationKey } from './key-d6dfb50e.js';
|
12
|
-
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-
|
12
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-f2ec1100.js';
|
13
13
|
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-1a9b14b8.js';
|
14
14
|
import { C as CSS_UTILITY } from './resources-745dec87.js';
|
15
15
|
import './browser-a791205e.js';
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-b793d9aa.js';
|
7
|
-
import {
|
7
|
+
import { e as slotChangeGetAssignedElements, b as focusElementInGroup, t as toAriaBoolean } from './dom-42a638f6.js';
|
8
8
|
import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction, I as InteractiveContainer } from './interactive-b2a41b8b.js';
|
9
9
|
import { a as setComponentLoaded, s as setUpLoadableComponent, c as componentFocusable } from './loadable-1a9b14b8.js';
|
10
10
|
import './guid-42656051.js';
|
@@ -4,17 +4,17 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b793d9aa.js';
|
7
|
-
import { s as slotChangeHasAssignedElement, t as toAriaBoolean, g as getSlotted } from './dom-
|
7
|
+
import { s as slotChangeHasAssignedElement, t as toAriaBoolean, g as getSlotted } from './dom-42a638f6.js';
|
8
8
|
import { a as setComponentLoaded, s as setUpLoadableComponent, c as componentFocusable } from './loadable-1a9b14b8.js';
|
9
|
-
import { u as updateMessages, c as connectMessages, d as disconnectMessages, s as setUpMessages } from './t9n-
|
9
|
+
import { u as updateMessages, c as connectMessages, d as disconnectMessages, s as setUpMessages } from './t9n-b33c486a.js';
|
10
10
|
import { c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive, I as InteractiveContainer } from './interactive-b2a41b8b.js';
|
11
|
-
import { c as connectLocalized, d as disconnectLocalized } from './locale-
|
11
|
+
import { c as connectLocalized, d as disconnectLocalized } from './locale-a53a7bc6.js';
|
12
12
|
import { i as isActivationKey } from './key-d6dfb50e.js';
|
13
13
|
import { g as getIconScale } from './component-d35983a4.js';
|
14
14
|
import { i as isBrowser } from './browser-a791205e.js';
|
15
15
|
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0cbc7172.js';
|
16
16
|
import { g as guid } from './guid-42656051.js';
|
17
|
-
import { g as getAncestors, i as isSingleLike, a as getDepth } from './utils-
|
17
|
+
import { g as getAncestors, i as isSingleLike, a as getDepth } from './utils-d67a6d71.js';
|
18
18
|
import './resources-745dec87.js';
|
19
19
|
import './observers-6cac5525.js';
|
20
20
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, g as getElement, F as Fragment } from './index-b793d9aa.js';
|
7
7
|
import { a as Color, q as isLonghandHex, r as isShorthandHex, s as isValidHex, u as rgbToHex, n as normalizeHex, o as opacityToAlpha, h as hexify, v as hexChar, O as OPACITY_LIMITS, c as alphaToOpacity } from './utils-d2524a35.js';
|
8
|
-
import {
|
8
|
+
import { d as focusElement, x as getModeName } from './dom-42a638f6.js';
|
9
9
|
import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentFocusable } from './loadable-1a9b14b8.js';
|
10
10
|
import './guid-42656051.js';
|
11
11
|
import './resources-745dec87.js';
|
@@ -5,13 +5,13 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-b793d9aa.js';
|
7
7
|
import { C as CSSColorMode, n as normalizeHex, h as hexify, a as Color, o as opacityToAlpha, b as CSS, c as alphaToOpacity, D as DEFAULT_COLOR, d as DIMENSIONS, e as alphaCompatible, g as getSliderWidth, p as parseMode, f as normalizeColor, i as colorEqual, R as RGB_LIMITS, H as HSV_LIMITS, O as OPACITY_LIMITS, t as toNonAlphaMode, j as normalizeAlpha, k as HUE_LIMIT_CONSTRAINED, S as SCOPE_SIZE, l as DEFAULT_STORAGE_KEY_PREFIX, m as toAlphaMode } from './utils-d2524a35.js';
|
8
|
-
import { i as isPrimaryPointerButton,
|
8
|
+
import { i as isPrimaryPointerButton, h as getElementDir, f as focusFirstTabbable } from './dom-42a638f6.js';
|
9
9
|
import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction, I as InteractiveContainer } from './interactive-b2a41b8b.js';
|
10
10
|
import { i as isActivationKey } from './key-d6dfb50e.js';
|
11
11
|
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-1a9b14b8.js';
|
12
|
-
import { c as connectLocalized, d as disconnectLocalized } from './locale-
|
12
|
+
import { c as connectLocalized, d as disconnectLocalized } from './locale-a53a7bc6.js';
|
13
13
|
import { r as remap, c as clamp, a as closeToRangeEdge } from './math-9afe1f6d.js';
|
14
|
-
import { u as updateMessages, s as setUpMessages, c as connectMessages, d as disconnectMessages } from './t9n-
|
14
|
+
import { u as updateMessages, s as setUpMessages, c as connectMessages, d as disconnectMessages } from './t9n-b33c486a.js';
|
15
15
|
import { t as throttle } from './throttle-aed86bf3.js';
|
16
16
|
import './guid-42656051.js';
|
17
17
|
import './resources-745dec87.js';
|
@@ -5,8 +5,8 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, g as getElement } from './index-b793d9aa.js';
|
7
7
|
import { g as guid } from './guid-42656051.js';
|
8
|
-
import { g as getAncestors, a as getDepth } from './utils-
|
9
|
-
import './dom-
|
8
|
+
import { g as getAncestors, a as getDepth } from './utils-d67a6d71.js';
|
9
|
+
import './dom-42a638f6.js';
|
10
10
|
import './resources-745dec87.js';
|
11
11
|
import './browser-a791205e.js';
|
12
12
|
|
@@ -6,21 +6,21 @@
|
|
6
6
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-b793d9aa.js';
|
7
7
|
import { d as calciteSize48 } from './core-6a3c13ac.js';
|
8
8
|
import { f as filter, e as escapeRegExp } from './filter-6ee02739.js';
|
9
|
-
import { D as getElementWidth, E as getTextWidth, t as toAriaBoolean } from './dom-
|
10
|
-
import { d as defaultMenuPlacement, f as filterValidFlipPlacements, c as connectFloatingUI, r as reposition, a as disconnectFloatingUI, F as FloatingCSS } from './floating-ui-
|
11
|
-
import { s as submitForm, c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from './form-
|
9
|
+
import { D as getElementWidth, E as getTextWidth, t as toAriaBoolean } from './dom-42a638f6.js';
|
10
|
+
import { d as defaultMenuPlacement, f as filterValidFlipPlacements, c as connectFloatingUI, r as reposition, a as disconnectFloatingUI, F as FloatingCSS } from './floating-ui-a14930d0.js';
|
11
|
+
import { s as submitForm, c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from './form-46367137.js';
|
12
12
|
import { g as guid } from './guid-42656051.js';
|
13
13
|
import { c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive, I as InteractiveContainer } from './interactive-b2a41b8b.js';
|
14
|
-
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-
|
14
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-f2ec1100.js';
|
15
15
|
import { b as componentLoaded, c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-1a9b14b8.js';
|
16
|
-
import { c as connectLocalized, d as disconnectLocalized } from './locale-
|
16
|
+
import { c as connectLocalized, d as disconnectLocalized } from './locale-a53a7bc6.js';
|
17
17
|
import { c as createObserver } from './observers-6cac5525.js';
|
18
|
-
import { o as onToggleOpenCloseComponent } from './openCloseComponent-
|
18
|
+
import { o as onToggleOpenCloseComponent } from './openCloseComponent-9d44719e.js';
|
19
19
|
import { D as DEBOUNCE } from './resources-745dec87.js';
|
20
|
-
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-
|
20
|
+
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-b33c486a.js';
|
21
21
|
import { g as getIconScale, c as componentOnReady } from './component-d35983a4.js';
|
22
22
|
import { V as Validation } from './Validation-bd0a53ec.js';
|
23
|
-
import { i as isSingleLike, h as hasActiveChildren, C as CSS$1, b as ComboboxChildSelector, c as getLabel, d as getItemAncestors, e as getItemChildren, f as ComboboxItem, j as ComboboxItemGroup, I as IDS } from './utils-
|
23
|
+
import { i as isSingleLike, h as hasActiveChildren, C as CSS$1, b as ComboboxChildSelector, c as getLabel, d as getItemAncestors, e as getItemChildren, f as ComboboxItem, j as ComboboxItemGroup, I as IDS } from './utils-d67a6d71.js';
|
24
24
|
import { d as debounce } from './debounce-6e9ade8c.js';
|
25
25
|
import { C as CSS$2 } from './resources-9494c015.js';
|
26
26
|
import { g as getLocaleComponentStrings } from './locale-b1d53fb1.js';
|
@@ -4,11 +4,11 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, F as Fragment } from './index-b793d9aa.js';
|
7
|
-
import { a as dateToISO, h as sameDate, b as dateFromRange, i as inRange, j as getOrder, n as nextMonth, p as prevMonth, k as formatCalendarYear, l as parseCalendarYear } from './date-
|
8
|
-
import {
|
7
|
+
import { a as dateToISO, h as sameDate, b as dateFromRange, i as inRange, j as getOrder, n as nextMonth, p as prevMonth, k as formatCalendarYear, l as parseCalendarYear } from './date-f0c83d13.js';
|
8
|
+
import { a as closestElementCrossShadowBoundary, t as toAriaBoolean } from './dom-42a638f6.js';
|
9
9
|
import { I as InteractiveContainer, c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive } from './interactive-b2a41b8b.js';
|
10
10
|
import { i as isActivationKey } from './key-d6dfb50e.js';
|
11
|
-
import { n as numberStringFormatter } from './locale-
|
11
|
+
import { n as numberStringFormatter } from './locale-a53a7bc6.js';
|
12
12
|
import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentFocusable } from './loadable-1a9b14b8.js';
|
13
13
|
import { H as Heading } from './Heading-cae0b34c.js';
|
14
14
|
import { g as getIconScale } from './component-d35983a4.js';
|