@tet/tet-components 1.3.133-testing → 1.3.134-staging
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{address-5271d3aa.js → address-7739b5bf.js} +1 -1
- package/dist/cjs/{assets-e3bb045c.js → assets-f04dbe9c.js} +1 -1
- package/dist/cjs/{async-request-29b32d63.js → async-request-9d8ba94a.js} +1 -1
- package/dist/cjs/{http-codes-2f72a8b2.js → http-codes-c172bdfc.js} +1 -1
- package/dist/cjs/{index-84ede372.js → index-cac5ef8f.js} +1 -1
- package/dist/cjs/{index-f559cb2e.js → index-d323e22a.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-c3ebb2eb.js → phone-67c70ea5.js} +2 -2
- package/dist/cjs/{product-comparison-f784fb1b.js → product-comparison-6bf262b7.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-b2b-configurator-cart.cjs.entry.js +3 -3
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +3 -3
- package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-lines.cjs.entry.js +4 -4
- package/dist/cjs/tet-business-navigation.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-summary-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-button.cjs.entry.js +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-carousel.cjs.entry.js +165 -92
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +1 -1
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +1 -1
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
- package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
- package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
- package/dist/cjs/tet-grid.cjs.entry.js +1 -1
- package/dist/cjs/tet-icon.cjs.entry.js +2 -2
- package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
- package/dist/cjs/tet-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-label.cjs.entry.js +3 -3
- package/dist/cjs/tet-layout.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +1 -1
- package/dist/cjs/tet-loader.cjs.entry.js +1 -1
- package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-notification.cjs.entry.js +1 -1
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio.cjs.entry.js +1 -1
- package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/tet-referral.cjs.entry.js +5 -5
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
- package/dist/cjs/{theme-wrapper-a5bbadf6.js → theme-wrapper-a1abdef5.js} +2 -2
- package/dist/cjs/{translations-ed68775f.js → translations-1fa17fd7.js} +1 -1
- package/dist/collection/components/basic/carousel/tet-carousel/test/tet-carousel.spec.js +0 -2
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.css +26 -6
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +187 -147
- package/dist/components/index.js +1 -1
- package/dist/components/{p-d8c79647.js → p-14ef6feb.js} +3 -3
- package/dist/components/{p-e409203b.js → p-1706d847.js} +3 -3
- package/dist/components/{p-d3f63a7a.js → p-18bfd643.js} +6 -6
- package/dist/components/{p-d7f5b61c.js → p-19ad34f9.js} +2 -2
- package/dist/components/{p-796ea907.js → p-19b6e81d.js} +3 -3
- package/dist/components/{p-6830b44d.js → p-1ff52177.js} +2 -2
- package/dist/components/{p-b5dced58.js → p-26d976af.js} +2 -2
- package/dist/components/{p-a1f2eaa6.js → p-3502722b.js} +6 -6
- package/dist/components/{p-eb98627a.js → p-3d59ab53.js} +1 -1
- package/dist/components/{p-a81e545d.js → p-4227ed8b.js} +1 -1
- package/dist/components/{p-489ae3a0.js → p-47d5ea80.js} +1 -1
- package/dist/components/{p-0e796d48.js → p-4c5755be.js} +2 -2
- package/dist/components/{p-a141151a.js → p-4de206bb.js} +1 -1
- package/dist/components/{p-50c52fb2.js → p-56e07823.js} +1 -1
- package/dist/components/{p-37ed3ebb.js → p-5749376d.js} +1 -1
- package/dist/components/{p-8b3d80aa.js → p-5ba3b696.js} +1 -1
- package/dist/components/{p-c3dfb9e4.js → p-5c19a2a1.js} +3 -3
- package/dist/components/{p-b71cc97c.js → p-649085aa.js} +3 -3
- package/dist/components/{p-0a9fb3c4.js → p-67960f22.js} +2 -2
- package/dist/components/{p-5c8c2d8d.js → p-68876a74.js} +1 -1
- package/dist/components/{p-eb9b5f91.js → p-6956d6d9.js} +1 -1
- package/dist/components/{p-c4a94d36.js → p-6ebc654d.js} +7 -7
- package/dist/components/{p-27194279.js → p-71f5a37f.js} +1 -1
- package/dist/components/{p-499b3838.js → p-7723a006.js} +3 -3
- package/dist/components/{p-48a1a0e4.js → p-77f74d4d.js} +1 -1
- package/dist/components/{p-e20ff902.js → p-782120b4.js} +2 -2
- package/dist/components/{p-125271b1.js → p-80c43d92.js} +14 -14
- package/dist/components/{p-a0d406ca.js → p-8f91eb96.js} +1 -1
- package/dist/components/{p-ecb0207c.js → p-9173ea5a.js} +1 -1
- package/dist/components/{p-504e911b.js → p-951b004f.js} +1 -1
- package/dist/components/{p-ae8498b6.js → p-99a7a8a5.js} +10 -10
- package/dist/components/{p-9c20ee34.js → p-9d68abf0.js} +4 -4
- package/dist/components/{p-e4b59b85.js → p-9e91b356.js} +2 -2
- package/dist/components/{p-1dfb07e1.js → p-a18fd2fd.js} +1 -1
- package/dist/components/{p-be59ce58.js → p-a68f80fd.js} +2 -2
- package/dist/components/{p-3ff35471.js → p-b41cb33b.js} +7 -7
- package/dist/components/{p-4d0a0afc.js → p-b5924985.js} +1 -1
- package/dist/components/{p-144dffdc.js → p-bbd6cfd1.js} +1 -1
- package/dist/components/{p-59ecb7dc.js → p-c189d418.js} +10 -10
- package/dist/components/{p-c1c8a966.js → p-c24695ab.js} +3 -3
- package/dist/components/{p-2f7ab47f.js → p-c2ade0e5.js} +9 -9
- package/dist/components/{p-e1dfd49d.js → p-ce5a28f0.js} +4 -4
- package/dist/components/{p-3dc2183b.js → p-ceb5f8c9.js} +1 -1
- package/dist/components/{p-86da5272.js → p-cf026e83.js} +3 -3
- package/dist/components/{p-88b42c67.js → p-d0537f8e.js} +1 -1
- package/dist/components/{p-0b13ba10.js → p-d4eb6076.js} +2 -2
- package/dist/components/{p-cdec8b43.js → p-d57d4ab7.js} +2 -2
- package/dist/components/{p-102c1fc3.js → p-e8beeb5d.js} +2 -2
- package/dist/components/{p-aca28e71.js → p-f0503bac.js} +1 -1
- package/dist/components/{p-e6f6ae5e.js → p-f2b96729.js} +1 -1
- package/dist/components/{p-547dbd72.js → p-f329deb1.js} +1 -1
- package/dist/components/{p-e5f84db8.js → p-f8f09524.js} +1 -1
- package/dist/components/{p-d6580980.js → p-fac9b418.js} +2 -2
- package/dist/components/tet-accordion.js +1 -1
- package/dist/components/tet-address-offers-filters-products.js +1 -1
- package/dist/components/tet-address-offers-filters.js +1 -1
- package/dist/components/tet-address-offers-view.js +25 -25
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-asset-addresses.js +13 -13
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +5 -5
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-compare-card.js +6 -6
- package/dist/components/tet-b2b-configurator-cart.js +5 -5
- package/dist/components/tet-b2b-service-calculator.js +8 -8
- package/dist/components/tet-banner-nav.js +3 -3
- package/dist/components/tet-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +3 -3
- package/dist/components/tet-business-lines.js +5 -5
- package/dist/components/tet-business-navigation.js +2 -2
- package/dist/components/tet-business-round-stepper.js +2 -2
- package/dist/components/tet-business-summary-card.js +5 -5
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +171 -101
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +8 -8
- package/dist/components/tet-cloud-configurator.js +11 -11
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.js +9 -9
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +16 -16
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +9 -9
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-customer-assets.js +8 -8
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +6 -6
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +4 -4
- package/dist/components/tet-expandable-input.js +3 -3
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-filter.js +4 -4
- package/dist/components/tet-font-weight.js +1 -1
- package/dist/components/tet-fonts.js +1 -1
- package/dist/components/tet-grid.js +1 -1
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +2 -2
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-label.js +3 -3
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +11 -11
- package/dist/components/tet-menu-mobile.js +2 -2
- package/dist/components/tet-menu.js +2 -2
- package/dist/components/tet-multi-step-dialog.js +5 -5
- package/dist/components/tet-navigation-mobile.js +2 -2
- package/dist/components/tet-news-card-list.js +4 -4
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +7 -7
- package/dist/components/tet-round-stepper.js +2 -2
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v2.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-stepper.js +1 -1
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +3 -3
- package/dist/components/tet-tag-group.js +1 -1
- package/dist/components/tet-tag.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v2.js +5 -5
- package/dist/components/tet-thank-you-view-v3.js +5 -5
- package/dist/components/tet-thank-you-view.js +4 -4
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +1 -1
- package/dist/components/tet-tv-gift-list.js +2 -2
- package/dist/esm/{address-979a9993.js → address-cf4b9052.js} +1 -1
- package/dist/esm/{assets-b971f105.js → assets-9c72dac5.js} +1 -1
- package/dist/esm/{async-request-6675e5f5.js → async-request-8cfbcb21.js} +1 -1
- package/dist/esm/{http-codes-7faa9f6e.js → http-codes-66a577c3.js} +1 -1
- package/dist/esm/{index-7f1e2a22.js → index-8ac89426.js} +1 -1
- package/dist/esm/{index-1bf36cb9.js → index-a7cd7688.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-ed2205b3.js → phone-8d55f9d7.js} +2 -2
- package/dist/esm/{product-comparison-830e2764.js → product-comparison-d97cb68b.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +1 -1
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
- package/dist/esm/tet-address-offers-view.entry.js +3 -3
- package/dist/esm/tet-address-offers_4.entry.js +7 -7
- package/dist/esm/tet-address-search.entry.js +4 -4
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
- package/dist/esm/tet-autocomplete_2.entry.js +1 -1
- package/dist/esm/tet-b2b-compare-card.entry.js +3 -3
- package/dist/esm/tet-b2b-configurator-cart.entry.js +3 -3
- package/dist/esm/tet-b2b-service-calculator.entry.js +3 -3
- package/dist/esm/tet-banner-nav.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +1 -1
- package/dist/esm/tet-business-lines.entry.js +4 -4
- package/dist/esm/tet-business-navigation.entry.js +1 -1
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-business-summary-card.entry.js +3 -3
- package/dist/esm/tet-button.entry.js +1 -1
- package/dist/esm/tet-card-list.entry.js +1 -1
- package/dist/esm/tet-carousel.entry.js +165 -92
- package/dist/esm/tet-checkbox_3.entry.js +1 -1
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +1 -1
- package/dist/esm/tet-compare-card-v2.entry.js +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +3 -3
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-contact-form.entry.js +5 -5
- package/dist/esm/tet-contact-info.entry.js +1 -1
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-customer-assets.entry.js +3 -3
- package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
- package/dist/esm/tet-datepicker.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +3 -3
- package/dist/esm/tet-dynamic-card.entry.js +1 -1
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +1 -1
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +1 -1
- package/dist/esm/tet-fonts.entry.js +1 -1
- package/dist/esm/tet-grid.entry.js +1 -1
- package/dist/esm/tet-icon.entry.js +2 -2
- package/dist/esm/tet-inline-message.entry.js +1 -1
- package/dist/esm/tet-input.entry.js +3 -3
- package/dist/esm/tet-label.entry.js +3 -3
- package/dist/esm/tet-layout.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +1 -1
- package/dist/esm/tet-loader.entry.js +1 -1
- package/dist/esm/tet-macd-view.entry.js +6 -6
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
- package/dist/esm/tet-navigation-mobile.entry.js +1 -1
- package/dist/esm/tet-news-card-list.entry.js +1 -1
- package/dist/esm/tet-notification.entry.js +1 -1
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-placeholder.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio.entry.js +1 -1
- package/dist/esm/tet-range-slider.entry.js +1 -1
- package/dist/esm/tet-referral.entry.js +5 -5
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-stepper-input.entry.js +3 -3
- package/dist/esm/tet-stepper-v2.entry.js +1 -1
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-stepper.entry.js +1 -1
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-tab-header.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +3 -3
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +1 -1
- package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/tet-thank-you-view.entry.js +1 -1
- package/dist/esm/tet-tv-gift-block.entry.js +1 -1
- package/dist/esm/tet-tv-gift-list.entry.js +1 -1
- package/dist/esm/{theme-wrapper-6e6b2089.js → theme-wrapper-de71af98.js} +2 -2
- package/dist/esm/{translations-eff34607.js → translations-24de7d95.js} +1 -1
- package/dist/tet-components/{p-b1f31660.entry.js → p-054a8882.entry.js} +1 -1
- package/dist/tet-components/{p-8c964cca.js → p-0967ecde.js} +1 -1
- package/dist/tet-components/{p-7210bb04.entry.js → p-0a2abc7a.entry.js} +1 -1
- package/dist/tet-components/{p-db666f67.entry.js → p-0a56c9ad.entry.js} +1 -1
- package/dist/tet-components/{p-cc73c6bf.entry.js → p-0e55273a.entry.js} +1 -1
- package/dist/tet-components/{p-11e8f3aa.entry.js → p-0e6b8c44.entry.js} +1 -1
- package/dist/tet-components/{p-e596991f.entry.js → p-126c3143.entry.js} +1 -1
- package/dist/tet-components/{p-12c21228.entry.js → p-22d3caa2.entry.js} +1 -1
- package/dist/tet-components/{p-00695447.entry.js → p-24173e11.entry.js} +1 -1
- package/dist/tet-components/{p-27e3fced.entry.js → p-25b7d54c.entry.js} +1 -1
- package/dist/tet-components/{p-1e001276.entry.js → p-28873db8.entry.js} +1 -1
- package/dist/tet-components/{p-80b51d59.entry.js → p-32b5e271.entry.js} +1 -1
- package/dist/tet-components/{p-966eaa17.entry.js → p-369dace1.entry.js} +1 -1
- package/dist/tet-components/{p-bc16c07b.js → p-36e468a3.js} +1 -1
- package/dist/tet-components/{p-557685b2.entry.js → p-36e91cbc.entry.js} +1 -1
- package/dist/tet-components/{p-469f4991.entry.js → p-3c446399.entry.js} +1 -1
- package/dist/tet-components/{p-a844fa98.entry.js → p-41faa90c.entry.js} +1 -1
- package/dist/tet-components/{p-cf7d5c84.js → p-42613a55.js} +1 -1
- package/dist/tet-components/{p-74989c7b.entry.js → p-435e37e4.entry.js} +1 -1
- package/dist/tet-components/{p-3239abed.entry.js → p-448d3af4.entry.js} +1 -1
- package/dist/tet-components/{p-c82c7f32.entry.js → p-46126457.entry.js} +1 -1
- package/dist/tet-components/{p-f09325e9.entry.js → p-47ffe780.entry.js} +1 -1
- package/dist/tet-components/{p-1ecc7145.entry.js → p-487842dc.entry.js} +1 -1
- package/dist/tet-components/{p-018095d9.entry.js → p-4a2cf529.entry.js} +1 -1
- package/dist/tet-components/{p-79255c00.entry.js → p-4ede3a1f.entry.js} +1 -1
- package/dist/tet-components/{p-7a12782b.entry.js → p-4faf23bd.entry.js} +1 -1
- package/dist/tet-components/{p-bdce1210.entry.js → p-50b75e77.entry.js} +1 -1
- package/dist/tet-components/{p-71e2fe80.js → p-50f7f25f.js} +1 -1
- package/dist/tet-components/{p-3dc55358.entry.js → p-5127ffba.entry.js} +1 -1
- package/dist/tet-components/{p-17a4096b.entry.js → p-52dc2cef.entry.js} +1 -1
- package/dist/tet-components/{p-910087e6.entry.js → p-5c7ce549.entry.js} +1 -1
- package/dist/tet-components/{p-ff66a3ec.entry.js → p-639d54d8.entry.js} +1 -1
- package/dist/tet-components/{p-5ef2b795.entry.js → p-65cf9333.entry.js} +1 -1
- package/dist/tet-components/{p-4fd91299.entry.js → p-674da30f.entry.js} +1 -1
- package/dist/tet-components/{p-1ec7f341.js → p-67c5dc0a.js} +1 -1
- package/dist/tet-components/{p-37958859.entry.js → p-712b2089.entry.js} +1 -1
- package/dist/tet-components/{p-1576d249.entry.js → p-774c56c8.entry.js} +1 -1
- package/dist/tet-components/p-7df21f05.entry.js +1 -0
- package/dist/tet-components/{p-3bf8a104.entry.js → p-7f5deac5.entry.js} +1 -1
- package/dist/tet-components/{p-1ff6c573.entry.js → p-807f8ca8.entry.js} +1 -1
- package/dist/tet-components/{p-8b455701.entry.js → p-80e929ba.entry.js} +1 -1
- package/dist/tet-components/{p-c1294aa0.entry.js → p-81f8fb7f.entry.js} +1 -1
- package/dist/tet-components/{p-203c27a7.entry.js → p-85384860.entry.js} +1 -1
- package/dist/tet-components/{p-59db86cf.entry.js → p-8549fb81.entry.js} +1 -1
- package/dist/tet-components/{p-d123c385.entry.js → p-8836c7f7.entry.js} +1 -1
- package/dist/tet-components/{p-c2d3f622.entry.js → p-8b974532.entry.js} +1 -1
- package/dist/tet-components/{p-476001d6.entry.js → p-8bd8d1e5.entry.js} +1 -1
- package/dist/tet-components/{p-49f6e950.entry.js → p-8eaa26dd.entry.js} +1 -1
- package/dist/tet-components/{p-0ca72362.entry.js → p-8f55be16.entry.js} +1 -1
- package/dist/tet-components/{p-55819f09.entry.js → p-93827b9c.entry.js} +1 -1
- package/dist/tet-components/{p-27b66648.entry.js → p-94b83faa.entry.js} +1 -1
- package/dist/tet-components/{p-2f029068.entry.js → p-98787067.entry.js} +1 -1
- package/dist/tet-components/{p-6c69e565.entry.js → p-99340df4.entry.js} +1 -1
- package/dist/tet-components/{p-decd45f3.entry.js → p-9a21bd4e.entry.js} +1 -1
- package/dist/tet-components/{p-108cd149.entry.js → p-9b377b8c.entry.js} +1 -1
- package/dist/tet-components/{p-bb6387c6.entry.js → p-9cfcf121.entry.js} +1 -1
- package/dist/tet-components/{p-6e7a5d73.entry.js → p-9d26d7a0.entry.js} +1 -1
- package/dist/tet-components/{p-74275f2b.entry.js → p-9fe8cf64.entry.js} +1 -1
- package/dist/tet-components/{p-b5706ef0.entry.js → p-a317ae27.entry.js} +1 -1
- package/dist/tet-components/{p-970a3fc5.entry.js → p-ad5686e5.entry.js} +1 -1
- package/dist/tet-components/{p-c592f222.entry.js → p-afcf04af.entry.js} +1 -1
- package/dist/tet-components/{p-eeb72714.entry.js → p-b1f20a9e.entry.js} +1 -1
- package/dist/tet-components/{p-d4603ec3.entry.js → p-b52c4b78.entry.js} +1 -1
- package/dist/tet-components/p-b604ca3e.js +1 -0
- package/dist/tet-components/{p-6e8f1b37.entry.js → p-b7dc8238.entry.js} +1 -1
- package/dist/tet-components/{p-77372984.js → p-baa9231f.js} +1 -1
- package/dist/tet-components/{p-c95cf2d4.entry.js → p-bb769879.entry.js} +1 -1
- package/dist/tet-components/{p-3ca29117.entry.js → p-bc7e8a59.entry.js} +1 -1
- package/dist/tet-components/{p-82f67011.entry.js → p-c084d412.entry.js} +1 -1
- package/dist/tet-components/{p-61818927.entry.js → p-c41118a5.entry.js} +1 -1
- package/dist/tet-components/{p-dcbe09b5.js → p-c830c227.js} +1 -1
- package/dist/tet-components/{p-e62d7082.entry.js → p-cadff088.entry.js} +1 -1
- package/dist/tet-components/{p-3a388c27.entry.js → p-cdc47c9f.entry.js} +1 -1
- package/dist/tet-components/{p-5d321447.entry.js → p-d4613b96.entry.js} +1 -1
- package/dist/tet-components/{p-3588d98e.entry.js → p-d4679639.entry.js} +1 -1
- package/dist/tet-components/{p-f9d096b2.entry.js → p-da44b761.entry.js} +1 -1
- package/dist/tet-components/{p-941d8b49.entry.js → p-dc6305ec.entry.js} +1 -1
- package/dist/tet-components/{p-cb7e189e.entry.js → p-dede3fc8.entry.js} +1 -1
- package/dist/tet-components/{p-a15886aa.entry.js → p-e095a464.entry.js} +1 -1
- package/dist/tet-components/{p-de142575.js → p-e318ee60.js} +1 -1
- package/dist/tet-components/{p-47618056.entry.js → p-e43e0a37.entry.js} +1 -1
- package/dist/tet-components/{p-7476cb78.entry.js → p-ea310b24.entry.js} +1 -1
- package/dist/tet-components/{p-e3b987d7.entry.js → p-ecb956d7.entry.js} +1 -1
- package/dist/tet-components/{p-e263ecdf.js → p-f2978a1b.js} +1 -1
- package/dist/tet-components/{p-62419a1f.entry.js → p-f4535fca.entry.js} +1 -1
- package/dist/tet-components/{p-eee18759.entry.js → p-f4ec03dc.entry.js} +1 -1
- package/dist/tet-components/{p-641c5d9d.entry.js → p-f960e6a9.entry.js} +1 -1
- package/dist/tet-components/{p-add5c08b.entry.js → p-f981dac8.entry.js} +1 -1
- package/dist/tet-components/{p-9ef5798e.entry.js → p-fbf6521b.entry.js} +1 -1
- package/dist/tet-components/{p-4e3c6172.entry.js → p-fd189a4c.entry.js} +1 -1
- package/dist/tet-components/{p-7403556f.entry.js → p-fdde2e01.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/basic/carousel/tet-carousel/tet-carousel.d.ts +25 -22
- package/dist/types/components.d.ts +8 -24
- package/package.json +1 -1
- package/dist/tet-components/p-b2b384d2.js +0 -1
- package/dist/tet-components/p-cfb157e3.entry.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
1
|
+
import { h, Host, forceUpdate } from "@stencil/core";
|
|
2
|
+
import { processTranslations, t } from "../../../../services/translations/index";
|
|
2
3
|
export class TetCarousel {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.draggedAnchor = null;
|
|
@@ -12,37 +13,65 @@ export class TetCarousel {
|
|
|
12
13
|
this.trackElement = null;
|
|
13
14
|
this.dragStartX = 0;
|
|
14
15
|
this.swipeStart = 0;
|
|
15
|
-
this.
|
|
16
|
+
this.handleMove = () => {
|
|
16
17
|
var _a;
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
const slot = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
19
|
+
if (!slot)
|
|
20
|
+
return 1;
|
|
21
|
+
const assigned = slot.assignedElements ? slot.assignedElements() : [];
|
|
22
|
+
const item = assigned[this.activeItem];
|
|
23
|
+
if (item) {
|
|
24
|
+
this.moveToItem(item);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
this.handlePrev = () => {
|
|
28
|
+
if (this.activeItem > 0) {
|
|
29
|
+
this.activeItem -= 1;
|
|
19
30
|
}
|
|
20
|
-
|
|
21
|
-
this.dragOffset = -(this.activeIndex * wrapperWidth);
|
|
31
|
+
this.handleMove();
|
|
22
32
|
};
|
|
23
33
|
this.handleNext = () => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
this.activeIndex += 1;
|
|
34
|
+
if (this.activeItem < this.totalItems) {
|
|
35
|
+
this.activeItem += 1;
|
|
27
36
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
this.handleMove();
|
|
38
|
+
};
|
|
39
|
+
this.moveToLastScreen = () => {
|
|
40
|
+
const wrapperWidth = this.getViewportWidth();
|
|
41
|
+
const totalWidth = this.getSlotClientWidth();
|
|
42
|
+
this.dragOffset = -(totalWidth - wrapperWidth);
|
|
31
43
|
};
|
|
32
|
-
this.
|
|
33
|
-
var _a
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
this.moveToTarget = (target) => {
|
|
45
|
+
var _a;
|
|
46
|
+
const slot = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
47
|
+
if (!slot)
|
|
48
|
+
return 1;
|
|
49
|
+
const assigned = slot.assignedElements ? slot.assignedElements() : [];
|
|
50
|
+
for (const [index, item] of assigned.entries()) {
|
|
51
|
+
const rect = item.getBoundingClientRect();
|
|
52
|
+
const trackRect = this.trackElement.getBoundingClientRect();
|
|
53
|
+
let relativeLeft = rect.left - trackRect.left;
|
|
54
|
+
const gradientOffset = this.calculateGradient(item, relativeLeft);
|
|
55
|
+
if (relativeLeft >= target - this.swipeThreshold + gradientOffset) {
|
|
56
|
+
this.moveToItem(item, index);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
38
59
|
}
|
|
60
|
+
this.moveToItem(assigned[0], 0);
|
|
61
|
+
return;
|
|
39
62
|
};
|
|
40
63
|
this.handleDotClick = (idx) => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
this.
|
|
45
|
-
|
|
64
|
+
this.activeDotIndex = idx;
|
|
65
|
+
const totalWidth = this.getSlotClientWidth();
|
|
66
|
+
let targetDragOffset = 0;
|
|
67
|
+
if (this.dotCount - 1 === this.activeDotIndex && !this.isDragging) {
|
|
68
|
+
const viewPortWidth = this.getViewportWidth();
|
|
69
|
+
targetDragOffset = totalWidth - viewPortWidth;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
targetDragOffset = idx * this.getDotScreenLength();
|
|
73
|
+
}
|
|
74
|
+
this.moveToTarget(targetDragOffset);
|
|
46
75
|
};
|
|
47
76
|
this.onPointerDown = (e) => {
|
|
48
77
|
e.preventDefault();
|
|
@@ -68,7 +97,6 @@ export class TetCarousel {
|
|
|
68
97
|
}
|
|
69
98
|
};
|
|
70
99
|
this.onPointerMove = (e) => {
|
|
71
|
-
var _a, _b, _c;
|
|
72
100
|
if (!this.isDragging)
|
|
73
101
|
return;
|
|
74
102
|
// Only consider this a move (and prevent clicks) when movement exceeds a small threshold.
|
|
@@ -85,21 +113,20 @@ export class TetCarousel {
|
|
|
85
113
|
let _dragOffset = this.dragOffset;
|
|
86
114
|
_dragOffset += delta;
|
|
87
115
|
this.dragStartX = e.screenX;
|
|
88
|
-
const wrapperWidth =
|
|
89
|
-
const totalWidth =
|
|
116
|
+
const wrapperWidth = this.getViewportWidth();
|
|
117
|
+
const totalWidth = this.getSlotClientWidth();
|
|
90
118
|
const totalScrollableWidth = -(totalWidth - wrapperWidth);
|
|
91
119
|
if (totalScrollableWidth < _dragOffset && _dragOffset < 0) {
|
|
92
120
|
this.dragOffset = _dragOffset;
|
|
93
121
|
}
|
|
94
122
|
};
|
|
95
123
|
this.onPointerUp = (e) => {
|
|
96
|
-
var _a, _b, _c;
|
|
97
124
|
e.preventDefault();
|
|
98
125
|
e.stopPropagation();
|
|
99
126
|
e.stopImmediatePropagation();
|
|
100
127
|
if (!this.isDragging)
|
|
101
128
|
return;
|
|
102
|
-
// Snap
|
|
129
|
+
// Snap activeDotIndex when dragOffset passes threshold from last index position
|
|
103
130
|
this.isDragging = false;
|
|
104
131
|
// Let the once:true capture handler auto-remove itself. Clear flag after a tick.
|
|
105
132
|
if (this.clickPreventAdded) {
|
|
@@ -108,17 +135,7 @@ export class TetCarousel {
|
|
|
108
135
|
}, 0);
|
|
109
136
|
}
|
|
110
137
|
if (Math.abs(this.dragOffset - this.swipeStart) > this.swipeThreshold) {
|
|
111
|
-
|
|
112
|
-
let index = this.activeIndex + indexOffsett;
|
|
113
|
-
index = Math.max(0, Math.min(index, this.screenCount - 1));
|
|
114
|
-
this.activeIndex = index;
|
|
115
|
-
const wrapperWidth = ((_a = this.container) === null || _a === void 0 ? void 0 : _a.offsetWidth) || window.innerWidth;
|
|
116
|
-
if (this.screenCount - 1 === this.activeIndex && !this.isDragging) {
|
|
117
|
-
const totalWidth = ((_c = (_b = this.trackElement) === null || _b === void 0 ? void 0 : _b.querySelector('slot')) === null || _c === void 0 ? void 0 : _c.offsetWidth) || window.innerWidth;
|
|
118
|
-
this.dragOffset = -(totalWidth - wrapperWidth);
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
this.dragOffset = -(index * wrapperWidth);
|
|
138
|
+
this.moveToTarget(-this.dragOffset);
|
|
122
139
|
}
|
|
123
140
|
document.body.style.userSelect = '';
|
|
124
141
|
document.removeEventListener('pointermove', this.onPointerMove);
|
|
@@ -133,10 +150,10 @@ export class TetCarousel {
|
|
|
133
150
|
this.draggedAnchor.addEventListener('click', preventClick, true);
|
|
134
151
|
}
|
|
135
152
|
};
|
|
136
|
-
this.
|
|
137
|
-
this.
|
|
153
|
+
this.activeDotIndex = 0;
|
|
154
|
+
this.dotCount = 0;
|
|
138
155
|
this.totalItems = 0;
|
|
139
|
-
this.
|
|
156
|
+
this.activeItem = 0;
|
|
140
157
|
this.theme = 'light';
|
|
141
158
|
this.isDragging = false;
|
|
142
159
|
this.dragOffset = 0;
|
|
@@ -148,17 +165,46 @@ export class TetCarousel {
|
|
|
148
165
|
this.transitionTiming = 'cubic-bezier(0.77,0,0.175,1)';
|
|
149
166
|
this.buttonIconLeft = 'arrow-left';
|
|
150
167
|
this.buttonIconRight = 'arrow-right';
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
153
|
-
|
|
154
|
-
|
|
168
|
+
this.maxDots = 8;
|
|
169
|
+
this.language = 'lv';
|
|
170
|
+
}
|
|
171
|
+
async onLanguageChange(language) {
|
|
172
|
+
processTranslations('tet-components', language).then(() => forceUpdate(this));
|
|
173
|
+
}
|
|
174
|
+
componentWillLoad() {
|
|
175
|
+
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
176
|
+
}
|
|
177
|
+
getViewportWidth() {
|
|
178
|
+
var _a;
|
|
179
|
+
return ((_a = this.container) === null || _a === void 0 ? void 0 : _a.offsetWidth) || window.innerWidth;
|
|
180
|
+
}
|
|
181
|
+
getSlotClientWidth() {
|
|
182
|
+
var _a, _b;
|
|
183
|
+
return ((_b = (_a = this.trackElement) === null || _a === void 0 ? void 0 : _a.querySelector('slot')) === null || _b === void 0 ? void 0 : _b.offsetWidth) || window.innerWidth;
|
|
184
|
+
}
|
|
185
|
+
getDotScreenLength() {
|
|
186
|
+
const totalWidth = this.getSlotClientWidth();
|
|
187
|
+
return (totalWidth / this.dotCount);
|
|
188
|
+
}
|
|
189
|
+
isLast(lastScreenBorder, position) {
|
|
190
|
+
const totalWidth = this.getSlotClientWidth();
|
|
191
|
+
const relativeLeftToEnd = totalWidth - position;
|
|
192
|
+
return relativeLeftToEnd <= lastScreenBorder;
|
|
193
|
+
}
|
|
194
|
+
isLastViewport(position) {
|
|
195
|
+
const viewportWidth = this.getViewportWidth();
|
|
196
|
+
return this.isLast(viewportWidth, position);
|
|
197
|
+
}
|
|
198
|
+
isLastDotScreen(position, dotScreenLength) {
|
|
199
|
+
const viewportWidth = this.getViewportWidth();
|
|
200
|
+
const lastScreenBorder = Math.max(dotScreenLength, viewportWidth);
|
|
201
|
+
return this.isLast(lastScreenBorder, position);
|
|
155
202
|
}
|
|
156
203
|
checkGradient() {
|
|
157
|
-
var _a, _b, _c;
|
|
158
204
|
if (this.showGradient) {
|
|
159
205
|
const absOffset = Math.abs(this.dragOffset);
|
|
160
|
-
const wrapperWidth =
|
|
161
|
-
const totalWidth =
|
|
206
|
+
const wrapperWidth = this.getViewportWidth();
|
|
207
|
+
const totalWidth = this.getSlotClientWidth();
|
|
162
208
|
const rightEdgeDistance = totalWidth - absOffset - wrapperWidth;
|
|
163
209
|
if (rightEdgeDistance >= 0) {
|
|
164
210
|
const rightEdge = rightEdgeDistance < 16;
|
|
@@ -181,39 +227,43 @@ export class TetCarousel {
|
|
|
181
227
|
this.rightGradientRef.style.opacity = "0";
|
|
182
228
|
}
|
|
183
229
|
}
|
|
184
|
-
|
|
185
|
-
var _a
|
|
230
|
+
getDotCount() {
|
|
231
|
+
var _a;
|
|
186
232
|
const slot = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
187
233
|
if (!slot)
|
|
188
234
|
return 1;
|
|
189
235
|
const assigned = slot.assignedElements ? slot.assignedElements() : [];
|
|
190
236
|
if (assigned.length === 0)
|
|
191
237
|
return 1;
|
|
192
|
-
let totalWidth = 0;
|
|
193
|
-
assigned.forEach((el, index) => {
|
|
194
|
-
totalWidth += el.offsetWidth || 0;
|
|
195
|
-
this.items.push({ id: index, width: el.offsetWidth || 0 });
|
|
196
|
-
});
|
|
197
|
-
if (totalWidth === 0) {
|
|
198
|
-
totalWidth = assigned.length * window.innerWidth;
|
|
199
|
-
}
|
|
200
|
-
const screenWidth = ((_b = this.container) === null || _b === void 0 ? void 0 : _b.offsetWidth) || window.innerWidth;
|
|
201
238
|
this.totalItems = assigned.length;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
const
|
|
208
|
-
|
|
239
|
+
const viewportWidth = this.getViewportWidth();
|
|
240
|
+
const totalWidth = this.getSlotClientWidth();
|
|
241
|
+
let count = 0;
|
|
242
|
+
assigned.forEach((el) => {
|
|
243
|
+
const rect = el.getBoundingClientRect();
|
|
244
|
+
const trackRect = this.trackElement.getBoundingClientRect();
|
|
245
|
+
let relativeLeft = rect.left - trackRect.left;
|
|
246
|
+
if (relativeLeft > totalWidth - viewportWidth) {
|
|
247
|
+
this.dotCount = Math.min(this === null || this === void 0 ? void 0 : this.maxDots, count + 1);
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
count = Math.min(this === null || this === void 0 ? void 0 : this.maxDots, Math.ceil(relativeLeft / viewportWidth));
|
|
209
251
|
});
|
|
210
252
|
}
|
|
253
|
+
calculateGradient(item, relativeLeft) {
|
|
254
|
+
const totalWidth = this.getSlotClientWidth();
|
|
255
|
+
const offsetWidth = item.offsetWidth;
|
|
256
|
+
let relativeRight = totalWidth - relativeLeft - offsetWidth;
|
|
257
|
+
let gradientOffset = this.showGradient ? 160 : 0;
|
|
258
|
+
gradientOffset = relativeLeft < 160 ? relativeLeft : gradientOffset;
|
|
259
|
+
gradientOffset = relativeRight < 160 ? 0 : gradientOffset;
|
|
260
|
+
return gradientOffset;
|
|
261
|
+
}
|
|
211
262
|
componentDidLoad() {
|
|
212
|
-
this.
|
|
213
|
-
window.addEventListener('resize', this.
|
|
263
|
+
this.getDotCount();
|
|
264
|
+
window.addEventListener('resize', this.getDotCount.bind(this));
|
|
214
265
|
this.addAnchorFocusListeners();
|
|
215
266
|
this.checkGradient();
|
|
216
|
-
this.disableTabIndex();
|
|
217
267
|
}
|
|
218
268
|
addAnchorFocusListeners() {
|
|
219
269
|
if (!this.trackElement)
|
|
@@ -233,40 +283,57 @@ export class TetCarousel {
|
|
|
233
283
|
}
|
|
234
284
|
const tabIndexElements = Array.from(el.querySelectorAll('[tabindex="0"]'));
|
|
235
285
|
anchors = anchors.concat(tabIndexElements);
|
|
286
|
+
if (el.shadowRoot) {
|
|
287
|
+
const deepTabIndexElements = Array.from(el.shadowRoot.querySelectorAll('[tabindex="0"]'));
|
|
288
|
+
anchors = anchors.concat(deepTabIndexElements);
|
|
289
|
+
}
|
|
236
290
|
});
|
|
237
|
-
anchors.forEach((a) => {
|
|
291
|
+
anchors.forEach((a, index) => {
|
|
238
292
|
a.addEventListener('focus', () => {
|
|
239
|
-
|
|
240
|
-
const screenWidth = ((_a = this.container) === null || _a === void 0 ? void 0 : _a.offsetWidth) || window.innerWidth;
|
|
241
|
-
const rect = a.getBoundingClientRect();
|
|
242
|
-
const trackRect = this.trackElement.getBoundingClientRect();
|
|
243
|
-
let relativeLeft = rect.left - trackRect.left;
|
|
244
|
-
const totalWidth = ((_c = (_b = this.trackElement) === null || _b === void 0 ? void 0 : _b.querySelector('slot')) === null || _c === void 0 ? void 0 : _c.offsetWidth) || window.innerWidth;
|
|
245
|
-
let relativeRight = totalWidth - relativeLeft - a.offsetWidth;
|
|
246
|
-
// calculations for active index/dots
|
|
247
|
-
let index = Math.round(-this.dragOffset / screenWidth);
|
|
248
|
-
index = Math.max(0, Math.min(index, this.screenCount - 1));
|
|
249
|
-
let gradientOffset = this.showGradient ? 160 : 0;
|
|
250
|
-
gradientOffset = relativeLeft < 160 ? relativeLeft : gradientOffset;
|
|
251
|
-
gradientOffset = relativeRight < 160 ? 0 : gradientOffset;
|
|
252
|
-
relativeLeft -= gradientOffset;
|
|
253
|
-
const screenIdx = Math.floor((relativeLeft - gradientOffset) / screenWidth);
|
|
254
|
-
this.activeIndex = Math.max(0, Math.min(screenIdx, this.screenCount - 1));
|
|
255
|
-
if (totalWidth > screenWidth + relativeLeft) {
|
|
256
|
-
this.dragOffset = -relativeLeft;
|
|
257
|
-
}
|
|
258
|
-
this.checkForLastScreen();
|
|
293
|
+
this.moveToItem(a, index);
|
|
259
294
|
});
|
|
260
295
|
});
|
|
261
296
|
}
|
|
297
|
+
clampDotIndex(dotIndex) {
|
|
298
|
+
return Math.max(0, Math.min(dotIndex, this.dotCount - 1));
|
|
299
|
+
}
|
|
300
|
+
setDotIndex(position, gradientOffset) {
|
|
301
|
+
let dotIndex = 0;
|
|
302
|
+
const dotScreenLength = this.getDotScreenLength();
|
|
303
|
+
if (this.isLastDotScreen(position, dotScreenLength)) {
|
|
304
|
+
dotIndex = this.dotCount - 1;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
dotIndex = Math.floor((position + gradientOffset) / dotScreenLength);
|
|
308
|
+
}
|
|
309
|
+
this.activeDotIndex = this.clampDotIndex(dotIndex);
|
|
310
|
+
}
|
|
311
|
+
moveToItem(item, index) {
|
|
312
|
+
if (index || index === 0) {
|
|
313
|
+
this.activeItem = index;
|
|
314
|
+
}
|
|
315
|
+
const rect = item.getBoundingClientRect();
|
|
316
|
+
const trackRect = this.trackElement.getBoundingClientRect();
|
|
317
|
+
let relativeLeft = rect.left - trackRect.left;
|
|
318
|
+
const gradientOffset = this.calculateGradient(item, relativeLeft);
|
|
319
|
+
this.setDotIndex(relativeLeft, gradientOffset);
|
|
320
|
+
if (!this.isLastViewport(relativeLeft)) {
|
|
321
|
+
this.dragOffset = -relativeLeft;
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
this.moveToLastScreen();
|
|
325
|
+
}
|
|
326
|
+
}
|
|
262
327
|
disconnectedCallback() {
|
|
263
|
-
window.removeEventListener('resize', this.
|
|
328
|
+
window.removeEventListener('resize', this.getDotCount.bind(this));
|
|
264
329
|
}
|
|
265
330
|
render() {
|
|
266
|
-
return (h(Host, { key: '
|
|
331
|
+
return (h(Host, { key: 'd2a06bc0e502d130ad3642fcbda590a003e6f305' }, h("div", { key: '96ac837374a1ad150f925a44dc534547426a13e1', class: { 'tet-carousel': true, [`${this.theme}`]: true }, ref: (el) => (this.container = el), part: "carousel" }, h("div", { key: 'e8f8f9b22d1a2170bb4f3a7e5834d2832c18b853', class: "tet-carousel__container" }, h("div", { key: '63e2d90692e0d5a6b58e919016a3baf614c7bfb3', class: "tet-carousel__gradient-left", ref: (el) => { this.leftGradientRef = el; } }), h("div", { key: '29c271641073f62bade810d4f3f05666fbc48f78', class: "tet-carousel__gradient-right", ref: (el) => { this.rightGradientRef = el; } }), h("div", { key: 'c6ca2fe643e5fe9a1ab4fe9b383ac033939a268f', class: "tet-carousel__track", ref: (el) => (this.trackElement = el), style: {
|
|
267
332
|
transform: `translateX(${this.dragOffset}px)`,
|
|
268
333
|
transition: this.isDragging ? 'none' : `transform ${this.transitionDuration}ms ${this.transitionTiming}`
|
|
269
|
-
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("slot", { key: '
|
|
334
|
+
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("slot", { key: '70203e9f192cdc419352b8c37b6525c46b947aac' }))), (this.showButtons || this.showDots) && (h("div", { key: '104db94f8bfe2d26c939fd906089bac09a190f39', class: "tet-carousel__controls" }, this.showButtons && (h("div", { key: 'a359503a813556b1ae04663b67bffc80fb6d3eba', class: "tet-carousel__buttons tet-carousel__buttons--mobile" }, h("tet-button", { key: 'b879d216ee1475385528534e1e7ba582cc6340fa', class: "tet-carousel__btn", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconLeft, "icon-mode": true, onClick: this.handlePrev, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }))), this.showDots && (h("div", { key: 'fe2fa44f42636e6d1a1d9a216db73ebff6063f51', class: "tet-carousel__dots" }, Array.from({ length: this.dotCount }).map((_, idx) => (h("button", { type: "button", class: `tet-carousel__dot${idx === this.activeDotIndex ? ' active' : ''}`, key: idx, onClick: () => this.handleDotClick(idx) }))))), this.showButtons && (h("div", { key: '6fef3b90e8646571d8947fd81785bf1dbffe636b', class: "tet-carousel__buttons " }, h("tet-button", { key: '8e51c2e7a3585c36ba144a6c8f6a57f4c1c3bd48', class: "tet-carousel__buttons--desktop tet-carousel__btn ", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconLeft, "icon-mode": true, onClick: this.handlePrev, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }), h("tet-button", { key: 'affb86f1c2c3dd128389b1bea0179806512ea3d1', class: "tet-carousel__btn", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconRight, "icon-mode": true, onClick: this.handleNext, "aria-label": t('components-carousel-next'), disabled: this.dotCount <= 1
|
|
335
|
+
|| this.activeItem === this.totalItems - 1
|
|
336
|
+
|| this.isLastViewport(-this.dragOffset) }))))))));
|
|
270
337
|
}
|
|
271
338
|
static get is() { return "tet-carousel"; }
|
|
272
339
|
static get encapsulation() { return "shadow"; }
|
|
@@ -444,92 +511,65 @@ export class TetCarousel {
|
|
|
444
511
|
"reflect": false,
|
|
445
512
|
"defaultValue": "'arrow-right'"
|
|
446
513
|
},
|
|
447
|
-
"
|
|
448
|
-
"type": "
|
|
449
|
-
"mutable": false,
|
|
450
|
-
"complexType": {
|
|
451
|
-
"original": "string",
|
|
452
|
-
"resolved": "string",
|
|
453
|
-
"references": {}
|
|
454
|
-
},
|
|
455
|
-
"required": false,
|
|
456
|
-
"optional": false,
|
|
457
|
-
"docs": {
|
|
458
|
-
"tags": [],
|
|
459
|
-
"text": "Additional CSS class for the carousel container."
|
|
460
|
-
},
|
|
461
|
-
"attribute": "container-class",
|
|
462
|
-
"reflect": false,
|
|
463
|
-
"defaultValue": "''"
|
|
464
|
-
},
|
|
465
|
-
"trackClass": {
|
|
466
|
-
"type": "string",
|
|
467
|
-
"mutable": false,
|
|
468
|
-
"complexType": {
|
|
469
|
-
"original": "string",
|
|
470
|
-
"resolved": "string",
|
|
471
|
-
"references": {}
|
|
472
|
-
},
|
|
473
|
-
"required": false,
|
|
474
|
-
"optional": false,
|
|
475
|
-
"docs": {
|
|
476
|
-
"tags": [],
|
|
477
|
-
"text": "Additional CSS class for the carousel track."
|
|
478
|
-
},
|
|
479
|
-
"attribute": "track-class",
|
|
480
|
-
"reflect": false,
|
|
481
|
-
"defaultValue": "''"
|
|
482
|
-
},
|
|
483
|
-
"buttonClass": {
|
|
484
|
-
"type": "string",
|
|
514
|
+
"maxDots": {
|
|
515
|
+
"type": "number",
|
|
485
516
|
"mutable": false,
|
|
486
517
|
"complexType": {
|
|
487
|
-
"original": "
|
|
488
|
-
"resolved": "
|
|
518
|
+
"original": "number",
|
|
519
|
+
"resolved": "number",
|
|
489
520
|
"references": {}
|
|
490
521
|
},
|
|
491
522
|
"required": false,
|
|
492
523
|
"optional": false,
|
|
493
524
|
"docs": {
|
|
494
525
|
"tags": [],
|
|
495
|
-
"text": "
|
|
526
|
+
"text": "Maximum number of dots."
|
|
496
527
|
},
|
|
497
|
-
"attribute": "
|
|
528
|
+
"attribute": "max-dots",
|
|
498
529
|
"reflect": false,
|
|
499
|
-
"defaultValue": "
|
|
530
|
+
"defaultValue": "8"
|
|
500
531
|
},
|
|
501
|
-
"
|
|
532
|
+
"language": {
|
|
502
533
|
"type": "string",
|
|
503
534
|
"mutable": false,
|
|
504
535
|
"complexType": {
|
|
505
|
-
"original": "
|
|
506
|
-
"resolved": "
|
|
507
|
-
"references": {
|
|
536
|
+
"original": "Language",
|
|
537
|
+
"resolved": "\"en\" | \"lv\" | \"ru\"",
|
|
538
|
+
"references": {
|
|
539
|
+
"Language": {
|
|
540
|
+
"location": "import",
|
|
541
|
+
"path": "@services/translations",
|
|
542
|
+
"id": "src/services/translations/index.ts::Language"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
508
545
|
},
|
|
509
546
|
"required": false,
|
|
510
547
|
"optional": false,
|
|
511
548
|
"docs": {
|
|
512
549
|
"tags": [],
|
|
513
|
-
"text": "
|
|
550
|
+
"text": "The translation language."
|
|
514
551
|
},
|
|
515
|
-
"attribute": "
|
|
552
|
+
"attribute": "language",
|
|
516
553
|
"reflect": false,
|
|
517
|
-
"defaultValue": "''"
|
|
554
|
+
"defaultValue": "'lv'"
|
|
518
555
|
}
|
|
519
556
|
};
|
|
520
557
|
}
|
|
521
558
|
static get states() {
|
|
522
559
|
return {
|
|
523
|
-
"
|
|
524
|
-
"
|
|
560
|
+
"activeDotIndex": {},
|
|
561
|
+
"dotCount": {},
|
|
525
562
|
"totalItems": {},
|
|
526
|
-
"
|
|
563
|
+
"activeItem": {},
|
|
527
564
|
"isDragging": {},
|
|
528
565
|
"dragOffset": {}
|
|
529
566
|
};
|
|
530
567
|
}
|
|
531
568
|
static get watchers() {
|
|
532
569
|
return [{
|
|
570
|
+
"propName": "language",
|
|
571
|
+
"methodName": "onLanguageChange"
|
|
572
|
+
}, {
|
|
533
573
|
"propName": "showGradient",
|
|
534
574
|
"methodName": "checkGradient"
|
|
535
575
|
}, {
|
package/dist/components/index.js
CHANGED
|
@@ -92,7 +92,7 @@ import { TetThankYouViewV3 } from './tet-thank-you-view-v3.js';
|
|
|
92
92
|
import { TetTooltip } from './tet-tooltip.js';
|
|
93
93
|
import { TetTvGiftBlock } from './tet-tv-gift-block.js';
|
|
94
94
|
import { TetTvGiftList } from './tet-tv-gift-list.js';
|
|
95
|
-
export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
95
|
+
export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-5749376d.js';
|
|
96
96
|
|
|
97
97
|
const defineCustomElements = (opts) => {
|
|
98
98
|
if (typeof customElements !== 'undefined') {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-5749376d.js';
|
|
2
2
|
import { g as getConvertedPixels } from './p-165a8492.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
4
|
-
import { d as defineCustomElement$1 } from './p-
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-9e91b356.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './p-19ad34f9.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Adds the `mobile-like` inertial scroll logic without calling the native `scroll` event
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as createEvent, h } from './p-
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as createEvent, h } from './p-5749376d.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-9e91b356.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-19ad34f9.js';
|
|
4
4
|
|
|
5
5
|
const tetNumberInputCss = "@font-face{font-family:\"Gilroy\";font-style:normal;font-weight:400;font-display:swap;src:url(\"assets/fonts/Gilroy-W05-Medium.woff2\") format(\"woff2\"), url(\"assets/fonts/Gilroy-W05-Medium.woff\") format(\"woff\")}@font-face{font-family:\"Gilroy\";font-style:normal;font-weight:500;font-display:swap;src:url(\"assets/fonts/Gilroy-W05-Medium.woff2\") format(\"woff2\"), url(\"assets/fonts/Gilroy-W05-Medium.woff\") format(\"woff\")}@font-face{font-family:\"Gilroy\";font-style:normal;font-weight:600;font-display:swap;src:url(\"assets/fonts/Gilroy-W05-Semibold.woff2\") format(\"woff2\"), url(\"assets/fonts/Gilroy-W05-Semibold.woff\") format(\"woff\")}@font-face{font-family:\"Gilroy\";font-style:normal;font-weight:700;font-display:swap;src:url(\"assets/fonts/Gilroy-W05-Bold.woff2\") format(\"woff2\"), url(\"assets/fonts/Gilroy-W05-Bold.woff\") format(\"woff\")}@font-face{font-family:\"Inter\";font-style:normal;font-weight:400;font-display:swap;src:url(\"assets/fonts/Inter-Regular.woff2?v=3.19\") format(\"woff2\"), url(\"assets/fonts/Inter-Regular.woff?v=3.19\") format(\"woff\")}@font-face{font-family:\"Inter\";font-style:normal;font-weight:500;font-display:swap;src:url(\"assets/fonts/Inter-Medium.woff2?v=3.19\") format(\"woff2\"), url(\"assets/fonts/Inter-Medium.woff?v=3.19\") format(\"woff\")}@font-face{font-family:\"Inter\";font-style:normal;font-weight:600;font-display:swap;src:url(\"assets/fonts/Inter-SemiBold.woff2?v=3.19\") format(\"woff2\"), url(\"assets/fonts/Inter-SemiBold.woff?v=3.19\") format(\"woff\")}@font-face{font-family:\"Gilroy\";font-style:normal;font-weight:400;font-display:swap;src:url(\"assets/fonts/Gilroy-W05-Medium.woff2\") format(\"woff2\"), url(\"assets/fonts/Gilroy-W05-Medium.woff\") format(\"woff\")}@font-face{font-family:\"Gilroy\";font-style:normal;font-weight:500;font-display:swap;src:url(\"assets/fonts/Gilroy-W05-Medium.woff2\") format(\"woff2\"), url(\"assets/fonts/Gilroy-W05-Medium.woff\") format(\"woff\")}@font-face{font-family:\"Gilroy\";font-style:normal;font-weight:600;font-display:swap;src:url(\"assets/fonts/Gilroy-W05-Semibold.woff2\") format(\"woff2\"), url(\"assets/fonts/Gilroy-W05-Semibold.woff\") format(\"woff\")}@font-face{font-family:\"Gilroy\";font-style:normal;font-weight:700;font-display:swap;src:url(\"assets/fonts/Gilroy-W05-Bold.woff2\") format(\"woff2\"), url(\"assets/fonts/Gilroy-W05-Bold.woff\") format(\"woff\")}@font-face{font-family:\"Inter\";font-style:normal;font-weight:400;font-display:swap;src:url(\"assets/fonts/Inter-Regular.woff2?v=3.19\") format(\"woff2\"), url(\"assets/fonts/Inter-Regular.woff?v=3.19\") format(\"woff\")}@font-face{font-family:\"Inter\";font-style:normal;font-weight:500;font-display:swap;src:url(\"assets/fonts/Inter-Medium.woff2?v=3.19\") format(\"woff2\"), url(\"assets/fonts/Inter-Medium.woff?v=3.19\") format(\"woff\")}@font-face{font-family:\"Inter\";font-style:normal;font-weight:600;font-display:swap;src:url(\"assets/fonts/Inter-SemiBold.woff2?v=3.19\") format(\"woff2\"), url(\"assets/fonts/Inter-SemiBold.woff?v=3.19\") format(\"woff\")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--number-input-height:3.5rem;--number-input-background-color:var(--tc-layer-primary);--number-input-border-radius:0.75rem;--number-input-border-color:var(--tc-border-secondary);--number-input-border-color-active:var(--tc-border-primary);--number-input-border-color-error:var( --tc-alert-accent-error);--number-input-text-color:var(--tc-text-primary);--number-input-text-secondary-color:var(--tc-text-secondary);--number-input-dropdown-active:var(--tc-layer-tertiary);--number-input-max-width:21.625rem;--number-input-focus-outline-color:var(--tc-blue-40);--number-input-disabled:var(--tc-background-secondary);--number-input-disabled-text:var(--tc-text-tertiary);--number-input-dropdown-border:var(--tc-border-tertiary);max-width:var(--number-input-max-width);display:block}.number-input{display:flex;flex-direction:column}.number-input.dark{--number-input-background-color:var(--tc-layer-primary-dark);--number-input-border-color:var(--tc-border-secondary-dark);--number-input-border-color-active:var(--tc-border-primary-dark);--number-input-border-color-error:var(--tc-alert-accent-error-dark);--number-input-text-color:var(--tc-text-primary-dark);--number-input-text-secondary-color:var(--tc-text-secondary-dark);--number-input-dropdown-active:var(--tc-layer-tertiary-dark);--number-input-disabled:var(--tc-background-secondary-dark);--number-input-disabled-text:var(--tc-text-tertiary-dark);--number-input-dropdown-border:var(--tc-border-tertiary-dark);--number-input-focus-outline-color:var(--tc-blue-40-dark)}.number-input__label{margin-bottom:0.25rem;font:500 0.875rem/1.25rem \"Inter\", \"Gilroy, Arial, sans-serif\";color:var(--number-input-text-secondary-color)}.number-input__input{border:none;outline:none;appearance:textfield;-moz-appearance:textfield;padding-inline:0;padding-block:0;font:500 1.25rem/1.5rem \"Inter\", \"Gilroy, Arial, sans-serif\"}.number-input__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number-input__input-suffix{font:400 1rem/1.5rem \"Inter\", \"Gilroy, Arial, sans-serif\";color:var(--number-input-text-secondary-color);margin-left:0.25rem}.number-input__input-invisible{visibility:hidden;font:500 1.25rem/1.5rem \"Inter\", \"Gilroy, Arial, sans-serif\";position:absolute;pointer-events:none}.number-input__input-container{position:relative;display:flex;border:0.063rem solid var(--number-input-border-color);align-items:baseline;justify-content:center;padding:0.9375rem;cursor:pointer;height:var(--number-input-height);box-sizing:border-box;background-color:var(--number-input-background-color);border-radius:var(--number-input-border-radius)}.number-input__input-container:active,.number-input__input-container:focus-within{outline:none;border:0.063rem solid var(--number-input-border-color-active)}.number-input__input-container.focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--number-input-focus-outline-color);border-color:var(--number-input-border-color-active)}.number-input__input--hidden{opacity:0;position:absolute}.number-input__helper-text{margin-top:0.25rem;font:400 0.875rem/1.25rem \"Inter\", \"Gilroy, Arial, sans-serif\";color:var(--number-input-text-secondary-color)}.number-input__cheveron{display:flex;align-self:center;position:absolute;right:1rem;--icon-size:1.25rem;background:transparent;border:none;outline:none;cursor:pointer;--button-border:none;--button-padding-small:0.5rem}.number-input__cheveron:focus,.number-input__cheveron:focus-visible{--button-box-shadow:none}.number-input__dropdown{border:0.0625rem solid var(--number-input-dropdown-border);position:absolute;width:100%;top:3.625rem;background-color:var(--number-input-background-color);padding:0.625rem 0;border-radius:0.75rem;z-index:1;color:var(--number-input-text-color)}.number-input__dropdown:focus-within{outline:none}.number-input__dropdown-item{display:flex;align-items:center;padding:0.5rem 1rem;font:500 0.875rem/1.25rem \"Inter\", \"Gilroy, Arial, sans-serif\"}.number-input__dropdown-item.active{background-color:var(--number-input-dropdown-active)}.number-input__dropdown-item:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0rem;transition:outline 0s;border-radius:0.125rem;outline-color:var(--number-input-focus-outline-color)}.number-input__dropdown-item:hover{background-color:var(--number-input-dropdown-active)}.number-input__dropdown-item .check{margin-left:auto}.number-input.disabled .number-input__input-container,.number-input.disabled .number-input__input{background-color:var(--number-input-disabled);border-color:var(--number-input-disabled);cursor:not-allowed}.number-input.disabled .number-input__input,.number-input.disabled .number-input__input-suffix{color:var(--number-input-disabled-text)}.number-input.error .number-input__input-container{border:0.063rem solid var(--number-input-border-color-error)}.number-input.error .number-input__helper-text{color:var(--number-input-border-color-error)}@media all and (min-width: 48rem){.number-input .number-input__label{font:500 1rem/1.5rem \"Inter\", \"Gilroy, Arial, sans-serif\"}}.number-input tet-icon{--icon-color:var(--number-input-text-color)}.number-input .number-input__input{color:var(--number-input-text-color);background-color:var(--number-input-background-color)}";
|
|
6
6
|
const TetNumberInputStyle0 = tetNumberInputCss;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as createEvent, h, f as forceUpdate, c as Host } from './p-
|
|
2
|
-
import { t as translate, p as processTranslations } from './p-
|
|
3
|
-
import { d as defineCustomElement$4 } from './p-
|
|
4
|
-
import { d as defineCustomElement$3 } from './p-
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as createEvent, h, f as forceUpdate, c as Host } from './p-5749376d.js';
|
|
2
|
+
import { t as translate, p as processTranslations } from './p-f0503bac.js';
|
|
3
|
+
import { d as defineCustomElement$4 } from './p-19ad34f9.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './p-5ba3b696.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './p-649085aa.js';
|
|
6
|
+
import { d as defineCustomElement$1 } from './p-cf026e83.js';
|
|
7
7
|
|
|
8
8
|
class AddressOffersProductsFilters {
|
|
9
9
|
constructor(onFilterSelect) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-
|
|
2
|
-
import { g as getRenderingRef, f as forceUpdate } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-5749376d.js';
|
|
2
|
+
import { g as getRenderingRef, f as forceUpdate } from './p-8f91eb96.js';
|
|
3
3
|
|
|
4
4
|
const appendToMap = (map, propName, value) => {
|
|
5
5
|
const items = map.get(propName);
|