@tet/tet-components 1.3.113-testing → 1.3.114-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-5271d3aa.js → address-86670c33.js} +1 -1
- package/dist/cjs/{assets-e3bb045c.js → assets-44d8d688.js} +1 -1
- package/dist/cjs/{async-request-29b32d63.js → async-request-b7023cc7.js} +1 -1
- package/dist/cjs/{http-codes-2f72a8b2.js → http-codes-e46d4b01.js} +1 -1
- package/dist/cjs/{index-84ede372.js → index-457201e1.js} +1 -1
- package/dist/cjs/{index-f559cb2e.js → index-66913c99.js} +17 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{old-utils-dfc83c48.js → old-utils-49708c07.js} +0 -25
- package/dist/cjs/{phone-c3ebb2eb.js → phone-4aadc5b9.js} +2 -2
- package/dist/cjs/product-comparison-902a580c.js +28 -0
- package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
- package/dist/cjs/{tet-address-offers-filters-products_3.cjs.entry.js → tet-address-offers-filters-products_2.cjs.entry.js} +3 -376
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-b2b-configurator-cart.cjs.entry.js +3 -3
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +3 -3
- package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-lines.cjs.entry.js +4 -4
- package/dist/cjs/tet-business-navigation.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-summary-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-button.cjs.entry.js +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-carousel.cjs.entry.js +1 -1
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +810 -0
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +1 -1
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +290 -0
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +5 -4
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -4
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
- package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
- package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
- package/dist/cjs/tet-grid.cjs.entry.js +1 -1
- package/dist/cjs/tet-icon.cjs.entry.js +2 -2
- package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
- package/dist/cjs/tet-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-label.cjs.entry.js +3 -3
- package/dist/cjs/tet-layout.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +1 -1
- package/dist/cjs/tet-loader.cjs.entry.js +1 -1
- package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-notification.cjs.entry.js +1 -1
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio.cjs.entry.js +1 -1
- package/dist/cjs/{tet-range-slider_2.cjs.entry.js → tet-range-slider.cjs.entry.js} +1 -45
- package/dist/cjs/tet-referral.cjs.entry.js +5 -5
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-switch.cjs.entry.js +50 -0
- package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
- package/dist/cjs/{theme-wrapper-a5bbadf6.js → theme-wrapper-d753e207.js} +2 -2
- package/dist/cjs/{translations-ed68775f.js → translations-ed4a53af.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/test/tet-compare-card-v2.spec.js +42 -0
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +7860 -0
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +736 -0
- package/dist/components/index.js +3 -1
- package/dist/components/{p-50c52fb2.js → p-0832f5aa.js} +1 -1
- package/dist/components/{p-be1f946f.js → p-0db91e85.js} +4 -4
- package/dist/components/{p-6830b44d.js → p-0f3158fd.js} +2 -2
- package/dist/components/{p-aca28e71.js → p-14a1ad7c.js} +1 -1
- package/dist/components/{p-c656c370.js → p-17e69e3a.js} +2 -2
- package/dist/components/{p-504e911b.js → p-18c88a11.js} +1 -1
- package/dist/components/{p-4d586778.js → p-1d5f78ed.js} +9 -9
- package/dist/components/{p-c365367f.js → p-271b9297.js} +3 -3
- package/dist/components/{p-a92f6b38.js → p-2af997d2.js} +14 -14
- package/dist/components/{p-c4f3dcb1.js → p-2d12d3cc.js} +1 -1
- package/dist/components/{p-adc2acdb.js → p-36afc9d0.js} +6 -6
- package/dist/components/{p-a0d406ca.js → p-4d00761a.js} +1 -1
- package/dist/components/{p-c9f72086.js → p-4e77196b.js} +2 -2
- package/dist/components/{p-af8f7b1d.js → p-54202f73.js} +2 -2
- package/dist/components/{p-207c4b5d.js → p-56afe36a.js} +3 -3
- package/dist/components/{p-3dc2183b.js → p-571e3251.js} +1 -1
- package/dist/components/{p-37ed3ebb.js → p-599035b8.js} +1 -1
- package/dist/components/{p-763fc23e.js → p-5cb8f0f9.js} +3 -3
- package/dist/components/{p-3358b104.js → p-60140397.js} +3 -3
- package/dist/components/{p-0a9fb3c4.js → p-618442a2.js} +2 -2
- package/dist/components/{p-659824f8.js → p-642d5f4a.js} +1 -1
- package/dist/components/{p-8b3d80aa.js → p-657d3ace.js} +1 -1
- package/dist/components/{p-902a69e5.js → p-668d8ce8.js} +1 -1
- package/dist/components/{p-10811f2d.js → p-6ea57810.js} +1 -1
- package/dist/components/{p-5645dd41.js → p-7526b39a.js} +7 -7
- package/dist/components/{p-ae4b6ba7.js → p-76950bcc.js} +3 -3
- package/dist/components/{p-02399f8e.js → p-7ab0047d.js} +2 -2
- package/dist/components/{p-93cca75b.js → p-7ff8145b.js} +7 -7
- package/dist/components/{p-1c79ee4e.js → p-80dee0f7.js} +3 -3
- package/dist/components/{p-ef961ffc.js → p-82525b58.js} +1 -1
- package/dist/components/{p-eb9b5f91.js → p-88a4574a.js} +1 -1
- package/dist/components/{p-8fcf42d3.js → p-8cbcbaa3.js} +2 -2
- package/dist/components/{p-b81a320a.js → p-9273cd8b.js} +3 -3
- package/dist/components/{p-a80b68c0.js → p-9620c891.js} +10 -10
- package/dist/components/{p-a141151a.js → p-9dc29063.js} +1 -1
- package/dist/components/{p-fa3ec733.js → p-a24316dc.js} +2 -2
- package/dist/components/{p-f548bf03.js → p-a348eea2.js} +3 -3
- package/dist/components/{p-a81e545d.js → p-a92e8daf.js} +1 -1
- package/dist/components/{p-a60885a9.js → p-ac5fceaf.js} +2 -2
- package/dist/components/{p-4a62809b.js → p-aeb84206.js} +11 -33
- package/dist/components/{p-5c8c2d8d.js → p-b8a43772.js} +1 -1
- package/dist/components/{p-88b42c67.js → p-bd781cf7.js} +1 -1
- package/dist/components/{p-b05b300b.js → p-c1124e8b.js} +2 -2
- package/dist/components/{p-48a1a0e4.js → p-c96d6546.js} +1 -1
- package/dist/components/p-cd24f10f.js +26 -0
- package/dist/components/{p-647c5edc.js → p-cf01507c.js} +6 -6
- package/dist/components/{p-705296ed.js → p-cffd5888.js} +1 -1
- package/dist/components/{p-feaaeb2d.js → p-d120fe4e.js} +2 -2
- package/dist/components/{p-ecb0207c.js → p-d22364a1.js} +1 -1
- package/dist/components/{p-1dfb07e1.js → p-d8721d5f.js} +1 -1
- package/dist/components/{p-1e4d2d49.js → p-e3eb7228.js} +2 -2
- package/dist/components/{p-23227816.js → p-eaeda9ee.js} +4 -4
- package/dist/components/{p-489ae3a0.js → p-fd3516f1.js} +1 -1
- package/dist/components/tet-accordion.js +1 -1
- package/dist/components/tet-address-offers-filters-products.js +1 -1
- package/dist/components/tet-address-offers-filters.js +1 -1
- package/dist/components/tet-address-offers-view.js +25 -25
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-asset-addresses.js +13 -13
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +5 -5
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-compare-card.js +6 -6
- package/dist/components/tet-b2b-configurator-cart.js +5 -5
- package/dist/components/tet-b2b-service-calculator.js +8 -8
- package/dist/components/tet-banner-nav.js +3 -3
- package/dist/components/tet-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +3 -3
- package/dist/components/tet-business-lines.js +5 -5
- package/dist/components/tet-business-navigation.js +2 -2
- package/dist/components/tet-business-round-stepper.js +2 -2
- package/dist/components/tet-business-summary-card.js +5 -5
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +3 -3
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +8 -8
- package/dist/components/tet-cloud-configurator.js +11 -11
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.d.ts +11 -0
- package/dist/components/tet-compare-card-v2.js +370 -0
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +16 -15
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +9 -9
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-customer-assets.js +8 -8
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +6 -6
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +4 -4
- package/dist/components/tet-expandable-input.js +3 -3
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-filter.js +4 -4
- package/dist/components/tet-font-weight.js +1 -1
- package/dist/components/tet-fonts.js +1 -1
- package/dist/components/tet-grid.js +1 -1
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +2 -2
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-label.js +3 -3
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +11 -11
- package/dist/components/tet-menu-mobile.js +2 -2
- package/dist/components/tet-menu.js +2 -2
- package/dist/components/tet-multi-step-dialog.js +5 -5
- package/dist/components/tet-navigation-mobile.js +2 -2
- package/dist/components/tet-news-card-list.js +4 -4
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +7 -7
- package/dist/components/tet-round-stepper.js +2 -2
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v2.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-stepper.js +1 -1
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +3 -3
- package/dist/components/tet-tag-group.js +1 -1
- package/dist/components/tet-tag.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v2.js +5 -5
- package/dist/components/tet-thank-you-view-v3.js +5 -5
- package/dist/components/tet-thank-you-view.js +4 -4
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +1 -1
- package/dist/components/tet-tv-gift-list.js +2 -2
- package/dist/esm/{address-979a9993.js → address-b0117ba0.js} +1 -1
- package/dist/esm/{assets-b971f105.js → assets-37a5c8c3.js} +1 -1
- package/dist/esm/{async-request-6675e5f5.js → async-request-cf9b4a3e.js} +1 -1
- package/dist/esm/{http-codes-7faa9f6e.js → http-codes-81b59da4.js} +1 -1
- package/dist/esm/{index-7f1e2a22.js → index-ce62f11b.js} +17 -13
- package/dist/esm/{index-1bf36cb9.js → index-d502e34e.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{old-utils-be2d226e.js → old-utils-da559140.js} +1 -25
- package/dist/esm/{phone-ed2205b3.js → phone-92480bd8.js} +2 -2
- package/dist/esm/product-comparison-14cff1f8.js +26 -0
- package/dist/esm/tet-accordion.entry.js +1 -1
- package/dist/esm/{tet-address-offers-filters-products_3.entry.js → tet-address-offers-filters-products_2.entry.js} +4 -376
- package/dist/esm/tet-address-offers-view.entry.js +3 -3
- package/dist/esm/tet-address-offers_4.entry.js +7 -7
- package/dist/esm/tet-address-search.entry.js +4 -4
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
- package/dist/esm/tet-autocomplete_2.entry.js +1 -1
- package/dist/esm/tet-b2b-compare-card.entry.js +3 -3
- package/dist/esm/tet-b2b-configurator-cart.entry.js +3 -3
- package/dist/esm/tet-b2b-service-calculator.entry.js +3 -3
- package/dist/esm/tet-banner-nav.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +1 -1
- package/dist/esm/tet-business-lines.entry.js +4 -4
- package/dist/esm/tet-business-navigation.entry.js +1 -1
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-business-summary-card.entry.js +3 -3
- package/dist/esm/tet-button.entry.js +1 -1
- package/dist/esm/tet-card-list.entry.js +1 -1
- package/dist/esm/tet-carousel.entry.js +1 -1
- package/dist/esm/tet-checkbox_3.entry.js +804 -0
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +1 -1
- package/dist/esm/tet-compare-card-v2.entry.js +286 -0
- package/dist/esm/tet-compare-cards-tab.entry.js +4 -3
- package/dist/esm/tet-compare-cards_2.entry.js +4 -3
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-contact-form.entry.js +5 -5
- package/dist/esm/tet-contact-info.entry.js +1 -1
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-customer-assets.entry.js +3 -3
- package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
- package/dist/esm/tet-datepicker.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +3 -3
- package/dist/esm/tet-dynamic-card.entry.js +1 -1
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +1 -1
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +1 -1
- package/dist/esm/tet-fonts.entry.js +1 -1
- package/dist/esm/tet-grid.entry.js +1 -1
- package/dist/esm/tet-icon.entry.js +2 -2
- package/dist/esm/tet-inline-message.entry.js +1 -1
- package/dist/esm/tet-input.entry.js +3 -3
- package/dist/esm/tet-label.entry.js +3 -3
- package/dist/esm/tet-layout.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +1 -1
- package/dist/esm/tet-loader.entry.js +1 -1
- package/dist/esm/tet-macd-view.entry.js +6 -6
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
- package/dist/esm/tet-navigation-mobile.entry.js +1 -1
- package/dist/esm/tet-news-card-list.entry.js +1 -1
- package/dist/esm/tet-notification.entry.js +1 -1
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-placeholder.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio.entry.js +1 -1
- package/dist/esm/{tet-range-slider_2.entry.js → tet-range-slider.entry.js} +2 -45
- package/dist/esm/tet-referral.entry.js +5 -5
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-stepper-input.entry.js +3 -3
- package/dist/esm/tet-stepper-v2.entry.js +1 -1
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-stepper.entry.js +1 -1
- package/dist/esm/tet-switch.entry.js +46 -0
- package/dist/esm/tet-tab-header.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +3 -3
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +1 -1
- package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/tet-thank-you-view.entry.js +1 -1
- package/dist/esm/tet-tv-gift-block.entry.js +1 -1
- package/dist/esm/tet-tv-gift-list.entry.js +1 -1
- package/dist/esm/{theme-wrapper-6e6b2089.js → theme-wrapper-bf063190.js} +2 -2
- package/dist/esm/{translations-eff34607.js → translations-4ce15979.js} +1 -1
- package/dist/tet-components/{p-cf7d5c84.js → p-010882b8.js} +1 -1
- package/dist/tet-components/{p-3099ed23.entry.js → p-02f33ac1.entry.js} +1 -1
- package/dist/tet-components/{p-fd4c0831.entry.js → p-0f54e651.entry.js} +1 -1
- package/dist/tet-components/{p-55819f09.entry.js → p-102f23ff.entry.js} +1 -1
- package/dist/tet-components/{p-61818927.entry.js → p-106fa96e.entry.js} +1 -1
- package/dist/tet-components/{p-8b455701.entry.js → p-15fbf2b6.entry.js} +1 -1
- package/dist/tet-components/p-1a36b723.entry.js +1 -0
- package/dist/tet-components/{p-4e3c6172.entry.js → p-1a8a60ac.entry.js} +1 -1
- package/dist/tet-components/p-1d14c865.js +2 -0
- package/dist/tet-components/{p-3bf8a104.entry.js → p-1e82f209.entry.js} +1 -1
- package/dist/tet-components/{p-641c5d9d.entry.js → p-2230b86a.entry.js} +1 -1
- package/dist/tet-components/{p-0ecf034c.entry.js → p-22a8a7cc.entry.js} +1 -1
- package/dist/tet-components/{p-a89a8dca.entry.js → p-292d2657.entry.js} +1 -1
- package/dist/tet-components/{p-25449f2a.entry.js → p-2c5055af.entry.js} +1 -1
- package/dist/tet-components/{p-0ca72362.entry.js → p-3075e452.entry.js} +1 -1
- package/dist/tet-components/{p-118bad7e.entry.js → p-317c3cf0.entry.js} +1 -1
- package/dist/tet-components/{p-cc73c6bf.entry.js → p-31c4177c.entry.js} +1 -1
- package/dist/tet-components/{p-de142575.js → p-34a97f00.js} +1 -1
- package/dist/tet-components/p-34ad6a97.entry.js +1 -0
- package/dist/tet-components/{p-b5706ef0.entry.js → p-3517bd2b.entry.js} +1 -1
- package/dist/tet-components/{p-8cbb30a1.entry.js → p-3e5a0308.entry.js} +1 -1
- package/dist/tet-components/{p-f76f171b.entry.js → p-3e8c7e1f.entry.js} +1 -1
- package/dist/tet-components/{p-33807857.entry.js → p-4074482b.entry.js} +1 -1
- package/dist/tet-components/{p-f09325e9.entry.js → p-44ace246.entry.js} +1 -1
- package/dist/tet-components/{p-74275f2b.entry.js → p-4510a50a.entry.js} +1 -1
- package/dist/tet-components/{p-71e2fe80.js → p-4659d37a.js} +1 -1
- package/dist/tet-components/{p-7a89815d.entry.js → p-476faca5.entry.js} +1 -1
- package/dist/tet-components/{p-a844fa98.entry.js → p-4b6e0078.entry.js} +1 -1
- package/dist/tet-components/p-4d9d4fc6.entry.js +1 -0
- package/dist/tet-components/p-4e747f8a.js +1 -0
- package/dist/tet-components/{p-966eaa17.entry.js → p-50b61730.entry.js} +1 -1
- package/dist/tet-components/{p-759be092.entry.js → p-52d88a30.entry.js} +1 -1
- package/dist/tet-components/{p-beeb3cae.entry.js → p-536ebeaa.entry.js} +1 -1
- package/dist/tet-components/p-5826ec7a.entry.js +1 -0
- package/dist/tet-components/{p-37958859.entry.js → p-5a3ea6ce.entry.js} +1 -1
- package/dist/tet-components/{p-47618056.entry.js → p-5c57bab3.entry.js} +1 -1
- package/dist/tet-components/{p-82f67011.entry.js → p-61ca5b01.entry.js} +1 -1
- package/dist/tet-components/{p-7a12782b.entry.js → p-61ee03a9.entry.js} +1 -1
- package/dist/tet-components/p-62523d32.entry.js +1 -0
- package/dist/tet-components/{p-c2d3f622.entry.js → p-645606a4.entry.js} +1 -1
- package/dist/tet-components/{p-f9d096b2.entry.js → p-6b0c3899.entry.js} +1 -1
- package/dist/tet-components/{p-12e11e54.entry.js → p-6fab0aec.entry.js} +1 -1
- package/dist/tet-components/{p-c592f222.entry.js → p-79068803.entry.js} +1 -1
- package/dist/tet-components/{p-970a3fc5.entry.js → p-7a9e7772.entry.js} +1 -1
- package/dist/tet-components/{p-63184613.entry.js → p-7f80fe87.entry.js} +1 -1
- package/dist/tet-components/{p-96b88c24.entry.js → p-82ba6285.entry.js} +1 -1
- package/dist/tet-components/{p-3019fe9e.entry.js → p-8336e612.entry.js} +1 -1
- package/dist/tet-components/{p-93fcdf8f.entry.js → p-8848f88f.entry.js} +1 -1
- package/dist/tet-components/{p-7210bb04.entry.js → p-89125992.entry.js} +1 -1
- package/dist/tet-components/{p-6c69e565.entry.js → p-8b8e658d.entry.js} +1 -1
- package/dist/tet-components/p-8b9f2ed6.js +1 -0
- package/dist/tet-components/{p-0817992c.entry.js → p-8fdf79e7.entry.js} +1 -1
- package/dist/tet-components/{p-108cd149.entry.js → p-94b957c3.entry.js} +1 -1
- package/dist/tet-components/{p-e263ecdf.js → p-9506192e.js} +1 -1
- package/dist/tet-components/{p-d2ea6733.entry.js → p-958a6ba0.entry.js} +1 -1
- package/dist/tet-components/{p-17a4096b.entry.js → p-96a1d750.entry.js} +1 -1
- package/dist/tet-components/{p-d4603ec3.entry.js → p-9727e33f.entry.js} +1 -1
- package/dist/tet-components/p-975cd1ca.entry.js +1 -0
- package/dist/tet-components/{p-3588d98e.entry.js → p-979914a2.entry.js} +1 -1
- package/dist/tet-components/{p-79255c00.entry.js → p-98277c90.entry.js} +1 -1
- package/dist/tet-components/{p-04a794db.entry.js → p-a0a53bfe.entry.js} +1 -1
- package/dist/tet-components/{p-362e5e9e.entry.js → p-a2648f6a.entry.js} +1 -1
- package/dist/tet-components/{p-5b360a66.entry.js → p-a4a01207.entry.js} +1 -1
- package/dist/tet-components/{p-ead19172.entry.js → p-a7764c8f.entry.js} +1 -1
- package/dist/tet-components/{p-77372984.js → p-aba811f3.js} +1 -1
- package/dist/tet-components/{p-c4812370.entry.js → p-b0c3808f.entry.js} +1 -1
- package/dist/tet-components/{p-c1294aa0.entry.js → p-b2bb8175.entry.js} +1 -1
- package/dist/tet-components/{p-e596991f.entry.js → p-b7f82689.entry.js} +1 -1
- package/dist/tet-components/{p-1576d249.entry.js → p-b81187a0.entry.js} +1 -1
- package/dist/tet-components/{p-c95cf2d4.entry.js → p-bd53e3e0.entry.js} +1 -1
- package/dist/tet-components/{p-018095d9.entry.js → p-c3bb6c49.entry.js} +1 -1
- package/dist/tet-components/{p-091e774d.entry.js → p-c47543e1.entry.js} +1 -1
- package/dist/tet-components/p-c57274a4.js +1 -0
- package/dist/tet-components/{p-3ea5e48b.entry.js → p-c9b8d9e5.entry.js} +1 -1
- package/dist/tet-components/{p-12c21228.entry.js → p-cb24fe73.entry.js} +1 -1
- package/dist/tet-components/{p-59db86cf.entry.js → p-ce8db103.entry.js} +1 -1
- package/dist/tet-components/{p-bb6387c6.entry.js → p-d04ef670.entry.js} +1 -1
- package/dist/tet-components/p-d0fc4d3a.entry.js +1 -0
- package/dist/tet-components/{p-a7f3696d.entry.js → p-d2bcb315.entry.js} +1 -1
- package/dist/tet-components/{p-db666f67.entry.js → p-d7c992b5.entry.js} +1 -1
- package/dist/tet-components/{p-9ef5798e.entry.js → p-d95679b7.entry.js} +1 -1
- package/dist/tet-components/{p-36c1f441.entry.js → p-df570014.entry.js} +1 -1
- package/dist/tet-components/{p-7476cb78.entry.js → p-dfe5e9b6.entry.js} +1 -1
- package/dist/tet-components/{p-74989c7b.entry.js → p-e03d947b.entry.js} +1 -1
- package/dist/tet-components/{p-8c964cca.js → p-e4275fa3.js} +1 -1
- package/dist/tet-components/{p-406551c3.entry.js → p-e62ddf2e.entry.js} +1 -1
- package/dist/tet-components/{p-0d4242c6.entry.js → p-ec92e5b7.entry.js} +1 -1
- package/dist/tet-components/{p-dcbe09b5.js → p-ec9cfda2.js} +1 -1
- package/dist/tet-components/{p-2f029068.entry.js → p-ed23ebf6.entry.js} +1 -1
- package/dist/tet-components/{p-27e3fced.entry.js → p-f02bfffd.entry.js} +1 -1
- package/dist/tet-components/{p-7e9c8900.entry.js → p-f7b95248.entry.js} +1 -1
- package/dist/tet-components/{p-13ed6385.entry.js → p-f9f96d38.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components.d.ts +211 -0
- package/package.json +1 -1
- package/dist/cjs/tet-checkbox.cjs.entry.js +0 -73
- package/dist/cjs/tet-tooltip.cjs.entry.js +0 -370
- package/dist/esm/tet-checkbox.entry.js +0 -69
- package/dist/esm/tet-tooltip.entry.js +0 -366
- package/dist/tet-components/p-1ec7f341.js +0 -2
- package/dist/tet-components/p-43fddd56.js +0 -1
- package/dist/tet-components/p-66212f0d.entry.js +0 -1
- package/dist/tet-components/p-6b876ac5.entry.js +0 -1
- package/dist/tet-components/p-7cb9062d.entry.js +0 -1
- package/dist/tet-components/p-b2b384d2.js +0 -1
- package/dist/tet-components/p-b523a8b6.entry.js +0 -1
- package/dist/tet-components/p-ef2c9d65.entry.js +0 -1
- package/dist/tet-components/p-f0de0420.entry.js +0 -1
|
@@ -0,0 +1,736 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { productComparison } from "../../../../services/api/index";
|
|
3
|
+
/**
|
|
4
|
+
* List of card for product comparison.
|
|
5
|
+
*
|
|
6
|
+
* @part compare-card-title-wrapper - Element that encompasses all the titles and subtitle.
|
|
7
|
+
*/
|
|
8
|
+
export class TetCompareCardV2 {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Renders the loader.
|
|
12
|
+
*/
|
|
13
|
+
this.renderLoader = () => {
|
|
14
|
+
return (h("div", { class: "cards" }, [...Array(1)].map(() => [h("tet-placeholder", { class: "tet-placeholder", height: "37rem", width: "21.5rem" })])));
|
|
15
|
+
};
|
|
16
|
+
this.clickCallback = () => null;
|
|
17
|
+
this.cardType = 'static';
|
|
18
|
+
this.theme = 'classic';
|
|
19
|
+
this.colorIcons = false;
|
|
20
|
+
this.bestChoice = false;
|
|
21
|
+
this.language = 'lv';
|
|
22
|
+
this.options = [];
|
|
23
|
+
this.cardBackgroundColor = undefined;
|
|
24
|
+
this.cardScript = undefined;
|
|
25
|
+
this.bestChoiceTextPosition = 'center';
|
|
26
|
+
this.darkMode = false;
|
|
27
|
+
this.bonuses = [];
|
|
28
|
+
this.benefitTitle = undefined;
|
|
29
|
+
this.benefits = [];
|
|
30
|
+
this.contractTerm = 0;
|
|
31
|
+
this.bestChoiceText = '';
|
|
32
|
+
this.currency = '';
|
|
33
|
+
this.secondaryLink = '';
|
|
34
|
+
this.secondaryLinkText = '';
|
|
35
|
+
this.secondaryLinkOpenBlank = false;
|
|
36
|
+
this.buttonTitle = '';
|
|
37
|
+
this.linkOpenBlank = false;
|
|
38
|
+
this.dropdownOptions = [];
|
|
39
|
+
this.showLoader = true;
|
|
40
|
+
this.selectedProductCode = '';
|
|
41
|
+
this.comparisonData = null;
|
|
42
|
+
this.selectedSwitchKeys = [];
|
|
43
|
+
this.preselectedKeys = [];
|
|
44
|
+
this.preselectedProductCode = '';
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @param event
|
|
48
|
+
*/
|
|
49
|
+
onOptionSelected(event) {
|
|
50
|
+
const productCode = event.detail.value;
|
|
51
|
+
this.selectedProductCode = productCode;
|
|
52
|
+
this.fetchProductComparison(productCode);
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
var _a;
|
|
56
|
+
if (this.cardType === 'dropdown') {
|
|
57
|
+
this.pushDataToDropdownOptions();
|
|
58
|
+
const preselected = this.options.find(option => option.preselected);
|
|
59
|
+
if (preselected) {
|
|
60
|
+
this.selectedProductCode = preselected.productCode;
|
|
61
|
+
this.fetchProductComparison(preselected.productCode);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (this.cardType === "switcher") {
|
|
65
|
+
const preselected = this.options.find(option => option.preselected);
|
|
66
|
+
if (preselected) {
|
|
67
|
+
this.preselectedKeys = [...preselected.keys];
|
|
68
|
+
this.preselectedProductCode = preselected.productCode;
|
|
69
|
+
this.selectedSwitchKeys = [...preselected.keys];
|
|
70
|
+
this.selectedProductCode = preselected.productCode;
|
|
71
|
+
this.fetchProductComparison(preselected.productCode);
|
|
72
|
+
}
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (this.cardType === 'static') {
|
|
76
|
+
this.selectedProductCode = ((_a = this.options.find(option => option.productCode)) === null || _a === void 0 ? void 0 : _a.productCode) || '';
|
|
77
|
+
this.fetchProductComparison(this.selectedProductCode);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
pushDataToDropdownOptions() {
|
|
81
|
+
this.options.forEach(option => {
|
|
82
|
+
this.dropdownOptions.push({
|
|
83
|
+
label: option.label || '',
|
|
84
|
+
value: option.productCode || '',
|
|
85
|
+
preselected: option.preselected || false
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
getToggledProductCode(keys) {
|
|
90
|
+
const sortedKeys = [...keys].sort().join(',');
|
|
91
|
+
const found = this.options.find(option => [...option.keys].sort().join(',') === sortedKeys);
|
|
92
|
+
return found ? found.productCode : null;
|
|
93
|
+
}
|
|
94
|
+
handleSwitchToggle(key, checked) {
|
|
95
|
+
const benefit = this.benefits.find(benefit => benefit.toggleKey === key);
|
|
96
|
+
let activeKeys = [...this.selectedSwitchKeys];
|
|
97
|
+
if (checked) {
|
|
98
|
+
if (benefit === null || benefit === void 0 ? void 0 : benefit.selectAll) {
|
|
99
|
+
const fullComboOption = this.getFullComboToggleOption();
|
|
100
|
+
if (fullComboOption) {
|
|
101
|
+
this.selectedSwitchKeys = [...fullComboOption.keys];
|
|
102
|
+
this.selectedProductCode = fullComboOption.productCode;
|
|
103
|
+
this.showLoader = true;
|
|
104
|
+
this.fetchProductComparison(fullComboOption.productCode);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
if (!activeKeys.includes(key)) {
|
|
109
|
+
activeKeys.push(key);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
const selectAllBenefit = this.benefits.find(benefit => benefit.selectAll);
|
|
114
|
+
const selectAllKey = selectAllBenefit === null || selectAllBenefit === void 0 ? void 0 : selectAllBenefit.toggleKey;
|
|
115
|
+
const fullCombo = this.getFullComboToggleOption();
|
|
116
|
+
const isFullComboActive = fullCombo &&
|
|
117
|
+
this.selectedSwitchKeys.length === fullCombo.keys.length &&
|
|
118
|
+
this.selectedSwitchKeys.every(key => fullCombo.keys.includes(key)) &&
|
|
119
|
+
fullCombo.keys.every(key => this.selectedSwitchKeys.includes(key));
|
|
120
|
+
if (isFullComboActive && key !== selectAllKey) {
|
|
121
|
+
this.selectedSwitchKeys = [...this.preselectedKeys];
|
|
122
|
+
this.selectedProductCode = this.preselectedProductCode;
|
|
123
|
+
this.showLoader = true;
|
|
124
|
+
this.fetchProductComparison(this.preselectedProductCode);
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (activeKeys.length === 1 &&
|
|
128
|
+
activeKeys[0] === key &&
|
|
129
|
+
this.preselectedKeys.length === 1 &&
|
|
130
|
+
this.preselectedKeys[0] === key) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (activeKeys.length === this.preselectedKeys.length &&
|
|
134
|
+
activeKeys.every(key => this.preselectedKeys.includes(key)) &&
|
|
135
|
+
this.preselectedKeys.every(key => activeKeys.includes(key)) &&
|
|
136
|
+
activeKeys.includes(key)) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
activeKeys = activeKeys.filter(key => key !== key);
|
|
140
|
+
if (activeKeys.length === 0) {
|
|
141
|
+
this.selectedSwitchKeys = [...this.preselectedKeys];
|
|
142
|
+
this.selectedProductCode = this.preselectedProductCode;
|
|
143
|
+
this.showLoader = true;
|
|
144
|
+
this.fetchProductComparison(this.preselectedProductCode);
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
activeKeys = activeKeys.sort();
|
|
149
|
+
const productCode = this.getToggledProductCode(activeKeys);
|
|
150
|
+
this.selectedSwitchKeys = activeKeys;
|
|
151
|
+
if (productCode) {
|
|
152
|
+
this.selectedProductCode = productCode;
|
|
153
|
+
this.showLoader = true;
|
|
154
|
+
this.fetchProductComparison(productCode);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
this.selectedProductCode = '';
|
|
158
|
+
this.comparisonData = null;
|
|
159
|
+
this.showLoader = false;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
getFullComboToggleOption() {
|
|
163
|
+
if (!this.options.length) {
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
return this.options.reduce((max, curr) => curr.keys.length > max.keys.length ? curr : max, this.options[0]);
|
|
167
|
+
}
|
|
168
|
+
async fetchProductComparison(productCode) {
|
|
169
|
+
try {
|
|
170
|
+
const response = await productComparison(productCode);
|
|
171
|
+
this.comparisonData = response['products'][productCode];
|
|
172
|
+
this.showLoader = false;
|
|
173
|
+
}
|
|
174
|
+
catch (e) {
|
|
175
|
+
console.error(e);
|
|
176
|
+
this.comparisonData = null;
|
|
177
|
+
this.showLoader = false;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
selectedContractTerm() {
|
|
181
|
+
var _a;
|
|
182
|
+
if (!((_a = this.comparisonData) === null || _a === void 0 ? void 0 : _a.contractTerms)) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if (this.contractTerm !== undefined) {
|
|
186
|
+
const contractTerm = this.comparisonData.contractTerms.find(contractTerm => contractTerm.term === this.contractTerm);
|
|
187
|
+
if (contractTerm) {
|
|
188
|
+
return contractTerm;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
currentBonuses() {
|
|
193
|
+
var _a;
|
|
194
|
+
const option = this.options.find(option => option.productCode === this.selectedProductCode);
|
|
195
|
+
return (_a = option === null || option === void 0 ? void 0 : option.bonuses) !== null && _a !== void 0 ? _a : [];
|
|
196
|
+
}
|
|
197
|
+
getTheme() {
|
|
198
|
+
if (this.darkMode) {
|
|
199
|
+
if (this.theme === 'classic' || this.theme === 'light' || this.theme === 'dark') {
|
|
200
|
+
return `dark ${this.theme}`;
|
|
201
|
+
}
|
|
202
|
+
return 'dark grey';
|
|
203
|
+
}
|
|
204
|
+
return this.theme;
|
|
205
|
+
}
|
|
206
|
+
benefitHandler(benefit) {
|
|
207
|
+
const benefitAsLink = benefit.dataAttributes && Object.keys(benefit.dataAttributes).length > 0;
|
|
208
|
+
const benefitAsImg = !!benefit.img;
|
|
209
|
+
return (h("div", { class: "benefit", key: benefit.toggleKey }, benefitAsImg ? (h("img", { src: benefit.img, class: "benefit__icon benefit__img" })) : (h("tet-icon", { class: "benefit__icon icon", name: benefit.icon })), benefitAsLink ? (h("a", Object.assign({ class: "benefit__name benefit__link" }, (benefit.dataAttributes || {})), benefit.name)) : (h("span", { class: "benefit__name" }, benefit.name))));
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Renders the card body.
|
|
213
|
+
* @returns rendered card body.
|
|
214
|
+
*/
|
|
215
|
+
renderCard() {
|
|
216
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
217
|
+
if (!this.comparisonData) {
|
|
218
|
+
return this.renderLoader();
|
|
219
|
+
}
|
|
220
|
+
// Get data for rendering
|
|
221
|
+
const contractTermData = this.selectedContractTerm();
|
|
222
|
+
const overridePoductAttribute = (_a = this.comparisonData) === null || _a === void 0 ? void 0 : _a.attributes.find(attr => attr.key === 'overrideProductName');
|
|
223
|
+
const overridePoductName = overridePoductAttribute === null || overridePoductAttribute === void 0 ? void 0 : overridePoductAttribute.value;
|
|
224
|
+
const mainTitle = overridePoductName !== null && overridePoductName !== void 0 ? overridePoductName : (_c = (_b = this.comparisonData) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c[this.language];
|
|
225
|
+
const price = contractTermData.amount.toString();
|
|
226
|
+
const promotionCode = (_d = contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.promotionCode) !== null && _d !== void 0 ? _d : '';
|
|
227
|
+
const term = (_e = contractTermData.term) !== null && _e !== void 0 ? _e : '';
|
|
228
|
+
const priceDescription = (_f = contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.priceDescription) !== null && _f !== void 0 ? _f : 'Īpašā cena spēkā jauniem klientiem pirmos 24 mēnešus, pēc tam - tā brīža standarta cena.';
|
|
229
|
+
const secondaryLink = (_g = contractTermData === null || contractTermData === void 0 ? void 0 : contractTermData.contract) !== null && _g !== void 0 ? _g : '';
|
|
230
|
+
const baseUrl = ((_j = (_h = this.comparisonData) === null || _h === void 0 ? void 0 : _h.formUrl) === null || _j === void 0 ? void 0 : _j[this.language]) || '';
|
|
231
|
+
const params = new URLSearchParams({
|
|
232
|
+
contractTerm: (_k = term === null || term === void 0 ? void 0 : term.toString()) !== null && _k !== void 0 ? _k : '',
|
|
233
|
+
product: this.selectedProductCode,
|
|
234
|
+
promotion: promotionCode !== null && promotionCode !== void 0 ? promotionCode : '',
|
|
235
|
+
lang: (_l = this.language) !== null && _l !== void 0 ? _l : '',
|
|
236
|
+
from: 'tet.lv'
|
|
237
|
+
});
|
|
238
|
+
const link = `${baseUrl}${baseUrl.includes('?') ? '&' : '?'}${params.toString()}`;
|
|
239
|
+
const currentBonuses = this.currentBonuses();
|
|
240
|
+
const isBestChoice = ((_m = this.options.find(options => options.productCode === this.selectedProductCode)) === null || _m === void 0 ? void 0 : _m.bestChoice) || false;
|
|
241
|
+
return (h("div", { onClick: this.clickCallback, onKeyDown: () => { }, class: {
|
|
242
|
+
'card': true,
|
|
243
|
+
[`${this.cardType}`]: true,
|
|
244
|
+
[`${this.getTheme()}`]: true,
|
|
245
|
+
'best-choice': isBestChoice,
|
|
246
|
+
'dark-mode': this.darkMode
|
|
247
|
+
}, style: !this.darkMode ? { backgroundColor: this.cardBackgroundColor } : {} }, h("div", { class: {
|
|
248
|
+
'best-choice-title': true,
|
|
249
|
+
'active': isBestChoice,
|
|
250
|
+
[`${this.bestChoiceTextPosition}`]: true
|
|
251
|
+
} }, this.bestChoiceText), h("div", { class: "compare-card-half-60" }, h("div", { class: "content top" }, mainTitle ? (h("div", { class: {
|
|
252
|
+
'title-wrapper': true,
|
|
253
|
+
'js-resize-title': true
|
|
254
|
+
}, part: "compare-card-title-wrapper" }, h("h3", { class: "main-title" }, mainTitle))) : (''), h("div", { class: "price js-resize-price" }, price && !isNaN(parseFloat(price)) ? (h("div", { class: {
|
|
255
|
+
'price-wrapper': true
|
|
256
|
+
} }, h("div", { class: "price-container" }, h("div", { class: "new-price translation-none" }, parseFloat(price.replace(',', '.')).toFixed(2).replace('.', ',')), h("div", { class: "currency" }, h("span", null, this.currency))), priceDescription ? (h("span", { class: "price-description" }, priceDescription)) : (''))) : ('')), currentBonuses.length > 0 && (h("div", { class: "bonuses-wrapper" }, currentBonuses.map(bonus => (h("div", { class: "bonuss" }, h("tet-icon", { class: "bonuss__icon icon", name: "add" }), h("span", { class: "bonuss__text" }, bonus.name)))))), h("tet-button", { class: "button", type: "primary", theme: "yellow", url: link, urlTarget: this.linkOpenBlank ? '_blank' : '_self' }, this.buttonTitle))), h("div", { class: "compare-card-half-40" }, h("div", { class: "content bottom" }, this.cardType === 'dropdown' && this.benefits.length > 0 ? (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), (_o = this === null || this === void 0 ? void 0 : this.benefits) === null || _o === void 0 ? void 0 :
|
|
257
|
+
_o.map((benefit) => (this.benefitHandler(benefit))), h("tet-dropdown", { id: "dropdown", class: "dropdown", "button-label": "", "close-on-selection": "true", "flex-layout": "true", options: this.dropdownOptions }))) : (''), this.cardType === 'switcher' && this.benefits.length > 0 && (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), this.benefits.map((benefit) => {
|
|
258
|
+
const benefitAsLink = benefit.dataAttributes && Object.keys(benefit.dataAttributes).length > 0;
|
|
259
|
+
const benefitAsImg = !!benefit.img;
|
|
260
|
+
// Is this switch the only active one and preselected?
|
|
261
|
+
const isOnlyActivePreselected = this.selectedSwitchKeys.length === 1 &&
|
|
262
|
+
this.selectedSwitchKeys[0] === benefit.toggleKey &&
|
|
263
|
+
this.preselectedKeys.length === 1 &&
|
|
264
|
+
this.preselectedKeys[0] === benefit.toggleKey;
|
|
265
|
+
// For multi-preselected combo:
|
|
266
|
+
const isMultiPreselected = this.selectedSwitchKeys.length === this.preselectedKeys.length &&
|
|
267
|
+
this.selectedSwitchKeys.every(k => this.preselectedKeys.includes(k)) &&
|
|
268
|
+
this.preselectedKeys.every(k => this.selectedSwitchKeys.includes(k));
|
|
269
|
+
// Disable if it's the only active preselected, or the current set matches a multi-preselected group
|
|
270
|
+
const shouldDisableSwitch = isOnlyActivePreselected ||
|
|
271
|
+
(isMultiPreselected && this.selectedSwitchKeys.includes(benefit.toggleKey));
|
|
272
|
+
return (h("div", { class: "benefit", key: benefit.toggleKey }, benefitAsImg ? (h("img", { src: benefit.img, class: "benefit__icon benefit__img" })) : (h("tet-icon", { class: "benefit__icon icon", name: benefit.icon })), benefitAsLink ? (h("a", Object.assign({ class: "benefit__name benefit__link" }, (benefit.dataAttributes || {})), benefit.name)) : (h("span", { class: "benefit__name" }, benefit.name)), h("tet-switch", { name: benefit.toggleKey, checked: this.selectedSwitchKeys.includes(benefit.toggleKey), disabled: shouldDisableSwitch, onCheck: e => this.handleSwitchToggle(benefit.toggleKey, e.detail.checked) })));
|
|
273
|
+
}))), this.cardType === 'static' && this.benefits.length > 0 ? (h("div", { class: "benefit-wrapper" }, h("span", { class: "benefit-title" }, this.benefitTitle), (_p = this === null || this === void 0 ? void 0 : this.benefits) === null || _p === void 0 ? void 0 :
|
|
274
|
+
_p.map((benefit) => (this.benefitHandler(benefit))))) : (''), h("div", { class: "button-wrapper" }, secondaryLink && this.secondaryLinkText && (h("div", { class: {
|
|
275
|
+
'secondary-link': true
|
|
276
|
+
} }, this.secondaryLinkOpenBlank ? (h("a", { target: "_blank", href: secondaryLink }, this.secondaryLinkText)) : (h("a", { href: secondaryLink }, this.secondaryLinkText))))))), this.cardScript ? h("link", { href: this.cardScript, rel: "stylesheet", type: "text/css" }) : ''));
|
|
277
|
+
}
|
|
278
|
+
render() {
|
|
279
|
+
return this.renderCard();
|
|
280
|
+
}
|
|
281
|
+
static get is() { return "tet-compare-card-v2"; }
|
|
282
|
+
static get encapsulation() { return "shadow"; }
|
|
283
|
+
static get originalStyleUrls() {
|
|
284
|
+
return {
|
|
285
|
+
"$": ["tet-compare-card-v2.scss"]
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
static get styleUrls() {
|
|
289
|
+
return {
|
|
290
|
+
"$": ["tet-compare-card-v2.css"]
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
static get properties() {
|
|
294
|
+
return {
|
|
295
|
+
"clickCallback": {
|
|
296
|
+
"type": "unknown",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "() => any",
|
|
300
|
+
"resolved": "() => any",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": false,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [],
|
|
307
|
+
"text": "The callback function to execute on button click."
|
|
308
|
+
},
|
|
309
|
+
"defaultValue": "() => null"
|
|
310
|
+
},
|
|
311
|
+
"cardType": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"mutable": false,
|
|
314
|
+
"complexType": {
|
|
315
|
+
"original": "'dropdown' | 'switcher' | 'static'",
|
|
316
|
+
"resolved": "\"dropdown\" | \"static\" | \"switcher\"",
|
|
317
|
+
"references": {}
|
|
318
|
+
},
|
|
319
|
+
"required": false,
|
|
320
|
+
"optional": false,
|
|
321
|
+
"docs": {
|
|
322
|
+
"tags": [],
|
|
323
|
+
"text": "The size of the button."
|
|
324
|
+
},
|
|
325
|
+
"attribute": "card-type",
|
|
326
|
+
"reflect": false,
|
|
327
|
+
"defaultValue": "'static'"
|
|
328
|
+
},
|
|
329
|
+
"theme": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"mutable": false,
|
|
332
|
+
"complexType": {
|
|
333
|
+
"original": "'light' | 'dark' | ServiceAvailabilityServicesCategoryTheme",
|
|
334
|
+
"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\"",
|
|
335
|
+
"references": {
|
|
336
|
+
"ServiceAvailabilityServicesCategoryTheme": {
|
|
337
|
+
"location": "import",
|
|
338
|
+
"path": "@services/api",
|
|
339
|
+
"id": "src/services/api/index.ts::ServiceAvailabilityServicesCategoryTheme"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"required": false,
|
|
344
|
+
"optional": false,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": "The theme of the card."
|
|
348
|
+
},
|
|
349
|
+
"attribute": "theme",
|
|
350
|
+
"reflect": false,
|
|
351
|
+
"defaultValue": "'classic'"
|
|
352
|
+
},
|
|
353
|
+
"colorIcons": {
|
|
354
|
+
"type": "boolean",
|
|
355
|
+
"mutable": false,
|
|
356
|
+
"complexType": {
|
|
357
|
+
"original": "boolean",
|
|
358
|
+
"resolved": "boolean",
|
|
359
|
+
"references": {}
|
|
360
|
+
},
|
|
361
|
+
"required": false,
|
|
362
|
+
"optional": false,
|
|
363
|
+
"docs": {
|
|
364
|
+
"tags": [],
|
|
365
|
+
"text": "Determines whether the card has bullet point icons colored based on current theme."
|
|
366
|
+
},
|
|
367
|
+
"attribute": "color-icons",
|
|
368
|
+
"reflect": false,
|
|
369
|
+
"defaultValue": "false"
|
|
370
|
+
},
|
|
371
|
+
"bestChoice": {
|
|
372
|
+
"type": "boolean",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "boolean",
|
|
376
|
+
"resolved": "boolean",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "The disabled state of the bestChoice card."
|
|
384
|
+
},
|
|
385
|
+
"attribute": "best-choice",
|
|
386
|
+
"reflect": false,
|
|
387
|
+
"defaultValue": "false"
|
|
388
|
+
},
|
|
389
|
+
"language": {
|
|
390
|
+
"type": "string",
|
|
391
|
+
"mutable": false,
|
|
392
|
+
"complexType": {
|
|
393
|
+
"original": "string",
|
|
394
|
+
"resolved": "string",
|
|
395
|
+
"references": {}
|
|
396
|
+
},
|
|
397
|
+
"required": false,
|
|
398
|
+
"optional": false,
|
|
399
|
+
"docs": {
|
|
400
|
+
"tags": [],
|
|
401
|
+
"text": "The language of the component."
|
|
402
|
+
},
|
|
403
|
+
"attribute": "language",
|
|
404
|
+
"reflect": false,
|
|
405
|
+
"defaultValue": "'lv'"
|
|
406
|
+
},
|
|
407
|
+
"options": {
|
|
408
|
+
"type": "unknown",
|
|
409
|
+
"mutable": false,
|
|
410
|
+
"complexType": {
|
|
411
|
+
"original": "CompareCardInterface[]",
|
|
412
|
+
"resolved": "CompareCardInterface[]",
|
|
413
|
+
"references": {
|
|
414
|
+
"CompareCardInterface": {
|
|
415
|
+
"location": "local",
|
|
416
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.tsx",
|
|
417
|
+
"id": "src/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.tsx::CompareCardInterface"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"required": false,
|
|
422
|
+
"optional": false,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [],
|
|
425
|
+
"text": "This prop defines the behaviour of the results that will be shown in the component.\nEither generic or personalized."
|
|
426
|
+
},
|
|
427
|
+
"defaultValue": "[]"
|
|
428
|
+
},
|
|
429
|
+
"cardBackgroundColor": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"mutable": false,
|
|
432
|
+
"complexType": {
|
|
433
|
+
"original": "string",
|
|
434
|
+
"resolved": "string",
|
|
435
|
+
"references": {}
|
|
436
|
+
},
|
|
437
|
+
"required": false,
|
|
438
|
+
"optional": false,
|
|
439
|
+
"docs": {
|
|
440
|
+
"tags": [],
|
|
441
|
+
"text": "This prop defines card background color."
|
|
442
|
+
},
|
|
443
|
+
"attribute": "card-background-color",
|
|
444
|
+
"reflect": false
|
|
445
|
+
},
|
|
446
|
+
"cardScript": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"mutable": false,
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "string",
|
|
451
|
+
"resolved": "string",
|
|
452
|
+
"references": {}
|
|
453
|
+
},
|
|
454
|
+
"required": false,
|
|
455
|
+
"optional": false,
|
|
456
|
+
"docs": {
|
|
457
|
+
"tags": [],
|
|
458
|
+
"text": "This prop defines card style imports."
|
|
459
|
+
},
|
|
460
|
+
"attribute": "card-script",
|
|
461
|
+
"reflect": false
|
|
462
|
+
},
|
|
463
|
+
"bestChoiceTextPosition": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"mutable": false,
|
|
466
|
+
"complexType": {
|
|
467
|
+
"original": "'left' | 'center' | 'right'",
|
|
468
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
469
|
+
"references": {}
|
|
470
|
+
},
|
|
471
|
+
"required": false,
|
|
472
|
+
"optional": false,
|
|
473
|
+
"docs": {
|
|
474
|
+
"tags": [],
|
|
475
|
+
"text": "This prop defines the positioning of the best choice element."
|
|
476
|
+
},
|
|
477
|
+
"attribute": "best-choice-text-position",
|
|
478
|
+
"reflect": false,
|
|
479
|
+
"defaultValue": "'center'"
|
|
480
|
+
},
|
|
481
|
+
"darkMode": {
|
|
482
|
+
"type": "boolean",
|
|
483
|
+
"mutable": false,
|
|
484
|
+
"complexType": {
|
|
485
|
+
"original": "boolean",
|
|
486
|
+
"resolved": "boolean",
|
|
487
|
+
"references": {}
|
|
488
|
+
},
|
|
489
|
+
"required": false,
|
|
490
|
+
"optional": false,
|
|
491
|
+
"docs": {
|
|
492
|
+
"tags": [],
|
|
493
|
+
"text": "This prop defines if the card is in dark mode."
|
|
494
|
+
},
|
|
495
|
+
"attribute": "dark-mode",
|
|
496
|
+
"reflect": false,
|
|
497
|
+
"defaultValue": "false"
|
|
498
|
+
},
|
|
499
|
+
"bonuses": {
|
|
500
|
+
"type": "unknown",
|
|
501
|
+
"mutable": false,
|
|
502
|
+
"complexType": {
|
|
503
|
+
"original": "string[]",
|
|
504
|
+
"resolved": "string[]",
|
|
505
|
+
"references": {}
|
|
506
|
+
},
|
|
507
|
+
"required": false,
|
|
508
|
+
"optional": false,
|
|
509
|
+
"docs": {
|
|
510
|
+
"tags": [],
|
|
511
|
+
"text": "This prop defines additional bonuses displayed on the card."
|
|
512
|
+
},
|
|
513
|
+
"defaultValue": "[]"
|
|
514
|
+
},
|
|
515
|
+
"benefitTitle": {
|
|
516
|
+
"type": "string",
|
|
517
|
+
"mutable": false,
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "string",
|
|
520
|
+
"resolved": "string",
|
|
521
|
+
"references": {}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": false,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": "This prop defines the title of benefits."
|
|
528
|
+
},
|
|
529
|
+
"attribute": "benefit-title",
|
|
530
|
+
"reflect": false
|
|
531
|
+
},
|
|
532
|
+
"benefits": {
|
|
533
|
+
"type": "unknown",
|
|
534
|
+
"mutable": false,
|
|
535
|
+
"complexType": {
|
|
536
|
+
"original": "BenefitInterface[]",
|
|
537
|
+
"resolved": "BenefitInterface[]",
|
|
538
|
+
"references": {
|
|
539
|
+
"BenefitInterface": {
|
|
540
|
+
"location": "local",
|
|
541
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.tsx",
|
|
542
|
+
"id": "src/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.tsx::BenefitInterface"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"required": false,
|
|
547
|
+
"optional": false,
|
|
548
|
+
"docs": {
|
|
549
|
+
"tags": [],
|
|
550
|
+
"text": "This prop defines benefits of the card."
|
|
551
|
+
},
|
|
552
|
+
"defaultValue": "[]"
|
|
553
|
+
},
|
|
554
|
+
"contractTerm": {
|
|
555
|
+
"type": "number",
|
|
556
|
+
"mutable": false,
|
|
557
|
+
"complexType": {
|
|
558
|
+
"original": "number",
|
|
559
|
+
"resolved": "number",
|
|
560
|
+
"references": {}
|
|
561
|
+
},
|
|
562
|
+
"required": false,
|
|
563
|
+
"optional": false,
|
|
564
|
+
"docs": {
|
|
565
|
+
"tags": [],
|
|
566
|
+
"text": "This prop defines selected contract term for the card."
|
|
567
|
+
},
|
|
568
|
+
"attribute": "contract-term",
|
|
569
|
+
"reflect": false,
|
|
570
|
+
"defaultValue": "0"
|
|
571
|
+
},
|
|
572
|
+
"bestChoiceText": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"mutable": false,
|
|
575
|
+
"complexType": {
|
|
576
|
+
"original": "string",
|
|
577
|
+
"resolved": "string",
|
|
578
|
+
"references": {}
|
|
579
|
+
},
|
|
580
|
+
"required": false,
|
|
581
|
+
"optional": false,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [],
|
|
584
|
+
"text": "This prop defines best choice text for the card."
|
|
585
|
+
},
|
|
586
|
+
"attribute": "best-choice-text",
|
|
587
|
+
"reflect": false,
|
|
588
|
+
"defaultValue": "''"
|
|
589
|
+
},
|
|
590
|
+
"currency": {
|
|
591
|
+
"type": "string",
|
|
592
|
+
"mutable": false,
|
|
593
|
+
"complexType": {
|
|
594
|
+
"original": "string",
|
|
595
|
+
"resolved": "string",
|
|
596
|
+
"references": {}
|
|
597
|
+
},
|
|
598
|
+
"required": false,
|
|
599
|
+
"optional": false,
|
|
600
|
+
"docs": {
|
|
601
|
+
"tags": [],
|
|
602
|
+
"text": "This prop defines currency for the card."
|
|
603
|
+
},
|
|
604
|
+
"attribute": "currency",
|
|
605
|
+
"reflect": false,
|
|
606
|
+
"defaultValue": "''"
|
|
607
|
+
},
|
|
608
|
+
"secondaryLink": {
|
|
609
|
+
"type": "string",
|
|
610
|
+
"mutable": false,
|
|
611
|
+
"complexType": {
|
|
612
|
+
"original": "string",
|
|
613
|
+
"resolved": "string",
|
|
614
|
+
"references": {}
|
|
615
|
+
},
|
|
616
|
+
"required": false,
|
|
617
|
+
"optional": false,
|
|
618
|
+
"docs": {
|
|
619
|
+
"tags": [],
|
|
620
|
+
"text": "This prop defines secondary link for the card."
|
|
621
|
+
},
|
|
622
|
+
"attribute": "secondary-link",
|
|
623
|
+
"reflect": false,
|
|
624
|
+
"defaultValue": "''"
|
|
625
|
+
},
|
|
626
|
+
"secondaryLinkText": {
|
|
627
|
+
"type": "string",
|
|
628
|
+
"mutable": false,
|
|
629
|
+
"complexType": {
|
|
630
|
+
"original": "string",
|
|
631
|
+
"resolved": "string",
|
|
632
|
+
"references": {}
|
|
633
|
+
},
|
|
634
|
+
"required": false,
|
|
635
|
+
"optional": false,
|
|
636
|
+
"docs": {
|
|
637
|
+
"tags": [],
|
|
638
|
+
"text": "This prop defines secondary link text for the card."
|
|
639
|
+
},
|
|
640
|
+
"attribute": "secondary-link-text",
|
|
641
|
+
"reflect": false,
|
|
642
|
+
"defaultValue": "''"
|
|
643
|
+
},
|
|
644
|
+
"secondaryLinkOpenBlank": {
|
|
645
|
+
"type": "boolean",
|
|
646
|
+
"mutable": false,
|
|
647
|
+
"complexType": {
|
|
648
|
+
"original": "boolean",
|
|
649
|
+
"resolved": "boolean",
|
|
650
|
+
"references": {}
|
|
651
|
+
},
|
|
652
|
+
"required": false,
|
|
653
|
+
"optional": false,
|
|
654
|
+
"docs": {
|
|
655
|
+
"tags": [],
|
|
656
|
+
"text": "This prop defines whether the secondary link opens in a new tab."
|
|
657
|
+
},
|
|
658
|
+
"attribute": "secondary-link-open-blank",
|
|
659
|
+
"reflect": false,
|
|
660
|
+
"defaultValue": "false"
|
|
661
|
+
},
|
|
662
|
+
"buttonTitle": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"mutable": false,
|
|
665
|
+
"complexType": {
|
|
666
|
+
"original": "string",
|
|
667
|
+
"resolved": "string",
|
|
668
|
+
"references": {}
|
|
669
|
+
},
|
|
670
|
+
"required": false,
|
|
671
|
+
"optional": false,
|
|
672
|
+
"docs": {
|
|
673
|
+
"tags": [],
|
|
674
|
+
"text": "This prop defines button title for the card."
|
|
675
|
+
},
|
|
676
|
+
"attribute": "button-title",
|
|
677
|
+
"reflect": false,
|
|
678
|
+
"defaultValue": "''"
|
|
679
|
+
},
|
|
680
|
+
"linkOpenBlank": {
|
|
681
|
+
"type": "boolean",
|
|
682
|
+
"mutable": false,
|
|
683
|
+
"complexType": {
|
|
684
|
+
"original": "boolean",
|
|
685
|
+
"resolved": "boolean",
|
|
686
|
+
"references": {}
|
|
687
|
+
},
|
|
688
|
+
"required": false,
|
|
689
|
+
"optional": false,
|
|
690
|
+
"docs": {
|
|
691
|
+
"tags": [],
|
|
692
|
+
"text": "This prop defines whether the main link opens in a new tab."
|
|
693
|
+
},
|
|
694
|
+
"attribute": "link-open-blank",
|
|
695
|
+
"reflect": false,
|
|
696
|
+
"defaultValue": "false"
|
|
697
|
+
},
|
|
698
|
+
"dropdownOptions": {
|
|
699
|
+
"type": "unknown",
|
|
700
|
+
"mutable": false,
|
|
701
|
+
"complexType": {
|
|
702
|
+
"original": "{ label: string; value: string; preselected: boolean }[]",
|
|
703
|
+
"resolved": "{ label: string; value: string; preselected: boolean; }[]",
|
|
704
|
+
"references": {}
|
|
705
|
+
},
|
|
706
|
+
"required": false,
|
|
707
|
+
"optional": false,
|
|
708
|
+
"docs": {
|
|
709
|
+
"tags": [],
|
|
710
|
+
"text": "This prop defines dropdown options for dropdown type card."
|
|
711
|
+
},
|
|
712
|
+
"defaultValue": "[]"
|
|
713
|
+
}
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
static get states() {
|
|
717
|
+
return {
|
|
718
|
+
"showLoader": {},
|
|
719
|
+
"selectedProductCode": {},
|
|
720
|
+
"comparisonData": {},
|
|
721
|
+
"selectedSwitchKeys": {},
|
|
722
|
+
"preselectedKeys": {},
|
|
723
|
+
"preselectedProductCode": {}
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
static get elementRef() { return "host"; }
|
|
727
|
+
static get listeners() {
|
|
728
|
+
return [{
|
|
729
|
+
"name": "optionSelected",
|
|
730
|
+
"method": "onOptionSelected",
|
|
731
|
+
"target": undefined,
|
|
732
|
+
"capture": false,
|
|
733
|
+
"passive": false
|
|
734
|
+
}];
|
|
735
|
+
}
|
|
736
|
+
}
|