@tet/tet-components 1.3.68-testing → 1.3.69-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-41ac19c2.js → address-f800d248.js} +1 -1
- package/dist/cjs/{assets-0bdcfba7.js → assets-dbbd6868.js} +1 -1
- package/dist/cjs/{async-request-42567909.js → async-request-651012cd.js} +1 -1
- package/dist/cjs/compare-cards-tab-products-filters-6a634be2.js +96 -0
- package/dist/cjs/{http-codes-bec9330b.js → http-codes-7221e231.js} +2 -2
- package/dist/cjs/{index-84ede372.js → index-cac5ef8f.js} +1 -1
- package/dist/cjs/{index-f559cb2e.js → index-d323e22a.js} +11 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{old-utils-ff6ab3d4.js → old-utils-71d2c672.js} +1 -1
- package/dist/cjs/{phone-96a87ac9.js → phone-b5021632.js} +2 -2
- package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
- package/dist/cjs/{tet-compare-card_4.cjs.entry.js → tet-address-offers-filters-products_4.cjs.entry.js} +234 -554
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +110 -105
- package/dist/cjs/tet-address-search.cjs.entry.js +7 -7
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-lines.cjs.entry.js +5 -5
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-button.cjs.entry.js +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
- package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
- package/dist/cjs/tet-checkbox.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 +5 -5
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +32 -18
- package/dist/cjs/{tet-compare-cards.cjs.entry.js → tet-compare-cards_2.cjs.entry.js} +140 -7
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-contact-form.cjs.entry.js +6 -6
- 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 +4 -4
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +6 -6
- package/dist/cjs/tet-datepicker.cjs.entry.js +5 -5
- package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
- package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
- package/dist/cjs/tet-grid.cjs.entry.js +2 -2
- package/dist/cjs/tet-icon.cjs.entry.js +3 -3
- 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 +5 -5
- package/dist/cjs/tet-layout.cjs.entry.js +2 -2
- package/dist/cjs/tet-link.cjs.entry.js +2 -2
- package/dist/cjs/tet-loader.cjs.entry.js +2 -2
- 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 +4 -4
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +4 -4
- package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-notification.cjs.entry.js +2 -2
- package/dist/cjs/tet-number-input_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- 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_2.cjs.entry.js +8 -8
- package/dist/cjs/tet-referral.cjs.entry.js +7 -7
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +6 -3
- package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-tab-header.cjs.entry.js +434 -0
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag.cjs.entry.js +44 -0
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +2 -2
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +3 -3
- package/dist/cjs/{theme-wrapper-a5bbadf6.js → theme-wrapper-a1abdef5.js} +2 -2
- package/dist/cjs/{translations-9c00ed63.js → translations-819a9427.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/advanced/address/tet-address-offers/address-offers.store.js +4 -1
- package/dist/collection/components/advanced/address/tet-address-offers/address-product-offers.store.js +21 -0
- package/dist/collection/components/advanced/address/tet-address-offers/tet-address-offers.css +58 -0
- package/dist/collection/components/advanced/address/tet-address-offers/tet-address-offers.js +115 -83
- package/dist/collection/components/advanced/address/tet-address-offers-filters/address-offers-filters.js +21 -8
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/address-offers-products-filters.js +95 -0
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/test/tet-address-offers-filters-products.spec.js +23 -0
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/tet-address-offers-filters-products.css +411 -0
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/tet-address-offers-filters-products.js +314 -0
- package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
- package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
- package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
- package/dist/collection/components/advanced/cards/tet-compare-card/test/tet-compare-card.spec.js +6 -0
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +8 -0
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.js +23 -3
- package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.css +0 -1
- package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.js +3 -3
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/compare-cards-tab-products-filters.js +93 -0
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.css +5 -0
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.js +30 -15
- package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js +1 -1
- package/dist/collection/components/advanced/customer/tet-referral/tet-referral.js +2 -2
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-contact-form/tet-contact-form.js +1 -1
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/tet-tv-gift-block.js +1 -1
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tag/tet-tag.css +19 -3
- package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +21 -2
- package/dist/collection/components/basic/buttons/tet-tag-group/tet-tag-group.js +2 -2
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +2 -2
- package/dist/collection/components/basic/icon/tet-icon.js +1 -1
- package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
- package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
- package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
- package/dist/collection/components/basic/misc/tet-label/tet-label.js +2 -2
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.css +34 -7
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.js +4 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
- package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.css +2 -4
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +3 -3
- package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +1 -1
- package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +1 -1
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.css +12 -4
- package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
- package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
- package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
- package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
- package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
- package/dist/collection/docs/styling/link/tet-link.js +1 -1
- package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
- package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
- package/dist/components/index.js +3 -1
- package/dist/components/{p-2e1448b5.js → p-0ace097e.js} +3 -3
- package/dist/components/{p-8c37c237.js → p-0b9566f2.js} +1 -1
- package/dist/components/{p-1f8c84e9.js → p-0cc9e0f1.js} +2 -2
- package/dist/components/{p-ae1f41ee.js → p-0da9bb5e.js} +1 -1
- package/dist/components/{p-a6d99476.js → p-1762703b.js} +3 -3
- package/dist/components/{p-cd8f3a84.js → p-23e32ea7.js} +3 -3
- package/dist/components/{p-5cba049c.js → p-26984913.js} +11 -11
- package/dist/components/{p-d0c96e9c.js → p-27a29032.js} +3 -3
- package/dist/components/{p-c44c8848.js → p-291d5dde.js} +2 -2
- package/dist/components/{p-ceb45b17.js → p-29703a26.js} +4 -4
- package/dist/components/{p-72b8586b.js → p-2c88aea8.js} +1 -1
- package/dist/components/{p-3b3af880.js → p-341f3c9a.js} +4 -4
- package/dist/components/{p-8caa2e3e.js → p-36f67f39.js} +2 -2
- package/dist/components/{p-93e9c848.js → p-385ea6b0.js} +13 -13
- package/dist/components/{p-e51cbb09.js → p-4f771d6b.js} +2 -2
- package/dist/components/{p-c3552274.js → p-54410ecb.js} +2 -2
- package/dist/components/{p-37ed3ebb.js → p-5749376d.js} +1 -1
- package/dist/components/{p-ed7db4de.js → p-6f90075f.js} +2 -2
- package/dist/components/{p-b5c85303.js → p-73292c31.js} +2 -2
- package/dist/components/{p-8bf4c1bc.js → p-7653ea82.js} +2 -2
- package/dist/components/{p-a63d3582.js → p-813a10ca.js} +3 -3
- package/dist/components/{p-9361fcb4.js → p-8500c268.js} +7 -4
- package/dist/components/{p-f7de89c3.js → p-8e7bc626.js} +3 -3
- package/dist/components/{p-a0d406ca.js → p-8f91eb96.js} +1 -1
- package/dist/components/{p-815407aa.js → p-99a2a429.js} +2 -2
- package/dist/components/{p-447e727f.js → p-99d33191.js} +26 -10
- package/dist/components/{p-aea191fd.js → p-9ac5dd39.js} +2 -2
- package/dist/components/{p-39e60f54.js → p-a1be49b6.js} +2 -2
- package/dist/components/{p-6f457b76.js → p-a2450ff0.js} +1 -1
- package/dist/components/{p-f854817f.js → p-a498ab93.js} +1 -1
- package/dist/components/{p-80cbecdd.js → p-a5e654eb.js} +13 -13
- package/dist/components/{p-139b55b9.js → p-aa9aea53.js} +3 -3
- package/dist/components/{p-4f1c7348.js → p-ac1afe93.js} +8 -6
- package/dist/components/{p-aca37faa.js → p-b0da6906.js} +7 -7
- package/dist/components/p-b671e7bb.js +360 -0
- package/dist/components/{p-74ff4f72.js → p-b6a1eba5.js} +1 -1
- package/dist/components/{p-9cb78c6f.js → p-bc27ded0.js} +103 -105
- package/dist/components/{p-fe0cc309.js → p-c18ff9a2.js} +10 -10
- package/dist/components/{p-4c25d5fb.js → p-d16c2bc9.js} +3 -3
- package/dist/components/{p-72dc8bb7.js → p-d8530fbb.js} +1 -1
- package/dist/components/{p-b215fe36.js → p-da3c8252.js} +1 -1
- package/dist/components/{p-13051901.js → p-df2a1f51.js} +3 -3
- package/dist/components/{p-a16b2429.js → p-df384052.js} +7 -7
- package/dist/components/{p-470276e6.js → p-ed9d4ac5.js} +1 -1
- package/dist/components/{p-8b7e53db.js → p-edbe64bb.js} +12 -9
- package/dist/components/{p-1c3075c7.js → p-edddcf7e.js} +2 -2
- package/dist/components/{p-ffeb7385.js → p-ee0470da.js} +3 -3
- package/dist/components/{p-fde9ecef.js → p-f1bee5fa.js} +5 -5
- package/dist/components/{p-22444d39.js → p-fa979f41.js} +7 -7
- package/dist/components/{p-50f47d0c.js → p-fc6d81e4.js} +5 -5
- package/dist/components/tet-accordion.js +8 -8
- package/dist/components/tet-address-offers-filters-products.d.ts +11 -0
- package/dist/components/tet-address-offers-filters-products.js +6 -0
- package/dist/components/tet-address-offers-filters.js +1 -1
- package/dist/components/tet-address-offers-view.js +48 -54
- 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 +6 -6
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-service-calculator.js +9 -9
- 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 +2 -2
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +5 -5
- package/dist/components/tet-business-lines.js +6 -6
- package/dist/components/tet-business-round-stepper.js +2 -2
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +5 -5
- 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 +5 -5
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +69 -37
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +10 -10
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-customer-assets.js +9 -9
- 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 +10 -10
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-expandable-input.js +3 -3
- package/dist/components/tet-expansion-panel.js +2 -2
- package/dist/components/tet-font-weight.js +2 -2
- package/dist/components/tet-fonts.js +2 -2
- package/dist/components/tet-grid.js +2 -2
- 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 +5 -5
- package/dist/components/tet-layout.js +2 -2
- package/dist/components/tet-link.js +2 -2
- 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 +6 -6
- package/dist/components/tet-navigation-mobile.js +5 -5
- package/dist/components/tet-news-card-list.js +5 -5
- 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 +9 -9
- package/dist/components/tet-round-stepper.js +2 -2
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-spacing.js +2 -2
- 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 +3 -3
- package/dist/components/tet-thank-you-view-v2.js +5 -5
- package/dist/components/tet-thank-you-view-v3.js +6 -6
- 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 +2 -2
- package/dist/components/tet-tv-gift-list.js +4 -4
- package/dist/esm/{address-9dfd3c9e.js → address-831d7f2b.js} +1 -1
- package/dist/esm/{assets-c074d2b9.js → assets-f127b411.js} +1 -1
- package/dist/esm/{async-request-754d6810.js → async-request-c6a64673.js} +1 -1
- package/dist/esm/compare-cards-tab-products-filters-094fdd08.js +94 -0
- package/dist/esm/{http-codes-42779195.js → http-codes-dfcbf3f3.js} +2 -2
- package/dist/esm/{index-7f1e2a22.js → index-8ac89426.js} +11 -7
- package/dist/esm/{index-1bf36cb9.js → index-a7cd7688.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{old-utils-e93e9607.js → old-utils-65209321.js} +1 -1
- package/dist/esm/{phone-66ff151d.js → phone-8bb9a3bb.js} +2 -2
- package/dist/esm/tet-accordion.entry.js +7 -7
- package/dist/esm/{tet-compare-card_4.entry.js → tet-address-offers-filters-products_4.entry.js} +233 -553
- package/dist/esm/tet-address-offers-view.entry.js +7 -7
- package/dist/esm/tet-address-offers_4.entry.js +110 -105
- package/dist/esm/tet-address-search.entry.js +7 -7
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
- package/dist/esm/tet-autocomplete_2.entry.js +4 -4
- package/dist/esm/tet-b2b-service-calculator.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +3 -3
- package/dist/esm/tet-business-lines.entry.js +5 -5
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-button.entry.js +1 -1
- package/dist/esm/tet-card-list.entry.js +5 -5
- package/dist/esm/tet-carousel.entry.js +3 -3
- package/dist/esm/tet-checkbox.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 +5 -5
- package/dist/esm/tet-compare-cards-tab.entry.js +32 -18
- package/dist/esm/{tet-compare-cards.entry.js → tet-compare-cards_2.entry.js} +140 -8
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-contact-form.entry.js +6 -6
- 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 +4 -4
- package/dist/esm/tet-datepicker-header_4.entry.js +6 -6
- package/dist/esm/tet-datepicker.entry.js +5 -5
- package/dist/esm/tet-dialog.entry.js +3 -3
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +2 -2
- package/dist/esm/tet-font-weight.entry.js +2 -2
- package/dist/esm/tet-fonts.entry.js +2 -2
- package/dist/esm/tet-grid.entry.js +2 -2
- package/dist/esm/tet-icon.entry.js +3 -3
- 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 +5 -5
- package/dist/esm/tet-layout.entry.js +2 -2
- package/dist/esm/tet-link.entry.js +2 -2
- package/dist/esm/tet-loader.entry.js +2 -2
- 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 +4 -4
- package/dist/esm/tet-navigation-mobile.entry.js +4 -4
- package/dist/esm/tet-news-card-list.entry.js +2 -2
- package/dist/esm/tet-notification.entry.js +2 -2
- package/dist/esm/tet-number-input_2.entry.js +4 -4
- package/dist/esm/tet-placeholder.entry.js +2 -2
- 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_2.entry.js +8 -8
- package/dist/esm/tet-referral.entry.js +7 -7
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-spacing.entry.js +2 -2
- package/dist/esm/tet-stepper-v2.entry.js +1 -1
- package/dist/esm/tet-stepper-v3.entry.js +6 -3
- package/dist/esm/tet-stepper.entry.js +1 -1
- package/dist/esm/tet-tab-header.entry.js +430 -0
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag.entry.js +40 -0
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
- package/dist/esm/tet-thank-you-view.entry.js +1 -1
- package/dist/esm/tet-tooltip.entry.js +2 -2
- package/dist/esm/tet-tv-gift-block.entry.js +2 -2
- package/dist/esm/tet-tv-gift-list.entry.js +3 -3
- package/dist/esm/{theme-wrapper-6e6b2089.js → theme-wrapper-de71af98.js} +2 -2
- package/dist/esm/{translations-5c723a5f.js → translations-194468ec.js} +1 -1
- package/dist/tet-components/{p-747fa00c.entry.js → p-04c7ae63.entry.js} +1 -1
- package/dist/tet-components/{p-f4786b25.entry.js → p-05ee0690.entry.js} +1 -1
- package/dist/tet-components/{p-1f61bc97.entry.js → p-0a4612b0.entry.js} +1 -1
- package/dist/tet-components/p-0e59aa9d.entry.js +1 -0
- package/dist/tet-components/{p-2024adb8.entry.js → p-0ec481a9.entry.js} +1 -1
- package/dist/tet-components/{p-121d2baf.entry.js → p-150a4ad2.entry.js} +1 -1
- package/dist/tet-components/{p-17219f8f.js → p-18c16e72.js} +1 -1
- package/dist/tet-components/{p-4b9d2f1e.js → p-1d59aac8.js} +1 -1
- package/dist/tet-components/{p-d6c31a48.entry.js → p-1ec8b9bb.entry.js} +1 -1
- package/dist/tet-components/{p-1338b2c9.entry.js → p-2b627d27.entry.js} +1 -1
- package/dist/tet-components/{p-433fa62c.entry.js → p-2deabaf1.entry.js} +1 -1
- package/dist/tet-components/{p-25498380.entry.js → p-31f2895c.entry.js} +1 -1
- package/dist/tet-components/{p-010608e8.js → p-320cdec7.js} +1 -1
- package/dist/tet-components/{p-95877586.entry.js → p-337d5237.entry.js} +1 -1
- package/dist/tet-components/{p-dacff13f.entry.js → p-3d39266c.entry.js} +1 -1
- package/dist/tet-components/{p-138065a5.entry.js → p-48c6946a.entry.js} +1 -1
- package/dist/tet-components/{p-39de75af.js → p-4c7683cf.js} +1 -1
- package/dist/tet-components/{p-f52944ee.entry.js → p-4e1c591f.entry.js} +1 -1
- package/dist/tet-components/{p-0e44600c.entry.js → p-4e66c73a.entry.js} +1 -1
- package/dist/tet-components/{p-8b174961.entry.js → p-53a61b29.entry.js} +1 -1
- package/dist/tet-components/{p-3d20ced4.entry.js → p-5509506e.entry.js} +1 -1
- package/dist/tet-components/p-56730659.entry.js +1 -0
- package/dist/tet-components/{p-7123c8cb.js → p-5a05fdcc.js} +1 -1
- package/dist/tet-components/p-5aa7f845.entry.js +1 -0
- package/dist/tet-components/{p-d635d4b3.entry.js → p-5cefa668.entry.js} +1 -1
- package/dist/tet-components/{p-bc1748c1.entry.js → p-63ed5114.entry.js} +1 -1
- package/dist/tet-components/p-642a03f8.js +1 -0
- package/dist/tet-components/{p-6a703ebb.entry.js → p-65ea9d50.entry.js} +1 -1
- package/dist/tet-components/{p-76fc9aa4.entry.js → p-661407d7.entry.js} +1 -1
- package/dist/tet-components/{p-1ec7f341.js → p-67c5dc0a.js} +1 -1
- package/dist/tet-components/{p-87b47774.js → p-6b127571.js} +1 -1
- package/dist/tet-components/{p-8d198756.entry.js → p-6bdc135c.entry.js} +1 -1
- package/dist/tet-components/{p-ca27b8cd.entry.js → p-6cd51067.entry.js} +1 -1
- package/dist/tet-components/{p-428dff99.entry.js → p-6d2fe5e9.entry.js} +1 -1
- package/dist/tet-components/{p-13834305.entry.js → p-6d44c42d.entry.js} +1 -1
- package/dist/tet-components/{p-ff769397.entry.js → p-755593a1.entry.js} +1 -1
- package/dist/tet-components/{p-dce3f9e4.entry.js → p-797ff4fb.entry.js} +1 -1
- package/dist/tet-components/{p-5786fab1.entry.js → p-7be53858.entry.js} +1 -1
- package/dist/tet-components/p-7ed128d4.entry.js +1 -0
- package/dist/tet-components/{p-82f39730.entry.js → p-821e669e.entry.js} +1 -1
- package/dist/tet-components/{p-e5a15112.entry.js → p-84d19b3d.entry.js} +1 -1
- package/dist/tet-components/{p-c47d5e36.entry.js → p-86a879b6.entry.js} +1 -1
- package/dist/tet-components/{p-6b022547.entry.js → p-88b841ad.entry.js} +1 -1
- package/dist/tet-components/{p-3287547c.entry.js → p-8ab866ce.entry.js} +1 -1
- package/dist/tet-components/p-8b7eec6b.entry.js +1 -0
- package/dist/tet-components/{p-99dfcd9d.entry.js → p-90d9c0b8.entry.js} +1 -1
- package/dist/tet-components/{p-1f33c4d8.entry.js → p-93aa60af.entry.js} +1 -1
- package/dist/tet-components/{p-ac290b65.entry.js → p-943dca7c.entry.js} +1 -1
- package/dist/tet-components/{p-b6fc2059.entry.js → p-972d308c.entry.js} +1 -1
- package/dist/tet-components/{p-9c0ed718.entry.js → p-97c67ad1.entry.js} +1 -1
- package/dist/tet-components/p-98a083d9.entry.js +1 -0
- package/dist/tet-components/{p-3dd44730.entry.js → p-a520e18f.entry.js} +1 -1
- package/dist/tet-components/{p-d51fb8f0.entry.js → p-a6b4abf5.entry.js} +1 -1
- package/dist/tet-components/{p-07081ea1.entry.js → p-ac619118.entry.js} +1 -1
- package/dist/tet-components/{p-3b5a822d.entry.js → p-ad7523a1.entry.js} +1 -1
- package/dist/tet-components/{p-f55a4508.entry.js → p-b4167e31.entry.js} +1 -1
- package/dist/tet-components/p-b604ca3e.js +1 -0
- package/dist/tet-components/{p-e0bb4410.entry.js → p-b61e0098.entry.js} +1 -1
- package/dist/tet-components/p-b95d33a4.entry.js +1 -0
- package/dist/tet-components/{p-8e64a695.entry.js → p-b991e026.entry.js} +1 -1
- package/dist/tet-components/{p-77372984.js → p-baa9231f.js} +1 -1
- package/dist/tet-components/{p-91aebae3.entry.js → p-bcdc4370.entry.js} +1 -1
- package/dist/tet-components/{p-d7b12aa8.entry.js → p-bf43050f.entry.js} +1 -1
- package/dist/tet-components/{p-a89b07db.entry.js → p-c02805e3.entry.js} +1 -1
- package/dist/tet-components/p-c0be9da7.js +1 -0
- package/dist/tet-components/{p-257ee876.entry.js → p-c5628ad2.entry.js} +1 -1
- package/dist/tet-components/{p-771146d4.entry.js → p-c64fa550.entry.js} +1 -1
- package/dist/tet-components/{p-4026fd82.entry.js → p-c90156c1.entry.js} +1 -1
- package/dist/tet-components/{p-46a33f5c.entry.js → p-cec4c81b.entry.js} +1 -1
- package/dist/tet-components/{p-4b3fc9e2.entry.js → p-d47318ab.entry.js} +1 -1
- package/dist/tet-components/{p-2de3f58f.entry.js → p-d88b9b9e.entry.js} +1 -1
- package/dist/tet-components/{p-8cadf068.entry.js → p-d960b0fd.entry.js} +1 -1
- package/dist/tet-components/{p-9174fad4.entry.js → p-da49a9b7.entry.js} +1 -1
- package/dist/tet-components/{p-a96ad9aa.entry.js → p-dff937d1.entry.js} +1 -1
- package/dist/tet-components/{p-6821b8e3.entry.js → p-e2d00f79.entry.js} +1 -1
- package/dist/tet-components/{p-11d5cdb7.entry.js → p-e34c8142.entry.js} +1 -1
- package/dist/tet-components/{p-10271e23.entry.js → p-e73357e6.entry.js} +1 -1
- package/dist/tet-components/{p-520c7411.entry.js → p-eb8ac45d.entry.js} +1 -1
- package/dist/tet-components/{p-8a211672.entry.js → p-eb93db1e.entry.js} +1 -1
- package/dist/tet-components/{p-faaf4f9e.entry.js → p-ebeb69d1.entry.js} +1 -1
- package/dist/tet-components/{p-325515ed.entry.js → p-f2579da7.entry.js} +1 -1
- package/dist/tet-components/{p-c4ba2330.entry.js → p-f7b11c9a.entry.js} +1 -1
- package/dist/tet-components/{p-9eafff73.entry.js → p-f9a87252.entry.js} +1 -1
- package/dist/tet-components/{p-01d2c9b2.entry.js → p-fb33771b.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/address/tet-address-offers/address-product-offers.store.d.ts +14 -0
- package/dist/types/components/advanced/address/tet-address-offers/tet-address-offers.d.ts +16 -12
- package/dist/types/components/advanced/address/tet-address-offers-filters/address-offers-filters.d.ts +2 -0
- package/dist/types/components/advanced/address/tet-address-offers-filters-products/address-offers-products-filters.d.ts +25 -0
- package/dist/types/components/advanced/address/tet-address-offers-filters-products/tet-address-offers-filters-products.d.ts +70 -0
- package/dist/types/components/advanced/cards/old-utils.d.ts +2 -2
- package/dist/types/components/advanced/cards/tet-compare-card/tet-compare-card.d.ts +5 -1
- package/dist/types/components/advanced/cards/tet-compare-cards/tet-compare-cards.d.ts +1 -0
- package/dist/types/components/advanced/cards/tet-compare-cards-tab/compare-cards-tab-products-filters.d.ts +36 -0
- package/dist/types/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.d.ts +13 -5
- package/dist/types/components/advanced/cards/utils.d.ts +2 -2
- package/dist/types/components/basic/buttons/tet-tag/tet-tag.d.ts +2 -0
- package/dist/types/components/basic/buttons/tet-tag-group/tet-tag-group.d.ts +2 -0
- package/dist/types/components.d.ts +133 -2
- package/dist/types/services/api/index.d.ts +2 -2
- package/dist/types/services/api/services/catalog/product-comparison.d.ts +21 -14
- package/dist/types/services/api/services/catalog/service-availability-services.d.ts +19 -1
- package/package.json +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +0 -68
- package/dist/esm/tet-tag_2.entry.js +0 -63
- package/dist/tet-components/p-1ae8df7d.js +0 -1
- package/dist/tet-components/p-3053f5a3.entry.js +0 -1
- package/dist/tet-components/p-49e636bb.entry.js +0 -1
- package/dist/tet-components/p-5d02dddb.entry.js +0 -1
- package/dist/tet-components/p-80a612b2.entry.js +0 -1
- package/dist/tet-components/p-ad9e7b19.entry.js +0 -1
- package/dist/tet-components/p-b2b384d2.js +0 -1
- package/dist/tet-components/p-fe5d035f.entry.js +0 -1
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { forceUpdate, h, Host } from "@stencil/core";
|
|
2
|
+
import { processTranslations, t } from "../../../../services/translations/index";
|
|
3
|
+
import { AddressOffersProductsFilters } from "./address-offers-products-filters";
|
|
4
|
+
import { CompareCardsTabProductsFilters } from "../../cards/tet-compare-cards-tab/compare-cards-tab-products-filters";
|
|
5
|
+
export class TetAddressOffersFiltersProducts {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.clearAllFilters = () => {
|
|
8
|
+
if (this.filtersHelper) {
|
|
9
|
+
this.filtersHelper.clearFilters(this.category);
|
|
10
|
+
}
|
|
11
|
+
if (this.compareCardsFiltersHelper) {
|
|
12
|
+
this.compareCardsFiltersHelper.clearFilters();
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
this.renderClearFilterBtn = () => {
|
|
16
|
+
if (!this.clearFilterButton || this.availableTvProducts.length === 0) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
return (h("button", { class: { 'clear-button': true, [`theme-${this.theme}`]: true }, onClick: () => this.clearAllFilters() }, h("tet-icon", { name: "tc-reload", part: "icon-selected" }), t('components-address-offers-filters-clear-btn')));
|
|
20
|
+
};
|
|
21
|
+
this.renderLoader = () => {
|
|
22
|
+
return (h("div", { class: "loader" }, Array.from({ length: 4 }).map(() => (h("tet-placeholder", { height: "2rem", width: "8rem", class: "tag-placeholder" })))));
|
|
23
|
+
};
|
|
24
|
+
this.language = 'lv';
|
|
25
|
+
this.clearFilterButton = false;
|
|
26
|
+
this.theme = 'light';
|
|
27
|
+
this.catalog = undefined;
|
|
28
|
+
this.productCodes = undefined;
|
|
29
|
+
this.category = undefined;
|
|
30
|
+
this.subcategoryId = undefined;
|
|
31
|
+
this.availableTvProducts = [];
|
|
32
|
+
this.activeTvFilters = [];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Change translations on language change
|
|
36
|
+
* @param {Language} language
|
|
37
|
+
*/
|
|
38
|
+
async onLanguageChange(language) {
|
|
39
|
+
processTranslations('tet-components', language).then(() => forceUpdate(this));
|
|
40
|
+
}
|
|
41
|
+
onDataChange() {
|
|
42
|
+
this.initFilters();
|
|
43
|
+
}
|
|
44
|
+
onProductCodesChanged() {
|
|
45
|
+
this.initFilters();
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Lifecycle method
|
|
49
|
+
*/
|
|
50
|
+
componentWillLoad() {
|
|
51
|
+
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
52
|
+
this.initFilters();
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Determines which helper to use and initializes filters.
|
|
56
|
+
*/
|
|
57
|
+
initFilters() {
|
|
58
|
+
if (this.catalog && this.category) {
|
|
59
|
+
this.initAdrressOffersFilters();
|
|
60
|
+
}
|
|
61
|
+
else if (this.productCodes) {
|
|
62
|
+
this.initCompareCardFilters();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
initAdrressOffersFilters() {
|
|
66
|
+
this.filtersHelper = new AddressOffersProductsFilters((filters, activeFilterIds, filteredProductIds) => {
|
|
67
|
+
this.availableTvProducts = filters.map(tag => (Object.assign(Object.assign({}, tag), { clickAction: () => this.toggleFilter(tag.id) })));
|
|
68
|
+
this.activeTvFilters = activeFilterIds;
|
|
69
|
+
this.activeFiltersChanged.emit(activeFilterIds);
|
|
70
|
+
this.filteredProductsChanged.emit({
|
|
71
|
+
subcategoryId: this.subcategoryId,
|
|
72
|
+
filteredProductIds,
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
this.filtersHelper.initialize(this.catalog, this.category);
|
|
76
|
+
}
|
|
77
|
+
initCompareCardFilters() {
|
|
78
|
+
this.compareCardsFiltersHelper = new CompareCardsTabProductsFilters((filters, activeFilterIds, filteredProductIds) => {
|
|
79
|
+
this.availableTvProducts = filters.map(tag => (Object.assign(Object.assign({}, tag), { clickAction: () => this.toggleCompareCardsFilter(tag.id) })));
|
|
80
|
+
this.activeTvFilters = activeFilterIds;
|
|
81
|
+
this.activeFiltersChanged.emit(activeFilterIds);
|
|
82
|
+
this.filteredProductsChanged.emit({
|
|
83
|
+
subcategoryId: this.subcategoryId,
|
|
84
|
+
filteredProductIds,
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
this.compareCardsFiltersHelper.initialize(this.productCodes);
|
|
88
|
+
}
|
|
89
|
+
toggleFilter(filterId) {
|
|
90
|
+
const filter = this.filtersHelper.getAvailableFilters().find(tag => tag.id === filterId);
|
|
91
|
+
if (filter && !filter.disabled) {
|
|
92
|
+
this.filtersHelper.filterClickAction(filter, this.category);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
toggleCompareCardsFilter(filterId) {
|
|
96
|
+
const filter = this.compareCardsFiltersHelper.getAvailableFilters().find(tag => tag.id === filterId);
|
|
97
|
+
if (filter && !filter.disabled) {
|
|
98
|
+
this.compareCardsFiltersHelper.filterClickAction(filter);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
render() {
|
|
102
|
+
return (h(Host, { key: '1572f9f51a53dedd278603fcd3fc9c824d089ef5' }, this.availableTvProducts.length === 0 && this.renderLoader(), h("tet-tag-group", { key: 'c2cab43e37381789d36cb1926b4aa586d9e38c2d', tags: this.availableTvProducts, language: this.language, theme: this.theme }), this.renderClearFilterBtn()));
|
|
103
|
+
}
|
|
104
|
+
static get is() { return "tet-address-offers-filters-products"; }
|
|
105
|
+
static get encapsulation() { return "shadow"; }
|
|
106
|
+
static get originalStyleUrls() {
|
|
107
|
+
return {
|
|
108
|
+
"$": ["tet-address-offers-filters-products.scss"]
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static get styleUrls() {
|
|
112
|
+
return {
|
|
113
|
+
"$": ["tet-address-offers-filters-products.css"]
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static get properties() {
|
|
117
|
+
return {
|
|
118
|
+
"language": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "Language",
|
|
123
|
+
"resolved": "\"en\" | \"lv\" | \"ru\"",
|
|
124
|
+
"references": {
|
|
125
|
+
"Language": {
|
|
126
|
+
"location": "import",
|
|
127
|
+
"path": "@services/translations",
|
|
128
|
+
"id": "src/services/translations/index.ts::Language"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": false,
|
|
133
|
+
"optional": false,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": "The translation language."
|
|
137
|
+
},
|
|
138
|
+
"attribute": "language",
|
|
139
|
+
"reflect": false,
|
|
140
|
+
"defaultValue": "'lv'"
|
|
141
|
+
},
|
|
142
|
+
"clearFilterButton": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "boolean",
|
|
147
|
+
"resolved": "boolean",
|
|
148
|
+
"references": {}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Define if clear filter button should appear"
|
|
155
|
+
},
|
|
156
|
+
"attribute": "clear-filter-button",
|
|
157
|
+
"reflect": false,
|
|
158
|
+
"defaultValue": "false"
|
|
159
|
+
},
|
|
160
|
+
"theme": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"mutable": false,
|
|
163
|
+
"complexType": {
|
|
164
|
+
"original": "'light' | 'dark'",
|
|
165
|
+
"resolved": "\"dark\" | \"light\"",
|
|
166
|
+
"references": {}
|
|
167
|
+
},
|
|
168
|
+
"required": false,
|
|
169
|
+
"optional": false,
|
|
170
|
+
"docs": {
|
|
171
|
+
"tags": [],
|
|
172
|
+
"text": "The theme of the clear Filters button and tags."
|
|
173
|
+
},
|
|
174
|
+
"attribute": "theme",
|
|
175
|
+
"reflect": false,
|
|
176
|
+
"defaultValue": "'light'"
|
|
177
|
+
},
|
|
178
|
+
"catalog": {
|
|
179
|
+
"type": "unknown",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "AvailableServicesModel",
|
|
183
|
+
"resolved": "AvailableServicesModel",
|
|
184
|
+
"references": {
|
|
185
|
+
"AvailableServicesModel": {
|
|
186
|
+
"location": "import",
|
|
187
|
+
"path": "../../../../services/api/services/catalog/service-availability-services",
|
|
188
|
+
"id": "src/services/api/services/catalog/service-availability-services.ts::AvailableServicesModel"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": false,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": "The catalog data from the API."
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"productCodes": {
|
|
200
|
+
"type": "unknown",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "CompareCardProductCodesProp",
|
|
204
|
+
"resolved": "ProductComparisonInterface[] | { products: { [key: string]: { productCode: string; }; }; productTags: any[]; }",
|
|
205
|
+
"references": {
|
|
206
|
+
"CompareCardProductCodesProp": {
|
|
207
|
+
"location": "local",
|
|
208
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/address/tet-address-offers-filters-products/tet-address-offers-filters-products.tsx",
|
|
209
|
+
"id": "src/components/advanced/address/tet-address-offers-filters-products/tet-address-offers-filters-products.tsx::CompareCardProductCodesProp"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": false,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": "The prop that contains products."
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"category": {
|
|
221
|
+
"type": "unknown",
|
|
222
|
+
"mutable": false,
|
|
223
|
+
"complexType": {
|
|
224
|
+
"original": "StructureModel",
|
|
225
|
+
"resolved": "StructureModel",
|
|
226
|
+
"references": {
|
|
227
|
+
"StructureModel": {
|
|
228
|
+
"location": "import",
|
|
229
|
+
"path": "../../../../services/api/services/catalog/service-availability-services",
|
|
230
|
+
"id": "src/services/api/services/catalog/service-availability-services.ts::StructureModel"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": false,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": "The category to show filters for."
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"subcategoryId": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"mutable": false,
|
|
244
|
+
"complexType": {
|
|
245
|
+
"original": "string",
|
|
246
|
+
"resolved": "string",
|
|
247
|
+
"references": {}
|
|
248
|
+
},
|
|
249
|
+
"required": false,
|
|
250
|
+
"optional": false,
|
|
251
|
+
"docs": {
|
|
252
|
+
"tags": [],
|
|
253
|
+
"text": "The subcategory ID to identify the filtered products."
|
|
254
|
+
},
|
|
255
|
+
"attribute": "subcategory-id",
|
|
256
|
+
"reflect": false
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
static get states() {
|
|
261
|
+
return {
|
|
262
|
+
"availableTvProducts": {},
|
|
263
|
+
"activeTvFilters": {}
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
static get events() {
|
|
267
|
+
return [{
|
|
268
|
+
"method": "activeFiltersChanged",
|
|
269
|
+
"name": "activeFiltersChanged",
|
|
270
|
+
"bubbles": true,
|
|
271
|
+
"cancelable": true,
|
|
272
|
+
"composed": true,
|
|
273
|
+
"docs": {
|
|
274
|
+
"tags": [],
|
|
275
|
+
"text": "Event emitted when active filters change, sending array of active filter IDs."
|
|
276
|
+
},
|
|
277
|
+
"complexType": {
|
|
278
|
+
"original": "string[]",
|
|
279
|
+
"resolved": "string[]",
|
|
280
|
+
"references": {}
|
|
281
|
+
}
|
|
282
|
+
}, {
|
|
283
|
+
"method": "filteredProductsChanged",
|
|
284
|
+
"name": "filteredProductsChanged",
|
|
285
|
+
"bubbles": true,
|
|
286
|
+
"cancelable": true,
|
|
287
|
+
"composed": true,
|
|
288
|
+
"docs": {
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": "Event emitted when filtered products change, sending subcategory ID and array of filtered product IDs."
|
|
291
|
+
},
|
|
292
|
+
"complexType": {
|
|
293
|
+
"original": "{ subcategoryId: string; filteredProductIds: string[] }",
|
|
294
|
+
"resolved": "{ subcategoryId: string; filteredProductIds: string[]; }",
|
|
295
|
+
"references": {}
|
|
296
|
+
}
|
|
297
|
+
}];
|
|
298
|
+
}
|
|
299
|
+
static get watchers() {
|
|
300
|
+
return [{
|
|
301
|
+
"propName": "language",
|
|
302
|
+
"methodName": "onLanguageChange"
|
|
303
|
+
}, {
|
|
304
|
+
"propName": "catalog",
|
|
305
|
+
"methodName": "onDataChange"
|
|
306
|
+
}, {
|
|
307
|
+
"propName": "category",
|
|
308
|
+
"methodName": "onDataChange"
|
|
309
|
+
}, {
|
|
310
|
+
"propName": "productCodes",
|
|
311
|
+
"methodName": "onProductCodesChanged"
|
|
312
|
+
}];
|
|
313
|
+
}
|
|
314
|
+
}
|
package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js
CHANGED
|
@@ -281,20 +281,20 @@ export class TetAddressSearch {
|
|
|
281
281
|
if (this.newFormsStyle) {
|
|
282
282
|
inputClasses.push('address-search__input--forms');
|
|
283
283
|
}
|
|
284
|
-
return (h(Host, { key: '
|
|
284
|
+
return (h(Host, { key: '291ffa21c3727c7fbb628ee5b7d5b8afc1fc152a', class: {
|
|
285
285
|
"address-search": true,
|
|
286
286
|
"address-search--redesigned": this.redesignedStyle,
|
|
287
287
|
"keyboard-focus": this.focusVisible,
|
|
288
288
|
"active": this.elementActive,
|
|
289
289
|
[this.theme]: true,
|
|
290
|
-
} }, h("tet-autocomplete", { key: '
|
|
290
|
+
} }, h("tet-autocomplete", { key: 'be4a6bb92174c4e57b3f6a6d0b882fef3f44a244', class: `address-search--redesigned__autocomplete
|
|
291
291
|
${this.theme === 'dark' || this.theme === 'mint-original' ? 'dark' : ''}
|
|
292
292
|
`, part: "autocomplete", optionsFilterAction: this.debounceAddressFilter, onOptionSelected: this.handleAutocompleteOptionSelection, noOptionsMessage: t('components-address-search-not-found-message'), noOptionsRenderFunction: this.manualAddressTriggers ? this.renderManualAddressInputNoOptionsMessage : undefined, clearCallback: this.autocompleteClearInputCallback, finishedLoading: this.finishedLoading, darkTheme: this.theme === 'dark' || this.theme === 'mint-original', newStyle: this.newStyle, ref: (el) => (this.autocomplete = el), optionsIcon: "location", redesignedStyle: this.redesignedStyle }, this.redesignedStyle ? (h("div", { class: "address-search--redesigned__autocomplete-content" }, h("div", { class: `address-search--redesigned__input-wrapper
|
|
293
293
|
${this.theme === 'dark' || this.theme === 'mint-original' ? 'dark' : ''}` }, h("tet-input", { class: `address-search__input address-search--redesigned__input
|
|
294
294
|
${this.theme === 'dark' || this.theme === 'mint-original' ? 'dark' : ''}`, part: "input", "input-class": inputClasses.join(' '), "input-placeholder": this.placeholder, "input-disabled": this.inputDisabled, label: this.label, accessibilityLabel: this.accessibilityLabel, iconLeft: this.newFormsStyle ? '' : 'tc-search-short', iconRight: this.inputIconRight, iconRightClickCallback: this.clearInputAction, ref: (el) => (this.inputComponent = el), error: this.isInputInvalid, autocomplete: "off" }, this.isLoading &&
|
|
295
295
|
h("tet-spinner", { theme: this.theme === 'dark' || this.theme === 'mint-original' ? 'dark' : 'light', class: "address-search__spinner", size: "small" }))), h("div", { class: `address-search--redesigned__button-wrapper
|
|
296
296
|
${this.theme === 'dark' || this.theme === 'mint-original' ? 'dark' : ''}` }, h("tet-button", { class: "submit-address js-button-mobile button-icon", type: "primary", "accessibility-label": t('components-address-search-search'), iconName: "arrow-right", iconMode: true, onClick: this.handleSearchSubmit }), h("tet-button", { class: "submit-address button js-button", type: "primary", size: "medium", onClick: this.handleSearchSubmit }, this.searchButtonText)))) : (h("tet-input", { class: "address-search__input", part: "input", "input-class": inputClasses.join(' '), "input-placeholder": this.placeholder, "input-disabled": this.inputDisabled, label: this.label, accessibilityLabel: this.accessibilityLabel, iconLeft: this.newFormsStyle ? '' : 'search', iconRight: this.inputIconRight, iconRightClickCallback: this.clearInputAction, theme: this.theme, ref: (el) => (this.inputComponent = el), error: this.isInputInvalid, autocomplete: "off" }, this.isLoading &&
|
|
297
|
-
h("tet-spinner", { theme: this.theme === 'dark' ? 'dark' : 'light', class: "address-search__spinner", size: "small" })))), this.redesignedStyle && (h("div", { key: '
|
|
297
|
+
h("tet-spinner", { theme: this.theme === 'dark' ? 'dark' : 'light', class: "address-search__spinner", size: "small" })))), this.redesignedStyle && (h("div", { key: '6b356fc067dc1a94f8863ecc3c0fadc004263e51', class: "address-search--redesigned__close-button" }, h("tet-button", { key: '1eee81b47c0282fddf32a7deddd8ce1da9baf8b5', type: "link", iconName: "close", theme: "dark" }, this.closeButtonText)))));
|
|
298
298
|
}
|
|
299
299
|
static get is() { return "tet-address-search"; }
|
|
300
300
|
static get encapsulation() { return "shadow"; }
|
|
@@ -69,7 +69,7 @@ export class TetAutocompleteDropdown {
|
|
|
69
69
|
return this.inputValue.length ? IconName.Close : IconName.ChevronDown;
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '61d6b74c7e0ed7a3c5d822a63ef37e93e3a30143' }, h("tet-autocomplete", { key: '3fa526eb25d2c1e41cdd50a31d6f0f0586e501c5', newStyle: true, defaultOptions: this.options, showOptionsOnEscapeClear: true, noOptionsMessage: this.noOptionsMessage, optionsFilterAction: this.optionsFilterAction, clearCallback: this.autocompleteClearInputCallback, onOptionSelected: this.handleAutocompleteOptionSelection, ref: (element) => (this.autocomplete = element), darkTheme: this.theme === 'dark' }, h("tet-input", { key: '33804b7e9df8f031c4229869c78beaee69e31bd2', class: "input", label: this.label, error: this.hasError, "icon-right": this.rightIconName, "input-class": "autocomplete-input", "input-placeholder": this.placeholder, ref: (element) => (this.inputComponent = element), iconRightClickCallback: this.iconRightClickCallback, theme: this.theme })), this.hasError && this.errorMessage && h("p", { key: 'c24518ff6efc594fb75f5a1064ea0f64d9784a3c', class: "error-message" }, this.errorMessage)));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "tet-autocomplete-dropdown"; }
|
|
75
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,10 +28,10 @@ export class TetBusinessCompareCard {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const { mainTitle, bulletPoints, theme, pricePrefix, price, currency } = this;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'd8d3a6c52faed1547807ced6a914a4ee504e4daa', class: { 'tet-business-compare-card': true, [`theme-${theme}`]: true } }, h("div", { key: '9cc6bb6dbf7a03d255e52907354b1fd623d3f645', class: "tet-business-compare-card__body" }, h("div", { key: '440ba081486bf6a95e0252497dffd0a38bb46087', class: "tet-business-compare-card__title" }, h("slot", { key: 'ff9fbaee45b2d3523bf7e16c93ca6f57aefe2f65', name: "title" }, h("h3", { key: '9c836f70c1e5736baad15116afba7d6629597ebe' }, mainTitle))), h("div", { key: 'e88610818f9db7f701b7772b1f61e889eff3d88b', class: "tet-business-compare-card__content" }, h("slot", { key: 'd1cd16a6c66c133bc2147f1891fffadb36992402', name: "content" }, !!(bulletPoints === null || bulletPoints === void 0 ? void 0 : bulletPoints.length) && (h("tet-text-list", { key: '84cb34e3fc046a7a65c9c22934653284e61f1d76', class: "bullet-points", theme: this.theme === 'dark' ? 'dark' : 'light' }, bulletPoints.map(bulletPoint => (h("p", null, bulletPoint)))))))), price && currency && (h("div", { key: 'd83a165cf13fdafb97145dd482345218577cfc7f', class: "tet-business-compare-card__price-wrapper" }, pricePrefix && (h("div", { key: 'eace12a700f51515dea2775a4b9b6a6665735cd6', class: "tet-business-compare-card__price" }, h("span", { key: '4dcbb8c8c2bba27688721afa94a8f0b21229facc', class: "tet-business-compare-card__price-prefix" }, pricePrefix, "\u00A0"), price)), !pricePrefix && h("div", { key: '0f7c0cf8c5445f70cedd41d6751b539aed451c77', class: "tet-business-compare-card__price" }, price), h("div", { key: '794e9a62dc5f5a97ff56aa117332d72e606df69d', class: "tet-business-compare-card__price-currency" }, currency))), h("div", { key: '95eb30bd8a5b915e6560617f1afd1e5fc5e2fd5f', class: {
|
|
32
32
|
'tet-business-compare-card__footer': true,
|
|
33
33
|
'tet-business-compare-card__footer--show': this.hasContentInFooter,
|
|
34
|
-
} }, h("slot", { key: '
|
|
34
|
+
} }, h("slot", { key: '4fa7c8453bb73f5aa7a927e2791b13f6090fe7ad', ref: (slot) => (this.buttonSlotRef = slot), onSlotchange: this.checkFooterSlotContent, name: "button" }), h("slot", { key: 'f8d13e30560a2c53cedf2890c8aa9326bdd16c8a', ref: (slot) => (this.linkSlotRef = slot), onSlotchange: this.checkFooterSlotContent, name: "link" }))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "tet-business-compare-card"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -646,19 +646,19 @@ export class TetCardList {
|
|
|
646
646
|
this.dimensions.element.width = elementRect.width;
|
|
647
647
|
}
|
|
648
648
|
render() {
|
|
649
|
-
return (h(Host, { key: '
|
|
649
|
+
return (h(Host, { key: 'a37659927c73cbed1a822f4820f93264f7418c0c' }, h("div", { key: '18a78c6bea76843bbb3205d780088dcdfedc3d65', class: {
|
|
650
650
|
'tet-card-list__container': true,
|
|
651
651
|
'tet-card-list--no-scroll': this.disableScroll,
|
|
652
652
|
[this.theme]: true,
|
|
653
|
-
}, part: "card-list-container" }, h("div", { key: '
|
|
653
|
+
}, part: "card-list-container" }, h("div", { key: '41d9611df428e1acf887e18d18bb0e74c266d27d', class: "tet-card-list__scroll-container" }, h("div", { key: 'f7118998798402c40df4d75e0fd907bec12b66c4', part: "card-list", ref: el => (this.scrollContainerRef = el) }, h("slot", { key: '5a022794ed879bf94157e77985fedf24fdbc70a0' }))), h("tet-button", { key: '5ea21737f2c05511bca92be2a5e4c3839c60b28c', theme: this.theme, iconMode: true, class: {
|
|
654
654
|
'tet-card-list__control': true,
|
|
655
655
|
'tet-card-list__control--left': true,
|
|
656
656
|
'tet-card-list__control--hidden': !this.controlVisibility.left,
|
|
657
|
-
}, onPointerDown: this.handleControlPointerDown, onPointerUp: this.handleLeftControl, onKeyUp: this.handleLeftControlKeyUp }, h("tet-icon", { key: '
|
|
657
|
+
}, onPointerDown: this.handleControlPointerDown, onPointerUp: this.handleLeftControl, onKeyUp: this.handleLeftControlKeyUp }, h("tet-icon", { key: 'df14f0040d1924e9c003ec3e7e2a75ad087a83ca', name: this.iconPrev && this.iconPrev !== '' ? this.iconPrev : 'chevron-left', class: "tet-card-list__control__icon" })), h("tet-button", { key: '6967a738582c95efa21a6f2bd35b66fea9b70f2a', theme: this.theme, iconMode: true, class: {
|
|
658
658
|
'tet-card-list__control': true,
|
|
659
659
|
'tet-card-list__control--right': true,
|
|
660
660
|
'tet-card-list__control--hidden': !this.controlVisibility.right,
|
|
661
|
-
}, onPointerDown: this.handleControlPointerDown, onPointerUp: this.handleRightControl, onKeyUp: this.handleRightControlKeyUp }, h("tet-icon", { key: '
|
|
661
|
+
}, onPointerDown: this.handleControlPointerDown, onPointerUp: this.handleRightControl, onKeyUp: this.handleRightControlKeyUp }, h("tet-icon", { key: 'cf1009c29f76c9a70719656b40de39b205236b55', name: this.iconNext && this.iconNext !== '' ? this.iconNext : 'chevron-right', class: "tet-card-list__control__icon" })), h("div", { key: 'bd348b095be531deec965fb621269fe90cebfd8e', class: { 'tet-card-list__scroll': true, 'tet-card-list--hidden': !this.withScrollbar } }, h("div", { key: 'd5361269a2d18273d6aefd3a8f1ecb75f79e617f', class: "tet-card-list__scroll--thumb", ref: el => (this.scrollbarRef = el) })))));
|
|
662
662
|
}
|
|
663
663
|
static get is() { return "tet-card-list"; }
|
|
664
664
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/advanced/cards/tet-compare-card/test/tet-compare-card.spec.js
CHANGED
|
@@ -71,6 +71,9 @@ describe('tet-compare-card', () => {
|
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|
|
74
|
+
<div class="upsell-block">
|
|
75
|
+
<slot name="upsell-block-slot" />
|
|
76
|
+
</div>
|
|
74
77
|
</div>
|
|
75
78
|
<div class="divided-information-wrapper js-resize-divide-slot">
|
|
76
79
|
<slot name="divided-information-slot"></slot>
|
|
@@ -199,6 +202,9 @@ describe('tet-compare-card', () => {
|
|
|
199
202
|
</div>
|
|
200
203
|
</div>
|
|
201
204
|
</div>
|
|
205
|
+
<div class="upsell-block">
|
|
206
|
+
<slot name="upsell-block-slot" />
|
|
207
|
+
</div>
|
|
202
208
|
</div>
|
|
203
209
|
<div class="divided-information-wrapper js-resize-divide-slot">
|
|
204
210
|
<slot name="divided-information-slot"></slot>
|
|
@@ -7626,6 +7626,9 @@
|
|
|
7626
7626
|
.grey.dark {
|
|
7627
7627
|
background: radial-gradient(110.2% 141.42% at 0% 0%, var(--tc-grey-20-dark, #26292C) 0%, var(--tc-grey-10-dark, #18191B) 100%);
|
|
7628
7628
|
}
|
|
7629
|
+
.grey.dark .best-choice-title {
|
|
7630
|
+
color: var(--tc-grey-minus-10-dark);
|
|
7631
|
+
}
|
|
7629
7632
|
.grey.card.best-choice {
|
|
7630
7633
|
--compare-card-border-color: var(--tet-compare-card-best-choice-border);
|
|
7631
7634
|
}
|
|
@@ -8031,6 +8034,11 @@
|
|
|
8031
8034
|
.best-choice-title.active {
|
|
8032
8035
|
visibility: visible;
|
|
8033
8036
|
}
|
|
8037
|
+
.best-choice-title.floating {
|
|
8038
|
+
top: -1.125rem;
|
|
8039
|
+
border-radius: 1rem;
|
|
8040
|
+
padding: 0.375rem 1.25rem;
|
|
8041
|
+
}
|
|
8034
8042
|
|
|
8035
8043
|
.image-wrapper {
|
|
8036
8044
|
display: flex;
|
|
@@ -145,6 +145,7 @@ export class TetCompareCard {
|
|
|
145
145
|
this.withBorder = false;
|
|
146
146
|
this.priceShownVertically = false;
|
|
147
147
|
this.bestChoiceTextPosition = 'center';
|
|
148
|
+
this.bestChoiceTextFloating = false;
|
|
148
149
|
this.secondaryLinkPosition = 'center';
|
|
149
150
|
this.showBulletPoints = true;
|
|
150
151
|
this.showSubTitle = true;
|
|
@@ -250,14 +251,15 @@ export class TetCompareCard {
|
|
|
250
251
|
}, style: !this.darkMode ? { backgroundColor: this.cardBackgroundColor } : {} }, h("div", { class: {
|
|
251
252
|
'best-choice-title': true,
|
|
252
253
|
'active': this.bestChoice,
|
|
253
|
-
[`${this.bestChoiceTextPosition}`]: true
|
|
254
|
+
[`${this.bestChoiceTextPosition}`]: true,
|
|
255
|
+
'floating': this.bestChoiceTextFloating
|
|
254
256
|
} }, this.options.bestChoiceText), h("div", { class: { 'image-wrapper': true, [`${this.cardHeader}`]: true } }, this.cardHeader === 'image' ? h("slot", { name: "image-slot" }) : '', this.cardHeader === 'logo' ? h("slot", { name: "logo-slot" }) : ''), h("div", { class: "compare-card-half-60" }, this.options.heroTitle || this.options.mainTitle ? (h("div", { class: {
|
|
255
257
|
'title-wrapper': true,
|
|
256
258
|
'js-resize-title': true,
|
|
257
259
|
'no-divider': this.priceShownVertically
|
|
258
260
|
}, part: "compare-card-title-wrapper" }, h("div", { class: {
|
|
259
261
|
'title-wrapper-inner': true
|
|
260
|
-
} }, this.options.heroTitle ? h("h3", { class: "hero-title" }, this.options.heroTitle) : '', this.options.mainTitle ? h("h3", { class: "main-title" }, this.options.mainTitle) : '', this.showSubTitle && this.options.subTitle ? (h("div", { class: "sub-title" }, this.options.subTitle, this.renderTooltip('infoItem'))) : ('')))) : (''), h("div", { class: "content-wrapper js-resize-content" }, h("div", { class: "custom-content-wrapper" }, h("slot", { name: "custom-slot" })), this.showBulletPoints ? (h("div", { class: "bullet-points-wrapper" }, (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.bulletPoints) === null || _b === void 0 ? void 0 : _b.map((bulletpoint) => (h("div", { class: "bullet-point" }, h("tet-icon", { class: "icon", name: "check-circle" }), h("div", { innerHTML: bulletpoint })))))) : ('')), this.options.netflixProductDescription ? (h("div", { class: "netflix-product-description" }, this.options.netflixProductDescription)) : (''), h("div", { class: "divided-information-wrapper js-resize-divide-slot" }, h("slot", { name: "divided-information-slot" }))), h("div", { class: "compare-card-half-40" }, h("div", { class: "price js-resize-price" }, this.options.price && !isNaN(parseFloat(this.options.price)) ? (h("div", { class: {
|
|
262
|
+
} }, this.options.heroTitle ? h("h3", { class: "hero-title" }, this.options.heroTitle) : '', this.options.mainTitle ? h("h3", { class: "main-title" }, this.options.mainTitle) : '', this.showSubTitle && this.options.subTitle ? (h("div", { class: "sub-title" }, this.options.subTitle, this.renderTooltip('infoItem'))) : ('')))) : (''), h("div", { class: "content-wrapper js-resize-content" }, h("div", { class: "custom-content-wrapper" }, h("slot", { name: "custom-slot" })), this.showBulletPoints ? (h("div", { class: "bullet-points-wrapper" }, (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.bulletPoints) === null || _b === void 0 ? void 0 : _b.map((bulletpoint) => (h("div", { class: "bullet-point" }, h("tet-icon", { class: "icon", name: "check-circle" }), h("div", { innerHTML: bulletpoint })))))) : (''), h("div", { class: "upsell-block" }, h("slot", { name: "upsell-block-slot" }))), this.options.netflixProductDescription ? (h("div", { class: "netflix-product-description" }, this.options.netflixProductDescription)) : (''), h("div", { class: "divided-information-wrapper js-resize-divide-slot" }, h("slot", { name: "divided-information-slot" }))), h("div", { class: "compare-card-half-40" }, h("div", { class: "price js-resize-price" }, this.options.price && !isNaN(parseFloat(this.options.price)) ? (h("div", { class: {
|
|
261
263
|
'price-wrapper': true,
|
|
262
264
|
'price-wrap': this.options.priceWrap,
|
|
263
265
|
'price-flex-column': this.priceShownVertically
|
|
@@ -347,7 +349,7 @@ export class TetCompareCard {
|
|
|
347
349
|
"type": "string",
|
|
348
350
|
"mutable": false,
|
|
349
351
|
"complexType": {
|
|
350
|
-
"original": "ServiceAvailabilityServicesCategoryTheme",
|
|
352
|
+
"original": "'light' | 'dark' | ServiceAvailabilityServicesCategoryTheme",
|
|
351
353
|
"resolved": "\"classic\" | \"dark\" | \"grey\" | \"light\" | \"netflix\" | \"non-netflix\" | \"tet-bundles\" | \"tet-business-blue\" | \"tet-business-default\" | \"tet-business-green\" | \"tet-business-mint\" | \"tet-business-purple\" | \"tet-business-red\" | \"tet-business-yellow\" | \"tet-electricity\" | \"tet-internet\" | \"tet-tv\" | \"tet-tv-plus\" | \"tet-vtv\"",
|
|
352
354
|
"references": {
|
|
353
355
|
"ServiceAvailabilityServicesCategoryTheme": {
|
|
@@ -711,6 +713,24 @@ export class TetCompareCard {
|
|
|
711
713
|
"reflect": false,
|
|
712
714
|
"defaultValue": "'center'"
|
|
713
715
|
},
|
|
716
|
+
"bestChoiceTextFloating": {
|
|
717
|
+
"type": "boolean",
|
|
718
|
+
"mutable": false,
|
|
719
|
+
"complexType": {
|
|
720
|
+
"original": "boolean",
|
|
721
|
+
"resolved": "boolean",
|
|
722
|
+
"references": {}
|
|
723
|
+
},
|
|
724
|
+
"required": false,
|
|
725
|
+
"optional": false,
|
|
726
|
+
"docs": {
|
|
727
|
+
"tags": [],
|
|
728
|
+
"text": "This prop defines if the best choice text should be floating over the card."
|
|
729
|
+
},
|
|
730
|
+
"attribute": "best-choice-text-floating",
|
|
731
|
+
"reflect": false,
|
|
732
|
+
"defaultValue": "false"
|
|
733
|
+
},
|
|
714
734
|
"secondaryLinkPosition": {
|
|
715
735
|
"type": "string",
|
|
716
736
|
"mutable": false,
|
|
@@ -89,7 +89,7 @@ export class TetCompareCards {
|
|
|
89
89
|
requestedProduct = element.productCode;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
const requestedProductData = response[requestedProduct];
|
|
92
|
+
const requestedProductData = response['products'][requestedProduct];
|
|
93
93
|
if (requestedProductData) {
|
|
94
94
|
if (this.newUrlGeneratorStructure) {
|
|
95
95
|
element = fillProductData(element, requestedProduct, requestedProductData, this.theme);
|
|
@@ -105,7 +105,7 @@ export class TetCompareCards {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: 'd585201b1bfb8a7334ed8737a1e3018d1f93d0f1', class: {
|
|
109
109
|
'must-initialize': true,
|
|
110
110
|
'initialized': this.initializedState
|
|
111
111
|
} }, this.showLoader ? (this.renderLoader()) : (h("div", { class: {
|
|
@@ -116,7 +116,7 @@ export class TetCompareCards {
|
|
|
116
116
|
return (h("tet-compare-card", { class: {
|
|
117
117
|
'tet-compare-card': true,
|
|
118
118
|
'tet-compare-card--thumbnail': !!el.thumbnail
|
|
119
|
-
}, index: index, language: el.language, options: el.options, "card-type": el.cardType, theme: el.theme, "best-choice": el.bestChoice, "color-icons": el.colorIcons, "full-height": el.fullHeight, "card-header": el.cardHeader, logo: el.logo, image: el.image, "card-background-color": el.cardBackgroundColor, "card-script": el.cardScript, hideBestChoiceBorder: el.hideBestChoiceBorder, withBorder: el.withBorder, "best-choice-text-position": el.bestChoiceTextPosition, priceShownVertically: el.priceShownVertically, "secondary-link-position": el.secondaryLinkPosition, thumbnail: el.thumbnail, thumbnailAlt: el.thumbnailAlt, showBulletPoints: el.showBulletPoints, showSubTitle: el.showSubTitle, showHelper: el.showHelper, isNetflixCard: el.isNetflixCard, darkMode: this.darkMode }, h("div", { slot: "image-slot" }, h("img", { style: { width: '100%' }, src: el.image, alt: (_d = (_c = (_b = ((_a = el.image) !== null && _a !== void 0 ? _a : '').split('/')) === null || _b === void 0 ? void 0 : _b.pop()) === null || _c === void 0 ? void 0 : _c.split('.')[0]) !== null && _d !== void 0 ? _d : el.image })), h("div", { slot: "logo-slot" }, h("img", { style: { width: '100%' }, src: el.logo, alt: (_h = (_g = (_f = ((_e = el.logo) !== null && _e !== void 0 ? _e : '').split('/')) === null || _f === void 0 ? void 0 : _f.pop()) === null || _g === void 0 ? void 0 : _g.split('.')[0]) !== null && _h !== void 0 ? _h : el.logo })), h("div", { slot: "description-slot", innerHTML: el.cardDescription, class: this.darkMode ? 'dark' : '' })));
|
|
119
|
+
}, index: index, language: el.language, options: el.options, "card-type": el.cardType, theme: el.theme, "best-choice": el.bestChoice, "color-icons": el.colorIcons, "full-height": el.fullHeight, "card-header": el.cardHeader, logo: el.logo, image: el.image, "card-background-color": el.cardBackgroundColor, "card-script": el.cardScript, hideBestChoiceBorder: el.hideBestChoiceBorder, withBorder: el.withBorder, "best-choice-text-position": el.bestChoiceTextPosition, bestChoiceTextFloating: el.bestChoiceTextFloating, priceShownVertically: el.priceShownVertically, "secondary-link-position": el.secondaryLinkPosition, thumbnail: el.thumbnail, thumbnailAlt: el.thumbnailAlt, showBulletPoints: el.showBulletPoints, showSubTitle: el.showSubTitle, showHelper: el.showHelper, isNetflixCard: el.isNetflixCard, darkMode: this.darkMode }, h("div", { slot: "image-slot" }, h("img", { style: { width: '100%' }, src: el.image, alt: (_d = (_c = (_b = ((_a = el.image) !== null && _a !== void 0 ? _a : '').split('/')) === null || _b === void 0 ? void 0 : _b.pop()) === null || _c === void 0 ? void 0 : _c.split('.')[0]) !== null && _d !== void 0 ? _d : el.image })), h("div", { slot: "logo-slot" }, h("img", { style: { width: '100%' }, src: el.logo, alt: (_h = (_g = (_f = ((_e = el.logo) !== null && _e !== void 0 ? _e : '').split('/')) === null || _f === void 0 ? void 0 : _f.pop()) === null || _g === void 0 ? void 0 : _g.split('.')[0]) !== null && _h !== void 0 ? _h : el.logo })), h("div", { slot: "description-slot", innerHTML: el.cardDescription, class: this.darkMode ? 'dark' : '' })));
|
|
120
120
|
})), this.vatText ? (h("div", { class: "vat" }, h("div", { class: "vat__text", innerHTML: this.vatText }))) : (''))), this.cardScript ? h("link", { href: this.cardScript, rel: "stylesheet", type: "text/css" }) : ''));
|
|
121
121
|
}
|
|
122
122
|
static get is() { return "tet-compare-cards"; }
|