@tet/tet-components 1.3.115-staging → 1.3.116-testing
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-7739b5bf.js → address-5271d3aa.js} +1 -1
- package/dist/cjs/{assets-f04dbe9c.js → assets-e3bb045c.js} +1 -1
- package/dist/cjs/{async-request-9d8ba94a.js → async-request-29b32d63.js} +1 -1
- package/dist/cjs/{http-codes-c172bdfc.js → http-codes-2f72a8b2.js} +1 -1
- package/dist/cjs/{index-cac5ef8f.js → index-84ede372.js} +1 -1
- package/dist/cjs/{index-d323e22a.js → index-f559cb2e.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-67c70ea5.js → phone-c3ebb2eb.js} +2 -2
- package/dist/cjs/{product-comparison-6bf262b7.js → product-comparison-f784fb1b.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 +1 -1
- 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 +54 -42
- 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-a1abdef5.js → theme-wrapper-a5bbadf6.js} +2 -2
- package/dist/cjs/{translations-1fa17fd7.js → translations-ed68775f.js} +1 -1
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/test/tet-compare-card-v2.spec.js +17 -19
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +12 -3
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +83 -40
- package/dist/components/index.js +1 -1
- package/dist/components/{p-e0da62c0.js → p-02399f8e.js} +2 -2
- package/dist/components/{p-67960f22.js → p-0a9fb3c4.js} +2 -2
- package/dist/components/{p-bbd6cfd1.js → p-144dffdc.js} +1 -1
- package/dist/components/{p-28916cf7.js → p-17e03ce4.js} +3 -3
- package/dist/components/{p-d91d8141.js → p-1a8ec14e.js} +2 -2
- package/dist/components/{p-7bff0a84.js → p-1c31eaaf.js} +14 -14
- package/dist/components/{p-cca82967.js → p-1c5e369f.js} +2 -2
- package/dist/components/{p-798352be.js → p-1dd1fc3a.js} +10 -10
- package/dist/components/{p-a18fd2fd.js → p-1dfb07e1.js} +1 -1
- package/dist/components/{p-ba45da9e.js → p-207c4b5d.js} +3 -3
- package/dist/components/{p-71f5a37f.js → p-27194279.js} +1 -1
- package/dist/components/{p-5749376d.js → p-37ed3ebb.js} +1 -1
- package/dist/components/{p-0800568f.js → p-3a17c85a.js} +3 -3
- package/dist/components/{p-76c45686.js → p-3dad3e16.js} +7 -7
- package/dist/components/{p-ceb5f8c9.js → p-3dc2183b.js} +1 -1
- package/dist/components/{p-47d5ea80.js → p-489ae3a0.js} +1 -1
- package/dist/components/{p-77f74d4d.js → p-48a1a0e4.js} +1 -1
- package/dist/components/{p-b5924985.js → p-4d0a0afc.js} +1 -1
- package/dist/components/{p-951b004f.js → p-504e911b.js} +1 -1
- package/dist/components/{p-56e07823.js → p-50c52fb2.js} +1 -1
- package/dist/components/{p-f329deb1.js → p-547dbd72.js} +1 -1
- package/dist/components/{p-a19d89db.js → p-5c08dbdb.js} +2 -2
- package/dist/components/{p-68876a74.js → p-5c8c2d8d.js} +1 -1
- package/dist/components/{p-fe3d8820.js → p-619c03c8.js} +2 -2
- package/dist/components/{p-50edcb4f.js → p-647c5edc.js} +6 -6
- package/dist/components/{p-1ff52177.js → p-6830b44d.js} +2 -2
- package/dist/components/{p-ee871065.js → p-763fc23e.js} +3 -3
- package/dist/components/{p-3d0e574b.js → p-77370033.js} +4 -4
- package/dist/components/{p-d0537f8e.js → p-88b42c67.js} +1 -1
- package/dist/components/{p-d64abb9a.js → p-89e49727.js} +4 -4
- package/dist/components/{p-5ba3b696.js → p-8b3d80aa.js} +1 -1
- package/dist/components/{p-fddffe4d.js → p-902a69e5.js} +1 -1
- package/dist/components/{p-3b825b15.js → p-9fb2b859.js} +7 -7
- package/dist/components/{p-8f91eb96.js → p-a0d406ca.js} +1 -1
- package/dist/components/{p-4de206bb.js → p-a141151a.js} +1 -1
- package/dist/components/{p-d23332cc.js → p-a60885a9.js} +2 -2
- package/dist/components/{p-4227ed8b.js → p-a81e545d.js} +1 -1
- package/dist/components/{p-f0503bac.js → p-aca28e71.js} +1 -1
- package/dist/components/{p-4a654985.js → p-ae4b6ba7.js} +3 -3
- package/dist/components/{p-6364f069.js → p-af8f7b1d.js} +2 -2
- package/dist/components/{p-926307b4.js → p-c365367f.js} +3 -3
- package/dist/components/{p-ad4150cc.js → p-c656c370.js} +2 -2
- package/dist/components/{p-5b0f19d0.js → p-c9f72086.js} +2 -2
- package/dist/components/{p-61d72bcb.js → p-d6cabfae.js} +9 -9
- package/dist/components/{p-b658e4fc.js → p-d9aedaf8.js} +6 -6
- package/dist/components/{p-af9d28a3.js → p-dbdd0585.js} +3 -3
- package/dist/components/{p-6cc4ebf4.js → p-de243ddc.js} +10 -10
- package/dist/components/{p-3d59ab53.js → p-eb98627a.js} +1 -1
- package/dist/components/{p-6956d6d9.js → p-eb9b5f91.js} +1 -1
- package/dist/components/{p-9173ea5a.js → p-ecb0207c.js} +1 -1
- package/dist/components/{p-d3a0512e.js → p-f8799a7e.js} +3 -3
- package/dist/components/{p-4dc3bc1c.js → p-fc279b1c.js} +1 -1
- package/dist/components/{p-65fbd362.js → p-feaaeb2d.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 +3 -3
- 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 +62 -50
- 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-cf4b9052.js → address-979a9993.js} +1 -1
- package/dist/esm/{assets-9c72dac5.js → assets-b971f105.js} +1 -1
- package/dist/esm/{async-request-8cfbcb21.js → async-request-6675e5f5.js} +1 -1
- package/dist/esm/{http-codes-66a577c3.js → http-codes-7faa9f6e.js} +1 -1
- package/dist/esm/{index-a7cd7688.js → index-1bf36cb9.js} +1 -1
- package/dist/esm/{index-8ac89426.js → index-7f1e2a22.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-8d55f9d7.js → phone-ed2205b3.js} +2 -2
- package/dist/esm/{product-comparison-d97cb68b.js → product-comparison-830e2764.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 +1 -1
- 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 +54 -42
- 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-de71af98.js → theme-wrapper-6e6b2089.js} +2 -2
- package/dist/esm/{translations-24de7d95.js → translations-eff34607.js} +1 -1
- package/dist/tet-components/{p-24173e11.entry.js → p-00695447.entry.js} +1 -1
- package/dist/tet-components/{p-4a2cf529.entry.js → p-018095d9.entry.js} +1 -1
- package/dist/tet-components/p-04edd8b9.entry.js +1 -0
- package/dist/tet-components/{p-7e0b9e20.entry.js → p-07f08711.entry.js} +1 -1
- package/dist/tet-components/{p-8f55be16.entry.js → p-0ca72362.entry.js} +1 -1
- package/dist/tet-components/{p-9b377b8c.entry.js → p-108cd149.entry.js} +1 -1
- package/dist/tet-components/{p-0e6b8c44.entry.js → p-11e8f3aa.entry.js} +1 -1
- package/dist/tet-components/{p-22d3caa2.entry.js → p-12c21228.entry.js} +1 -1
- package/dist/tet-components/{p-774c56c8.entry.js → p-1576d249.entry.js} +1 -1
- package/dist/tet-components/{p-52dc2cef.entry.js → p-17a4096b.entry.js} +1 -1
- package/dist/tet-components/{p-67c5dc0a.js → p-1ec7f341.js} +1 -1
- package/dist/tet-components/{p-487842dc.entry.js → p-1ecc7145.entry.js} +1 -1
- package/dist/tet-components/{p-807f8ca8.entry.js → p-1ff6c573.entry.js} +1 -1
- package/dist/tet-components/{p-40977c25.entry.js → p-25b4c5fb.entry.js} +1 -1
- package/dist/tet-components/{p-94b83faa.entry.js → p-27b66648.entry.js} +1 -1
- package/dist/tet-components/{p-25b7d54c.entry.js → p-27e3fced.entry.js} +1 -1
- package/dist/tet-components/{p-32d51bcc.entry.js → p-2d7f95f8.entry.js} +1 -1
- package/dist/tet-components/{p-98787067.entry.js → p-2f029068.entry.js} +1 -1
- package/dist/tet-components/{p-448d3af4.entry.js → p-3239abed.entry.js} +1 -1
- package/dist/tet-components/{p-a71fa814.entry.js → p-33807857.entry.js} +1 -1
- package/dist/tet-components/{p-d4679639.entry.js → p-3588d98e.entry.js} +1 -1
- package/dist/tet-components/{p-712b2089.entry.js → p-37958859.entry.js} +1 -1
- package/dist/tet-components/{p-cdc47c9f.entry.js → p-3a388c27.entry.js} +1 -1
- package/dist/tet-components/{p-7f5deac5.entry.js → p-3bf8a104.entry.js} +1 -1
- package/dist/tet-components/{p-bc7e8a59.entry.js → p-3ca29117.entry.js} +1 -1
- package/dist/tet-components/{p-3c446399.entry.js → p-469f4991.entry.js} +1 -1
- package/dist/tet-components/{p-8bd8d1e5.entry.js → p-476001d6.entry.js} +1 -1
- package/dist/tet-components/{p-e43e0a37.entry.js → p-47618056.entry.js} +1 -1
- package/dist/tet-components/{p-81facc26.entry.js → p-4d4912e3.entry.js} +1 -1
- package/dist/tet-components/{p-fd189a4c.entry.js → p-4e3c6172.entry.js} +1 -1
- package/dist/tet-components/{p-674da30f.entry.js → p-4fd91299.entry.js} +1 -1
- package/dist/tet-components/{p-36e91cbc.entry.js → p-557685b2.entry.js} +1 -1
- package/dist/tet-components/{p-93827b9c.entry.js → p-55819f09.entry.js} +1 -1
- package/dist/tet-components/{p-8549fb81.entry.js → p-59db86cf.entry.js} +1 -1
- package/dist/tet-components/{p-d4613b96.entry.js → p-5d321447.entry.js} +1 -1
- package/dist/tet-components/{p-65cf9333.entry.js → p-5ef2b795.entry.js} +1 -1
- package/dist/tet-components/{p-c41118a5.entry.js → p-61818927.entry.js} +1 -1
- package/dist/tet-components/{p-f4535fca.entry.js → p-62419a1f.entry.js} +1 -1
- package/dist/tet-components/{p-f960e6a9.entry.js → p-641c5d9d.entry.js} +1 -1
- package/dist/tet-components/{p-99340df4.entry.js → p-6c69e565.entry.js} +1 -1
- package/dist/tet-components/{p-9d26d7a0.entry.js → p-6e7a5d73.entry.js} +1 -1
- package/dist/tet-components/{p-b7dc8238.entry.js → p-6e8f1b37.entry.js} +1 -1
- package/dist/tet-components/{p-50f7f25f.js → p-71e2fe80.js} +1 -1
- package/dist/tet-components/{p-0a2abc7a.entry.js → p-7210bb04.entry.js} +1 -1
- package/dist/tet-components/{p-9fe8cf64.entry.js → p-74275f2b.entry.js} +1 -1
- package/dist/tet-components/{p-ea310b24.entry.js → p-7476cb78.entry.js} +1 -1
- package/dist/tet-components/{p-435e37e4.entry.js → p-74989c7b.entry.js} +1 -1
- package/dist/tet-components/{p-baa9231f.js → p-77372984.js} +1 -1
- package/dist/tet-components/{p-4ede3a1f.entry.js → p-79255c00.entry.js} +1 -1
- package/dist/tet-components/{p-4faf23bd.entry.js → p-7a12782b.entry.js} +1 -1
- package/dist/tet-components/{p-32b5e271.entry.js → p-80b51d59.entry.js} +1 -1
- package/dist/tet-components/{p-c084d412.entry.js → p-82f67011.entry.js} +1 -1
- package/dist/tet-components/{p-80e929ba.entry.js → p-8b455701.entry.js} +1 -1
- package/dist/tet-components/{p-0967ecde.js → p-8c964cca.js} +1 -1
- package/dist/tet-components/{p-5c7ce549.entry.js → p-910087e6.entry.js} +1 -1
- package/dist/tet-components/{p-369dace1.entry.js → p-966eaa17.entry.js} +1 -1
- package/dist/tet-components/{p-ad5686e5.entry.js → p-970a3fc5.entry.js} +1 -1
- package/dist/tet-components/{p-2f773b28.entry.js → p-984c22da.entry.js} +1 -1
- package/dist/tet-components/{p-fbf6521b.entry.js → p-9ef5798e.entry.js} +1 -1
- package/dist/tet-components/{p-e095a464.entry.js → p-a15886aa.entry.js} +1 -1
- package/dist/tet-components/{p-41faa90c.entry.js → p-a844fa98.entry.js} +1 -1
- package/dist/tet-components/{p-f981dac8.entry.js → p-add5c08b.entry.js} +1 -1
- package/dist/tet-components/{p-054a8882.entry.js → p-b1f31660.entry.js} +1 -1
- package/dist/tet-components/p-b2b384d2.js +1 -0
- package/dist/tet-components/{p-a317ae27.entry.js → p-b5706ef0.entry.js} +1 -1
- package/dist/tet-components/{p-9cfcf121.entry.js → p-bb6387c6.entry.js} +1 -1
- package/dist/tet-components/{p-36e468a3.js → p-bc16c07b.js} +1 -1
- package/dist/tet-components/{p-50b75e77.entry.js → p-bdce1210.entry.js} +1 -1
- package/dist/tet-components/{p-81f8fb7f.entry.js → p-c1294aa0.entry.js} +1 -1
- package/dist/tet-components/{p-8b974532.entry.js → p-c2d3f622.entry.js} +1 -1
- package/dist/tet-components/{p-afcf04af.entry.js → p-c592f222.entry.js} +1 -1
- package/dist/tet-components/{p-46126457.entry.js → p-c82c7f32.entry.js} +1 -1
- package/dist/tet-components/{p-bb769879.entry.js → p-c95cf2d4.entry.js} +1 -1
- package/dist/tet-components/{p-dede3fc8.entry.js → p-cb7e189e.entry.js} +1 -1
- package/dist/tet-components/{p-0e55273a.entry.js → p-cc73c6bf.entry.js} +1 -1
- package/dist/tet-components/{p-42613a55.js → p-cf7d5c84.js} +1 -1
- package/dist/tet-components/{p-8836c7f7.entry.js → p-d123c385.entry.js} +1 -1
- package/dist/tet-components/{p-f04e2faf.entry.js → p-d2ea6733.entry.js} +1 -1
- package/dist/tet-components/{p-b52c4b78.entry.js → p-d4603ec3.entry.js} +1 -1
- package/dist/tet-components/{p-0a56c9ad.entry.js → p-db666f67.entry.js} +1 -1
- package/dist/tet-components/{p-c830c227.js → p-dcbe09b5.js} +1 -1
- package/dist/tet-components/{p-e318ee60.js → p-de142575.js} +1 -1
- package/dist/tet-components/{p-9a21bd4e.entry.js → p-decd45f3.entry.js} +1 -1
- package/dist/tet-components/{p-f2978a1b.js → p-e263ecdf.js} +1 -1
- package/dist/tet-components/{p-ecb956d7.entry.js → p-e3b987d7.entry.js} +1 -1
- package/dist/tet-components/{p-126c3143.entry.js → p-e596991f.entry.js} +1 -1
- package/dist/tet-components/{p-b1f20a9e.entry.js → p-eeb72714.entry.js} +1 -1
- package/dist/tet-components/{p-47ffe780.entry.js → p-f09325e9.entry.js} +1 -1
- package/dist/tet-components/{p-9c1bd7ec.entry.js → p-f7996941.entry.js} +1 -1
- package/dist/tet-components/{p-da44b761.entry.js → p-f9d096b2.entry.js} +1 -1
- package/dist/tet-components/{p-639d54d8.entry.js → p-ff66a3ec.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.d.ts +12 -3
- package/dist/types/components.d.ts +24 -0
- package/package.json +1 -1
- package/dist/tet-components/p-17b49153.entry.js +0 -1
- package/dist/tet-components/p-b604ca3e.js +0 -1
package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js
CHANGED
|
@@ -7,6 +7,7 @@ import { productComparison } from "../../../../services/api/index";
|
|
|
7
7
|
*/
|
|
8
8
|
export class TetCompareCardV2 {
|
|
9
9
|
constructor() {
|
|
10
|
+
this.cardHasEmitted = false;
|
|
10
11
|
/**
|
|
11
12
|
* Renders the loader.
|
|
12
13
|
*/
|
|
@@ -38,10 +39,10 @@ export class TetCompareCardV2 {
|
|
|
38
39
|
this.dropdownOptions = [];
|
|
39
40
|
this.showLoader = true;
|
|
40
41
|
this.selectedProductCode = '';
|
|
41
|
-
this.comparisonData = null;
|
|
42
42
|
this.selectedSwitchKeys = [];
|
|
43
43
|
this.preselectedKeys = [];
|
|
44
44
|
this.preselectedProductCode = '';
|
|
45
|
+
this.allProductData = {};
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
* @param event
|
|
@@ -49,16 +50,17 @@ export class TetCompareCardV2 {
|
|
|
49
50
|
onOptionSelected(event) {
|
|
50
51
|
const productCode = event.detail.value;
|
|
51
52
|
this.selectedProductCode = productCode;
|
|
52
|
-
this.
|
|
53
|
+
this.productChanged.emit();
|
|
53
54
|
}
|
|
54
|
-
componentWillLoad() {
|
|
55
|
+
async componentWillLoad() {
|
|
55
56
|
var _a;
|
|
57
|
+
await this.fetchProductComparison();
|
|
56
58
|
if (this.cardType === 'dropdown') {
|
|
57
59
|
this.pushDataToDropdownOptions();
|
|
58
60
|
const preselected = this.options.find(option => option.preselected);
|
|
59
61
|
if (preselected) {
|
|
60
62
|
this.selectedProductCode = preselected.productCode;
|
|
61
|
-
this.
|
|
63
|
+
this.productChanged.emit();
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
if (this.cardType === "switcher") {
|
|
@@ -68,13 +70,13 @@ export class TetCompareCardV2 {
|
|
|
68
70
|
this.preselectedProductCode = preselected.productCode;
|
|
69
71
|
this.selectedSwitchKeys = [...preselected.keys];
|
|
70
72
|
this.selectedProductCode = preselected.productCode;
|
|
71
|
-
this.
|
|
73
|
+
this.productChanged.emit();
|
|
72
74
|
}
|
|
73
75
|
return;
|
|
74
76
|
}
|
|
75
77
|
if (this.cardType === 'static') {
|
|
76
78
|
this.selectedProductCode = ((_a = this.options.find(option => option.productCode)) === null || _a === void 0 ? void 0 : _a.productCode) || '';
|
|
77
|
-
this.
|
|
79
|
+
this.productChanged.emit();
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
pushDataToDropdownOptions() {
|
|
@@ -100,8 +102,8 @@ export class TetCompareCardV2 {
|
|
|
100
102
|
if (fullComboOption) {
|
|
101
103
|
this.selectedSwitchKeys = [...fullComboOption.keys];
|
|
102
104
|
this.selectedProductCode = fullComboOption.productCode;
|
|
105
|
+
this.productChanged.emit();
|
|
103
106
|
this.showLoader = true;
|
|
104
|
-
this.fetchProductComparison(fullComboOption.productCode);
|
|
105
107
|
return;
|
|
106
108
|
}
|
|
107
109
|
}
|
|
@@ -120,8 +122,8 @@ export class TetCompareCardV2 {
|
|
|
120
122
|
if (isFullComboActive && key !== selectAllKey) {
|
|
121
123
|
this.selectedSwitchKeys = [...this.preselectedKeys];
|
|
122
124
|
this.selectedProductCode = this.preselectedProductCode;
|
|
125
|
+
this.productChanged.emit();
|
|
123
126
|
this.showLoader = true;
|
|
124
|
-
this.fetchProductComparison(this.preselectedProductCode);
|
|
125
127
|
return;
|
|
126
128
|
}
|
|
127
129
|
if (activeKeys.length === 1 &&
|
|
@@ -140,8 +142,8 @@ export class TetCompareCardV2 {
|
|
|
140
142
|
if (activeKeys.length === 0) {
|
|
141
143
|
this.selectedSwitchKeys = [...this.preselectedKeys];
|
|
142
144
|
this.selectedProductCode = this.preselectedProductCode;
|
|
145
|
+
this.productChanged.emit();
|
|
143
146
|
this.showLoader = true;
|
|
144
|
-
this.fetchProductComparison(this.preselectedProductCode);
|
|
145
147
|
return;
|
|
146
148
|
}
|
|
147
149
|
}
|
|
@@ -150,12 +152,12 @@ export class TetCompareCardV2 {
|
|
|
150
152
|
this.selectedSwitchKeys = activeKeys;
|
|
151
153
|
if (productCode) {
|
|
152
154
|
this.selectedProductCode = productCode;
|
|
155
|
+
this.productChanged.emit();
|
|
153
156
|
this.showLoader = true;
|
|
154
|
-
this.fetchProductComparison(productCode);
|
|
155
157
|
}
|
|
156
158
|
else {
|
|
157
159
|
this.selectedProductCode = '';
|
|
158
|
-
this.
|
|
160
|
+
this.productChanged.emit();
|
|
159
161
|
this.showLoader = false;
|
|
160
162
|
}
|
|
161
163
|
}
|
|
@@ -165,25 +167,28 @@ export class TetCompareCardV2 {
|
|
|
165
167
|
}
|
|
166
168
|
return this.options.reduce((max, curr) => curr.keys.length > max.keys.length ? curr : max, this.options[0]);
|
|
167
169
|
}
|
|
168
|
-
async fetchProductComparison(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
this.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
170
|
+
async fetchProductComparison() {
|
|
171
|
+
const productCodes = this.options.map(option => option.productCode).filter(Boolean);
|
|
172
|
+
if (productCodes.length) {
|
|
173
|
+
this.showLoader = true;
|
|
174
|
+
try {
|
|
175
|
+
const response = await productComparison(productCodes.join(','));
|
|
176
|
+
this.allProductData = response['products'] || {};
|
|
177
|
+
}
|
|
178
|
+
catch (e) {
|
|
179
|
+
this.allProductData = {};
|
|
180
|
+
console.error(e);
|
|
181
|
+
}
|
|
177
182
|
this.showLoader = false;
|
|
178
183
|
}
|
|
179
184
|
}
|
|
180
185
|
selectedContractTerm() {
|
|
181
186
|
var _a;
|
|
182
|
-
if (!((_a = this.
|
|
187
|
+
if (!((_a = this.allProductData[this.selectedProductCode]) === null || _a === void 0 ? void 0 : _a.contractTerms)) {
|
|
183
188
|
return;
|
|
184
189
|
}
|
|
185
190
|
if (this.contractTerm !== undefined) {
|
|
186
|
-
const contractTerm = this.
|
|
191
|
+
const contractTerm = this.allProductData[this.selectedProductCode].contractTerms.find(contractTerm => contractTerm.term === this.contractTerm);
|
|
187
192
|
if (contractTerm) {
|
|
188
193
|
return contractTerm;
|
|
189
194
|
}
|
|
@@ -213,31 +218,36 @@ export class TetCompareCardV2 {
|
|
|
213
218
|
* @returns rendered card body.
|
|
214
219
|
*/
|
|
215
220
|
renderCard() {
|
|
216
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
217
|
-
|
|
221
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
222
|
+
const comparisonData = this.allProductData[this.selectedProductCode];
|
|
223
|
+
if (!comparisonData) {
|
|
218
224
|
return this.renderLoader();
|
|
219
225
|
}
|
|
226
|
+
if (!this.cardHasEmitted) {
|
|
227
|
+
this.cardLoaded.emit();
|
|
228
|
+
this.cardHasEmitted = true;
|
|
229
|
+
}
|
|
220
230
|
// Get data for rendering
|
|
221
231
|
const contractTermData = this.selectedContractTerm();
|
|
222
|
-
const overridePoductAttribute =
|
|
232
|
+
const overridePoductAttribute = comparisonData === null || comparisonData === void 0 ? void 0 : comparisonData.attributes.find(attr => attr.key === 'overrideProductName');
|
|
223
233
|
const overridePoductName = overridePoductAttribute === null || overridePoductAttribute === void 0 ? void 0 : overridePoductAttribute.value;
|
|
224
|
-
const mainTitle = overridePoductName !== null && overridePoductName !== void 0 ? overridePoductName : (
|
|
234
|
+
const mainTitle = overridePoductName !== null && overridePoductName !== void 0 ? overridePoductName : (_a = comparisonData === null || comparisonData === void 0 ? void 0 : comparisonData.name) === null || _a === void 0 ? void 0 : _a[this.language];
|
|
225
235
|
const price = contractTermData.amount.toString();
|
|
226
|
-
const promotionCode = (
|
|
227
|
-
const term = (
|
|
228
|
-
const priceDescription = (
|
|
229
|
-
const secondaryLink = (
|
|
230
|
-
const baseUrl = ((
|
|
236
|
+
const promotionCode = (_b = contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.promotionCode) !== null && _b !== void 0 ? _b : '';
|
|
237
|
+
const term = (_c = contractTermData.term) !== null && _c !== void 0 ? _c : '';
|
|
238
|
+
const priceDescription = (contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.priceDescription) !== undefined ? contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.priceDescription : '';
|
|
239
|
+
const secondaryLink = (_d = contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.contract) !== null && _d !== void 0 ? _d : '';
|
|
240
|
+
const baseUrl = ((_e = comparisonData === null || comparisonData === void 0 ? void 0 : comparisonData.formUrl) === null || _e === void 0 ? void 0 : _e[this.language]) || '';
|
|
231
241
|
const params = new URLSearchParams({
|
|
232
|
-
contractTerm: (
|
|
242
|
+
contractTerm: (_f = term === null || term === void 0 ? void 0 : term.toString()) !== null && _f !== void 0 ? _f : '',
|
|
233
243
|
product: this.selectedProductCode,
|
|
234
244
|
promotion: promotionCode !== null && promotionCode !== void 0 ? promotionCode : '',
|
|
235
|
-
lang: (
|
|
245
|
+
lang: (_g = this.language) !== null && _g !== void 0 ? _g : '',
|
|
236
246
|
from: 'tet.lv'
|
|
237
247
|
});
|
|
238
248
|
const link = `${baseUrl}${baseUrl.includes('?') ? '&' : '?'}${params.toString()}`;
|
|
239
249
|
const currentBonuses = this.currentBonuses();
|
|
240
|
-
const isBestChoice = ((
|
|
250
|
+
const isBestChoice = ((_h = this.options.find(options => options.productCode === this.selectedProductCode)) === null || _h === void 0 ? void 0 : _h.bestChoice) || false;
|
|
241
251
|
return (h("div", { onClick: this.clickCallback, onKeyDown: () => { }, class: {
|
|
242
252
|
'card': true,
|
|
243
253
|
[`${this.cardType}`]: true,
|
|
@@ -253,8 +263,8 @@ export class TetCompareCardV2 {
|
|
|
253
263
|
'js-resize-title': true
|
|
254
264
|
}, part: "compare-card-title-wrapper" }, h("h3", { class: "main-title" }, mainTitle))) : (''), h("div", { class: "price js-resize-price" }, price && !isNaN(parseFloat(price)) ? (h("div", { class: {
|
|
255
265
|
'price-wrapper': true
|
|
256
|
-
} }, h("div", { class: "price-container" }, h("div", { class: "new-price translation-none" }, parseFloat(price.replace(',', '.')).toFixed(2).replace('.', ',')), h("div", { class: "currency" }, h("span", null, this.currency))), priceDescription ? (h("span", { class: "price-description" }, priceDescription)) : (''))) : ('')), currentBonuses.length > 0 && (h("div", { class: "bonuses-wrapper" }, currentBonuses.map(bonus => (h("div", { class: "bonuss" }, h("tet-icon", { class: "bonuss__icon icon", name: "add" }), h("span", { class: "bonuss__text" }, bonus.name)))))), h("tet-button", { class: "button", type: "primary", theme: "yellow", url: link, urlTarget: this.linkOpenBlank ? '_blank' : '_self' }, this.buttonTitle))), h("div", { class: "compare-card-half-40" }, h("div", { class: "content bottom" }, this.cardType === 'dropdown' && this.benefits.length > 0 ? (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), (
|
|
257
|
-
|
|
266
|
+
} }, h("div", { class: "price-container" }, h("div", { class: "new-price translation-none" }, parseFloat(price.replace(',', '.')).toFixed(2).replace('.', ',')), h("div", { class: "currency" }, h("span", null, this.currency))), priceDescription ? (h("span", { class: "price-description" }, priceDescription)) : (''))) : ('')), currentBonuses.length > 0 && (h("div", { class: "bonuses-wrapper" }, currentBonuses.map(bonus => (h("div", { class: "bonuss", key: bonus.modalId }, h("tet-icon", { class: "bonuss__icon icon", name: "add" }), bonus.modalId ? (h("a", { "data-modal-screen-key": bonus.modalId, "tab-index": "0", role: "button", class: "bonuss__text bonuss__link" }, bonus.name)) : (h("span", { class: "bonuss__text" }, bonus.name))))))), h("tet-button", { class: "button", type: "primary", theme: "yellow", url: link, urlTarget: this.linkOpenBlank ? '_blank' : '_self' }, this.buttonTitle))), h("div", { class: "compare-card-half-40" }, h("div", { class: "content bottom" }, this.cardType === 'dropdown' && this.benefits.length > 0 ? (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), (_j = this === null || this === void 0 ? void 0 : this.benefits) === null || _j === void 0 ? void 0 :
|
|
267
|
+
_j.map((benefit) => (this.benefitHandler(benefit))), h("tet-dropdown", { id: "dropdown", class: "dropdown", "button-label": "", "close-on-selection": "true", "flex-layout": "true", options: this.dropdownOptions }))) : (''), this.cardType === 'switcher' && this.benefits.length > 0 && (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), this.benefits.map((benefit) => {
|
|
258
268
|
const benefitAsLink = benefit.dataAttributes && Object.keys(benefit.dataAttributes).length > 0;
|
|
259
269
|
const benefitAsImg = !!benefit.img;
|
|
260
270
|
// Is this switch the only active one and preselected?
|
|
@@ -270,8 +280,8 @@ export class TetCompareCardV2 {
|
|
|
270
280
|
const shouldDisableSwitch = isOnlyActivePreselected ||
|
|
271
281
|
(isMultiPreselected && this.selectedSwitchKeys.includes(benefit.toggleKey));
|
|
272
282
|
return (h("div", { class: "benefit", key: benefit.toggleKey }, benefitAsImg ? (h("img", { src: benefit.img, class: "benefit__icon benefit__img" })) : (h("tet-icon", { class: "benefit__icon icon", name: benefit.icon })), benefitAsLink ? (h("a", Object.assign({ class: "benefit__name benefit__link" }, (benefit.dataAttributes || {})), benefit.name)) : (h("span", { class: "benefit__name" }, benefit.name)), h("tet-switch", { name: benefit.toggleKey, checked: this.selectedSwitchKeys.includes(benefit.toggleKey), disabled: shouldDisableSwitch, onCheck: e => this.handleSwitchToggle(benefit.toggleKey, e.detail.checked) })));
|
|
273
|
-
}))), this.cardType === 'static' && this.benefits.length > 0 ? (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), (
|
|
274
|
-
|
|
283
|
+
}))), this.cardType === 'static' && this.benefits.length > 0 ? (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), (_k = this === null || this === void 0 ? void 0 : this.benefits) === null || _k === void 0 ? void 0 :
|
|
284
|
+
_k.map((benefit) => (this.benefitHandler(benefit))))) : (''), h("div", { class: "button-wrapper" }, secondaryLink && this.secondaryLinkText && (h("div", { class: {
|
|
275
285
|
'secondary-link': true
|
|
276
286
|
} }, this.secondaryLinkOpenBlank ? (h("a", { target: "_blank", href: secondaryLink }, this.secondaryLinkText)) : (h("a", { href: secondaryLink }, this.secondaryLinkText))))))), this.cardScript ? h("link", { href: this.cardScript, rel: "stylesheet", type: "text/css" }) : ''));
|
|
277
287
|
}
|
|
@@ -717,12 +727,45 @@ export class TetCompareCardV2 {
|
|
|
717
727
|
return {
|
|
718
728
|
"showLoader": {},
|
|
719
729
|
"selectedProductCode": {},
|
|
720
|
-
"comparisonData": {},
|
|
721
730
|
"selectedSwitchKeys": {},
|
|
722
731
|
"preselectedKeys": {},
|
|
723
|
-
"preselectedProductCode": {}
|
|
732
|
+
"preselectedProductCode": {},
|
|
733
|
+
"allProductData": {}
|
|
724
734
|
};
|
|
725
735
|
}
|
|
736
|
+
static get events() {
|
|
737
|
+
return [{
|
|
738
|
+
"method": "cardLoaded",
|
|
739
|
+
"name": "cardLoaded",
|
|
740
|
+
"bubbles": true,
|
|
741
|
+
"cancelable": true,
|
|
742
|
+
"composed": true,
|
|
743
|
+
"docs": {
|
|
744
|
+
"tags": [],
|
|
745
|
+
"text": "Emitted when the card has loaded."
|
|
746
|
+
},
|
|
747
|
+
"complexType": {
|
|
748
|
+
"original": "void",
|
|
749
|
+
"resolved": "void",
|
|
750
|
+
"references": {}
|
|
751
|
+
}
|
|
752
|
+
}, {
|
|
753
|
+
"method": "productChanged",
|
|
754
|
+
"name": "productChanged",
|
|
755
|
+
"bubbles": true,
|
|
756
|
+
"cancelable": true,
|
|
757
|
+
"composed": true,
|
|
758
|
+
"docs": {
|
|
759
|
+
"tags": [],
|
|
760
|
+
"text": "Emitted when the selected product has changed."
|
|
761
|
+
},
|
|
762
|
+
"complexType": {
|
|
763
|
+
"original": "void",
|
|
764
|
+
"resolved": "void",
|
|
765
|
+
"references": {}
|
|
766
|
+
}
|
|
767
|
+
}];
|
|
768
|
+
}
|
|
726
769
|
static get elementRef() { return "host"; }
|
|
727
770
|
static get listeners() {
|
|
728
771
|
return [{
|
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-37ed3ebb.js';
|
|
96
96
|
|
|
97
97
|
const defineCustomElements = (opts) => {
|
|
98
98
|
if (typeof customElements !== 'undefined') {
|