@tet/tet-components 1.3.68-testing → 1.3.69-production
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-7fde1462.js} +1 -1
- package/dist/cjs/{assets-0bdcfba7.js → assets-81eb2ab8.js} +1 -1
- package/dist/cjs/{async-request-42567909.js → async-request-f7162bb5.js} +1 -1
- package/dist/cjs/compare-cards-tab-products-filters-6a634be2.js +96 -0
- package/dist/cjs/{http-codes-bec9330b.js → http-codes-5b982e01.js} +2 -2
- package/dist/cjs/{index-84ede372.js → index-457201e1.js} +1 -1
- package/dist/cjs/{index-f559cb2e.js → index-66913c99.js} +11 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{old-utils-ff6ab3d4.js → old-utils-4ba8b736.js} +1 -1
- package/dist/cjs/{phone-96a87ac9.js → phone-54eba6d6.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-d753e207.js} +2 -2
- package/dist/cjs/{translations-9c00ed63.js → translations-bb8512bf.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-1c3075c7.js → p-004a1783.js} +2 -2
- package/dist/components/{p-1f8c84e9.js → p-03e69bb8.js} +2 -2
- package/dist/components/{p-13051901.js → p-06f249ce.js} +3 -3
- package/dist/components/{p-72dc8bb7.js → p-084b6798.js} +1 -1
- package/dist/components/{p-8bf4c1bc.js → p-15c94fd5.js} +2 -2
- package/dist/components/{p-4c25d5fb.js → p-1d44a94e.js} +3 -3
- package/dist/components/{p-cd8f3a84.js → p-1e39449b.js} +3 -3
- package/dist/components/{p-fde9ecef.js → p-3032ed77.js} +5 -5
- package/dist/components/{p-93e9c848.js → p-36109fb0.js} +13 -13
- package/dist/components/{p-aea191fd.js → p-38ad9047.js} +2 -2
- package/dist/components/{p-ceb45b17.js → p-3919b539.js} +4 -4
- package/dist/components/{p-74ff4f72.js → p-3e987c51.js} +1 -1
- package/dist/components/{p-8caa2e3e.js → p-430ff09c.js} +2 -2
- package/dist/components/{p-c44c8848.js → p-480ccc8d.js} +2 -2
- package/dist/components/{p-a0d406ca.js → p-4d00761a.js} +1 -1
- package/dist/components/{p-4f1c7348.js → p-505aaed1.js} +8 -6
- package/dist/components/{p-470276e6.js → p-5841617c.js} +1 -1
- package/dist/components/{p-37ed3ebb.js → p-599035b8.js} +1 -1
- package/dist/components/{p-50f47d0c.js → p-5d62e662.js} +5 -5
- package/dist/components/{p-fe0cc309.js → p-5e6c2118.js} +10 -10
- package/dist/components/{p-d0c96e9c.js → p-5e9de7d5.js} +3 -3
- package/dist/components/{p-ed7db4de.js → p-618e07b7.js} +2 -2
- package/dist/components/{p-b215fe36.js → p-680ce735.js} +1 -1
- package/dist/components/{p-39e60f54.js → p-6e0f6f88.js} +2 -2
- package/dist/components/{p-5cba049c.js → p-77f8b5db.js} +11 -11
- package/dist/components/{p-a63d3582.js → p-798cf5b6.js} +3 -3
- package/dist/components/{p-22444d39.js → p-7ef501a2.js} +7 -7
- package/dist/components/{p-ae1f41ee.js → p-84b6941e.js} +1 -1
- package/dist/components/p-8a25fdd3.js +360 -0
- package/dist/components/{p-9361fcb4.js → p-94622def.js} +7 -4
- package/dist/components/{p-a16b2429.js → p-95d6c397.js} +7 -7
- package/dist/components/{p-e51cbb09.js → p-97c791b8.js} +2 -2
- package/dist/components/{p-b5c85303.js → p-9a3121bc.js} +2 -2
- package/dist/components/{p-8c37c237.js → p-9bc13031.js} +1 -1
- package/dist/components/{p-f854817f.js → p-a22521b3.js} +1 -1
- package/dist/components/{p-3b3af880.js → p-a2f0236d.js} +4 -4
- package/dist/components/{p-aca37faa.js → p-a7cf4a7a.js} +7 -7
- package/dist/components/{p-9cb78c6f.js → p-ab1270fa.js} +103 -105
- package/dist/components/{p-f7de89c3.js → p-b38f9875.js} +3 -3
- package/dist/components/{p-447e727f.js → p-b9bc2f1a.js} +26 -10
- package/dist/components/{p-6f457b76.js → p-c753ab82.js} +1 -1
- package/dist/components/{p-139b55b9.js → p-ca44877c.js} +3 -3
- package/dist/components/{p-2e1448b5.js → p-cd90d45c.js} +3 -3
- package/dist/components/{p-80cbecdd.js → p-e165a4cc.js} +13 -13
- package/dist/components/{p-72b8586b.js → p-e2f0e8da.js} +1 -1
- package/dist/components/{p-8b7e53db.js → p-e5451722.js} +12 -9
- package/dist/components/{p-815407aa.js → p-ec157aef.js} +2 -2
- package/dist/components/{p-a6d99476.js → p-f60762e2.js} +3 -3
- package/dist/components/{p-c3552274.js → p-fbea31dc.js} +2 -2
- package/dist/components/{p-ffeb7385.js → p-ff2a5e22.js} +3 -3
- 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-446e44d1.js} +1 -1
- package/dist/esm/{assets-c074d2b9.js → assets-fba60496.js} +1 -1
- package/dist/esm/{async-request-754d6810.js → async-request-3be8369e.js} +1 -1
- package/dist/esm/compare-cards-tab-products-filters-094fdd08.js +94 -0
- package/dist/esm/{http-codes-42779195.js → http-codes-94d247ea.js} +2 -2
- package/dist/esm/{index-7f1e2a22.js → index-ce62f11b.js} +11 -7
- package/dist/esm/{index-1bf36cb9.js → index-d502e34e.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{old-utils-e93e9607.js → old-utils-bb8e99c5.js} +1 -1
- package/dist/esm/{phone-66ff151d.js → phone-3dfebff1.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-bf063190.js} +2 -2
- package/dist/esm/{translations-5c723a5f.js → translations-7cd34c7f.js} +1 -1
- package/dist/tet-components/{p-5786fab1.entry.js → p-06f46328.entry.js} +1 -1
- package/dist/tet-components/{p-325515ed.entry.js → p-070a8a51.entry.js} +1 -1
- package/dist/tet-components/{p-2de3f58f.entry.js → p-08a4652a.entry.js} +1 -1
- package/dist/tet-components/{p-d6c31a48.entry.js → p-0ae0c699.entry.js} +1 -1
- package/dist/tet-components/{p-f55a4508.entry.js → p-0bc0b0a2.entry.js} +1 -1
- package/dist/tet-components/p-0bec7586.entry.js +1 -0
- package/dist/tet-components/{p-87b47774.js → p-0d1e7cd6.js} +1 -1
- package/dist/tet-components/{p-faaf4f9e.entry.js → p-0e9714d1.entry.js} +1 -1
- package/dist/tet-components/{p-e0bb4410.entry.js → p-0f364200.entry.js} +1 -1
- package/dist/tet-components/{p-6a703ebb.entry.js → p-1097442d.entry.js} +1 -1
- package/dist/tet-components/{p-433fa62c.entry.js → p-11437185.entry.js} +1 -1
- package/dist/tet-components/{p-ca27b8cd.entry.js → p-14a302cb.entry.js} +1 -1
- package/dist/tet-components/{p-95877586.entry.js → p-14ea4439.entry.js} +1 -1
- package/dist/tet-components/{p-c4ba2330.entry.js → p-18e44b52.entry.js} +1 -1
- package/dist/tet-components/{p-8d198756.entry.js → p-1976e991.entry.js} +1 -1
- package/dist/tet-components/{p-bc1748c1.entry.js → p-1a5ed4b2.entry.js} +1 -1
- package/dist/tet-components/p-1d14c865.js +2 -0
- package/dist/tet-components/{p-3287547c.entry.js → p-20d5a05d.entry.js} +1 -1
- package/dist/tet-components/{p-6821b8e3.entry.js → p-239c5d3c.entry.js} +1 -1
- package/dist/tet-components/{p-82f39730.entry.js → p-251db7ef.entry.js} +1 -1
- package/dist/tet-components/{p-3dd44730.entry.js → p-2566226a.entry.js} +1 -1
- package/dist/tet-components/{p-4026fd82.entry.js → p-296f1706.entry.js} +1 -1
- package/dist/tet-components/{p-a96ad9aa.entry.js → p-30c078c5.entry.js} +1 -1
- package/dist/tet-components/{p-428dff99.entry.js → p-337cac3f.entry.js} +1 -1
- package/dist/tet-components/{p-520c7411.entry.js → p-34c9374c.entry.js} +1 -1
- package/dist/tet-components/{p-c47d5e36.entry.js → p-3659fe95.entry.js} +1 -1
- package/dist/tet-components/{p-257ee876.entry.js → p-3723442c.entry.js} +1 -1
- package/dist/tet-components/{p-dacff13f.entry.js → p-3819d28c.entry.js} +1 -1
- package/dist/tet-components/{p-11d5cdb7.entry.js → p-43d1a3f3.entry.js} +1 -1
- package/dist/tet-components/{p-1f33c4d8.entry.js → p-4d26aaca.entry.js} +1 -1
- package/dist/tet-components/{p-17219f8f.js → p-513c1986.js} +1 -1
- package/dist/tet-components/{p-9174fad4.entry.js → p-530d8ebd.entry.js} +1 -1
- package/dist/tet-components/{p-ac290b65.entry.js → p-53dfd0d1.entry.js} +1 -1
- package/dist/tet-components/{p-d51fb8f0.entry.js → p-5478765f.entry.js} +1 -1
- package/dist/tet-components/{p-6b022547.entry.js → p-564b1597.entry.js} +1 -1
- package/dist/tet-components/{p-13834305.entry.js → p-565aa846.entry.js} +1 -1
- package/dist/tet-components/{p-f52944ee.entry.js → p-571028b6.entry.js} +1 -1
- package/dist/tet-components/{p-7123c8cb.js → p-5f102998.js} +1 -1
- package/dist/tet-components/p-611377f2.entry.js +1 -0
- package/dist/tet-components/{p-138065a5.entry.js → p-616daa7e.entry.js} +1 -1
- package/dist/tet-components/p-63b7e0d0.entry.js +1 -0
- package/dist/tet-components/{p-b6fc2059.entry.js → p-6439c804.entry.js} +1 -1
- package/dist/tet-components/{p-1338b2c9.entry.js → p-652e2b67.entry.js} +1 -1
- package/dist/tet-components/{p-99dfcd9d.entry.js → p-683df0c1.entry.js} +1 -1
- package/dist/tet-components/{p-9c0ed718.entry.js → p-684d453b.entry.js} +1 -1
- package/dist/tet-components/{p-25498380.entry.js → p-6a8ebb69.entry.js} +1 -1
- package/dist/tet-components/{p-4b9d2f1e.js → p-6e6dafb1.js} +1 -1
- package/dist/tet-components/{p-91aebae3.entry.js → p-74940338.entry.js} +1 -1
- package/dist/tet-components/{p-1ae8df7d.js → p-766fd113.js} +1 -1
- package/dist/tet-components/p-7b21d33f.entry.js +1 -0
- package/dist/tet-components/p-7c136b44.entry.js +1 -0
- package/dist/tet-components/{p-8cadf068.entry.js → p-7eecadbc.entry.js} +1 -1
- package/dist/tet-components/{p-46a33f5c.entry.js → p-80c10282.entry.js} +1 -1
- package/dist/tet-components/{p-07081ea1.entry.js → p-88ff4729.entry.js} +1 -1
- package/dist/tet-components/p-8b9f2ed6.js +1 -0
- package/dist/tet-components/{p-01d2c9b2.entry.js → p-8e19e1de.entry.js} +1 -1
- package/dist/tet-components/{p-0e44600c.entry.js → p-8e59bc6e.entry.js} +1 -1
- package/dist/tet-components/{p-10271e23.entry.js → p-8fd66a80.entry.js} +1 -1
- package/dist/tet-components/p-a2e7d95d.entry.js +1 -0
- package/dist/tet-components/{p-8a211672.entry.js → p-a77d95aa.entry.js} +1 -1
- package/dist/tet-components/{p-010608e8.js → p-a9820b87.js} +1 -1
- package/dist/tet-components/{p-77372984.js → p-aba811f3.js} +1 -1
- package/dist/tet-components/{p-a89b07db.entry.js → p-ae6af193.entry.js} +1 -1
- package/dist/tet-components/{p-747fa00c.entry.js → p-b20f2137.entry.js} +1 -1
- package/dist/tet-components/{p-8e64a695.entry.js → p-b245b2cf.entry.js} +1 -1
- package/dist/tet-components/{p-2024adb8.entry.js → p-b324cfd1.entry.js} +1 -1
- package/dist/tet-components/{p-39de75af.js → p-b66cbe8a.js} +1 -1
- package/dist/tet-components/{p-f4786b25.entry.js → p-ba9dcdb2.entry.js} +1 -1
- package/dist/tet-components/{p-771146d4.entry.js → p-bd19cb33.entry.js} +1 -1
- package/dist/tet-components/p-c0be9da7.js +1 -0
- package/dist/tet-components/{p-1f61bc97.entry.js → p-c0d1f124.entry.js} +1 -1
- package/dist/tet-components/{p-3b5a822d.entry.js → p-c3934b44.entry.js} +1 -1
- package/dist/tet-components/{p-9eafff73.entry.js → p-c892bc9f.entry.js} +1 -1
- package/dist/tet-components/{p-76fc9aa4.entry.js → p-d96d0258.entry.js} +1 -1
- package/dist/tet-components/{p-ff769397.entry.js → p-decb5ec7.entry.js} +1 -1
- package/dist/tet-components/{p-8b174961.entry.js → p-df4e82bc.entry.js} +1 -1
- package/dist/tet-components/{p-d7b12aa8.entry.js → p-e412616e.entry.js} +1 -1
- package/dist/tet-components/{p-dce3f9e4.entry.js → p-e84bba1a.entry.js} +1 -1
- package/dist/tet-components/{p-e5a15112.entry.js → p-eab907b1.entry.js} +1 -1
- package/dist/tet-components/p-ee684ac3.entry.js +1 -0
- package/dist/tet-components/{p-4b3fc9e2.entry.js → p-f1bdb246.entry.js} +1 -1
- package/dist/tet-components/{p-121d2baf.entry.js → p-f1e5cd46.entry.js} +1 -1
- package/dist/tet-components/{p-d635d4b3.entry.js → p-faff3a4c.entry.js} +1 -1
- package/dist/tet-components/{p-3d20ced4.entry.js → p-fc19ac2a.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-1ec7f341.js +0 -2
- 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,93 @@
|
|
|
1
|
+
class CompareCardsTabProductsFilters {
|
|
2
|
+
constructor(onFilterSelect) {
|
|
3
|
+
this.onFilterSelect = onFilterSelect;
|
|
4
|
+
this.availableTvFilters = [];
|
|
5
|
+
this.allFilters = [];
|
|
6
|
+
this.currentProducts = {};
|
|
7
|
+
this.initialize = (productCodes) => {
|
|
8
|
+
const products = productCodes['products'];
|
|
9
|
+
const productTags = productCodes['productTags'];
|
|
10
|
+
this.currentProducts = products;
|
|
11
|
+
this.availableTvFilters = this.resolveFilters(products, productTags);
|
|
12
|
+
this.updateDisabledFilters();
|
|
13
|
+
this.onFilterSelect([...this.availableTvFilters], this.getActiveFilterIds(), this.getFilteredProductIds());
|
|
14
|
+
};
|
|
15
|
+
this.getAvailableFilters = () => {
|
|
16
|
+
return [...this.availableTvFilters];
|
|
17
|
+
};
|
|
18
|
+
this.clearFilters = () => {
|
|
19
|
+
this.availableTvFilters.forEach(filter => (filter.active = false));
|
|
20
|
+
this.updateDisabledFilters();
|
|
21
|
+
this.onFilterSelect([...this.availableTvFilters], [], this.getFilteredProductIds());
|
|
22
|
+
};
|
|
23
|
+
this.resolveFilters = (products, productTags) => {
|
|
24
|
+
const productCodeSet = new Set(Object.values(products).map(product => product.productCode));
|
|
25
|
+
return (productTags || [])
|
|
26
|
+
.map(tag => {
|
|
27
|
+
const localProducts = (tag.products || []).filter(productCode => productCodeSet.has(productCode));
|
|
28
|
+
return {
|
|
29
|
+
id: tag.tag,
|
|
30
|
+
title: tag.title,
|
|
31
|
+
products: localProducts,
|
|
32
|
+
active: false,
|
|
33
|
+
disabled: false,
|
|
34
|
+
clickAction: this.filterClickAction.bind(this),
|
|
35
|
+
};
|
|
36
|
+
})
|
|
37
|
+
.filter(filter => filter.products.length > 0);
|
|
38
|
+
};
|
|
39
|
+
this.filterClickAction = (filter) => {
|
|
40
|
+
const availableFilter = this.availableTvFilters.find(({ id }) => id === filter.id);
|
|
41
|
+
if (!availableFilter)
|
|
42
|
+
return;
|
|
43
|
+
if (availableFilter.disabled)
|
|
44
|
+
return;
|
|
45
|
+
availableFilter.active = !availableFilter.active;
|
|
46
|
+
availableFilter.showIcon = !availableFilter.showIcon;
|
|
47
|
+
this.updateDisabledFilters();
|
|
48
|
+
this.onFilterSelect([...this.availableTvFilters], this.getActiveFilterIds(), this.getFilteredProductIds());
|
|
49
|
+
};
|
|
50
|
+
this.updateDisabledFilters = () => {
|
|
51
|
+
const activeFilters = this.availableTvFilters.filter(f => f.active);
|
|
52
|
+
const activeCount = activeFilters.length;
|
|
53
|
+
let intersection = null;
|
|
54
|
+
if (activeCount > 0) {
|
|
55
|
+
intersection = new Set(activeFilters[0].products);
|
|
56
|
+
for (let i = 1; i < activeFilters.length; i++) {
|
|
57
|
+
intersection = new Set([...intersection].filter(productCode => activeFilters[i].products.includes(productCode)));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
for (const filter of this.availableTvFilters) {
|
|
61
|
+
if (filter.active || activeCount === 0) {
|
|
62
|
+
filter.disabled = false;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
let simulatedIntersection = intersection ? [...intersection] : filter.products;
|
|
66
|
+
if (intersection) {
|
|
67
|
+
simulatedIntersection = simulatedIntersection.filter(code => filter.products.includes(code));
|
|
68
|
+
}
|
|
69
|
+
filter.disabled = simulatedIntersection.length <= 1;
|
|
70
|
+
filter.showIcon = false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
this.getActiveFilterIds = () => {
|
|
75
|
+
return this.availableTvFilters.filter(filter => filter.active).map(filter => filter.id);
|
|
76
|
+
};
|
|
77
|
+
this.getFilteredProductIds = () => {
|
|
78
|
+
const activeTags = this.availableTvFilters.filter(tag => tag.active);
|
|
79
|
+
const allProductCodes = Object.values(this.currentProducts).map(p => p.productCode);
|
|
80
|
+
if (activeTags.length === 0) {
|
|
81
|
+
return allProductCodes;
|
|
82
|
+
}
|
|
83
|
+
let intersection = [...activeTags[0].products];
|
|
84
|
+
for (let i = 1; i < activeTags.length; i++) {
|
|
85
|
+
intersection = intersection.filter(productCode => activeTags[i].products.includes(productCode));
|
|
86
|
+
}
|
|
87
|
+
const validSet = new Set(allProductCodes);
|
|
88
|
+
intersection = intersection.filter(code => validSet.has(code));
|
|
89
|
+
return intersection;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export { CompareCardsTabProductsFilters };
|
package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.css
CHANGED
|
@@ -52,8 +52,13 @@
|
|
|
52
52
|
}
|
|
53
53
|
.tet-compare-cards-tab__header-container {
|
|
54
54
|
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
55
56
|
padding-bottom: 0.75rem;
|
|
56
57
|
}
|
|
58
|
+
.tet-compare-cards-tab__filters {
|
|
59
|
+
align-self: center;
|
|
60
|
+
margin-bottom: 1rem;
|
|
61
|
+
}
|
|
57
62
|
.tet-compare-cards-tab__header--image {
|
|
58
63
|
max-height: 0.875rem;
|
|
59
64
|
align-self: center;
|
package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.js
CHANGED
|
@@ -2,20 +2,22 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import { fillProductData } from "../utils";
|
|
3
3
|
import { productComparison } from "../../../../services/api/index";
|
|
4
4
|
import { fillOldProductData } from "../old-utils";
|
|
5
|
+
import { CompareCardsTabProductsFilters } from "./compare-cards-tab-products-filters";
|
|
5
6
|
/**
|
|
6
7
|
* List of cards for product comparison, sorted by tabs.
|
|
7
8
|
*/
|
|
8
9
|
export class TetTabCompareCards {
|
|
9
10
|
constructor() {
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Handles filtered products changed event from tet-address-offers-filters-products.
|
|
12
13
|
*/
|
|
13
|
-
this.
|
|
14
|
-
|
|
15
|
-
'tet-compare-cards-tab__placeholder': true,
|
|
16
|
-
'visible': this.showLoader
|
|
17
|
-
} }, [...Array(3)].map(() => [h("tet-placeholder", { class: "tet-placeholder", height: "27rem", width: "21.5rem" })])));
|
|
14
|
+
this.handleFilteredProductsChanged = (event) => {
|
|
15
|
+
this.filteredProductCodes = event.detail.filteredProductIds;
|
|
18
16
|
};
|
|
17
|
+
this.renderLoader = () => (h("div", { class: {
|
|
18
|
+
'tet-compare-cards-tab__placeholder': true,
|
|
19
|
+
'visible': this.showLoader
|
|
20
|
+
} }, [...Array(3)].map(() => h("tet-placeholder", { class: "tet-placeholder", height: "27rem", width: "21.5rem" }))));
|
|
19
21
|
this.data = undefined;
|
|
20
22
|
this.forceColumn = false;
|
|
21
23
|
this.layout = 'default';
|
|
@@ -27,10 +29,8 @@ export class TetTabCompareCards {
|
|
|
27
29
|
this.productDataLoaded = false;
|
|
28
30
|
this.showLoader = true;
|
|
29
31
|
this.productSACData = undefined;
|
|
32
|
+
this.filteredProductCodes = [];
|
|
30
33
|
}
|
|
31
|
-
/**
|
|
32
|
-
* If the product codes are provided, get product data from SAC.
|
|
33
|
-
*/
|
|
34
34
|
async componentWillLoad() {
|
|
35
35
|
const productCodes = this.addProductCodes(this.data, []);
|
|
36
36
|
if (productCodes.length > 0) {
|
|
@@ -95,11 +95,21 @@ export class TetTabCompareCards {
|
|
|
95
95
|
productComparison(productCodes).then((response) => {
|
|
96
96
|
this.productSACData = response;
|
|
97
97
|
this.productDataLoaded = true;
|
|
98
|
+
this.initCompareCardFilters();
|
|
98
99
|
this.element.shadowRoot.querySelectorAll('tet-tab-content').forEach((tabContent) => {
|
|
99
100
|
tabContent.parentContainer = this.element.shadowRoot;
|
|
100
101
|
});
|
|
101
102
|
});
|
|
102
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Runs after productSACData is set, sets up the filtering helper and filteredProductCodes.
|
|
106
|
+
*/
|
|
107
|
+
initCompareCardFilters() {
|
|
108
|
+
this.compareCardsFiltersHelper = new CompareCardsTabProductsFilters((_filters, _activeFilterIds, filteredIds) => {
|
|
109
|
+
this.filteredProductCodes = filteredIds;
|
|
110
|
+
});
|
|
111
|
+
this.compareCardsFiltersHelper.initialize(this.productSACData);
|
|
112
|
+
}
|
|
103
113
|
/**
|
|
104
114
|
* Renders the tab header.
|
|
105
115
|
*
|
|
@@ -123,12 +133,12 @@ export class TetTabCompareCards {
|
|
|
123
133
|
tab.disabled = true;
|
|
124
134
|
}
|
|
125
135
|
});
|
|
126
|
-
return (h("div", { class: "tet-compare-cards-tab__header-container" }, h("tet-tab-header", { darkMode: this.darkHeader ? true : this.darkMode, position: tabList.tabHeader.position, "default-tab": `tab-${level}-${tabList.tabHeader.defaultTabIndex}`, segmented: tabList.tabHeader.segmented, sizing: tabList.tabHeader.sizing, "data-name": tabList.tabHeader.dataName, class: "tet-compare-cards-tab__header" }, tabList.tabs.map((element, index) => (h("button", { "data-name": `tab-${level}-${index}`, class: { disabled: element.disabled || this.showLoader, 'button': true } }, element.image && !element.imagePositionRight ?
|
|
136
|
+
return (h("div", { class: "tet-compare-cards-tab__header-container" }, tabList.withProductFilters && (h("tet-address-offers-filters-products", { productCodes: this.productSACData, class: "center tet-compare-cards-tab__filters", clearFilterButton: true, onFilteredProductsChanged: this.handleFilteredProductsChanged, theme: this.darkMode ? 'dark' : 'light' })), h("tet-tab-header", { darkMode: this.darkHeader ? true : this.darkMode, position: tabList.tabHeader.position, "default-tab": `tab-${level}-${tabList.tabHeader.defaultTabIndex}`, segmented: tabList.tabHeader.segmented, sizing: tabList.tabHeader.sizing, "data-name": tabList.tabHeader.dataName, class: "tet-compare-cards-tab__header" }, tabList.tabs.map((element, index) => (h("button", { "data-name": `tab-${level}-${index}`, class: { disabled: element.disabled || this.showLoader, 'button': true } }, element.image && !element.imagePositionRight ?
|
|
127
137
|
h("img", { class: "tet-compare-cards-tab__header--image", src: element.image, alt: element.altText }) : '', element.title, element.image && element.imagePositionRight ?
|
|
128
138
|
h("img", { class: { 'tet-compare-cards-tab__header--image': true, 'right': true }, src: element.image, alt: element.altText }) : ''))))));
|
|
129
139
|
}
|
|
130
140
|
/**
|
|
131
|
-
* Renders
|
|
141
|
+
* Renders tab content.
|
|
132
142
|
*
|
|
133
143
|
* @param tabList tab data
|
|
134
144
|
* @param level level of the tab
|
|
@@ -148,11 +158,15 @@ export class TetTabCompareCards {
|
|
|
148
158
|
* @param cardScript A script for the compare cards component.
|
|
149
159
|
*/
|
|
150
160
|
renderCompareCards(cards, vatText = '', cardScript = '') {
|
|
161
|
+
let filteredCards = cards;
|
|
162
|
+
if (this.filteredProductCodes && this.filteredProductCodes.length > 0) {
|
|
163
|
+
filteredCards = cards.filter(card => this.filteredProductCodes.includes(card.productCode));
|
|
164
|
+
}
|
|
151
165
|
let cardsWithAddedSACData = [];
|
|
152
|
-
|
|
166
|
+
filteredCards.forEach((element) => {
|
|
153
167
|
if (typeof element.productCode !== 'undefined') {
|
|
154
168
|
const requestedProduct = element.productCode;
|
|
155
|
-
const requestedProductData = this.productSACData[requestedProduct];
|
|
169
|
+
const requestedProductData = this.productSACData['products'][requestedProduct];
|
|
156
170
|
if (requestedProductData) {
|
|
157
171
|
if (this.newUrlGeneratorStructure) {
|
|
158
172
|
element = fillProductData(element, requestedProduct, requestedProductData, this.theme, this.darkMode, this.isNetflixCard);
|
|
@@ -167,7 +181,7 @@ export class TetTabCompareCards {
|
|
|
167
181
|
return (h("div", { class: "tet-compare-cards-tab__content" }, h("tet-compare-cards", { theme: this.theme, "dark-mode": this.darkMode, "is-netflix-card": this.isNetflixCard, layout: this.layout, "force-column": this.forceColumn, "vat-text": vatText !== null && vatText !== void 0 ? vatText : false, "card-script": cardScript !== null && cardScript !== void 0 ? cardScript : false, data: cardsWithAddedSACData, newUrlGeneratorStructure: this.newUrlGeneratorStructure })));
|
|
168
182
|
}
|
|
169
183
|
render() {
|
|
170
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: '54a44d3d6d76143678f77c9fefe66902a1f1654a' }, h("div", { key: 'b52b3b1d124835ad6eeb4bfc4f14d386477b3ba1', class: "tet-compare-cards-tab-wrapper" }, this.renderTabHeader(this.data, 1), this.renderLoader(), h("div", { key: '70ed32288ced853110f3675f535537519a4545da', class: {
|
|
171
185
|
'tet-compare-cards-tab__cards': true,
|
|
172
186
|
'hidden': this.showLoader
|
|
173
187
|
} }, this.productDataLoaded ? this.renderContent(this.data, 1) : ''))));
|
|
@@ -351,7 +365,8 @@ export class TetTabCompareCards {
|
|
|
351
365
|
return {
|
|
352
366
|
"productDataLoaded": {},
|
|
353
367
|
"showLoader": {},
|
|
354
|
-
"productSACData": {}
|
|
368
|
+
"productSACData": {},
|
|
369
|
+
"filteredProductCodes": {}
|
|
355
370
|
};
|
|
356
371
|
}
|
|
357
372
|
static get elementRef() { return "element"; }
|
package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js
CHANGED
|
@@ -117,7 +117,7 @@ export class TetCustomerAssets {
|
|
|
117
117
|
return provisioningStatus === 'Active' && tetProductType !== 'ConsumerGoods';
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: 'b673df48957c6ce5b4a6df1a1e89356ec840d64b' }, h("div", { key: '24f1756f8d4c83d02bc88197f37ec35bbdb32aef', class: { wrapper: this.showLoader && this.singleLoader, 'dark-theme': this.darkTheme } }, this.showLoader && this.singleLoader
|
|
121
121
|
? h("tet-loader", { class: "loader-single" })
|
|
122
122
|
: this.showLoader ? this.renderLoader() : this.renderAssetsList())));
|
|
123
123
|
}
|
|
@@ -42,9 +42,9 @@ export class TetReferral {
|
|
|
42
42
|
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '3332ca8239b865cb6debc47b04c9cf937caa058d' }, h("div", { key: '17cc752818ad7818282bd9b2a4780e3d6c9c480f', class: "wrapper" }, h(ThemeWrapper, { key: '02c4f3bd64acf223dfdb767553430bb41bb4748d', theme: this.theme }, h("div", { key: 'f164eab70a3e58bc7e5a08afa399fdf8dd945bf6', class: "image-container" }, h("img", { key: '0e9df07212aa90ecfa5f2975ab2d4e8a12947eab', src: t('components-referral-image-url'), alt: "" })), h("div", { key: '9fb0e7ae14ea53aefc989ffd0ea4b14130543919', class: "subtitle-container" }, t('components-referral-subtitle')), h("div", { key: '2161eb3fb1fe81bbb7c3514284c6b0e206b96125', class: "description-container", innerHTML: t('components-referral-description') }), h("div", { key: '59b6e1a26ecb27ed69d02b630d9ffdfe5aeff4ef', class: "referral-block" }, h("div", { key: '632d18b77e3734dd358505824fcae50543322d6f', class: "url-wrapper" }, h("div", { key: '3dc7e060e2939768ffd2c490e3622cc675099622', class: "referral-url" }, this.getReferralUrl()), h("div", { key: 'b932a84100e6b4e15c88516b1b1b8159d669e656' }, h("div", { key: 'af8b3e26e26dce8f4e7211283d0487ba32331283', class: "button-wrapper" }, h("tet-tooltip", { key: 'd512ba811ad7d530fdd0697aa7a7ea6e843d5ef7', theme: this.theme, class: "tooltip", doNotShowOnHover: true, ref: (el) => {
|
|
46
46
|
this.tooltip = el;
|
|
47
|
-
} }, t('components-referral-tooltip')), h("tet-button", { key: '
|
|
47
|
+
} }, t('components-referral-tooltip')), h("tet-button", { key: '30f808697440c490728b68fafef3dfc824a87ce4', clickCallback: this.copyToClipBoard, type: "primary", theme: this.theme }, t('components-referral-copy-button-label'))))))))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "tet-referral"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js
CHANGED
|
@@ -107,7 +107,7 @@ export class TetMultiStepDialog {
|
|
|
107
107
|
return (h("div", { innerHTML: step, "data-step": Number(index) + 1, class: "multi-step-dialog__step", ref: this.setStepBlocks }));
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '633893694bc160d5adca170f141a6274c55acb1c', class: "multi-step-dialog" }, h("tet-dialog", { key: 'f02b0aa33bb543fba871f7de01ef3c6d6632d88d', class: this.tetDialogClass, "is-open": this.isOpen, "data-screen-key": this.dialogDataScreenKey, "footer-display": "right", ref: el => this.tetDialog = el }, h("div", { key: 'e3707e61dcc1e9151ae973c0dd29fdf2f1fa9260', innerHTML: this.content }), this.steps.map((step, index) => (this.renderStep(step, index))), h("tet-button", { key: '4a06311048bafe2a5f7ce9450e297ad01f9c5575', class: "footer-button", slot: "footer", size: "medium", theme: "light", type: "secondary", ref: el => this.prevButton = el, onKeyDown: (e) => this.handleKeydownEvent(e) }, t('components-go-back')), h("tet-button", { key: 'a93ca8393597debe1b08dbd130fbf2a323b52889', class: "footer-button", slot: "footer", size: "medium", theme: "light", ref: el => this.nextButton = el, onKeyDown: (e) => this.handleKeydownEvent(e) }, t('components-next-step')))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "tet-multi-step-dialog"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -121,7 +121,7 @@ export class TetAvailabilityContactForm {
|
|
|
121
121
|
return (h("div", null, h("tet-dialog", { ref: (element) => this.dialogElement = element, "footer-display": "hidden", "is-open": this.showAvailabilityContactForm, closeOnEscape: true, closeOnOverlayClick: true }, h("div", { class: "form-container" }, h("tet-icon", { name: "confirm-md", class: "icon icon-success icon-size" }), this.showTitle && h("h2", { class: "form-title" }, t('components-availability-contact-form-success-title')), h("p", { class: "form-subtitle" }, t('components-availability-contact-form-success-subtitle')), h("tet-button", { class: "form-container-close", clickCallback: this.closeDialogElement, size: "medium", type: "primary", theme: "light" }, h("span", null, t('components-availability-contact-form-success-close')))))));
|
|
122
122
|
}
|
|
123
123
|
render() {
|
|
124
|
-
return (h("div", { key: '
|
|
124
|
+
return (h("div", { key: 'b59f08b2e78fa184091772924ebc049e74fde605', class: { 'dark-theme': this.darkTheme } }, this.success ? this.renderSuccessStep() : this.renderForm()));
|
|
125
125
|
}
|
|
126
126
|
static get is() { return "tet-availability-contact-form"; }
|
|
127
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -64,7 +64,7 @@ export class TetContactForm {
|
|
|
64
64
|
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h("div", { key: '
|
|
67
|
+
return (h("div", { key: 'a406dd58d8abbbd66e5a60c2a6fcc8ff9b43afed', class: { 'dark-theme': this.darkTheme } }, h("tet-container", { key: '16ee2ee05637aa41e05f88b9f20ce0faac043d2a', class: "container" }, this.showLoader && this.renderLoader(), h("div", { key: '8200dcfa4d6cc25e6ad8adcece335415754ca11a', class: "form-container" }, this.showTitle && h("h2", { key: '36354fe11b6bb884f9d89ebe876f3ef140551a39', class: "form-title" }, t('components-contact-form-title')), h("p", { key: '4b37d3198bd735f78284cfd15b4c156b50a65842', class: "form-subtitle" }, t(this.subtitle)), h("tet-input", { key: '2b7381ca8fefdf1ce67578a6c41c35ed7b73785b', class: "form-input", placeholder: "+37122345678", ref: (element) => this.phoneInput = element, validators: this.validators, label: this.showInputLabel ? t('components-contact-form-input-label') : null, theme: this.darkTheme ? 'dark' : 'classic' }), h("tet-button", Object.assign({ key: '62f6169f6f1099486287e272e6ad248e974c8bb0', class: "form-submit", type: "primary", clickCallback: this.createManualTask, innerHTML: t('components-contact-form-submit') }, this.submitButtonProps))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "tet-contact-form"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,7 +32,7 @@ export class TetTvGiftBlock {
|
|
|
32
32
|
this.setContainerSize();
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '773c99d1d823ed554a985350636fa1348ee506aa' }, h("div", { key: '76a060efd5ba9e6cb55eab6b1b647d7dcad11141', class: { 'tv-gift': true, [`tv-gift--${this.containerSize}`]: true } }, h("div", { key: '0b8cef43b12b3348d50db5ca9a4f4189b96f3f3d', class: "tv-gift__header" }, h("slot", { key: '17822143d4254b3be6d587636579267c0a34c7b3', name: "header" }, this.headerImageSrc && h("img", { key: '217ac86bf1aa0ea3a1c99874bd3db5e45c9aae2e', class: "tv-gift__header__image", src: this.headerImageSrc }), h("div", { key: '768015eb08dd1c07e53f99c1292c256f72beffa9', class: "tv-gift__header-text" }, this.headerTitle))), h("div", { key: '74b7a7f8c819413294234782206863364937cb89', class: "tv-gift__content" }, h("slot", { key: 'e13aa5eb82c7df4e9cb944e593cb796ad8e330b1' })), h("div", { key: '2e4b475da19e1f865901956512f6cdb87c0ca3de', class: "tv-gift__footer" }, h("slot", { key: 'aeb0accc43dc733d9c4b7dbc5d1c7bf7f6c47c7e', name: "footer" }, h("span", { key: 'ad4a3cc8120bc42d32bf531bacca32293a0a908d', class: "tv-gift__footer__title" }, this.footerTitle), h("span", { key: '8b3d4880010b24d474b8f6d28095fa2f319ad685', class: "tv-gift__footer__text" }, this.footerText))))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "tet-tv-gift-block"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js
CHANGED
|
@@ -34,11 +34,11 @@ export class TetTvGiftList {
|
|
|
34
34
|
this.setContainerSize();
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'f78e2fd97372592e8b27c6ac7b313504591bbb45' }, h("div", { key: '17147eb3f22f40c0afdbd148116e79b4d71fa9ee', class: {
|
|
38
38
|
'tv-gift-list': true,
|
|
39
39
|
[`tv-gift-list--${this.containerSize}`]: true,
|
|
40
40
|
'tv-gift-list--image-list': Boolean(this.imageSource),
|
|
41
|
-
} }, this.imageSource && (h("div", { key: '
|
|
41
|
+
} }, this.imageSource && (h("div", { key: 'ad1a60ae4e733c844d18ea6b871b0b36785eb358', class: "tv-gift-list__image__wrapper" }, h("img", { key: 'cd8524ed32af00412ed4fbe181d595fbc14f1540', class: "tv-gift-list__image", src: this.imageSource }))), h("div", { key: '3a2f652f73a10013d61dfceb5b733bcd6879b443', class: "tv-gift-list__list__wrapper" }, h("span", { key: '6452f20ba9a42b607c71b03cd4708b27193b8a3a', class: "tv-gift-list__list__header" }, this.header), h("ul", { key: '8ee50e9c915a4d02dd20d2932919c07e95e3ccb8', class: "tv-gift-list__list" }, this.list.map(item => (h("li", { class: "tv-gift-list__list__item" }, h("tet-icon", { name: this.listBulletIcon }), item))))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "tet-tv-gift-list"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js
CHANGED
|
@@ -113,10 +113,10 @@ export class TetTabContent {
|
|
|
113
113
|
this.selectedId = id;
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return (h(Host, { key: '
|
|
116
|
+
return (h(Host, { key: '33a0257fe61a77beff675c3b958c0d6b7d60bddc' }, h("div", { key: '9e3a94dc701de812ab6821c57b491b4b85d1c780', class: {
|
|
117
117
|
'tet-tab-content': true,
|
|
118
118
|
'use-visibility': this.useVisibility
|
|
119
|
-
} }, h("slot", { key: '
|
|
119
|
+
} }, h("slot", { key: '85950b5eae8dbae7fe83362f696501071dba4c29' }))));
|
|
120
120
|
}
|
|
121
121
|
static get is() { return "tet-tab-content"; }
|
|
122
122
|
static get encapsulation() { return "shadow"; }
|
|
@@ -406,7 +406,7 @@ export class TetTabHeader {
|
|
|
406
406
|
return {};
|
|
407
407
|
}
|
|
408
408
|
render() {
|
|
409
|
-
return (h(Host, { key: '
|
|
409
|
+
return (h(Host, { key: 'fcf2ce3f93ff2a99fe53a02b663e1b96df8218b6' }, h("div", { key: '214ff13ea8dc05a7317310f4e110829d0f054446', class: {
|
|
410
410
|
'tabs': true,
|
|
411
411
|
'tabs--segmented': this.segmented,
|
|
412
412
|
'dark': this.darkMode,
|
|
@@ -414,7 +414,7 @@ export class TetTabHeader {
|
|
|
414
414
|
[this.theme]: true,
|
|
415
415
|
[this.sizing]: true,
|
|
416
416
|
[this.type]: !!this.type
|
|
417
|
-
}, onMouseDown: this.onContainerMouseDown, style: this.getStyle(), ref: (ref) => (this.tabElement = ref) }, h("slot", { key: '
|
|
417
|
+
}, onMouseDown: this.onContainerMouseDown, style: this.getStyle(), ref: (ref) => (this.tabElement = ref) }, h("slot", { key: '038ee9768e998e1c4e5e497b3fd8f852109f48e8', ref: (slot) => (this.tabContainer = slot) })), h("div", { key: '1790b1f8148e5ad06408182917589bff69b82d5d', class: { 'tabs-line': !this.segmented, 'no-underline': this.hideHeaderUnderline } })));
|
|
418
418
|
}
|
|
419
419
|
static get is() { return "tet-tab-header"; }
|
|
420
420
|
static get encapsulation() { return "shadow"; }
|
|
@@ -358,9 +358,11 @@
|
|
|
358
358
|
*
|
|
359
359
|
* @prop --tag-border-color: The border color of the tag.
|
|
360
360
|
* @prop --tag-active-border-color: The border color of the tag when active.
|
|
361
|
+
* @prop --tag-disabled-border-color: The border color of the tag when disabled.
|
|
361
362
|
*
|
|
362
363
|
* @prop --tag-text-color: The text color of the tag.
|
|
363
364
|
* @prop --tag-active-text-color: The text color of the tag when active.
|
|
365
|
+
* @prop --tag-disabled-text-color: The text color of the tag when disabled.
|
|
364
366
|
*/
|
|
365
367
|
display: inline-block;
|
|
366
368
|
--tag-background-color: rgb(255, 255, 255);
|
|
@@ -368,9 +370,11 @@
|
|
|
368
370
|
--tag-active-background-color: rgb(10, 11, 13);
|
|
369
371
|
--tag-border-color: rgb(153, 160, 174);
|
|
370
372
|
--tag-active-border-color: rgb(10, 11, 13);
|
|
373
|
+
--tag-disabled-border-color: var(--tc-button-border-disabled);
|
|
371
374
|
--tag-text-color: rgb(10, 11, 13);
|
|
372
375
|
--tag-active-text-color: rgb(255, 255, 255);
|
|
373
376
|
--tag-focus-outline-color:var(--tc-blue-40);
|
|
377
|
+
--tag-disabled-text-color: var(--tc-button-text-secondary-disabled);
|
|
374
378
|
}
|
|
375
379
|
|
|
376
380
|
.tag {
|
|
@@ -386,7 +390,7 @@
|
|
|
386
390
|
border-color: var(--tag-border-color);
|
|
387
391
|
border: 0.0625rem solid var(--tag-border-color);
|
|
388
392
|
}
|
|
389
|
-
.tag:hover {
|
|
393
|
+
.tag:hover:not(:disabled) {
|
|
390
394
|
background: var(--tag-hover-background-color);
|
|
391
395
|
}
|
|
392
396
|
.tag:focus-visible {
|
|
@@ -396,14 +400,20 @@
|
|
|
396
400
|
outline-color: var(--tag-focus-outline-color);
|
|
397
401
|
border-color: transparent;
|
|
398
402
|
}
|
|
399
|
-
.tag:active:not(:disabled), .tag.tag-active {
|
|
403
|
+
.tag:active:not(:disabled), .tag.tag-active:not(:disabled) {
|
|
400
404
|
color: var(--tag-active-text-color);
|
|
401
405
|
background: var(--tag-active-background-color);
|
|
402
406
|
border-color: var(--tag-active-border-color);
|
|
403
407
|
}
|
|
404
|
-
.tag:active:not(:disabled) .tag-icon, .tag.tag-active .tag-icon {
|
|
408
|
+
.tag:active:not(:disabled) .tag-icon, .tag.tag-active:not(:disabled) .tag-icon {
|
|
405
409
|
--icon-color: var(--tag-active-text-color);
|
|
406
410
|
}
|
|
411
|
+
.tag:disabled {
|
|
412
|
+
border-color: var(--tag-disabled-border-color);
|
|
413
|
+
color: var(--tag-disabled-text-color);
|
|
414
|
+
cursor: not-allowed;
|
|
415
|
+
background: transparent;
|
|
416
|
+
}
|
|
407
417
|
.tag--icon {
|
|
408
418
|
padding: 0.375rem 0.625rem 0.365rem 0.75rem;
|
|
409
419
|
}
|
|
@@ -414,8 +424,10 @@
|
|
|
414
424
|
--tag-border-color: var(--tc-border-secondary);
|
|
415
425
|
--tag-active-border-color: var(--tc-button-primary-background-default);
|
|
416
426
|
--tag-focus-outline-color:var(--tc-blue-40);
|
|
427
|
+
--tag-disabled-border-color: var(--tc-button-border-disabled);
|
|
417
428
|
--tag-text-color: var(--tc-button-text-secondary);
|
|
418
429
|
--tag-active-text-color: var(--tc-button-text-primary);
|
|
430
|
+
--tag-disabled-text-color: var(--tc-button-text-secondary-disabled);
|
|
419
431
|
}
|
|
420
432
|
.tag.theme-dark {
|
|
421
433
|
--tag-background-color: var(--tc-layer-primary-dark);
|
|
@@ -424,8 +436,10 @@
|
|
|
424
436
|
--tag-border-color: var(--tc-border-secondary-dark);
|
|
425
437
|
--tag-active-border-color: var(--tc-button-primary-background-default-dark);
|
|
426
438
|
--tag-focus-outline-color:var(--tc-blue-40-dark);
|
|
439
|
+
--tag-disabled-border-color: var(--tc-button-border-disabled-dark);
|
|
427
440
|
--tag-text-color: var(--tc-button-text-secondary-dark);
|
|
428
441
|
--tag-active-text-color: var(--tc-button-text-primary-dark);
|
|
442
|
+
--tag-disabled-text-color: var(--tc-button-text-secondary-disabled-dark);
|
|
429
443
|
}
|
|
430
444
|
.tag.theme-mint {
|
|
431
445
|
--tag-background-color: rgb(35, 40, 46);
|
|
@@ -433,8 +447,10 @@
|
|
|
433
447
|
--tag-active-background-color: rgb(26, 213, 219);
|
|
434
448
|
--tag-border-color: rgb(26, 213, 219);
|
|
435
449
|
--tag-active-border-color: rgb(26, 213, 219);
|
|
450
|
+
--tag-disabled-border-color: var(--tc-button-border-disabled-dark);
|
|
436
451
|
--tag-text-color: rgb(255, 255, 255);
|
|
437
452
|
--tag-active-text-color: rgb(10, 11, 13);
|
|
453
|
+
--tag-disabled-text-color: var(--tc-button-text-secondary-disabled-dark);
|
|
438
454
|
}
|
|
439
455
|
.tag .tag-icon {
|
|
440
456
|
--icon-size: 1rem;
|
|
@@ -10,6 +10,7 @@ export class TetTag {
|
|
|
10
10
|
this.active = false;
|
|
11
11
|
this.theme = 'classic';
|
|
12
12
|
this.showIcon = false;
|
|
13
|
+
this.disabled = false;
|
|
13
14
|
this.language = 'lv';
|
|
14
15
|
}
|
|
15
16
|
async onLanguageChange(language) {
|
|
@@ -19,12 +20,12 @@ export class TetTag {
|
|
|
19
20
|
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
20
21
|
}
|
|
21
22
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '26e4d377e0bf498e773cf3bbb9a316eb5413c8db' }, h("button", { key: '7034a6c7ac6168c2c78bd6190d31f397dc436331', class: {
|
|
23
24
|
tag: true,
|
|
24
25
|
'tag-active': this.active,
|
|
25
26
|
'tag--icon': this.showIcon,
|
|
26
27
|
[`theme-${this.theme}`]: true,
|
|
27
|
-
}, "aria-pressed": this.active.toString() }, this.tagTitle && h("p", { key: '
|
|
28
|
+
}, "aria-pressed": this.active.toString(), disabled: this.disabled }, this.tagTitle && h("p", { key: 'f6ff0d60f26afb6010949f59095d1ceca5a0df9d', class: "tag-title" }, t(this.tagTitle)), this.count !== null && this.count !== undefined && h("span", { key: '65dc53b0ed299b49d80634c745916b04dde44325', class: "tag-count" }, this.count), this.showIcon && h("tet-icon", { key: '4790727ca0ac7ee763a3c7047f89b1a65ab9b13c', class: "tag-icon", name: "close-circle", part: "icon-selected" }))));
|
|
28
29
|
}
|
|
29
30
|
static get is() { return "tet-tag"; }
|
|
30
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -128,6 +129,24 @@ export class TetTag {
|
|
|
128
129
|
"reflect": false,
|
|
129
130
|
"defaultValue": "false"
|
|
130
131
|
},
|
|
132
|
+
"disabled": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"mutable": false,
|
|
135
|
+
"complexType": {
|
|
136
|
+
"original": "boolean",
|
|
137
|
+
"resolved": "boolean",
|
|
138
|
+
"references": {}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": false,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": "State of the disabled tag"
|
|
145
|
+
},
|
|
146
|
+
"attribute": "disabled",
|
|
147
|
+
"reflect": false,
|
|
148
|
+
"defaultValue": "false"
|
|
149
|
+
},
|
|
131
150
|
"language": {
|
|
132
151
|
"type": "string",
|
|
133
152
|
"mutable": false,
|
|
@@ -13,14 +13,14 @@ export class TetTagGroup {
|
|
|
13
13
|
* @param tag
|
|
14
14
|
*/
|
|
15
15
|
this.renderTag = (tag) => {
|
|
16
|
-
return (h("tet-tag", { class: "single-tag", part: "tag", tagTitle: tag.title, count: tag.count, active: tag.active, showIcon: tag.showIcon, language: this.language, theme: this.theme, onClick: () => isFunction(tag.clickAction) ? tag.clickAction(tag) : null }));
|
|
16
|
+
return (h("tet-tag", { class: "single-tag", part: "tag", tagTitle: tag.title, count: tag.count, active: tag.active, showIcon: tag.showIcon, language: this.language, theme: this.theme, disabled: tag.disabled, onClick: () => isFunction(tag.clickAction) ? tag.clickAction(tag) : null }));
|
|
17
17
|
};
|
|
18
18
|
this.language = 'lv';
|
|
19
19
|
this.tags = [];
|
|
20
20
|
this.theme = 'classic';
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return h("div", { key: '
|
|
23
|
+
return h("div", { key: 'f619e65de3bb1720a15764e3efdb076ea66a0ada', class: "tags" }, this.tags.map(this.renderTag));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "tet-tag-group"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -138,10 +138,10 @@ export class TetCarousel {
|
|
|
138
138
|
window.removeEventListener('resize', this.getScreenCount.bind(this));
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '2f61631952462d8faaac9fcaa32b7cd49d298f4a' }, h("div", { key: '222266efa037d5947d310a160eb1b1e01f1ce322', class: { 'tet-carousel': true, [`${this.theme}`]: true }, ref: (el) => (this.container = el), part: "carousel" }, h("div", { key: '366cca532254f73d1302bed7a4c2f4d8cbdc24e8', class: "tet-carousel__container" }, h("div", { key: '1eee687244a642b9f038c5aed5abfa99017b3776', class: "tet-carousel__track", ref: (el) => (this.trackElement = el), style: {
|
|
142
142
|
transform: `translateX(${this.dragOffset}px)`,
|
|
143
143
|
transition: this.isDragging ? 'none' : `transform ${this.transitionDuration}ms ${this.transitionTiming}`
|
|
144
|
-
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("slot", { key: '
|
|
144
|
+
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("slot", { key: 'c1c6a352df3f519745e7cbd5d442aaa6b0d279e6' }))), h("div", { key: '0a273ad667765abd8886816f9507ed766db3bbcb', class: "tet-carousel__controls" }, this.showButtons && (h("div", { key: '152a50e0e6b4600be42a97afc96202129208878e', class: "tet-carousel__buttons tet-carousel__buttons--mobile" }, h("tet-button", { key: '85927a1665cb8ddeac1a38e7dfde1d91dd393c31', class: "tet-carousel__btn", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconLeft, "icon-mode": true, onClick: this.handlePrev, "aria-label": "Previous", disabled: this.screenCount <= 1 || this.activeIndex === 0 }))), this.showDots && (h("div", { key: 'a4c481ec8f7c79efbf71e8f87853759135074acb', class: "tet-carousel__dots" }, Array.from({ length: this.screenCount }).map((_, idx) => (h("span", { class: `tet-carousel__dot${idx === this.activeIndex ? ' active' : ''}`, key: idx, onClick: () => this.handleDotClick(idx) }))))), this.showButtons && (h("div", { key: 'b04e56addc02346d2b78a8a87a41a33b3a40182a', class: "tet-carousel__buttons " }, h("tet-button", { key: 'de3e442e1dd33504132d68a1dd356eb688083c06', class: "tet-carousel__buttons--desktop tet-carousel__btn ", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconLeft, "icon-mode": true, onClick: this.handlePrev, "aria-label": "Previous", disabled: this.screenCount <= 1 || this.activeIndex === 0 }), h("tet-button", { key: 'a78a12c790e51ff0a91998db00771319eb6c523b', class: "tet-carousel__btn", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconRight, "icon-mode": true, onClick: this.handleNext, "aria-label": "Next", disabled: this.screenCount <= 1 || this.activeIndex === this.screenCount - 1 })))))));
|
|
145
145
|
}
|
|
146
146
|
static get is() { return "tet-carousel"; }
|
|
147
147
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class TetIcon {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h("span", { key: '
|
|
52
|
+
return (h("span", { key: '49816e3b2718ca788e5f144ea166f105e5ddd468', class: "icon-wrapper", tabindex: (this.focusable || this.accessibilityLabel) ? 0 : -1 }, h("span", Object.assign({ key: 'bcefb634abdab0de2dc09cbabc33655802d039b7', class: {
|
|
53
53
|
'icon-container': true,
|
|
54
54
|
'default-color': this.shouldUseDefaultColor(),
|
|
55
55
|
[this.theme]: true,
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TetLoader {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '761206c2d51c653032b464e373f8f3845a39fbd0', class: "loader" }, h("div", { key: 'd58abc41d9f0c6e90c784cd5916ab0021c2a6b3c', class: "loader-inner" })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "tet-loader"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class TetPlaceholder {
|
|
|
9
9
|
this.darkTheme = false;
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '651d3da26f9038f81db353a840d03f93efb46611', style: { width: this.width, height: this.height } }, h("div", { key: '775a3fc39497c8ec7479082689891fe8364a2eb1', class: { 'dark-theme': this.darkTheme } }, h("div", { key: '7e33692dd60e6df4f2f0c015e4f165052ec5f65f', class: "placeholder", style: { height: this.height } }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "tet-placeholder"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -47,13 +47,13 @@ export class TetSpinner {
|
|
|
47
47
|
this.setForeignObjectAttributes();
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h("div", { key: '
|
|
50
|
+
return (h("div", { key: 'de948e2bbce4907d1647853bdee51a6b009dcc33', ref: element => (this.spinner = element), class: {
|
|
51
51
|
spinner: true,
|
|
52
52
|
[`${this.theme}-theme`]: true,
|
|
53
53
|
[`size--${this.size}`]: true,
|
|
54
54
|
[`spinner--${this.type}`]: true,
|
|
55
|
-
} }, h("svg", { key: '
|
|
56
|
-
0 40 8.9543 40 20ZM6 20C6 27.732 12.268 34 20 34C27.732 34 34 27.732 34 20C34 12.268 27.732 6 20 6C12.268 6 6 12.268 6 20Z` })), h("foreignObject", { key: '
|
|
55
|
+
} }, h("svg", { key: '7a19bdb70adbc86a5d390393f015c9ecda79328d', viewBox: "0 0 40 40" }, h("clipPath", { key: '92e999cb64ab644d5f0cbd738ccfe18ad0533d19', id: "clip" }, h("path", { key: '394a1e358df9ab00d3955f4df105e8145406132c', d: `M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457
|
|
56
|
+
0 40 8.9543 40 20ZM6 20C6 27.732 12.268 34 20 34C27.732 34 34 27.732 34 20C34 12.268 27.732 6 20 6C12.268 6 6 12.268 6 20Z` })), h("foreignObject", { key: '7359114b0a47b1243a1e6483dfec8e28cd6185ca' }, h("div", { key: 'deeb55594d6a9364912e0faf59ce67f613e3e521', class: "spinner__gradient" })))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "tet-spinner"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,12 +13,12 @@ export class TetLabel {
|
|
|
13
13
|
this.showIcon = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'fa064d6a3a9e8b3943ee29721f96e73995b13448' }, h("div", { key: 'ca6c788ffba25e2fc6ccaf6079568f6c99947887', class: {
|
|
17
17
|
label: true,
|
|
18
18
|
'label-active': this.active,
|
|
19
19
|
[`label-type-${this.type}`]: true,
|
|
20
20
|
[`theme-${this.theme}`]: true,
|
|
21
|
-
} }, this.labelTitle && h("p", { key: '
|
|
21
|
+
} }, this.labelTitle && h("p", { key: '8e03672f466ecaca977d5c54004b2d70f7615a8a', class: "label-title" }, this.translateTitle ? t(this.labelTitle) : this.labelTitle), this.showIcon && h("tet-icon", { key: 'e88406f52a10ae2e664ba066a9e693df5ac8b710', class: "label-icon", name: "close-circle", part: "icon-selected" }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "tet-label"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|