@tet/tet-components 1.4.157-testing → 1.4.158-staging
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/format-program-start-date-zxseYpV_.js +151 -0
- package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-BPqfZGg_.js} +2 -1
- package/dist/cjs/{index-Dzs7Nkbj.js → index-BEOR8cIU.js} +1 -1
- package/dist/cjs/{index-BL_zVDFC.js → index-DRNSo5RU.js} +21 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-1j61pRJX.js} +1 -1
- package/dist/cjs/{service-availability-services-BXL7V5i1.js → service-availability-services-pWb5YaEM.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +8 -8
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers-v2.cjs.entry.js +5 -5
- package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +5 -5
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers_3.cjs.entry.js +6 -6
- package/dist/cjs/tet-address-search_2.cjs.entry.js +7 -7
- package/dist/cjs/tet-assembler_3.cjs.entry.js +4 -4
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +2 -2
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +6 -6
- package/dist/cjs/tet-b2b-configurator.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-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 +9 -9
- package/dist/cjs/{tet-checkbox_3.cjs.entry.js → tet-checkbox_2.cjs.entry.js} +1 -453
- 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-card-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- 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-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
- 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 +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-layout.cjs.entry.js +2 -2
- package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +2 -2
- 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-mini-compare-card.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 +6 -6
- package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-news-card.cjs.entry.js +2 -2
- package/dist/cjs/tet-notification.cjs.entry.js +2 -2
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-paginator.cjs.entry.js +4 -4
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
- package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-input.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
- package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-text.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-tooltip.cjs.entry.js +456 -0
- package/dist/cjs/tet-tv-program-channel-picker_3.cjs.entry.js +1465 -0
- package/dist/cjs/tet-tv-program-item.cjs.entry.js +217 -0
- package/dist/cjs/tet-tv-program-placeholders-CRvdN2bT.js +22 -0
- package/dist/cjs/tet-tv-program.cjs.entry.js +642 -3
- package/dist/cjs/{translations-Uvcq4kv8.js → translations-C5voiGIZ.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
- package/dist/collection/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.js +1 -1
- 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-news-card/tet-news-card.js +1 -1
- 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-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
- 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.js +2 -2
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +6 -6
- 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-countdown/tet-countdown.js +1 -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/menu/tet-paginator/tet-paginator.js +1 -1
- package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.css +5 -1
- 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.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.js +2 -2
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.css +21 -8
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.js +59 -39
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.css +52 -36
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +24 -30
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.css +352 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.js +488 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.mock.js +45 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.css +567 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.js +1309 -0
- package/dist/collection/components/views/tet-tv-program/test/mock-schedule-layout.js +74 -0
- package/dist/collection/components/views/tet-tv-program/tet-tv-program-placeholders.js +8 -0
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.css +777 -0
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +638 -2
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.types.js +1 -0
- package/dist/collection/components/views/tet-tv-program/utils/broadcast-time.js +26 -0
- package/dist/collection/components/views/tet-tv-program/utils/fill-program-gaps.js +44 -0
- package/dist/collection/components/views/tet-tv-program/utils/format-program-start-date.js +13 -0
- package/dist/collection/components/views/tet-tv-program/utils/tooltip-lifecycle.js +132 -0
- 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/collection/services/api/index.js +1 -0
- package/dist/collection/services/api/services/tv/tv-program-types.js +1 -0
- package/dist/collection/services/api/services/tv/tv-program.js +31 -0
- package/dist/collection/services/utils/date.js +7 -0
- package/dist/collection/services/utils/index.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-p-J7NvGs.js → p-B5ujbvD5.js} +1 -1
- package/dist/components/{p-CgV4zAwQ.js → p-B8pZddqI.js} +1 -1
- package/dist/components/{p-Mpe-2CVQ.js → p-BBNq_Obn.js} +1 -1
- package/dist/components/{p-nKvolHsW.js → p-BCe35fiF.js} +1 -1
- package/dist/components/{p-CPGJg5Si.js → p-BCpsmWJM.js} +1 -1
- package/dist/components/{p-t_FgKIcd.js → p-BKIzl46N.js} +1 -1
- package/dist/components/{p-CMxcvnRv.js → p-BSySZotX.js} +1 -1
- package/dist/components/{p-CSxtbfBJ.js → p-BV6g-luP.js} +1 -1
- package/dist/components/{p-DN2JwXg9.js → p-BcXV5sQw.js} +1 -1
- package/dist/components/{p-DXQ-UeYl.js → p-BdrzH5ar.js} +1 -1
- package/dist/components/{p-CZach5oP.js → p-BnOTR5fm.js} +1 -1
- package/dist/components/{p-BMSAKp34.js → p-BxOwqp0a.js} +1 -1
- package/dist/components/{p-HzogPVbA.js → p-C16rQ6Rb.js} +1 -1
- package/dist/components/{p-BI70OOEF.js → p-C4ul-L9-.js} +1 -1
- package/dist/components/{p-vu71OGLf.js → p-CFyjcGK7.js} +1 -1
- package/dist/components/{p-C32vgbsV.js → p-CHCXv4yB.js} +1 -1
- package/dist/components/{p-BmH_7-IQ.js → p-CLWLTBE0.js} +1 -1
- package/dist/components/{p-B60jnxEn.js → p-CMSs7Ay5.js} +1 -1
- package/dist/components/{p-CvUaogvc.js → p-CNTMOgMT.js} +1 -1
- package/dist/components/{p-Lpb2mgqh.js → p-CPY7aG_q.js} +1 -1
- package/dist/components/p-CT0JjXhe.js +1 -0
- package/dist/components/{p-C-sZ3Bzu.js → p-CVthBaQt.js} +1 -1
- package/dist/components/{p-C4uKGuRj.js → p-C_hP1fqX.js} +1 -1
- package/dist/components/{p-Bw-D7nPx.js → p-CaHY4mtM.js} +1 -1
- package/dist/components/{p-CwZljiBM.js → p-CgWcN6ca.js} +1 -1
- package/dist/components/{p-DKZxpjnL.js → p-CqSiuKpc.js} +1 -1
- package/dist/components/{p-CF15dAPd.js → p-CtcmUD5r.js} +1 -1
- package/dist/components/{p-Bc4oqt_L.js → p-CushMMdv.js} +1 -1
- package/dist/components/{p-C61jDpta.js → p-D5J-pubV.js} +1 -1
- package/dist/components/{p-B5HqUnpw.js → p-D6zXaWBn.js} +1 -1
- package/dist/components/{p-BrPUjt5B.js → p-D8V6RYb0.js} +1 -1
- package/dist/components/{p-Bho4Xl9R.js → p-DAZQBXWo.js} +1 -1
- package/dist/components/{p-DikHJHTd.js → p-DAjLPYxx.js} +1 -1
- package/dist/components/{p-BztqMLE1.js → p-DD5q1beS.js} +1 -1
- package/dist/components/{p-CDUvchOX.js → p-DEasZUte.js} +1 -1
- package/dist/components/{p-C9dDgHzh.js → p-DEjrxfHh.js} +1 -1
- package/dist/components/{p-B1d6HEqd.js → p-DIDgNN8z.js} +1 -1
- package/dist/components/{p-Cdi7KDBd.js → p-DIyhqSTP.js} +1 -1
- package/dist/components/p-DPGMd9pW.js +1 -0
- package/dist/components/{p-CJnk1Plz.js → p-DSO2W8wX.js} +1 -1
- package/dist/components/p-D_ZrduSw.js +8 -0
- package/dist/components/{p-Czx7ardH.js → p-DopPk-Ix.js} +1 -1
- package/dist/components/{p-CYMnJi7q.js → p-DyY_BOZd.js} +1 -1
- package/dist/components/{p-B-1KdQSL.js → p-DzJunF5n.js} +1 -1
- package/dist/components/{p-lEX8wezw.js → p-IyO0AtW2.js} +1 -1
- package/dist/components/{p-o4S5jRzK.js → p-JSqvRN9t.js} +1 -1
- package/dist/components/{p-D8avEs-F.js → p-Jl97CICe.js} +1 -1
- package/dist/components/{p-mVj43aKR.js → p-PMDuFwdO.js} +1 -1
- package/dist/components/p-PuQGb_kZ.js +1 -0
- package/dist/components/{p-DutLsF-O.js → p-RKwM_UoL.js} +1 -1
- package/dist/components/{p-DnPS3TWn.js → p-U1U7KO8M.js} +1 -1
- package/dist/components/p-WTP67GQt.js +1 -0
- package/dist/components/{p-Bsqoxd9G.js → p-WvkszOBK.js} +1 -1
- package/dist/components/{p-BcVrianM.js → p-Zd3FJ-E9.js} +1 -1
- package/dist/components/{p-BD6bBnqr.js → p-h65iKcGh.js} +1 -1
- package/dist/components/{p-Cb2bEUmu.js → p-kj9GRPBV.js} +1 -1
- package/dist/components/{p-44eECwiT.js → p-nu13atxU.js} +1 -1
- package/dist/components/{p-DgT79UG-.js → p-o3DB-jeO.js} +1 -1
- package/dist/components/p-rItngdC7.js +1 -0
- package/dist/components/{p-B9bE6qY-.js → p-raVwRdrn.js} +1 -1
- package/dist/components/{p-sgozlrhg.js → p-tV8a7IEe.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-v2.js +1 -1
- package/dist/components/tet-address-offers-view-v2.js +1 -1
- package/dist/components/tet-address-offers-view.js +1 -1
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-assembler.js +1 -1
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +1 -1
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-check-out-form.js +1 -1
- package/dist/components/tet-b2b-compare-card.js +1 -1
- package/dist/components/tet-b2b-configurator-cart.js +1 -1
- package/dist/components/tet-b2b-configurator.js +1 -1
- package/dist/components/tet-banner-nav.js +1 -1
- 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 +1 -1
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +1 -1
- package/dist/components/tet-business-summary-card.js +1 -1
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +1 -1
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +1 -1
- package/dist/components/tet-cloud-configurator.js +1 -1
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.js +1 -1
- package/dist/components/tet-compare-card-v3.js +1 -1
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +1 -1
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-countdown.js +1 -1
- package/dist/components/tet-counter.js +1 -1
- 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 +1 -1
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +1 -1
- package/dist/components/tet-divider.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +1 -1
- package/dist/components/tet-expandable-input.js +1 -1
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-feedback-form.js +1 -1
- package/dist/components/tet-filter.js +1 -1
- package/dist/components/tet-floating-block.js +1 -1
- 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 +1 -1
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link-card-list.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-menu-mobile.js +1 -1
- package/dist/components/tet-menu.js +1 -1
- package/dist/components/tet-mini-compare-card.js +1 -1
- package/dist/components/tet-multi-step-dialog.js +1 -1
- package/dist/components/tet-navigation-mobile.js +1 -1
- package/dist/components/tet-news-card-list.js +1 -1
- package/dist/components/tet-news-card.js +1 -1
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-paginator.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-position.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio-blocks.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-round-stepper.js +1 -1
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-group.js +1 -1
- package/dist/components/tet-snicker-card.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-v3.js +1 -1
- package/dist/components/tet-sticky-offer.js +1 -1
- package/dist/components/tet-support-search.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 +1 -1
- 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-text.js +1 -1
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v3.js +1 -1
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-program-channel-picker.js +1 -1
- package/dist/components/tet-tv-program-date-picker.js +1 -1
- package/dist/components/tet-tv-program-item.d.ts +11 -0
- package/dist/components/tet-tv-program-item.js +1 -0
- package/dist/components/tet-tv-program-schedule.d.ts +11 -0
- package/dist/components/tet-tv-program-schedule.js +1 -0
- package/dist/components/tet-tv-program.js +1 -1
- package/dist/esm/format-program-start-date-BTxL4Knq.js +148 -0
- package/dist/esm/{http-codes-CHPW8K5J.js → http-codes-DxBVAMp_.js} +2 -1
- package/dist/esm/{index-gA3_LS77.js → index-BlxQHXlF.js} +21 -13
- package/dist/esm/{index-BzVLx-ae.js → index-Cl1zJLqR.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{product-comparison-09p7FlLY.js → product-comparison-CIa1tZy1.js} +1 -1
- package/dist/esm/{service-availability-services-DHbWTGBw.js → service-availability-services-DR0G7lAz.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +8 -8
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
- package/dist/esm/tet-address-offers-v2.entry.js +5 -5
- package/dist/esm/tet-address-offers-view-v2.entry.js +5 -5
- package/dist/esm/tet-address-offers-view.entry.js +4 -4
- package/dist/esm/tet-address-offers_3.entry.js +6 -6
- package/dist/esm/tet-address-search_2.entry.js +7 -7
- package/dist/esm/tet-assembler_3.entry.js +4 -4
- package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
- package/dist/esm/tet-autocomplete_2.entry.js +2 -2
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +6 -6
- package/dist/esm/tet-b2b-configurator.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-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 +9 -9
- package/dist/esm/{tet-checkbox_3.entry.js → tet-checkbox_2.entry.js} +2 -453
- 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-card-v2.entry.js +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +5 -5
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-countdown.entry.js +2 -2
- package/dist/esm/tet-counter.entry.js +1 -1
- 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-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/tet-feedback-form.entry.js +3 -3
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-floating-block.entry.js +1 -1
- 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 +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-layout.entry.js +2 -2
- package/dist/esm/tet-link-card-list.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +2 -2
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-mini-compare-card.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +4 -4
- package/dist/esm/tet-navigation-mobile.entry.js +6 -6
- package/dist/esm/tet-news-card-list.entry.js +2 -2
- package/dist/esm/tet-news-card.entry.js +2 -2
- package/dist/esm/tet-notification.entry.js +2 -2
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-paginator.entry.js +4 -4
- package/dist/esm/tet-placeholder.entry.js +2 -2
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio_2.entry.js +3 -3
- package/dist/esm/tet-range-slider.entry.js +8 -8
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-snicker-card-group.entry.js +1 -1
- package/dist/esm/tet-snicker-card.entry.js +3 -3
- package/dist/esm/tet-spacing.entry.js +2 -2
- package/dist/esm/tet-spinner.entry.js +4 -4
- package/dist/esm/tet-stepper-input.entry.js +4 -4
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-sticky-offer.entry.js +2 -2
- package/dist/esm/tet-support-search.entry.js +1 -1
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +5 -5
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-text.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/tet-tooltip.entry.js +454 -0
- package/dist/esm/tet-tv-program-channel-picker_3.entry.js +1461 -0
- package/dist/esm/tet-tv-program-item.entry.js +215 -0
- package/dist/esm/tet-tv-program-placeholders-6PnHO3Vt.js +19 -0
- package/dist/esm/tet-tv-program.entry.js +642 -3
- package/dist/esm/{translations-CLCWF8K_.js → translations-CpmeCaXU.js} +1 -1
- package/dist/tet-components/{p-1af6b8cb.entry.js → p-00383c63.entry.js} +1 -1
- package/dist/tet-components/{p-7c1dd176.entry.js → p-01b6e854.entry.js} +1 -1
- package/dist/tet-components/{p-0744b479.entry.js → p-0364bd08.entry.js} +1 -1
- package/dist/tet-components/{p-13550c14.entry.js → p-07719feb.entry.js} +1 -1
- package/dist/tet-components/{p-6a3891bf.entry.js → p-090b1ee9.entry.js} +1 -1
- package/dist/tet-components/{p-6800ae9e.entry.js → p-0bc383b2.entry.js} +1 -1
- package/dist/tet-components/p-13029731.entry.js +1 -0
- package/dist/tet-components/{p-aa0b655b.entry.js → p-144a817d.entry.js} +1 -1
- package/dist/tet-components/{p-ae31acd5.entry.js → p-14fe8c03.entry.js} +1 -1
- package/dist/tet-components/{p-57d07760.entry.js → p-16f75f0c.entry.js} +1 -1
- package/dist/tet-components/{p-0e021d89.entry.js → p-18c6bad0.entry.js} +1 -1
- package/dist/tet-components/p-197d157d.entry.js +1 -0
- package/dist/tet-components/{p-e88e50e6.entry.js → p-222d6593.entry.js} +1 -1
- package/dist/tet-components/{p-bc73adcc.entry.js → p-22ea8015.entry.js} +1 -1
- package/dist/tet-components/{p-484266ca.entry.js → p-23e33f99.entry.js} +1 -1
- package/dist/tet-components/{p-9d612283.entry.js → p-248957cf.entry.js} +1 -1
- package/dist/tet-components/{p-b370c444.entry.js → p-2a5e14d3.entry.js} +1 -1
- package/dist/tet-components/{p-7d62e8e0.entry.js → p-2eee7043.entry.js} +1 -1
- package/dist/tet-components/{p-0d0de163.entry.js → p-2ff74667.entry.js} +1 -1
- package/dist/tet-components/{p-32983951.entry.js → p-35228f86.entry.js} +1 -1
- package/dist/tet-components/{p-db92c865.entry.js → p-359ddd3d.entry.js} +1 -1
- package/dist/tet-components/{p-1ce9b751.entry.js → p-394504cc.entry.js} +1 -1
- package/dist/tet-components/p-3a242ce0.entry.js +1 -0
- package/dist/tet-components/{p-827abc22.entry.js → p-3a99d267.entry.js} +1 -1
- package/dist/tet-components/{p-231dde32.entry.js → p-3f254745.entry.js} +1 -1
- package/dist/tet-components/{p-73a66398.entry.js → p-429d9d2c.entry.js} +1 -1
- package/dist/tet-components/p-45573d70.entry.js +1 -0
- package/dist/tet-components/{p-c5068d10.entry.js → p-4aab89f2.entry.js} +1 -1
- package/dist/tet-components/{p-2884891b.entry.js → p-4b6daee6.entry.js} +1 -1
- package/dist/tet-components/{p-e45dab2b.entry.js → p-52a679f8.entry.js} +1 -1
- package/dist/tet-components/{p-17f8270f.entry.js → p-537e043d.entry.js} +1 -1
- package/dist/tet-components/{p-039121d4.entry.js → p-549fc480.entry.js} +1 -1
- package/dist/tet-components/{p-f73c5481.entry.js → p-645519ea.entry.js} +1 -1
- package/dist/tet-components/{p-0bd6e06e.entry.js → p-6a39e30f.entry.js} +1 -1
- package/dist/tet-components/{p-c321199b.entry.js → p-6d5bb64b.entry.js} +1 -1
- package/dist/tet-components/p-71918ee5.entry.js +1 -0
- package/dist/tet-components/{p-675387bc.entry.js → p-73ba2953.entry.js} +1 -1
- package/dist/tet-components/{p-e7c43c95.entry.js → p-80179dc9.entry.js} +1 -1
- package/dist/tet-components/{p-7672a3cf.entry.js → p-84835070.entry.js} +1 -1
- package/dist/tet-components/{p-0026968d.entry.js → p-85704684.entry.js} +1 -1
- package/dist/tet-components/{p-72c54f04.entry.js → p-8c129c83.entry.js} +1 -1
- package/dist/tet-components/{p-845419ea.entry.js → p-8dd9bde1.entry.js} +1 -1
- package/dist/tet-components/{p-9f8c0d62.entry.js → p-8df51fe3.entry.js} +1 -1
- package/dist/tet-components/{p-16282657.entry.js → p-8f708ddc.entry.js} +1 -1
- package/dist/tet-components/{p-8424ddb6.entry.js → p-94bf94ea.entry.js} +1 -1
- package/dist/tet-components/{p-af7f7020.entry.js → p-984c1332.entry.js} +1 -1
- package/dist/tet-components/{p-ff164570.entry.js → p-994b8b7f.entry.js} +1 -1
- package/dist/tet-components/{p-324d8840.entry.js → p-9d5f14db.entry.js} +1 -1
- package/dist/tet-components/{p-25c80589.entry.js → p-9dd85372.entry.js} +1 -1
- package/dist/tet-components/{p-7d218d65.entry.js → p-9e0845ff.entry.js} +1 -1
- package/dist/tet-components/{p-AT09y63b.js → p-B3oUiyJ_.js} +1 -1
- package/dist/tet-components/p-BTo8T4K7.js +1 -0
- package/dist/tet-components/p-BTxL4Knq.js +1 -0
- package/dist/tet-components/{p-gA3_LS77.js → p-BlxQHXlF.js} +1 -1
- package/dist/tet-components/p-C2_Y9hR8.js +8 -0
- package/dist/tet-components/{p-ChdlTQSF.js → p-Cu_nZUjB.js} +1 -1
- package/dist/tet-components/{p-nYl-0ap-.js → p-Du1r7fBd.js} +1 -1
- package/dist/tet-components/{p-a91c8e30.entry.js → p-a1e75f54.entry.js} +1 -1
- package/dist/tet-components/{p-22db539b.entry.js → p-a672882d.entry.js} +1 -1
- package/dist/tet-components/{p-c778dbd4.entry.js → p-a8c5f562.entry.js} +1 -1
- package/dist/tet-components/{p-0e9201e6.entry.js → p-aa0626f1.entry.js} +1 -1
- package/dist/tet-components/{p-73acf518.entry.js → p-aab954fd.entry.js} +1 -1
- package/dist/tet-components/{p-76be889b.entry.js → p-adabdd88.entry.js} +1 -1
- package/dist/tet-components/{p-a9706390.entry.js → p-af2bed0c.entry.js} +1 -1
- package/dist/tet-components/{p-1ed0c66f.entry.js → p-b1f8889c.entry.js} +1 -1
- package/dist/tet-components/{p-12fe3881.entry.js → p-b36bd5ee.entry.js} +1 -1
- package/dist/tet-components/{p-2be883e9.entry.js → p-b8c728a3.entry.js} +1 -1
- package/dist/tet-components/{p-b389b07a.entry.js → p-b9892cf7.entry.js} +1 -1
- package/dist/tet-components/{p-0e4129ea.entry.js → p-bc53afc8.entry.js} +1 -1
- package/dist/tet-components/{p-8b7bbbbf.entry.js → p-bfc1d731.entry.js} +1 -1
- package/dist/tet-components/{p-318947f9.entry.js → p-c32a7bb6.entry.js} +1 -1
- package/dist/tet-components/{p-7dfd519c.entry.js → p-c577fcf2.entry.js} +1 -1
- package/dist/tet-components/{p-3dd266f3.entry.js → p-c5fa28a5.entry.js} +1 -1
- package/dist/tet-components/{p-4a21fdfb.entry.js → p-c6266e47.entry.js} +1 -1
- package/dist/tet-components/{p-8b2edb99.entry.js → p-c6dcceb2.entry.js} +1 -1
- package/dist/tet-components/{p-19cb8e38.entry.js → p-c7c9c272.entry.js} +1 -1
- package/dist/tet-components/{p-9ab815b3.entry.js → p-cafa6809.entry.js} +1 -1
- package/dist/tet-components/{p-467663a9.entry.js → p-cbb61a78.entry.js} +1 -1
- package/dist/tet-components/{p-e59ec4c3.entry.js → p-d19565db.entry.js} +1 -1
- package/dist/tet-components/{p-0b122cc1.entry.js → p-d5212455.entry.js} +1 -1
- package/dist/tet-components/p-d5b8d06c.entry.js +1 -0
- package/dist/tet-components/{p-f8aa1f9b.entry.js → p-d770c106.entry.js} +1 -1
- package/dist/tet-components/{p-340c3e79.entry.js → p-d875735c.entry.js} +1 -1
- package/dist/tet-components/{p-daa8ca5c.entry.js → p-d94f8fc5.entry.js} +1 -1
- package/dist/tet-components/{p-ebd66166.entry.js → p-ddcaa280.entry.js} +1 -1
- package/dist/tet-components/{p-7b98b883.entry.js → p-ddfa57fd.entry.js} +1 -1
- package/dist/tet-components/{p-e9e288f6.entry.js → p-eb487864.entry.js} +1 -1
- package/dist/tet-components/{p-03b6c7a2.entry.js → p-ef89dc8a.entry.js} +1 -1
- package/dist/tet-components/{p-8329cd9d.entry.js → p-f378220c.entry.js} +1 -1
- package/dist/tet-components/p-f459c748.entry.js +1 -0
- package/dist/tet-components/{p-a2e40f04.entry.js → p-f490d4a6.entry.js} +1 -1
- package/dist/tet-components/{p-ac515335.entry.js → p-f675b69e.entry.js} +1 -1
- package/dist/tet-components/{p-f53d2d9f.entry.js → p-f7a06231.entry.js} +1 -1
- package/dist/tet-components/{p-Th74Kc5K.js → p-qSX0mu28.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.d.ts +9 -13
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.d.ts +1 -3
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.d.ts +62 -0
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.mock.d.ts +2 -0
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.d.ts +174 -0
- package/dist/types/components/views/tet-tv-program/test/mock-schedule-layout.d.ts +4 -0
- package/dist/types/components/views/tet-tv-program/tet-tv-program-placeholders.d.ts +2 -0
- package/dist/types/components/views/tet-tv-program/tet-tv-program.d.ts +96 -0
- package/dist/types/components/views/tet-tv-program/tet-tv-program.types.d.ts +30 -0
- package/dist/types/components/views/tet-tv-program/utils/broadcast-time.d.ts +14 -0
- package/dist/types/components/views/tet-tv-program/utils/fill-program-gaps.d.ts +3 -0
- package/dist/types/components/views/tet-tv-program/utils/format-program-start-date.d.ts +1 -0
- package/dist/types/components/views/tet-tv-program/utils/tooltip-lifecycle.d.ts +22 -0
- package/dist/types/components.d.ts +339 -6
- package/dist/types/services/api/index.d.ts +2 -0
- package/dist/types/services/api/services/tv/tv-program-types.d.ts +46 -0
- package/dist/types/services/api/services/tv/tv-program.d.ts +7 -0
- package/dist/types/services/utils/date.d.ts +2 -0
- package/dist/types/services/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +0 -536
- package/dist/components/p-Br4jWI9B.js +0 -8
- package/dist/components/p-DrFW6lxe.js +0 -1
- package/dist/components/p-Q3NUC_eC.js +0 -1
- package/dist/esm/tet-tv-program-channel-picker_2.entry.js +0 -533
- package/dist/tet-components/p-3a573d6e.entry.js +0 -1
- package/dist/tet-components/p-CNGb2lWC.js +0 -8
- package/dist/tet-components/p-aea861c9.entry.js +0 -1
- package/dist/tet-components/p-b21b4329.entry.js +0 -1
- package/dist/tet-components/p-c102d7e8.entry.js +0 -1
- package/dist/tet-components/p-dabdfe62.entry.js +0 -1
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { r as registerInstance, e as getElement, h, H as Host } from './index-BlxQHXlF.js';
|
|
2
|
+
import { T as TooltipPosition } from './TooltipPosition-CroGHapK.js';
|
|
3
|
+
|
|
4
|
+
const tetTooltipCss = () => `:host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--tooltip-background-color:var(--tc-tooltip-layer-secondary);--tooltip-text-color:var(--tc-tooltip-text-inverse-primary);--tooltip-padding:1em;--tooltip-display-speed:.2s;--tooltip-delay-show:0s;--tooltip-delay-hide:.25s;--tooltip-max-width:18.75rem;--tooltip-border-radius:0.3125rem;--tooltip-font-weight:400;position:fixed;display:inline-block;width:max-content;max-width:min(var(--tooltip-max-width), 100%);z-index:100;pointer-events:none;opacity:0}:host(.hidden){visibility:hidden;opacity:0;transition:visibility 0s var(--tooltip-display-speed), opacity var(--tooltip-display-speed) linear}:host(.hidden-quick){opacity:0;visibility:hidden;transform:scale(0)}:host(.visible){visibility:visible;opacity:1;transition:visibility 0s var(--tooltip-display-speed), opacity var(--tooltip-display-speed) linear;transition-delay:var(--tooltip-delay-show)}.light-inverse{--tooltip-background-color:var(--tc-tooltip-layer-primary);--tooltip-text-color:var(--tc-tooltip-text-primary)}.dark{--tooltip-background-color:var(--tc-tooltip-layer-primary-dark);--tooltip-text-color:var(--tc-tooltip-text-primary-dark)}.dark-inverse{--tooltip-background-color:var(--tc-tooltip-layer-secondary-dark);--tooltip-text-color:var(--tc-tooltip-text-inverse-primary-dark)}.tooltip{position:relative;background:var(--tooltip-background-color);color:var(--tooltip-text-color);border-radius:var(--tooltip-border-radius);padding:var(--tooltip-padding);font-family:var(--font-family-content);font-weight:var(--tooltip-font-weight);font-size:0.875rem;white-space:normal;line-height:1.5em}.tooltip-pointer{position:absolute;width:0;height:0;border-left:0.5rem solid transparent;border-right:0.5rem solid transparent;border-bottom:0.5rem solid var(--tooltip-background-color)}@keyframes fadeIn{0%{opacity:0;transform:scale(0)}100%{opacity:1;visibility:visible;transform:scale(1)}}@keyframes fadeOut{0%{opacity:1;visibility:visible;transform:scale(1)}100%{opacity:0;visibility:hidden;transform:scale(0)}}`;
|
|
5
|
+
|
|
6
|
+
const TetTooltip = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The HTML element that should trigger the tooltip.
|
|
12
|
+
*/
|
|
13
|
+
targetElement = null;
|
|
14
|
+
/**
|
|
15
|
+
* The pointer element of the tooltip.
|
|
16
|
+
*/
|
|
17
|
+
tooltipPointer;
|
|
18
|
+
/**
|
|
19
|
+
* The minimum spacing in pixels from the sides of the window and the target element for the tooltip.
|
|
20
|
+
*/
|
|
21
|
+
margin = 8;
|
|
22
|
+
/**
|
|
23
|
+
* The time in seconds of how long should the hover should happen before the tooltip should play the fade-out animation.
|
|
24
|
+
* This should match CSS --tooltip-delay-show property value.
|
|
25
|
+
*/
|
|
26
|
+
tooltipTimeThreshold = 0.25;
|
|
27
|
+
/**
|
|
28
|
+
* The properties of keeping track when the mouse entered or exited the target element.
|
|
29
|
+
*/
|
|
30
|
+
tooltipStartTime = 0;
|
|
31
|
+
tooltipEndTime = 0;
|
|
32
|
+
resizeObserver;
|
|
33
|
+
displayTimeout;
|
|
34
|
+
listenersAttached = false;
|
|
35
|
+
showHandler = this.show.bind(this);
|
|
36
|
+
hideHandler = this.hide.bind(this);
|
|
37
|
+
get element() { return getElement(this); }
|
|
38
|
+
/**
|
|
39
|
+
* Tooltip theme. Set to the "classic" theme by default.
|
|
40
|
+
*/
|
|
41
|
+
theme = 'classic';
|
|
42
|
+
/**
|
|
43
|
+
* The selector to use to bind the tooltip to the target element. The parent element is bound by default.
|
|
44
|
+
* Any valid "querySelector" value can be used.
|
|
45
|
+
*/
|
|
46
|
+
targetElementSelector;
|
|
47
|
+
/**
|
|
48
|
+
* The element to which the tooltip will be bound to.
|
|
49
|
+
*/
|
|
50
|
+
hoverElement;
|
|
51
|
+
/**
|
|
52
|
+
* Indicates whether to show the tooltip on hover or not.
|
|
53
|
+
*/
|
|
54
|
+
doNotShowOnHover = false;
|
|
55
|
+
/**
|
|
56
|
+
* The default position of tooltip.
|
|
57
|
+
*/
|
|
58
|
+
position = TooltipPosition.BOTTOM;
|
|
59
|
+
/**
|
|
60
|
+
* The state of the inner position. By default, takes the value from the position prop.
|
|
61
|
+
* Can change depending on the available space.
|
|
62
|
+
*/
|
|
63
|
+
positionState = TooltipPosition.BOTTOM;
|
|
64
|
+
/**
|
|
65
|
+
* The visibility state of the tooltip.
|
|
66
|
+
*/
|
|
67
|
+
showTooltip = false;
|
|
68
|
+
/**
|
|
69
|
+
* Listen for the `touchmove` event and hide the tooltip if visible.
|
|
70
|
+
* This will handle the mobile device events.
|
|
71
|
+
*/
|
|
72
|
+
handleTouchmove() {
|
|
73
|
+
this.hideQuick();
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Listen for the `wheel` event and hide the tooltip if visible.
|
|
77
|
+
* The `wheel` event is intentionally preferred instead of `scroll`.
|
|
78
|
+
*/
|
|
79
|
+
handleWheel() {
|
|
80
|
+
this.hideQuick();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Listen for the `Escape` keydown event and hide the tooltip if visible.
|
|
84
|
+
*/
|
|
85
|
+
onKeydown(event) {
|
|
86
|
+
if (event.code === 'Escape') {
|
|
87
|
+
this.hideQuick();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Listen for the window to resize and reset the `positionState` to the original default value.
|
|
92
|
+
*/
|
|
93
|
+
handleResize() {
|
|
94
|
+
this.positionState = this.position;
|
|
95
|
+
}
|
|
96
|
+
handlePositionChange(position) {
|
|
97
|
+
this.positionState = position;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Hide the tooltip quickly and ignore the time the tooltip has been visible for on screen.
|
|
101
|
+
*/
|
|
102
|
+
hideQuick = () => {
|
|
103
|
+
if (this.showTooltip) {
|
|
104
|
+
this.tooltipStartTime = Date.now();
|
|
105
|
+
this.hide();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
onShowTooltipChange(value) {
|
|
109
|
+
// The "fade-out" is watched separately for changes to avoid the animation on the initial page load.
|
|
110
|
+
if (!value) {
|
|
111
|
+
// The time spent on showing the tooltip in seconds.
|
|
112
|
+
const tooltipTime = this.tooltipEndTime / 1000 - this.tooltipStartTime / 1000;
|
|
113
|
+
// This avoids playing the "fade-out" animation when the mouse is quickly moved over tooltip target element.
|
|
114
|
+
// Otherwise, the tooltips would pop up and play the fade-out animation each time.
|
|
115
|
+
this.element.classList.add(tooltipTime > this.tooltipTimeThreshold ? 'hidden' : 'hidden-quick');
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
this.element.classList.remove('hidden', 'hidden-quick');
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
componentWillLoad() {
|
|
122
|
+
this.positionState = this.position;
|
|
123
|
+
// By default, set tooltip to be hidden.
|
|
124
|
+
this.element.style.display = 'none';
|
|
125
|
+
}
|
|
126
|
+
resolveTarget() {
|
|
127
|
+
if (this.hoverElement) {
|
|
128
|
+
return this.hoverElement;
|
|
129
|
+
}
|
|
130
|
+
if (this.targetElementSelector) {
|
|
131
|
+
return (this.element.closest(this.targetElementSelector) ??
|
|
132
|
+
document.querySelector(this.targetElementSelector));
|
|
133
|
+
}
|
|
134
|
+
return this.element.parentElement;
|
|
135
|
+
}
|
|
136
|
+
bindTarget() {
|
|
137
|
+
const target = this.resolveTarget();
|
|
138
|
+
const element = this.element;
|
|
139
|
+
if (this.listenersAttached && target === this.targetElement) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
this.unbindTarget();
|
|
143
|
+
this.targetElement = target;
|
|
144
|
+
if (!target) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (!this.doNotShowOnHover) {
|
|
148
|
+
target.addEventListener('mouseenter', this.showHandler);
|
|
149
|
+
target.addEventListener('mouseleave', this.hideHandler);
|
|
150
|
+
}
|
|
151
|
+
target.addEventListener('focusin', this.showHandler);
|
|
152
|
+
target.addEventListener('focusout', this.hideHandler);
|
|
153
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
154
|
+
if (!target.offsetHeight) {
|
|
155
|
+
element.classList.remove('hidden');
|
|
156
|
+
element.classList.add('hidden-quick');
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
this.resizeObserver.observe(target);
|
|
160
|
+
this.listenersAttached = true;
|
|
161
|
+
}
|
|
162
|
+
unbindTarget() {
|
|
163
|
+
if (this.targetElement && this.listenersAttached) {
|
|
164
|
+
this.targetElement.removeEventListener('mouseenter', this.showHandler);
|
|
165
|
+
this.targetElement.removeEventListener('mouseleave', this.hideHandler);
|
|
166
|
+
this.targetElement.removeEventListener('focusin', this.showHandler);
|
|
167
|
+
this.targetElement.removeEventListener('focusout', this.hideHandler);
|
|
168
|
+
}
|
|
169
|
+
this.resizeObserver?.disconnect();
|
|
170
|
+
this.resizeObserver = undefined;
|
|
171
|
+
this.listenersAttached = false;
|
|
172
|
+
}
|
|
173
|
+
scheduleDisplay() {
|
|
174
|
+
// Delay the visibility for a moment to avoid the blinking effect of the tooltips shortly after the load.
|
|
175
|
+
const element = this.element;
|
|
176
|
+
const shouldShowOnHover = !this.doNotShowOnHover;
|
|
177
|
+
const targetElement = this.targetElement;
|
|
178
|
+
clearTimeout(this.displayTimeout);
|
|
179
|
+
this.displayTimeout = setTimeout(() => {
|
|
180
|
+
this.displayTimeout = undefined;
|
|
181
|
+
if (!element.isConnected)
|
|
182
|
+
return;
|
|
183
|
+
element.style.display = 'inline-block';
|
|
184
|
+
if (shouldShowOnHover && targetElement?.matches(':hover')) {
|
|
185
|
+
void this.show();
|
|
186
|
+
}
|
|
187
|
+
}, 100);
|
|
188
|
+
}
|
|
189
|
+
componentDidLoad() {
|
|
190
|
+
this.bindTarget();
|
|
191
|
+
this.scheduleDisplay();
|
|
192
|
+
}
|
|
193
|
+
connectedCallback() {
|
|
194
|
+
const element = this.element;
|
|
195
|
+
queueMicrotask(() => {
|
|
196
|
+
if (!element.isConnected) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
this.bindTarget();
|
|
200
|
+
this.scheduleDisplay();
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
disconnectedCallback() {
|
|
204
|
+
clearTimeout(this.displayTimeout);
|
|
205
|
+
this.displayTimeout = undefined;
|
|
206
|
+
this.unbindTarget();
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Show the tooltip.
|
|
210
|
+
*/
|
|
211
|
+
async show() {
|
|
212
|
+
this.tooltipStartTime = Date.now();
|
|
213
|
+
this.showTooltip = true;
|
|
214
|
+
this.positionTooltip();
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Hide the tooltip.
|
|
218
|
+
*/
|
|
219
|
+
async hide() {
|
|
220
|
+
this.tooltipEndTime = Date.now();
|
|
221
|
+
this.showTooltip = false;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Toggle the tooltip.
|
|
225
|
+
*/
|
|
226
|
+
async toggle() {
|
|
227
|
+
if (this.showTooltip) {
|
|
228
|
+
await this.hide();
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
await this.show();
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Positions the tooltip corresponding to the target element.
|
|
236
|
+
*/
|
|
237
|
+
positionTooltip = () => {
|
|
238
|
+
const targetElement = this.targetElement;
|
|
239
|
+
if (!targetElement) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
const targetBoundaries = targetElement.getBoundingClientRect();
|
|
243
|
+
/**
|
|
244
|
+
* Check whether the tooltip can be placed on either side of the element
|
|
245
|
+
* when either the left or the right position is set by default.
|
|
246
|
+
*/
|
|
247
|
+
if ([TooltipPosition.LEFT, TooltipPosition.RIGHT].includes(this.positionState)) {
|
|
248
|
+
const canPositionRight = window.innerWidth > targetBoundaries.right + this.margin + this.element.offsetWidth;
|
|
249
|
+
const canPositionLeft = this.element.offsetWidth + this.margin < targetBoundaries.left;
|
|
250
|
+
// Change positioning if it cannot.
|
|
251
|
+
if (!canPositionLeft && !canPositionRight) {
|
|
252
|
+
this.positionState = TooltipPosition.BOTTOM;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
const isTooltipOutOfVerticalBounds = this.positionTooltipVertically(targetBoundaries);
|
|
256
|
+
const isTooltipOutOfHorizontalBounds = this.positionTooltipHorizontally(targetBoundaries);
|
|
257
|
+
// Applies a margin for spacing purposes.
|
|
258
|
+
// This is done via JS as the margin values are needed for position calculations as well.
|
|
259
|
+
this.element.style.margin = `${this.margin}px`;
|
|
260
|
+
// Position the pointer (caret) element after the tooltip as the main tooltip position is required for calculations.
|
|
261
|
+
const isTooltipOutOfBounds = isTooltipOutOfVerticalBounds || isTooltipOutOfHorizontalBounds;
|
|
262
|
+
const actualTooltipPosition = this.getTooltipPosition(isTooltipOutOfBounds);
|
|
263
|
+
this.positionTooltipPointer(actualTooltipPosition);
|
|
264
|
+
};
|
|
265
|
+
getTooltipPosition(isTooltipOutOfBounds) {
|
|
266
|
+
switch (this.positionState) {
|
|
267
|
+
case TooltipPosition.TOP:
|
|
268
|
+
if (isTooltipOutOfBounds) {
|
|
269
|
+
return TooltipPosition.BOTTOM;
|
|
270
|
+
}
|
|
271
|
+
return TooltipPosition.TOP;
|
|
272
|
+
case TooltipPosition.BOTTOM:
|
|
273
|
+
if (isTooltipOutOfBounds) {
|
|
274
|
+
return TooltipPosition.TOP;
|
|
275
|
+
}
|
|
276
|
+
return TooltipPosition.BOTTOM;
|
|
277
|
+
case TooltipPosition.LEFT:
|
|
278
|
+
if (isTooltipOutOfBounds) {
|
|
279
|
+
return TooltipPosition.RIGHT;
|
|
280
|
+
}
|
|
281
|
+
return TooltipPosition.LEFT;
|
|
282
|
+
case TooltipPosition.RIGHT:
|
|
283
|
+
if (isTooltipOutOfBounds) {
|
|
284
|
+
return TooltipPosition.LEFT;
|
|
285
|
+
}
|
|
286
|
+
return TooltipPosition.RIGHT;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
positionTooltipVertically(targetBoundaries) {
|
|
290
|
+
let isTooltipOutOfBounds = false;
|
|
291
|
+
switch (this.positionState) {
|
|
292
|
+
case TooltipPosition.BOTTOM:
|
|
293
|
+
if (targetBoundaries.bottom + this.element.offsetHeight + this.margin > window.innerHeight) {
|
|
294
|
+
// When the tooltip would be outside the screen on the bottom side.
|
|
295
|
+
this.element.style.top = '';
|
|
296
|
+
this.element.style.bottom = `${window.innerHeight - targetBoundaries.top}px`;
|
|
297
|
+
isTooltipOutOfBounds = true;
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
// When the tooltip is within the screen boundaries.
|
|
301
|
+
this.element.style.top = `${targetBoundaries.bottom}px`;
|
|
302
|
+
this.element.style.bottom = '';
|
|
303
|
+
}
|
|
304
|
+
break;
|
|
305
|
+
case TooltipPosition.TOP:
|
|
306
|
+
if (targetBoundaries.top - this.element.offsetHeight < 0) {
|
|
307
|
+
// When the tooltip would be outside the screen on the top side.
|
|
308
|
+
this.element.style.top = `${targetBoundaries.bottom}px`;
|
|
309
|
+
this.element.style.bottom = '';
|
|
310
|
+
isTooltipOutOfBounds = true;
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
// When the tooltip is within the screen boundaries.
|
|
314
|
+
this.element.style.top = '';
|
|
315
|
+
this.element.style.bottom = `${window.innerHeight - targetBoundaries.top}px`;
|
|
316
|
+
}
|
|
317
|
+
break;
|
|
318
|
+
default:
|
|
319
|
+
const targetElementCenterPostion = targetBoundaries.top + targetBoundaries.height / 2;
|
|
320
|
+
const tooltipCenterWidth = this.element.offsetHeight / 2 + this.margin;
|
|
321
|
+
const tooltipTopPosition = targetElementCenterPostion - tooltipCenterWidth;
|
|
322
|
+
if (tooltipTopPosition < 0) {
|
|
323
|
+
// When the tooltip would be outside the screen on the top side.
|
|
324
|
+
this.element.style.top = '0';
|
|
325
|
+
this.element.style.bottom = '';
|
|
326
|
+
}
|
|
327
|
+
else if (tooltipTopPosition + this.element.offsetHeight + this.margin > window.innerHeight) {
|
|
328
|
+
// When the tooltip would be outside the screen on the bottom side.
|
|
329
|
+
this.element.style.top = '';
|
|
330
|
+
this.element.style.bottom = '0';
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
// When the tooltip is within the screen boundaries.
|
|
334
|
+
this.element.style.top = `${tooltipTopPosition}px`;
|
|
335
|
+
this.element.style.bottom = '';
|
|
336
|
+
}
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
return isTooltipOutOfBounds;
|
|
340
|
+
}
|
|
341
|
+
positionTooltipHorizontally(targetBoundaries) {
|
|
342
|
+
let isTooltipOutOfBounds = false;
|
|
343
|
+
switch (this.positionState) {
|
|
344
|
+
case TooltipPosition.LEFT:
|
|
345
|
+
if (this.element.offsetWidth + this.margin > targetBoundaries.left) {
|
|
346
|
+
this.element.style.left = `${targetBoundaries.right}px`;
|
|
347
|
+
this.element.style.right = '';
|
|
348
|
+
isTooltipOutOfBounds = true;
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
this.element.style.left = '';
|
|
352
|
+
this.element.style.right = `${window.innerWidth - targetBoundaries.left}px`;
|
|
353
|
+
}
|
|
354
|
+
break;
|
|
355
|
+
case TooltipPosition.RIGHT:
|
|
356
|
+
if (window.innerWidth < targetBoundaries.right + this.margin + this.element.offsetWidth) {
|
|
357
|
+
this.element.style.left = '';
|
|
358
|
+
this.element.style.right = `${window.innerWidth - targetBoundaries.left}px`;
|
|
359
|
+
isTooltipOutOfBounds = true;
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
this.element.style.left = `${targetBoundaries.right}px`;
|
|
363
|
+
this.element.style.right = '';
|
|
364
|
+
}
|
|
365
|
+
break;
|
|
366
|
+
default:
|
|
367
|
+
const targetElementCenterPostion = targetBoundaries.left + targetBoundaries.width / 2;
|
|
368
|
+
const tooltipCenterWidth = this.element.offsetWidth / 2 - this.margin;
|
|
369
|
+
const tooltipLeftPosition = targetElementCenterPostion - tooltipCenterWidth;
|
|
370
|
+
if (tooltipLeftPosition < 0) {
|
|
371
|
+
// When the tooltip would be outside the screen on the left side.
|
|
372
|
+
this.element.style.left = '0';
|
|
373
|
+
this.element.style.right = '';
|
|
374
|
+
}
|
|
375
|
+
else if (tooltipLeftPosition + this.element.offsetWidth + this.margin > window.innerWidth) {
|
|
376
|
+
// When the tooltip would be outside the screen on the right side.
|
|
377
|
+
this.element.style.left = '';
|
|
378
|
+
this.element.style.right = '0';
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
// When the tooltip is within the screen boundaries.
|
|
382
|
+
this.element.style.left = `${tooltipLeftPosition}px`;
|
|
383
|
+
this.element.style.right = '';
|
|
384
|
+
}
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
return isTooltipOutOfBounds;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Position the tooltip pointer (caret) element.
|
|
391
|
+
*/
|
|
392
|
+
positionTooltipPointer = (position) => {
|
|
393
|
+
const targetElement = this.targetElement;
|
|
394
|
+
if (!targetElement) {
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
const target = targetElement.getBoundingClientRect();
|
|
398
|
+
const tooltip = this.element.getBoundingClientRect();
|
|
399
|
+
if ([TooltipPosition.TOP, TooltipPosition.BOTTOM].includes(position)) {
|
|
400
|
+
// Get the boundaries of the overlapping target element and the tooltip area on X axis.
|
|
401
|
+
const max = Math.min(target.right, tooltip.left + this.element.offsetWidth);
|
|
402
|
+
const min = Math.max(target.left, tooltip.left);
|
|
403
|
+
const overlapAreaMiddle = (max + min) / 2;
|
|
404
|
+
this.tooltipPointer.style.left = `${overlapAreaMiddle - tooltip.left - this.tooltipPointer.offsetWidth / 2}px`;
|
|
405
|
+
if (position === TooltipPosition.BOTTOM) {
|
|
406
|
+
this.tooltipPointer.style.top = `-6px`;
|
|
407
|
+
this.tooltipPointer.style.bottom = '';
|
|
408
|
+
this.tooltipPointer.style.transform = 'rotate(0deg)';
|
|
409
|
+
}
|
|
410
|
+
if (position === TooltipPosition.TOP) {
|
|
411
|
+
this.tooltipPointer.style.top = '';
|
|
412
|
+
this.tooltipPointer.style.bottom = `-6px`;
|
|
413
|
+
this.tooltipPointer.style.transform = 'rotate(180deg)';
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
if ([TooltipPosition.LEFT, TooltipPosition.RIGHT].includes(position)) {
|
|
417
|
+
// Get the boundaries of the overlapping target element and the tooltip area on Y axis.
|
|
418
|
+
const max = Math.min(target.bottom, tooltip.top + this.element.offsetHeight);
|
|
419
|
+
const min = Math.max(target.top, tooltip.top);
|
|
420
|
+
const overlapAreaMiddle = (max + min) / 2;
|
|
421
|
+
this.tooltipPointer.style.top = `${overlapAreaMiddle - tooltip.top - this.tooltipPointer.offsetHeight / 2}px`;
|
|
422
|
+
if (position === TooltipPosition.RIGHT) {
|
|
423
|
+
this.tooltipPointer.style.left = `-12px`;
|
|
424
|
+
this.tooltipPointer.style.right = '';
|
|
425
|
+
this.tooltipPointer.style.transform = 'rotate(270deg)';
|
|
426
|
+
}
|
|
427
|
+
if (position === TooltipPosition.LEFT) {
|
|
428
|
+
this.tooltipPointer.style.left = '';
|
|
429
|
+
this.tooltipPointer.style.right = `-12px`;
|
|
430
|
+
this.tooltipPointer.style.transform = 'rotate(90deg)';
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Renders the tooltip.
|
|
436
|
+
*/
|
|
437
|
+
renderTooltip = () => {
|
|
438
|
+
return (h("div", { class: { tooltip: true, [`${this.theme}`]: true }, role: "tooltip", "aria-hidden": this.showTooltip ? 'false' : 'true', "aria-live": this.showTooltip ? 'polite' : undefined }, h("div", { class: "tooltip-pointer", ref: (el) => (this.tooltipPointer = el) }), h("slot", null)));
|
|
439
|
+
};
|
|
440
|
+
render() {
|
|
441
|
+
return h(Host, { key: '79928506f2183fa0ab3b9b8821c3eadb7ac6b3ea', class: { visible: this.showTooltip } }, this.renderTooltip());
|
|
442
|
+
}
|
|
443
|
+
static get watchers() { return {
|
|
444
|
+
"position": [{
|
|
445
|
+
"handlePositionChange": 0
|
|
446
|
+
}],
|
|
447
|
+
"showTooltip": [{
|
|
448
|
+
"onShowTooltipChange": 0
|
|
449
|
+
}]
|
|
450
|
+
}; }
|
|
451
|
+
};
|
|
452
|
+
TetTooltip.style = tetTooltipCss();
|
|
453
|
+
|
|
454
|
+
export { TetTooltip as tet_tooltip };
|