@tet/tet-components 1.4.157-testing → 1.4.158-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/format-program-start-date-zxseYpV_.js +151 -0
- package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-BEt9xtqF.js} +2 -1
- package/dist/cjs/{index-BL_zVDFC.js → index-puzHM5yZ.js} +21 -21
- package/dist/cjs/{index-Dzs7Nkbj.js → index-t4WNVvo_.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-CkjpMhjy.js} +1 -1
- package/dist/cjs/{service-availability-services-BXL7V5i1.js → service-availability-services-CcQ-evt-.js} +1 -1
- package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
- package/dist/cjs/tet-accordion.cjs.entry.js +8 -8
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers-v2.cjs.entry.js +6 -6
- package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +6 -6
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +5 -5
- package/dist/cjs/tet-address-offers_3.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-search_2.cjs.entry.js +9 -9
- package/dist/cjs/tet-assembler_3.cjs.entry.js +5 -5
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +7 -7
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +5 -5
- package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
- 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 +10 -10
- 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 +4 -4
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +5 -5
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +7 -7
- 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 +5 -5
- 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 +4 -4
- 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 +5 -5
- 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 +2 -2
- 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 +6 -6
- 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 +4 -4
- 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-C4m4UB1-.js +22 -0
- package/dist/cjs/tet-tv-program.cjs.entry.js +642 -3
- package/dist/cjs/{translations-Uvcq4kv8.js → translations-c8BeO6Gg.js} +2 -2
- package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
- 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-B9bE6qY-.js → p--_RUy11E.js} +1 -1
- package/dist/components/p-B-Tjx5SX.js +1 -0
- package/dist/components/{p-CgV4zAwQ.js → p-B4UX_mB_.js} +1 -1
- package/dist/components/{p-p-J7NvGs.js → p-B73K4uEg.js} +1 -1
- package/dist/components/{p-BztqMLE1.js → p-BAf_O-kb.js} +1 -1
- package/dist/components/{p-BcVrianM.js → p-BOsv3j3J.js} +1 -1
- package/dist/components/p-BQ5mo25G.js +1 -0
- package/dist/components/{p-BI70OOEF.js → p-BQjtvIgJ.js} +1 -1
- package/dist/components/p-BTZzfMYY.js +1 -0
- package/dist/components/{p-C-sZ3Bzu.js → p-BX98BUpV.js} +1 -1
- package/dist/components/p-Bdbn4prA.js +8 -0
- package/dist/components/{p-CF15dAPd.js → p-BjM9vx9w.js} +1 -1
- package/dist/components/{p-nKvolHsW.js → p-BkXzaJcc.js} +1 -1
- package/dist/components/{p-CYMnJi7q.js → p-ByM3JujT.js} +1 -1
- package/dist/components/{p-B5HqUnpw.js → p-C2nyJwDX.js} +1 -1
- package/dist/components/{p-CJnk1Plz.js → p-C50q8-fi.js} +1 -1
- package/dist/components/{p-DXQ-UeYl.js → p-C5f1C5m_.js} +1 -1
- package/dist/components/{p-t_FgKIcd.js → p-CEyoGS5R.js} +1 -1
- package/dist/components/{p-BrPUjt5B.js → p-CI8FUu6q.js} +1 -1
- package/dist/components/{p-CMxcvnRv.js → p-CKWJROPt.js} +1 -1
- package/dist/components/{p-B-1KdQSL.js → p-CVhyWWJA.js} +1 -1
- package/dist/components/p-CWuhYFDW.js +1 -0
- package/dist/components/{p-44eECwiT.js → p-CXjWLDzk.js} +1 -1
- package/dist/components/p-C_Jw5r9B.js +1 -0
- package/dist/components/{p-vu71OGLf.js → p-ClXBenaN.js} +1 -1
- package/dist/components/{p-B60jnxEn.js → p-ClkvaRio.js} +1 -1
- package/dist/components/{p-HzogPVbA.js → p-D323rUMJ.js} +1 -1
- package/dist/components/{p-C4uKGuRj.js → p-D4MolLd8.js} +1 -1
- package/dist/components/{p-CPGJg5Si.js → p-D4k1E1mH.js} +1 -1
- package/dist/components/p-D5YRHMvl.js +1 -0
- package/dist/components/p-D9QC8S_K.js +1 -0
- package/dist/components/{p-DikHJHTd.js → p-DBK9GhUz.js} +1 -1
- package/dist/components/{p-Bho4Xl9R.js → p-DCeNW6E9.js} +1 -1
- package/dist/components/{p-C32vgbsV.js → p-DIpqXULQ.js} +1 -1
- package/dist/components/p-DPGMd9pW.js +1 -0
- package/dist/components/{p-C61jDpta.js → p-DTOuhcpL.js} +1 -1
- package/dist/components/{p-DN2JwXg9.js → p-DZRioc0D.js} +1 -1
- package/dist/components/{p-B1d6HEqd.js → p-DZecnsEu.js} +1 -1
- package/dist/components/{p-CZach5oP.js → p-DezVRSSN.js} +1 -1
- package/dist/components/{p-CDUvchOX.js → p-DiSdptzb.js} +1 -1
- package/dist/components/{p-lEX8wezw.js → p-DoCUcvkE.js} +1 -1
- package/dist/components/{p-Bsqoxd9G.js → p-DobMlMDf.js} +1 -1
- package/dist/components/{p-BD6bBnqr.js → p-Dr3_Xm0C.js} +1 -1
- package/dist/components/{p-DnPS3TWn.js → p-JrKx7ojI.js} +1 -1
- package/dist/components/{p-mVj43aKR.js → p-OAkgt412.js} +1 -1
- package/dist/components/{p-Cb2bEUmu.js → p-QcD5cCtX.js} +1 -1
- package/dist/components/{p-D8avEs-F.js → p-QlXxBzaI.js} +1 -1
- package/dist/components/{p-Mpe-2CVQ.js → p-QlyBltAE.js} +1 -1
- package/dist/components/{p-CwZljiBM.js → p-R45gvsNR.js} +1 -1
- package/dist/components/{p-sgozlrhg.js → p-RQYdSAu8.js} +1 -1
- package/dist/components/{p-CvUaogvc.js → p-RcwM6MVX.js} +1 -1
- package/dist/components/p-S9EUQFLQ.js +1 -0
- package/dist/components/{p-Bc4oqt_L.js → p-W3LV-Z7z.js} +1 -1
- package/dist/components/p-_2UzwYR8.js +1 -0
- package/dist/components/{p-DKZxpjnL.js → p-_pn0YVXD.js} +1 -1
- package/dist/components/{p-BmH_7-IQ.js → p-gw3AOj6h.js} +1 -1
- package/dist/components/{p-Bw-D7nPx.js → p-sp4th_AU.js} +1 -1
- package/dist/components/{p-o4S5jRzK.js → p-vwpr_v76.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-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-datepicker.d.ts → tet-tv-program-item.d.ts} +4 -4
- 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-8cHNuJ77.js} +2 -1
- package/dist/esm/{index-gA3_LS77.js → index-CO8AyGrA.js} +21 -21
- package/dist/esm/{index-BzVLx-ae.js → index-Rx46bgOe.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{product-comparison-09p7FlLY.js → product-comparison-DZV6jdwa.js} +1 -1
- package/dist/esm/{service-availability-services-DHbWTGBw.js → service-availability-services-DglLgqmx.js} +1 -1
- package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
- package/dist/esm/tet-accordion.entry.js +8 -8
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
- package/dist/esm/tet-address-offers-v2.entry.js +6 -6
- package/dist/esm/tet-address-offers-view-v2.entry.js +6 -6
- package/dist/esm/tet-address-offers-view.entry.js +5 -5
- package/dist/esm/tet-address-offers_3.entry.js +7 -7
- package/dist/esm/tet-address-search_2.entry.js +9 -9
- package/dist/esm/tet-assembler_3.entry.js +5 -5
- package/dist/esm/tet-autocomplete-dropdown.entry.js +3 -3
- package/dist/esm/tet-autocomplete_2.entry.js +4 -4
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +7 -7
- package/dist/esm/tet-b2b-configurator.entry.js +5 -5
- package/dist/esm/tet-banner-nav.entry.js +4 -4
- 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 +10 -10
- 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 +4 -4
- package/dist/esm/tet-cloud-configurator.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/tet-countdown.entry.js +2 -2
- package/dist/esm/tet-counter.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +5 -5
- package/dist/esm/tet-navigation-mobile.entry.js +7 -7
- 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 +5 -5
- 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 +4 -4
- 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 +5 -5
- 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 +2 -2
- 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 +6 -6
- 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 +4 -4
- 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-DyupRSa9.js +19 -0
- package/dist/esm/tet-tv-program.entry.js +642 -3
- package/dist/esm/{translations-CLCWF8K_.js → translations-Cytyv90Z.js} +2 -2
- package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
- package/dist/tet-components/{p-8b7bbbbf.entry.js → p-00440570.entry.js} +1 -1
- package/dist/tet-components/{p-9d612283.entry.js → p-00ee3383.entry.js} +1 -1
- package/dist/tet-components/{p-19cb8e38.entry.js → p-026c4688.entry.js} +1 -1
- package/dist/tet-components/{p-e45dab2b.entry.js → p-0a35f634.entry.js} +1 -1
- package/dist/tet-components/{p-72c54f04.entry.js → p-0be0b06d.entry.js} +1 -1
- package/dist/tet-components/{p-af7f7020.entry.js → p-1125417c.entry.js} +1 -1
- package/dist/tet-components/{p-0026968d.entry.js → p-17dd27fc.entry.js} +1 -1
- package/dist/tet-components/{p-b389b07a.entry.js → p-18e188fe.entry.js} +1 -1
- package/dist/tet-components/p-1Pg6Bg5R.js +1 -0
- package/dist/tet-components/{p-22db539b.entry.js → p-1ee4e8b2.entry.js} +1 -1
- package/dist/tet-components/{p-0bd6e06e.entry.js → p-25b05e87.entry.js} +1 -1
- package/dist/tet-components/p-27d7ad18.entry.js +1 -0
- package/dist/tet-components/{p-a2e40f04.entry.js → p-285a92c5.entry.js} +1 -1
- package/dist/tet-components/{p-12fe3881.entry.js → p-2a528ade.entry.js} +1 -1
- package/dist/tet-components/{p-0e4129ea.entry.js → p-2c75f965.entry.js} +1 -1
- package/dist/tet-components/{p-c5068d10.entry.js → p-2eafdaed.entry.js} +1 -1
- package/dist/tet-components/{p-0e9201e6.entry.js → p-335a6617.entry.js} +1 -1
- package/dist/tet-components/{p-daa8ca5c.entry.js → p-38ac5d83.entry.js} +1 -1
- package/dist/tet-components/{p-e88e50e6.entry.js → p-39431ec5.entry.js} +1 -1
- package/dist/tet-components/{p-7672a3cf.entry.js → p-3ad392f5.entry.js} +1 -1
- package/dist/tet-components/p-3bf86def.entry.js +1 -0
- package/dist/tet-components/p-3ec54e1f.entry.js +1 -0
- package/dist/tet-components/{p-8329cd9d.entry.js → p-421edd38.entry.js} +1 -1
- package/dist/tet-components/{p-7d62e8e0.entry.js → p-4398cb86.entry.js} +1 -1
- package/dist/tet-components/{p-039121d4.entry.js → p-43b92cf1.entry.js} +1 -1
- package/dist/tet-components/p-444eec19.entry.js +1 -0
- package/dist/tet-components/{p-f8aa1f9b.entry.js → p-53288215.entry.js} +1 -1
- package/dist/tet-components/{p-8424ddb6.entry.js → p-5466531d.entry.js} +1 -1
- package/dist/tet-components/{p-a9706390.entry.js → p-56b3c60a.entry.js} +1 -1
- package/dist/tet-components/{p-9f8c0d62.entry.js → p-56c7ed22.entry.js} +1 -1
- package/dist/tet-components/p-58dc974a.entry.js +1 -0
- package/dist/tet-components/{p-827abc22.entry.js → p-5c9f805c.entry.js} +1 -1
- package/dist/tet-components/{p-1af6b8cb.entry.js → p-5cf98e2a.entry.js} +1 -1
- package/dist/tet-components/{p-9ab815b3.entry.js → p-5f683fd6.entry.js} +1 -1
- package/dist/tet-components/{p-bc73adcc.entry.js → p-61cb3c7b.entry.js} +1 -1
- package/dist/tet-components/{p-318947f9.entry.js → p-671a5b50.entry.js} +1 -1
- package/dist/tet-components/{p-aa0b655b.entry.js → p-694911f0.entry.js} +1 -1
- package/dist/tet-components/{p-e7c43c95.entry.js → p-69c6c216.entry.js} +1 -1
- package/dist/tet-components/{p-73acf518.entry.js → p-6baf4f40.entry.js} +1 -1
- package/dist/tet-components/p-6c3a131b.entry.js +1 -0
- package/dist/tet-components/{p-13550c14.entry.js → p-6e126f61.entry.js} +1 -1
- package/dist/tet-components/{p-f53d2d9f.entry.js → p-6f449651.entry.js} +1 -1
- package/dist/tet-components/{p-f73c5481.entry.js → p-70775616.entry.js} +1 -1
- package/dist/tet-components/{p-0e021d89.entry.js → p-7d81be98.entry.js} +1 -1
- package/dist/tet-components/{p-db92c865.entry.js → p-7da500c3.entry.js} +1 -1
- package/dist/tet-components/{p-324d8840.entry.js → p-82de3c82.entry.js} +1 -1
- package/dist/tet-components/{p-c778dbd4.entry.js → p-84153818.entry.js} +1 -1
- package/dist/tet-components/{p-c321199b.entry.js → p-845addd5.entry.js} +1 -1
- package/dist/tet-components/{p-b370c444.entry.js → p-88184103.entry.js} +1 -1
- package/dist/tet-components/p-8c53b195.entry.js +1 -0
- package/dist/tet-components/{p-03b6c7a2.entry.js → p-998ee6ff.entry.js} +1 -1
- package/dist/tet-components/{p-e9e288f6.entry.js → p-9cb7e09d.entry.js} +1 -1
- package/dist/tet-components/{p-4a21fdfb.entry.js → p-9fcebf59.entry.js} +1 -1
- package/dist/tet-components/{p-nYl-0ap-.js → p-B00u2s3v.js} +1 -1
- package/dist/tet-components/p-BCewZzcy.js +8 -0
- package/dist/tet-components/p-BTxL4Knq.js +1 -0
- package/dist/tet-components/p-C9BlrGW8.js +1 -0
- package/dist/tet-components/p-CO8AyGrA.js +3 -0
- package/dist/tet-components/p-CaZKtSyx.js +1 -0
- package/dist/tet-components/p-Cak7jORV.js +1 -0
- package/dist/tet-components/{p-AT09y63b.js → p-DSi6YWYP.js} +1 -1
- package/dist/tet-components/{p-Th74Kc5K.js → p-WCtqtcml.js} +1 -1
- package/dist/tet-components/{p-8b2edb99.entry.js → p-a5dc9b50.entry.js} +1 -1
- package/dist/tet-components/{p-ff164570.entry.js → p-a72a6886.entry.js} +1 -1
- package/dist/tet-components/{p-484266ca.entry.js → p-aab96319.entry.js} +1 -1
- package/dist/tet-components/{p-6800ae9e.entry.js → p-afdfbbe6.entry.js} +1 -1
- package/dist/tet-components/{p-0b122cc1.entry.js → p-b32bfbcc.entry.js} +1 -1
- package/dist/tet-components/{p-a91c8e30.entry.js → p-b394da8f.entry.js} +1 -1
- package/dist/tet-components/{p-25c80589.entry.js → p-b47dbd57.entry.js} +1 -1
- package/dist/tet-components/{p-675387bc.entry.js → p-b495c225.entry.js} +1 -1
- package/dist/tet-components/{p-6a3891bf.entry.js → p-b85587af.entry.js} +1 -1
- package/dist/tet-components/{p-845419ea.entry.js → p-baf51820.entry.js} +1 -1
- package/dist/tet-components/{p-17f8270f.entry.js → p-bb72ca94.entry.js} +1 -1
- package/dist/tet-components/{p-7b98b883.entry.js → p-bbde7f66.entry.js} +1 -1
- package/dist/tet-components/{p-1ce9b751.entry.js → p-bc168e7d.entry.js} +1 -1
- package/dist/tet-components/{p-ae31acd5.entry.js → p-c0c72e90.entry.js} +1 -1
- package/dist/tet-components/{p-3dd266f3.entry.js → p-c1e542f3.entry.js} +1 -1
- package/dist/tet-components/{p-1ed0c66f.entry.js → p-c66fa72e.entry.js} +1 -1
- package/dist/tet-components/{p-e59ec4c3.entry.js → p-cc26cad3.entry.js} +1 -1
- package/dist/tet-components/{p-467663a9.entry.js → p-d0824b42.entry.js} +1 -1
- package/dist/tet-components/{p-73a66398.entry.js → p-d0e27220.entry.js} +1 -1
- package/dist/tet-components/{p-ebd66166.entry.js → p-d2bfb56b.entry.js} +1 -1
- package/dist/tet-components/{p-57d07760.entry.js → p-d9059fe6.entry.js} +1 -1
- package/dist/tet-components/{p-231dde32.entry.js → p-dce8109c.entry.js} +1 -1
- package/dist/tet-components/{p-0d0de163.entry.js → p-e6ae26c9.entry.js} +1 -1
- package/dist/tet-components/{p-0744b479.entry.js → p-e813e289.entry.js} +1 -1
- package/dist/tet-components/{p-2be883e9.entry.js → p-e8395909.entry.js} +1 -1
- package/dist/tet-components/{p-7dfd519c.entry.js → p-eac96e34.entry.js} +1 -1
- package/dist/tet-components/{p-ac515335.entry.js → p-ece42f8d.entry.js} +1 -1
- package/dist/tet-components/{p-7c1dd176.entry.js → p-edd7aeaa.entry.js} +1 -1
- package/dist/tet-components/{p-32983951.entry.js → p-ef66b469.entry.js} +1 -1
- package/dist/tet-components/{p-16282657.entry.js → p-f1512e81.entry.js} +1 -1
- package/dist/tet-components/{p-2884891b.entry.js → p-f8106629.entry.js} +1 -1
- package/dist/tet-components/{p-76be889b.entry.js → p-ff09a8f4.entry.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 -389
- 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-datepicker-header_4.cjs.entry.js +0 -387
- package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
- package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +0 -536
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css +0 -393
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css +0 -382
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
- package/dist/components/p-BMSAKp34.js +0 -1
- package/dist/components/p-Br4jWI9B.js +0 -8
- package/dist/components/p-C9dDgHzh.js +0 -1
- package/dist/components/p-CSxtbfBJ.js +0 -1
- package/dist/components/p-Cdi7KDBd.js +0 -1
- package/dist/components/p-Cef0hbKH.js +0 -1
- package/dist/components/p-CoQ-OVcl.js +0 -1
- package/dist/components/p-Czx7ardH.js +0 -1
- package/dist/components/p-D0GJDW-O.js +0 -1
- package/dist/components/p-DgT79UG-.js +0 -1
- package/dist/components/p-DrFW6lxe.js +0 -1
- package/dist/components/p-DutLsF-O.js +0 -1
- package/dist/components/p-Lpb2mgqh.js +0 -1
- package/dist/components/p-Q3NUC_eC.js +0 -1
- package/dist/components/tet-datepicker-header.d.ts +0 -11
- package/dist/components/tet-datepicker-header.js +0 -1
- package/dist/components/tet-datepicker-month-view.d.ts +0 -11
- package/dist/components/tet-datepicker-month-view.js +0 -1
- package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
- package/dist/components/tet-datepicker-multi-year-view.js +0 -1
- package/dist/components/tet-datepicker-year-view.d.ts +0 -11
- package/dist/components/tet-datepicker-year-view.js +0 -1
- package/dist/components/tet-datepicker.js +0 -1
- package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
- package/dist/esm/tet-datepicker.entry.js +0 -130
- package/dist/esm/tet-tv-program-channel-picker_2.entry.js +0 -533
- package/dist/tet-components/p-340c3e79.entry.js +0 -1
- package/dist/tet-components/p-3a573d6e.entry.js +0 -1
- package/dist/tet-components/p-7d218d65.entry.js +0 -1
- package/dist/tet-components/p-Bvqcvhjw.js +0 -1
- package/dist/tet-components/p-CNGb2lWC.js +0 -8
- package/dist/tet-components/p-ChdlTQSF.js +0 -1
- package/dist/tet-components/p-D0GJDW-O.js +0 -1
- 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
- package/dist/tet-components/p-gA3_LS77.js +0 -3
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
- package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-puzHM5yZ.js');
|
|
4
|
+
var TooltipPosition = require('./TooltipPosition-DcSrsoxg.js');
|
|
5
|
+
|
|
6
|
+
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)}}`;
|
|
7
|
+
|
|
8
|
+
const TetTooltip = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The HTML element that should trigger the tooltip.
|
|
14
|
+
*/
|
|
15
|
+
targetElement = null;
|
|
16
|
+
/**
|
|
17
|
+
* The pointer element of the tooltip.
|
|
18
|
+
*/
|
|
19
|
+
tooltipPointer;
|
|
20
|
+
/**
|
|
21
|
+
* The minimum spacing in pixels from the sides of the window and the target element for the tooltip.
|
|
22
|
+
*/
|
|
23
|
+
margin = 8;
|
|
24
|
+
/**
|
|
25
|
+
* The time in seconds of how long should the hover should happen before the tooltip should play the fade-out animation.
|
|
26
|
+
* This should match CSS --tooltip-delay-show property value.
|
|
27
|
+
*/
|
|
28
|
+
tooltipTimeThreshold = 0.25;
|
|
29
|
+
/**
|
|
30
|
+
* The properties of keeping track when the mouse entered or exited the target element.
|
|
31
|
+
*/
|
|
32
|
+
tooltipStartTime = 0;
|
|
33
|
+
tooltipEndTime = 0;
|
|
34
|
+
resizeObserver;
|
|
35
|
+
displayTimeout;
|
|
36
|
+
listenersAttached = false;
|
|
37
|
+
showHandler = this.show.bind(this);
|
|
38
|
+
hideHandler = this.hide.bind(this);
|
|
39
|
+
get element() { return index.getElement(this); }
|
|
40
|
+
/**
|
|
41
|
+
* Tooltip theme. Set to the "classic" theme by default.
|
|
42
|
+
*/
|
|
43
|
+
theme = 'classic';
|
|
44
|
+
/**
|
|
45
|
+
* The selector to use to bind the tooltip to the target element. The parent element is bound by default.
|
|
46
|
+
* Any valid "querySelector" value can be used.
|
|
47
|
+
*/
|
|
48
|
+
targetElementSelector;
|
|
49
|
+
/**
|
|
50
|
+
* The element to which the tooltip will be bound to.
|
|
51
|
+
*/
|
|
52
|
+
hoverElement;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates whether to show the tooltip on hover or not.
|
|
55
|
+
*/
|
|
56
|
+
doNotShowOnHover = false;
|
|
57
|
+
/**
|
|
58
|
+
* The default position of tooltip.
|
|
59
|
+
*/
|
|
60
|
+
position = TooltipPosition.TooltipPosition.BOTTOM;
|
|
61
|
+
/**
|
|
62
|
+
* The state of the inner position. By default, takes the value from the position prop.
|
|
63
|
+
* Can change depending on the available space.
|
|
64
|
+
*/
|
|
65
|
+
positionState = TooltipPosition.TooltipPosition.BOTTOM;
|
|
66
|
+
/**
|
|
67
|
+
* The visibility state of the tooltip.
|
|
68
|
+
*/
|
|
69
|
+
showTooltip = false;
|
|
70
|
+
/**
|
|
71
|
+
* Listen for the `touchmove` event and hide the tooltip if visible.
|
|
72
|
+
* This will handle the mobile device events.
|
|
73
|
+
*/
|
|
74
|
+
handleTouchmove() {
|
|
75
|
+
this.hideQuick();
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Listen for the `wheel` event and hide the tooltip if visible.
|
|
79
|
+
* The `wheel` event is intentionally preferred instead of `scroll`.
|
|
80
|
+
*/
|
|
81
|
+
handleWheel() {
|
|
82
|
+
this.hideQuick();
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Listen for the `Escape` keydown event and hide the tooltip if visible.
|
|
86
|
+
*/
|
|
87
|
+
onKeydown(event) {
|
|
88
|
+
if (event.code === 'Escape') {
|
|
89
|
+
this.hideQuick();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Listen for the window to resize and reset the `positionState` to the original default value.
|
|
94
|
+
*/
|
|
95
|
+
handleResize() {
|
|
96
|
+
this.positionState = this.position;
|
|
97
|
+
}
|
|
98
|
+
handlePositionChange(position) {
|
|
99
|
+
this.positionState = position;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Hide the tooltip quickly and ignore the time the tooltip has been visible for on screen.
|
|
103
|
+
*/
|
|
104
|
+
hideQuick = () => {
|
|
105
|
+
if (this.showTooltip) {
|
|
106
|
+
this.tooltipStartTime = Date.now();
|
|
107
|
+
this.hide();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
onShowTooltipChange(value) {
|
|
111
|
+
// The "fade-out" is watched separately for changes to avoid the animation on the initial page load.
|
|
112
|
+
if (!value) {
|
|
113
|
+
// The time spent on showing the tooltip in seconds.
|
|
114
|
+
const tooltipTime = this.tooltipEndTime / 1000 - this.tooltipStartTime / 1000;
|
|
115
|
+
// This avoids playing the "fade-out" animation when the mouse is quickly moved over tooltip target element.
|
|
116
|
+
// Otherwise, the tooltips would pop up and play the fade-out animation each time.
|
|
117
|
+
this.element.classList.add(tooltipTime > this.tooltipTimeThreshold ? 'hidden' : 'hidden-quick');
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.element.classList.remove('hidden', 'hidden-quick');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
componentWillLoad() {
|
|
124
|
+
this.positionState = this.position;
|
|
125
|
+
// By default, set tooltip to be hidden.
|
|
126
|
+
this.element.style.display = 'none';
|
|
127
|
+
}
|
|
128
|
+
resolveTarget() {
|
|
129
|
+
if (this.hoverElement) {
|
|
130
|
+
return this.hoverElement;
|
|
131
|
+
}
|
|
132
|
+
if (this.targetElementSelector) {
|
|
133
|
+
return (this.element.closest(this.targetElementSelector) ??
|
|
134
|
+
document.querySelector(this.targetElementSelector));
|
|
135
|
+
}
|
|
136
|
+
return this.element.parentElement;
|
|
137
|
+
}
|
|
138
|
+
bindTarget() {
|
|
139
|
+
const target = this.resolveTarget();
|
|
140
|
+
const element = this.element;
|
|
141
|
+
if (this.listenersAttached && target === this.targetElement) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
this.unbindTarget();
|
|
145
|
+
this.targetElement = target;
|
|
146
|
+
if (!target) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (!this.doNotShowOnHover) {
|
|
150
|
+
target.addEventListener('mouseenter', this.showHandler);
|
|
151
|
+
target.addEventListener('mouseleave', this.hideHandler);
|
|
152
|
+
}
|
|
153
|
+
target.addEventListener('focusin', this.showHandler);
|
|
154
|
+
target.addEventListener('focusout', this.hideHandler);
|
|
155
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
156
|
+
if (!target.offsetHeight) {
|
|
157
|
+
element.classList.remove('hidden');
|
|
158
|
+
element.classList.add('hidden-quick');
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
this.resizeObserver.observe(target);
|
|
162
|
+
this.listenersAttached = true;
|
|
163
|
+
}
|
|
164
|
+
unbindTarget() {
|
|
165
|
+
if (this.targetElement && this.listenersAttached) {
|
|
166
|
+
this.targetElement.removeEventListener('mouseenter', this.showHandler);
|
|
167
|
+
this.targetElement.removeEventListener('mouseleave', this.hideHandler);
|
|
168
|
+
this.targetElement.removeEventListener('focusin', this.showHandler);
|
|
169
|
+
this.targetElement.removeEventListener('focusout', this.hideHandler);
|
|
170
|
+
}
|
|
171
|
+
this.resizeObserver?.disconnect();
|
|
172
|
+
this.resizeObserver = undefined;
|
|
173
|
+
this.listenersAttached = false;
|
|
174
|
+
}
|
|
175
|
+
scheduleDisplay() {
|
|
176
|
+
// Delay the visibility for a moment to avoid the blinking effect of the tooltips shortly after the load.
|
|
177
|
+
const element = this.element;
|
|
178
|
+
const shouldShowOnHover = !this.doNotShowOnHover;
|
|
179
|
+
const targetElement = this.targetElement;
|
|
180
|
+
clearTimeout(this.displayTimeout);
|
|
181
|
+
this.displayTimeout = setTimeout(() => {
|
|
182
|
+
this.displayTimeout = undefined;
|
|
183
|
+
if (!element.isConnected)
|
|
184
|
+
return;
|
|
185
|
+
element.style.display = 'inline-block';
|
|
186
|
+
if (shouldShowOnHover && targetElement?.matches(':hover')) {
|
|
187
|
+
void this.show();
|
|
188
|
+
}
|
|
189
|
+
}, 100);
|
|
190
|
+
}
|
|
191
|
+
componentDidLoad() {
|
|
192
|
+
this.bindTarget();
|
|
193
|
+
this.scheduleDisplay();
|
|
194
|
+
}
|
|
195
|
+
connectedCallback() {
|
|
196
|
+
const element = this.element;
|
|
197
|
+
queueMicrotask(() => {
|
|
198
|
+
if (!element.isConnected) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
this.bindTarget();
|
|
202
|
+
this.scheduleDisplay();
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
disconnectedCallback() {
|
|
206
|
+
clearTimeout(this.displayTimeout);
|
|
207
|
+
this.displayTimeout = undefined;
|
|
208
|
+
this.unbindTarget();
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Show the tooltip.
|
|
212
|
+
*/
|
|
213
|
+
async show() {
|
|
214
|
+
this.tooltipStartTime = Date.now();
|
|
215
|
+
this.showTooltip = true;
|
|
216
|
+
this.positionTooltip();
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Hide the tooltip.
|
|
220
|
+
*/
|
|
221
|
+
async hide() {
|
|
222
|
+
this.tooltipEndTime = Date.now();
|
|
223
|
+
this.showTooltip = false;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Toggle the tooltip.
|
|
227
|
+
*/
|
|
228
|
+
async toggle() {
|
|
229
|
+
if (this.showTooltip) {
|
|
230
|
+
await this.hide();
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
await this.show();
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Positions the tooltip corresponding to the target element.
|
|
238
|
+
*/
|
|
239
|
+
positionTooltip = () => {
|
|
240
|
+
const targetElement = this.targetElement;
|
|
241
|
+
if (!targetElement) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
const targetBoundaries = targetElement.getBoundingClientRect();
|
|
245
|
+
/**
|
|
246
|
+
* Check whether the tooltip can be placed on either side of the element
|
|
247
|
+
* when either the left or the right position is set by default.
|
|
248
|
+
*/
|
|
249
|
+
if ([TooltipPosition.TooltipPosition.LEFT, TooltipPosition.TooltipPosition.RIGHT].includes(this.positionState)) {
|
|
250
|
+
const canPositionRight = window.innerWidth > targetBoundaries.right + this.margin + this.element.offsetWidth;
|
|
251
|
+
const canPositionLeft = this.element.offsetWidth + this.margin < targetBoundaries.left;
|
|
252
|
+
// Change positioning if it cannot.
|
|
253
|
+
if (!canPositionLeft && !canPositionRight) {
|
|
254
|
+
this.positionState = TooltipPosition.TooltipPosition.BOTTOM;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
const isTooltipOutOfVerticalBounds = this.positionTooltipVertically(targetBoundaries);
|
|
258
|
+
const isTooltipOutOfHorizontalBounds = this.positionTooltipHorizontally(targetBoundaries);
|
|
259
|
+
// Applies a margin for spacing purposes.
|
|
260
|
+
// This is done via JS as the margin values are needed for position calculations as well.
|
|
261
|
+
this.element.style.margin = `${this.margin}px`;
|
|
262
|
+
// Position the pointer (caret) element after the tooltip as the main tooltip position is required for calculations.
|
|
263
|
+
const isTooltipOutOfBounds = isTooltipOutOfVerticalBounds || isTooltipOutOfHorizontalBounds;
|
|
264
|
+
const actualTooltipPosition = this.getTooltipPosition(isTooltipOutOfBounds);
|
|
265
|
+
this.positionTooltipPointer(actualTooltipPosition);
|
|
266
|
+
};
|
|
267
|
+
getTooltipPosition(isTooltipOutOfBounds) {
|
|
268
|
+
switch (this.positionState) {
|
|
269
|
+
case TooltipPosition.TooltipPosition.TOP:
|
|
270
|
+
if (isTooltipOutOfBounds) {
|
|
271
|
+
return TooltipPosition.TooltipPosition.BOTTOM;
|
|
272
|
+
}
|
|
273
|
+
return TooltipPosition.TooltipPosition.TOP;
|
|
274
|
+
case TooltipPosition.TooltipPosition.BOTTOM:
|
|
275
|
+
if (isTooltipOutOfBounds) {
|
|
276
|
+
return TooltipPosition.TooltipPosition.TOP;
|
|
277
|
+
}
|
|
278
|
+
return TooltipPosition.TooltipPosition.BOTTOM;
|
|
279
|
+
case TooltipPosition.TooltipPosition.LEFT:
|
|
280
|
+
if (isTooltipOutOfBounds) {
|
|
281
|
+
return TooltipPosition.TooltipPosition.RIGHT;
|
|
282
|
+
}
|
|
283
|
+
return TooltipPosition.TooltipPosition.LEFT;
|
|
284
|
+
case TooltipPosition.TooltipPosition.RIGHT:
|
|
285
|
+
if (isTooltipOutOfBounds) {
|
|
286
|
+
return TooltipPosition.TooltipPosition.LEFT;
|
|
287
|
+
}
|
|
288
|
+
return TooltipPosition.TooltipPosition.RIGHT;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
positionTooltipVertically(targetBoundaries) {
|
|
292
|
+
let isTooltipOutOfBounds = false;
|
|
293
|
+
switch (this.positionState) {
|
|
294
|
+
case TooltipPosition.TooltipPosition.BOTTOM:
|
|
295
|
+
if (targetBoundaries.bottom + this.element.offsetHeight + this.margin > window.innerHeight) {
|
|
296
|
+
// When the tooltip would be outside the screen on the bottom side.
|
|
297
|
+
this.element.style.top = '';
|
|
298
|
+
this.element.style.bottom = `${window.innerHeight - targetBoundaries.top}px`;
|
|
299
|
+
isTooltipOutOfBounds = true;
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
// When the tooltip is within the screen boundaries.
|
|
303
|
+
this.element.style.top = `${targetBoundaries.bottom}px`;
|
|
304
|
+
this.element.style.bottom = '';
|
|
305
|
+
}
|
|
306
|
+
break;
|
|
307
|
+
case TooltipPosition.TooltipPosition.TOP:
|
|
308
|
+
if (targetBoundaries.top - this.element.offsetHeight < 0) {
|
|
309
|
+
// When the tooltip would be outside the screen on the top side.
|
|
310
|
+
this.element.style.top = `${targetBoundaries.bottom}px`;
|
|
311
|
+
this.element.style.bottom = '';
|
|
312
|
+
isTooltipOutOfBounds = true;
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
// When the tooltip is within the screen boundaries.
|
|
316
|
+
this.element.style.top = '';
|
|
317
|
+
this.element.style.bottom = `${window.innerHeight - targetBoundaries.top}px`;
|
|
318
|
+
}
|
|
319
|
+
break;
|
|
320
|
+
default:
|
|
321
|
+
const targetElementCenterPostion = targetBoundaries.top + targetBoundaries.height / 2;
|
|
322
|
+
const tooltipCenterWidth = this.element.offsetHeight / 2 + this.margin;
|
|
323
|
+
const tooltipTopPosition = targetElementCenterPostion - tooltipCenterWidth;
|
|
324
|
+
if (tooltipTopPosition < 0) {
|
|
325
|
+
// When the tooltip would be outside the screen on the top side.
|
|
326
|
+
this.element.style.top = '0';
|
|
327
|
+
this.element.style.bottom = '';
|
|
328
|
+
}
|
|
329
|
+
else if (tooltipTopPosition + this.element.offsetHeight + this.margin > window.innerHeight) {
|
|
330
|
+
// When the tooltip would be outside the screen on the bottom side.
|
|
331
|
+
this.element.style.top = '';
|
|
332
|
+
this.element.style.bottom = '0';
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
// When the tooltip is within the screen boundaries.
|
|
336
|
+
this.element.style.top = `${tooltipTopPosition}px`;
|
|
337
|
+
this.element.style.bottom = '';
|
|
338
|
+
}
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
return isTooltipOutOfBounds;
|
|
342
|
+
}
|
|
343
|
+
positionTooltipHorizontally(targetBoundaries) {
|
|
344
|
+
let isTooltipOutOfBounds = false;
|
|
345
|
+
switch (this.positionState) {
|
|
346
|
+
case TooltipPosition.TooltipPosition.LEFT:
|
|
347
|
+
if (this.element.offsetWidth + this.margin > targetBoundaries.left) {
|
|
348
|
+
this.element.style.left = `${targetBoundaries.right}px`;
|
|
349
|
+
this.element.style.right = '';
|
|
350
|
+
isTooltipOutOfBounds = true;
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
this.element.style.left = '';
|
|
354
|
+
this.element.style.right = `${window.innerWidth - targetBoundaries.left}px`;
|
|
355
|
+
}
|
|
356
|
+
break;
|
|
357
|
+
case TooltipPosition.TooltipPosition.RIGHT:
|
|
358
|
+
if (window.innerWidth < targetBoundaries.right + this.margin + this.element.offsetWidth) {
|
|
359
|
+
this.element.style.left = '';
|
|
360
|
+
this.element.style.right = `${window.innerWidth - targetBoundaries.left}px`;
|
|
361
|
+
isTooltipOutOfBounds = true;
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
this.element.style.left = `${targetBoundaries.right}px`;
|
|
365
|
+
this.element.style.right = '';
|
|
366
|
+
}
|
|
367
|
+
break;
|
|
368
|
+
default:
|
|
369
|
+
const targetElementCenterPostion = targetBoundaries.left + targetBoundaries.width / 2;
|
|
370
|
+
const tooltipCenterWidth = this.element.offsetWidth / 2 - this.margin;
|
|
371
|
+
const tooltipLeftPosition = targetElementCenterPostion - tooltipCenterWidth;
|
|
372
|
+
if (tooltipLeftPosition < 0) {
|
|
373
|
+
// When the tooltip would be outside the screen on the left side.
|
|
374
|
+
this.element.style.left = '0';
|
|
375
|
+
this.element.style.right = '';
|
|
376
|
+
}
|
|
377
|
+
else if (tooltipLeftPosition + this.element.offsetWidth + this.margin > window.innerWidth) {
|
|
378
|
+
// When the tooltip would be outside the screen on the right side.
|
|
379
|
+
this.element.style.left = '';
|
|
380
|
+
this.element.style.right = '0';
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
// When the tooltip is within the screen boundaries.
|
|
384
|
+
this.element.style.left = `${tooltipLeftPosition}px`;
|
|
385
|
+
this.element.style.right = '';
|
|
386
|
+
}
|
|
387
|
+
break;
|
|
388
|
+
}
|
|
389
|
+
return isTooltipOutOfBounds;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Position the tooltip pointer (caret) element.
|
|
393
|
+
*/
|
|
394
|
+
positionTooltipPointer = (position) => {
|
|
395
|
+
const targetElement = this.targetElement;
|
|
396
|
+
if (!targetElement) {
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
const target = targetElement.getBoundingClientRect();
|
|
400
|
+
const tooltip = this.element.getBoundingClientRect();
|
|
401
|
+
if ([TooltipPosition.TooltipPosition.TOP, TooltipPosition.TooltipPosition.BOTTOM].includes(position)) {
|
|
402
|
+
// Get the boundaries of the overlapping target element and the tooltip area on X axis.
|
|
403
|
+
const max = Math.min(target.right, tooltip.left + this.element.offsetWidth);
|
|
404
|
+
const min = Math.max(target.left, tooltip.left);
|
|
405
|
+
const overlapAreaMiddle = (max + min) / 2;
|
|
406
|
+
this.tooltipPointer.style.left = `${overlapAreaMiddle - tooltip.left - this.tooltipPointer.offsetWidth / 2}px`;
|
|
407
|
+
if (position === TooltipPosition.TooltipPosition.BOTTOM) {
|
|
408
|
+
this.tooltipPointer.style.top = `-6px`;
|
|
409
|
+
this.tooltipPointer.style.bottom = '';
|
|
410
|
+
this.tooltipPointer.style.transform = 'rotate(0deg)';
|
|
411
|
+
}
|
|
412
|
+
if (position === TooltipPosition.TooltipPosition.TOP) {
|
|
413
|
+
this.tooltipPointer.style.top = '';
|
|
414
|
+
this.tooltipPointer.style.bottom = `-6px`;
|
|
415
|
+
this.tooltipPointer.style.transform = 'rotate(180deg)';
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
if ([TooltipPosition.TooltipPosition.LEFT, TooltipPosition.TooltipPosition.RIGHT].includes(position)) {
|
|
419
|
+
// Get the boundaries of the overlapping target element and the tooltip area on Y axis.
|
|
420
|
+
const max = Math.min(target.bottom, tooltip.top + this.element.offsetHeight);
|
|
421
|
+
const min = Math.max(target.top, tooltip.top);
|
|
422
|
+
const overlapAreaMiddle = (max + min) / 2;
|
|
423
|
+
this.tooltipPointer.style.top = `${overlapAreaMiddle - tooltip.top - this.tooltipPointer.offsetHeight / 2}px`;
|
|
424
|
+
if (position === TooltipPosition.TooltipPosition.RIGHT) {
|
|
425
|
+
this.tooltipPointer.style.left = `-12px`;
|
|
426
|
+
this.tooltipPointer.style.right = '';
|
|
427
|
+
this.tooltipPointer.style.transform = 'rotate(270deg)';
|
|
428
|
+
}
|
|
429
|
+
if (position === TooltipPosition.TooltipPosition.LEFT) {
|
|
430
|
+
this.tooltipPointer.style.left = '';
|
|
431
|
+
this.tooltipPointer.style.right = `-12px`;
|
|
432
|
+
this.tooltipPointer.style.transform = 'rotate(90deg)';
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* Renders the tooltip.
|
|
438
|
+
*/
|
|
439
|
+
renderTooltip = () => {
|
|
440
|
+
return (index.h("div", { class: { tooltip: true, [`${this.theme}`]: true }, role: "tooltip", "aria-hidden": this.showTooltip ? 'false' : 'true', "aria-live": this.showTooltip ? 'polite' : undefined }, index.h("div", { class: "tooltip-pointer", ref: (el) => (this.tooltipPointer = el) }), index.h("slot", null)));
|
|
441
|
+
};
|
|
442
|
+
render() {
|
|
443
|
+
return index.h(index.Host, { key: '79928506f2183fa0ab3b9b8821c3eadb7ac6b3ea', class: { visible: this.showTooltip } }, this.renderTooltip());
|
|
444
|
+
}
|
|
445
|
+
static get watchers() { return {
|
|
446
|
+
"position": [{
|
|
447
|
+
"handlePositionChange": 0
|
|
448
|
+
}],
|
|
449
|
+
"showTooltip": [{
|
|
450
|
+
"onShowTooltipChange": 0
|
|
451
|
+
}]
|
|
452
|
+
}; }
|
|
453
|
+
};
|
|
454
|
+
TetTooltip.style = tetTooltipCss();
|
|
455
|
+
|
|
456
|
+
exports.tet_tooltip = TetTooltip;
|