@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
|
@@ -1,9 +1,536 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
1
|
+
import { forceUpdate, h, Host } from "@stencil/core";
|
|
2
|
+
import { processTranslations, t } from "../../../services/translations/index";
|
|
3
|
+
import { tvProgram } from "../../../services/api/services/tv/tv-program";
|
|
4
|
+
import { formatLocalDate } from "../../../services/utils/date";
|
|
5
|
+
import { getBroadcastTiming } from "./utils/broadcast-time";
|
|
6
|
+
import { fillProgramGaps } from "./utils/fill-program-gaps";
|
|
7
|
+
import { renderProgramPlaceholders } from "./tet-tv-program-placeholders";
|
|
8
|
+
const DESKTOP_BREAKPOINT = 1024;
|
|
9
|
+
const MAX_TIMEOUT_DELAY = 24 * 60 * 60 * 1000;
|
|
10
|
+
const MINUTE_MS = 60 * 1000;
|
|
11
|
+
const DESKTOP_PAGE_SIZE = 20;
|
|
12
|
+
const LOAD_MORE_RETRY_DELAY = 2000;
|
|
2
13
|
export class TetTvProgram {
|
|
14
|
+
/** Theme of the component. */
|
|
15
|
+
theme = 'light';
|
|
16
|
+
/** Custom heading. Defaults to the translated TV program title. */
|
|
17
|
+
heading;
|
|
3
18
|
/** Language used by the TV program components. */
|
|
4
19
|
language = 'lv';
|
|
20
|
+
/** Platforms available in the TV program switch. */
|
|
21
|
+
platforms;
|
|
22
|
+
channels = [];
|
|
23
|
+
channelsLoading = true;
|
|
24
|
+
programLoading = false;
|
|
25
|
+
loadingMoreChannels = false;
|
|
26
|
+
programItems = [];
|
|
27
|
+
broadcastTiming = {};
|
|
28
|
+
selectedDate = formatLocalDate();
|
|
29
|
+
isMobile = true;
|
|
30
|
+
currentTime = Date.now();
|
|
31
|
+
desktopSchedules = [];
|
|
32
|
+
controlsHeight = 0;
|
|
33
|
+
desktopCurrentTimeVisible = false;
|
|
34
|
+
channelsByPlatform = new Map();
|
|
35
|
+
programByChannel = new Map();
|
|
36
|
+
desktopPages = new Map();
|
|
37
|
+
readyMobileItems;
|
|
38
|
+
pendingMobileItems;
|
|
39
|
+
selectedPlatformId;
|
|
40
|
+
programRequest;
|
|
41
|
+
selectedChannelId;
|
|
42
|
+
datePicker;
|
|
43
|
+
controls;
|
|
44
|
+
mobileList;
|
|
45
|
+
mobileListLoadingHeight = 0;
|
|
46
|
+
pendingMobileListLayout;
|
|
47
|
+
schedule;
|
|
48
|
+
controlsResizeObserver;
|
|
49
|
+
stopLoadMoreObservation;
|
|
50
|
+
loadMoreSentinel;
|
|
51
|
+
loadMoreRetryAfter = 0;
|
|
52
|
+
scrollDesktopToNowPending;
|
|
53
|
+
activeMobileItem;
|
|
54
|
+
scrollToActivePending = false;
|
|
55
|
+
scrollToListStartPending = false;
|
|
56
|
+
selectedProgramItem;
|
|
57
|
+
hasLoaded = false;
|
|
58
|
+
desktopMediaQuery;
|
|
59
|
+
broadcastTimer;
|
|
60
|
+
connected = false;
|
|
61
|
+
connectedCallback() {
|
|
62
|
+
this.connected = true;
|
|
63
|
+
this.updateBroadcastTiming();
|
|
64
|
+
if (this.hasLoaded) {
|
|
65
|
+
this.observeControls();
|
|
66
|
+
}
|
|
67
|
+
this.desktopMediaQuery = globalThis.matchMedia?.(`(min-width: ${DESKTOP_BREAKPOINT}px)`);
|
|
68
|
+
this.isMobile = !this.desktopMediaQuery?.matches;
|
|
69
|
+
this.scrollDesktopToNowPending = this.hasLoaded && !this.isMobile && this.selectedDate === formatLocalDate() ? 'smooth' : undefined;
|
|
70
|
+
this.desktopMediaQuery?.addEventListener('change', this.updateLayout);
|
|
71
|
+
if (this.hasLoaded) {
|
|
72
|
+
this.loadProgram();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async componentWillLoad() {
|
|
76
|
+
this.selectedPlatformId = this.availablePlatforms[0]?.id;
|
|
77
|
+
await this.onLanguageChange(this.language);
|
|
78
|
+
this.scrollDesktopToNowPending = !this.isMobile && this.selectedDate === formatLocalDate() ? 'instant' : undefined;
|
|
79
|
+
this.scrollToActivePending = this.isMobile && this.selectedDate === formatLocalDate();
|
|
80
|
+
this.loadProgram();
|
|
81
|
+
}
|
|
82
|
+
componentDidLoad() {
|
|
83
|
+
this.observeControls();
|
|
84
|
+
this.hasLoaded = true;
|
|
85
|
+
}
|
|
86
|
+
componentDidRender() {
|
|
87
|
+
this.waitForMobileProgramItems();
|
|
88
|
+
if (this.isMobile && !this.programLoading && !this.channelsLoading && this.mobileListLoadingHeight > 0
|
|
89
|
+
&& this.pendingMobileListLayout !== this.programItems) {
|
|
90
|
+
this.pendingMobileListLayout = this.programItems;
|
|
91
|
+
this.releaseMobileListHeight();
|
|
92
|
+
}
|
|
93
|
+
if (this.scrollDesktopToNowPending && !this.isMobile && this.schedule && !this.programLoading && !this.channelsLoading) {
|
|
94
|
+
const behavior = this.scrollDesktopToNowPending;
|
|
95
|
+
this.scrollDesktopToNowPending = undefined;
|
|
96
|
+
this.schedule.scrollToNow(behavior);
|
|
97
|
+
}
|
|
98
|
+
if (this.scrollToActivePending && !this.programLoading && !this.channelsLoading
|
|
99
|
+
&& this.isMobile && this.selectedDate === formatLocalDate() && this.activeMobileItem) {
|
|
100
|
+
this.scrollToActivePending = false;
|
|
101
|
+
this.scrollMobileItemIntoView(this.activeMobileItem, undefined, 'center');
|
|
102
|
+
}
|
|
103
|
+
if (this.scrollToListStartPending && !this.programLoading && !this.channelsLoading && this.isMobile && this.mobileList) {
|
|
104
|
+
this.scrollToListStartPending = false;
|
|
105
|
+
this.scrollMobileItemIntoView(this.mobileList);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
disconnectedCallback() {
|
|
109
|
+
this.pendingMobileItems = undefined;
|
|
110
|
+
this.readyMobileItems = undefined;
|
|
111
|
+
this.stopLoadMoreObservation?.();
|
|
112
|
+
this.loadMoreSentinel = undefined;
|
|
113
|
+
this.controlsResizeObserver?.disconnect();
|
|
114
|
+
this.controlsResizeObserver = undefined;
|
|
115
|
+
this.connected = false;
|
|
116
|
+
this.activeMobileItem = undefined;
|
|
117
|
+
this.scrollToActivePending = false;
|
|
118
|
+
this.scrollDesktopToNowPending = undefined;
|
|
119
|
+
this.selectedProgramItem?.close();
|
|
120
|
+
this.selectedProgramItem = undefined;
|
|
121
|
+
clearTimeout(this.broadcastTimer);
|
|
122
|
+
this.desktopMediaQuery?.removeEventListener('change', this.updateLayout);
|
|
123
|
+
this.desktopMediaQuery = undefined;
|
|
124
|
+
this.programRequest?.abort();
|
|
125
|
+
}
|
|
126
|
+
/** Closes previous details and scrolls the selected mobile item into view. */
|
|
127
|
+
async handleBroadcastSelected(event) {
|
|
128
|
+
const selectedItem = event.composedPath().find(element => element.tagName === 'TET-TV-PROGRAM-ITEM');
|
|
129
|
+
if (!selectedItem) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const previousItem = this.selectedProgramItem === selectedItem ? undefined : this.selectedProgramItem;
|
|
133
|
+
this.selectedProgramItem = selectedItem;
|
|
134
|
+
previousItem?.close();
|
|
135
|
+
const row = selectedItem.parentElement;
|
|
136
|
+
if (this.isMobile && row) {
|
|
137
|
+
await this.scrollMobileItemIntoView(row, previousItem);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
handleCurrentTimeVisibilityChanged(event) {
|
|
141
|
+
this.desktopCurrentTimeVisible = event.detail;
|
|
142
|
+
}
|
|
143
|
+
/** Updates program progress and schedules the next timing refresh. */
|
|
144
|
+
updateBroadcastTiming() {
|
|
145
|
+
clearTimeout(this.broadcastTimer);
|
|
146
|
+
this.activeMobileItem = undefined;
|
|
147
|
+
if (!this.connected) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const now = Date.now();
|
|
151
|
+
this.currentTime = now;
|
|
152
|
+
const timing = {};
|
|
153
|
+
let nextUpdate = this.isMobile ? Number.POSITIVE_INFINITY : now + MINUTE_MS - now % MINUTE_MS;
|
|
154
|
+
const items = this.isMobile ? this.programItems : this.channels.flatMap(channel => this.getChannelProgram(channel.id) ?? []);
|
|
155
|
+
for (const item of items) {
|
|
156
|
+
timing[item.id] = getBroadcastTiming(item, now);
|
|
157
|
+
nextUpdate = Math.min(nextUpdate, timing[item.id].nextUpdate ?? Number.POSITIVE_INFINITY);
|
|
158
|
+
}
|
|
159
|
+
this.broadcastTiming = timing;
|
|
160
|
+
if (Number.isFinite(nextUpdate)) {
|
|
161
|
+
const delay = Math.min(nextUpdate - now, MAX_TIMEOUT_DELAY);
|
|
162
|
+
this.broadcastTimer = setTimeout(() => this.updateBroadcastTiming(), delay);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
async onLanguageChange(language) {
|
|
166
|
+
await processTranslations('tet-components', language);
|
|
167
|
+
forceUpdate(this);
|
|
168
|
+
}
|
|
169
|
+
/** Builds desktop rows from cached channel programs. */
|
|
170
|
+
updateDesktopSchedules() {
|
|
171
|
+
this.desktopSchedules = this.channels.flatMap(channel => {
|
|
172
|
+
const items = this.getChannelProgram(channel.id);
|
|
173
|
+
return items === undefined ? [] : [{ ...channel, items }];
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/** Reloads layout-specific data when the breakpoint changes. */
|
|
177
|
+
updateLayout = () => {
|
|
178
|
+
const mobile = !this.desktopMediaQuery?.matches;
|
|
179
|
+
if (mobile !== this.isMobile) {
|
|
180
|
+
this.isMobile = mobile;
|
|
181
|
+
this.scrollDesktopToNowPending = !mobile && this.selectedDate === formatLocalDate() ? 'smooth' : undefined;
|
|
182
|
+
if (this.hasLoaded && this.connected) {
|
|
183
|
+
this.loadProgram();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
handleChannelChange(channelId) {
|
|
188
|
+
if (channelId !== this.selectedChannelId && this.channels.some(channel => channel.id === channelId)) {
|
|
189
|
+
this.prepareMobileListScroll();
|
|
190
|
+
this.selectedChannelId = channelId;
|
|
191
|
+
this.loadProgram();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
handleDateChange(date) {
|
|
195
|
+
if (date !== this.selectedDate) {
|
|
196
|
+
if (!this.isMobile) {
|
|
197
|
+
this.observeLoadMore();
|
|
198
|
+
const schedule = this.schedule;
|
|
199
|
+
const stickyTop = this.controls ? Number.parseFloat(globalThis.getComputedStyle(this.controls).top) || 0 : 0;
|
|
200
|
+
if (schedule && schedule.getBoundingClientRect().top < this.controlsHeight + stickyTop) {
|
|
201
|
+
schedule.scrollIntoView?.({ behavior: 'instant', block: 'start', inline: 'nearest' });
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
this.prepareMobileListScroll(date);
|
|
205
|
+
this.scrollDesktopToNowPending = !this.isMobile && date === formatLocalDate() ? 'smooth' : undefined;
|
|
206
|
+
this.selectedDate = date;
|
|
207
|
+
this.loadProgram();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
get availablePlatforms() {
|
|
211
|
+
return this.platforms ?? [
|
|
212
|
+
{ id: 4, label: t('components-tv-program-platform-tet-plus') },
|
|
213
|
+
{ id: 1, label: t('components-tv-program-platform-tet-tv') },
|
|
214
|
+
];
|
|
215
|
+
}
|
|
216
|
+
handlePlatformChange(index) {
|
|
217
|
+
const platform = this.availablePlatforms[Number(index)];
|
|
218
|
+
if (platform && platform.id !== this.selectedPlatformId) {
|
|
219
|
+
this.scrollToActivePending = this.isMobile && this.selectedDate === formatLocalDate();
|
|
220
|
+
this.selectedPlatformId = platform.id;
|
|
221
|
+
this.loadProgram();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/** Selects today and scrolls to the current program on mobile or current time on desktop. */
|
|
225
|
+
async handleNowClick() {
|
|
226
|
+
const today = formatLocalDate();
|
|
227
|
+
await this.datePicker?.setDate(today);
|
|
228
|
+
if (!this.isMobile) {
|
|
229
|
+
this.scrollDesktopToNowPending = 'smooth';
|
|
230
|
+
if (this.selectedDate === today) {
|
|
231
|
+
this.schedule?.scrollToNow();
|
|
232
|
+
this.scrollDesktopToNowPending = undefined;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
this.handleDateChange(today);
|
|
236
|
+
if (this.isMobile) {
|
|
237
|
+
this.scrollToListStartPending = false;
|
|
238
|
+
this.scrollToActivePending = true;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
programCacheKey(platformId, date, channelId) {
|
|
242
|
+
return `${platformId}:${date}:${channelId}`;
|
|
243
|
+
}
|
|
244
|
+
/** Returns cached programs for the selected platform and date. */
|
|
245
|
+
getChannelProgram(channelId) {
|
|
246
|
+
if (this.selectedPlatformId === undefined) {
|
|
247
|
+
return undefined;
|
|
248
|
+
}
|
|
249
|
+
return this.programByChannel.get(this.programCacheKey(this.selectedPlatformId, this.selectedDate, channelId));
|
|
250
|
+
}
|
|
251
|
+
/** Normalizes programs, fills gaps, and caches each channel. */
|
|
252
|
+
cacheProgram(platformId, date, program) {
|
|
253
|
+
for (const schedule of program) {
|
|
254
|
+
const items = schedule.events.map((event, index) => ({
|
|
255
|
+
...event,
|
|
256
|
+
description: event.description ?? undefined,
|
|
257
|
+
image: event.image ?? undefined,
|
|
258
|
+
id: `${schedule.channel.id}-${event.startDate}-${event.startTime}-${index}`,
|
|
259
|
+
channelName: schedule.channel.name,
|
|
260
|
+
}));
|
|
261
|
+
const channelId = String(schedule.channel.id);
|
|
262
|
+
this.programByChannel.set(this.programCacheKey(platformId, date, channelId), fillProgramGaps(items, date, channelId, schedule.channel.name));
|
|
263
|
+
}
|
|
264
|
+
if (this.selectedChannelId !== undefined) {
|
|
265
|
+
const key = this.programCacheKey(platformId, date, this.selectedChannelId);
|
|
266
|
+
this.programItems = this.programByChannel.get(key) ?? [];
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
/** Uses cached programs or fetches data for the current layout. */
|
|
270
|
+
async loadProgram() {
|
|
271
|
+
this.pendingMobileItems = undefined;
|
|
272
|
+
this.readyMobileItems = undefined;
|
|
273
|
+
this.programRequest?.abort();
|
|
274
|
+
this.loadMoreRetryAfter = 0;
|
|
275
|
+
this.loadingMoreChannels = false;
|
|
276
|
+
this.activeMobileItem = undefined;
|
|
277
|
+
this.selectedProgramItem?.close();
|
|
278
|
+
this.selectedProgramItem = undefined;
|
|
279
|
+
this.programItems = [];
|
|
280
|
+
this.programLoading = false;
|
|
281
|
+
this.channelsLoading = false;
|
|
282
|
+
const platformId = this.selectedPlatformId;
|
|
283
|
+
if (platformId === undefined) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
const cachedChannels = this.channelsByPlatform.get(platformId);
|
|
287
|
+
const includeChannels = cachedChannels === undefined;
|
|
288
|
+
if (this.channels !== cachedChannels) {
|
|
289
|
+
this.channels = cachedChannels ?? [];
|
|
290
|
+
this.selectedChannelId = this.channels[0]?.id;
|
|
291
|
+
}
|
|
292
|
+
if (!includeChannels && this.selectedChannelId === undefined) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
const date = this.selectedDate;
|
|
296
|
+
const cachedProgram = this.selectedChannelId === undefined
|
|
297
|
+
? undefined
|
|
298
|
+
: this.programByChannel.get(this.programCacheKey(platformId, date, this.selectedChannelId));
|
|
299
|
+
const desktopCacheKey = `${platformId}:${date}`;
|
|
300
|
+
if (cachedProgram && (this.isMobile || this.desktopPages.has(desktopCacheKey))) {
|
|
301
|
+
this.programItems = cachedProgram;
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
await this.fetchProgram(platformId, date, includeChannels);
|
|
305
|
+
}
|
|
306
|
+
/** Fetches programs and ignores responses from superseded requests. */
|
|
307
|
+
async fetchProgram(platformId, date, includeChannels) {
|
|
308
|
+
const mobile = this.isMobile;
|
|
309
|
+
const request = new AbortController();
|
|
310
|
+
this.programRequest = request;
|
|
311
|
+
this.channelsLoading = includeChannels;
|
|
312
|
+
this.programLoading = true;
|
|
313
|
+
try {
|
|
314
|
+
const response = await tvProgram({
|
|
315
|
+
date,
|
|
316
|
+
platformId,
|
|
317
|
+
pageSize: mobile ? 1 : DESKTOP_PAGE_SIZE,
|
|
318
|
+
...(includeChannels ? {} : { includeChannels: false, ...(mobile ? { channelId: Number(this.selectedChannelId) } : {}) }),
|
|
319
|
+
}, request.signal);
|
|
320
|
+
if (!this.isCurrentProgramRequest(request)) {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
if (includeChannels) {
|
|
324
|
+
this.cacheChannels(platformId, response.channels);
|
|
325
|
+
}
|
|
326
|
+
if (!mobile) {
|
|
327
|
+
this.desktopPages.set(`${platformId}:${date}`, { page: response.page, totalPages: response.totalPages });
|
|
328
|
+
}
|
|
329
|
+
this.cacheProgram(platformId, date, response.program);
|
|
330
|
+
}
|
|
331
|
+
catch (error) {
|
|
332
|
+
if (this.isCurrentProgramRequest(request)) {
|
|
333
|
+
const content = includeChannels ? 'channels' : 'schedule';
|
|
334
|
+
console.error(`TV program ${content} could not be loaded.`, error);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
finally {
|
|
338
|
+
if (this.isCurrentProgramRequest(request)) {
|
|
339
|
+
this.channelsLoading = false;
|
|
340
|
+
this.programLoading = false;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
isCurrentProgramRequest(request) {
|
|
345
|
+
return !request.signal.aborted && this.programRequest === request;
|
|
346
|
+
}
|
|
347
|
+
/** Caches channel metadata and selects the first channel. */
|
|
348
|
+
cacheChannels(platformId, channels) {
|
|
349
|
+
this.channels = (channels ?? []).map(channel => ({
|
|
350
|
+
id: String(channel.id),
|
|
351
|
+
name: channel.name,
|
|
352
|
+
channelNumber: channel.channelNumber,
|
|
353
|
+
languages: channel.languages,
|
|
354
|
+
description: channel.description ?? undefined,
|
|
355
|
+
imageSource: channel.logo.transparentLightSmall ?? '',
|
|
356
|
+
imageSourceDark: channel.logo.transparentDarkSmall ?? undefined,
|
|
357
|
+
}));
|
|
358
|
+
this.channelsByPlatform.set(platformId, this.channels);
|
|
359
|
+
this.selectedChannelId = this.channels[0]?.id;
|
|
360
|
+
}
|
|
361
|
+
/** Appends the next desktop page without resetting loaded rows. */
|
|
362
|
+
async loadMoreChannels() {
|
|
363
|
+
const platformId = this.selectedPlatformId;
|
|
364
|
+
const date = this.selectedDate;
|
|
365
|
+
const key = `${platformId}:${date}`;
|
|
366
|
+
const pagination = this.desktopPages.get(key);
|
|
367
|
+
if (this.isMobile || this.programLoading || this.loadingMoreChannels || platformId === undefined
|
|
368
|
+
|| Date.now() < this.loadMoreRetryAfter
|
|
369
|
+
|| !pagination || pagination.page >= pagination.totalPages || !this.connected) {
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
const request = new AbortController();
|
|
373
|
+
this.programRequest = request;
|
|
374
|
+
this.loadingMoreChannels = true;
|
|
375
|
+
try {
|
|
376
|
+
const response = await tvProgram({
|
|
377
|
+
date, platformId, page: pagination.page + 1, pageSize: DESKTOP_PAGE_SIZE, includeChannels: false,
|
|
378
|
+
}, request.signal);
|
|
379
|
+
if (!request.signal.aborted && this.programRequest === request) {
|
|
380
|
+
this.cacheProgram(platformId, date, response.program);
|
|
381
|
+
this.desktopPages.set(key, { page: response.page, totalPages: response.totalPages });
|
|
382
|
+
this.updateDesktopSchedules();
|
|
383
|
+
this.updateBroadcastTiming();
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
catch (error) {
|
|
387
|
+
if (!request.signal.aborted && this.programRequest === request) {
|
|
388
|
+
console.error('TV program channels could not be loaded.', error);
|
|
389
|
+
this.loadMoreRetryAfter = Date.now() + LOAD_MORE_RETRY_DELAY;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
finally {
|
|
393
|
+
if (!request.signal.aborted && this.programRequest === request) {
|
|
394
|
+
this.loadingMoreChannels = false;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
/** Loads more channels when the bottom marker approaches the viewport. */
|
|
399
|
+
observeLoadMore(element) {
|
|
400
|
+
if (element === this.loadMoreSentinel) {
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
this.stopLoadMoreObservation?.();
|
|
404
|
+
this.stopLoadMoreObservation = undefined;
|
|
405
|
+
this.loadMoreSentinel = element;
|
|
406
|
+
if (element) {
|
|
407
|
+
if (typeof globalThis.IntersectionObserver !== 'function') {
|
|
408
|
+
this.loadMoreChannels();
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
const observer = new IntersectionObserver(entries => {
|
|
412
|
+
if (entries.some(entry => entry.target === element && entry.isIntersecting) && element === this.loadMoreSentinel) {
|
|
413
|
+
this.loadMoreChannels();
|
|
414
|
+
}
|
|
415
|
+
}, { rootMargin: '300px' });
|
|
416
|
+
observer.observe(element);
|
|
417
|
+
this.stopLoadMoreObservation = () => observer.disconnect();
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
/** Tracks control height for sticky offsets and mobile scrolling. */
|
|
421
|
+
observeControls() {
|
|
422
|
+
if (this.controls && typeof globalThis.ResizeObserver === 'function') {
|
|
423
|
+
this.controlsResizeObserver = new ResizeObserver(() => this.updateControlsHeight());
|
|
424
|
+
this.controlsResizeObserver.observe(this.controls);
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
queueMicrotask(() => {
|
|
428
|
+
if (this.connected) {
|
|
429
|
+
this.updateControlsHeight();
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
updateControlsHeight() {
|
|
435
|
+
const height = this.controls?.getBoundingClientRect().height ?? 0;
|
|
436
|
+
if (this.controlsHeight !== height) {
|
|
437
|
+
this.controlsHeight = height;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
/** Keeps placeholders visible until all mobile program items are ready. */
|
|
441
|
+
waitForMobileProgramItems() {
|
|
442
|
+
const list = this.mobileList;
|
|
443
|
+
const items = this.programItems;
|
|
444
|
+
if (!this.isMobile || !list || this.channelsLoading || this.programLoading || items.length === 0
|
|
445
|
+
|| this.readyMobileItems === items || this.pendingMobileItems === items) {
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
this.pendingMobileItems = items;
|
|
449
|
+
const elements = Array.from(list.querySelectorAll('tet-tv-program-item'));
|
|
450
|
+
Promise.all(elements.map(element => element.componentOnReady?.())).then(() => {
|
|
451
|
+
if (this.connected && this.isMobile && this.mobileList === list && this.programItems === items
|
|
452
|
+
&& this.pendingMobileItems === items && !this.channelsLoading && !this.programLoading) {
|
|
453
|
+
this.pendingMobileItems = undefined;
|
|
454
|
+
this.readyMobileItems = items;
|
|
455
|
+
forceUpdate(this);
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
/** Waits for layout and scrolls an item below the sticky controls. */
|
|
460
|
+
async scrollMobileItemIntoView(item, previousItem, block = 'start') {
|
|
461
|
+
const items = this.programItems;
|
|
462
|
+
const openItem = this.selectedProgramItem;
|
|
463
|
+
const cards = item.parentElement?.querySelectorAll('tet-tv-program-item') ?? [];
|
|
464
|
+
await Promise.all(Array.from(cards, card => card.componentOnReady?.()));
|
|
465
|
+
await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(() => resolve())));
|
|
466
|
+
const closedHeight = await previousItem?.getCollapsedHeight();
|
|
467
|
+
if (!this.connected || !this.isMobile || !item.isConnected || this.programItems !== items || this.selectedProgramItem !== openItem) {
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
if (this.controls) {
|
|
471
|
+
const top = Number.parseFloat(globalThis.getComputedStyle(this.controls).top) || 0;
|
|
472
|
+
let collapseOffset = 0;
|
|
473
|
+
const previousBounds = previousItem?.getBoundingClientRect();
|
|
474
|
+
if (previousItem?.isConnected && previousBounds && closedHeight && previousBounds.top < item.getBoundingClientRect().top) {
|
|
475
|
+
collapseOffset = Math.max(0, previousBounds.height - closedHeight);
|
|
476
|
+
}
|
|
477
|
+
item.style.scrollMarginTop = `${this.controls.getBoundingClientRect().height + top + collapseOffset}px`;
|
|
478
|
+
const reducedMotion = globalThis.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
|
|
479
|
+
item.scrollIntoView({ behavior: reducedMotion ? 'auto' : 'smooth', block });
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
/** Releases the reserved list height once new items are ready. */
|
|
483
|
+
async releaseMobileListHeight() {
|
|
484
|
+
const list = this.mobileList;
|
|
485
|
+
const items = this.programItems;
|
|
486
|
+
const cards = list?.querySelectorAll('tet-tv-program-item') ?? [];
|
|
487
|
+
await Promise.all(Array.from(cards, card => card.componentOnReady?.()));
|
|
488
|
+
await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(() => resolve())));
|
|
489
|
+
if (this.connected && this.isMobile && list && this.mobileList === list
|
|
490
|
+
&& this.programItems === items && !this.programLoading) {
|
|
491
|
+
this.mobileListLoadingHeight = 0;
|
|
492
|
+
list.style.minHeight = '';
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
/** Reserves list height and prepares scrolling for a date or channel change. */
|
|
496
|
+
prepareMobileListScroll(date = this.selectedDate) {
|
|
497
|
+
this.pendingMobileListLayout = undefined;
|
|
498
|
+
const controls = this.controls;
|
|
499
|
+
const top = controls ? Number.parseFloat(globalThis.getComputedStyle(controls).top) || 0 : 0;
|
|
500
|
+
const pinned = Boolean(this.isMobile && controls && controls.getBoundingClientRect().top <= top);
|
|
501
|
+
this.scrollToActivePending = this.isMobile && date === formatLocalDate();
|
|
502
|
+
this.scrollToListStartPending = pinned && !this.scrollToActivePending;
|
|
503
|
+
this.mobileListLoadingHeight = this.isMobile ? this.mobileList?.getBoundingClientRect().height ?? 0 : 0;
|
|
504
|
+
if (this.isMobile && this.mobileList) {
|
|
505
|
+
this.mobileList.style.minHeight = `${this.mobileListLoadingHeight}px`;
|
|
506
|
+
}
|
|
507
|
+
if (this.isMobile && !pinned) {
|
|
508
|
+
globalThis.scrollTo({ top: globalThis.scrollY, left: globalThis.scrollX, behavior: 'instant' });
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
renderNowButton() {
|
|
512
|
+
if (!this.hasLoaded || this.channelsLoading || this.programLoading || this.scrollDesktopToNowPending
|
|
513
|
+
|| (this.selectedDate === formatLocalDate() && (this.isMobile || this.desktopCurrentTimeVisible))) {
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
516
|
+
return (h("div", { class: "tv-program__now-button-container" }, h("tet-button", { class: "tv-program__now-button", onClick: () => this.handleNowClick(), theme: this.theme, colorTheme: "yellow", size: "medium", breakpointConfig: {
|
|
517
|
+
lg: { size: 'large' },
|
|
518
|
+
} }, t('components-tv-program-button-now'))));
|
|
519
|
+
}
|
|
520
|
+
renderProgramItem(item) {
|
|
521
|
+
const timing = this.broadcastTiming[item.id];
|
|
522
|
+
return (h("tet-tv-program-item", { item: item, unavailableTitle: t('components-tv-program-not-available'), theme: this.theme, layout: "mobile", isActive: timing?.isActive ?? false, progress: timing?.progress ?? 0 }));
|
|
523
|
+
}
|
|
5
524
|
render() {
|
|
6
|
-
|
|
525
|
+
const showProgramPlaceholders = this.channelsLoading || this.programLoading || this.programItems.length === 0;
|
|
526
|
+
const mobileItemsLoading = showProgramPlaceholders || this.readyMobileItems !== this.programItems;
|
|
527
|
+
const paginationKey = `${this.selectedPlatformId}:${this.selectedDate}`;
|
|
528
|
+
const pagination = this.desktopPages.get(paginationKey);
|
|
529
|
+
return (h(Host, { key: 'e3c78e153ce9111ee1a421c7b9312609e00ed334' }, h("div", { key: 'd13456dc1dccb533ee26c7acdde247f58174917e', class: "tet-grid" }, h("div", { key: '9bb0f989a7c86f493293157da94d490baec3efd4', class: "tet-grid__cell--span-all" }, h("section", { key: '929de48e7afc38b25a4a9141d3c5438c834fb689', class: "tv-program" }, h("div", { key: '54ec0b4a6d49f5158d3b9b21eeae0c259361aff8', class: "tv-program__header" }, h("h1", { key: 'ffe312a436b2e668025a27a5b708de119fe8efc4', class: "tv-program__title" }, this.heading ?? t('components-tv-program-title')), h("tet-tab-header", { key: '09169ed7219d5c400520bc96ac80a4f4ac91ee92', class: "tv-program__tab-header", theme: this.theme, type: "pill", position: "center", mode: "switch", onTabSelected: event => this.handlePlatformChange(event.detail.new) }, this.availablePlatforms.map(platform => (h("button", { class: "tv-program__tab-header-button", key: platform.id, type: "button" }, platform.label))))), h("div", { key: '118ff38019d7d0c0bec12bf42e8aee3ce4bc9fba', class: "tv-program__controls", ref: element => { this.controls = element; } }, this.isMobile && (h("tet-tv-program-channel-picker", { key: 'c06ae6b594f08b07486628fa4018d5725257937c', class: "tv-program__channel-picker", theme: this.theme, channels: this.channels, selectedChannel: this.selectedChannelId, loading: this.channelsLoading || this.channels.length === 0, onChannelSelected: event => this.handleChannelChange(event.detail) })), h("tet-tv-program-date-picker", { key: 'da5705370896c7255b016c6d691f6bb54a933011', ref: element => { this.datePicker = element; }, class: "tv-program__date-picker", theme: this.theme, language: this.language, onDateSelected: event => this.handleDateChange(event.detail) })), this.isMobile ? (h("ul", { class: "tv-program__channel", "aria-busy": mobileItemsLoading ? 'true' : 'false', ref: element => { this.mobileList = element; } }, !showProgramPlaceholders && this.programItems.map(item => (h("li", { hidden: mobileItemsLoading, key: item.id, ref: element => {
|
|
530
|
+
if (this.broadcastTiming[item.id]?.isActive) {
|
|
531
|
+
this.activeMobileItem = element;
|
|
532
|
+
}
|
|
533
|
+
} }, this.renderProgramItem(item)))), mobileItemsLoading && renderProgramPlaceholders(this.theme))) : (h("tet-tv-program-schedule", { unavailableTitle: t('components-tv-program-not-available'), ref: element => { this.schedule = element; }, schedules: this.desktopSchedules, channels: this.channels, date: this.selectedDate, theme: this.theme, language: this.language, channelsLoading: this.channelsLoading, programLoading: this.programLoading, loadingMoreChannels: this.loadingMoreChannels, currentTime: this.currentTime, broadcastTiming: this.broadcastTiming, style: { '--tv-program-schedule-sticky-top': `calc(var(--tv-program-sticky-top-offset, 0px) + ${this.controlsHeight}px)` } })), !this.isMobile && !this.programLoading && pagination && pagination.page < pagination.totalPages && (h("div", { key: `${paginationKey}:${pagination.page}`, class: "tv-program__load-more", "aria-hidden": "true", style: { height: '1px' }, ref: element => this.observeLoadMore(element) })), this.renderNowButton())))));
|
|
7
534
|
}
|
|
8
535
|
static get is() { return "tet-tv-program"; }
|
|
9
536
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,6 +546,45 @@ export class TetTvProgram {
|
|
|
19
546
|
}
|
|
20
547
|
static get properties() {
|
|
21
548
|
return {
|
|
549
|
+
"theme": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"mutable": false,
|
|
552
|
+
"complexType": {
|
|
553
|
+
"original": "'light' | 'dark'",
|
|
554
|
+
"resolved": "\"dark\" | \"light\"",
|
|
555
|
+
"references": {}
|
|
556
|
+
},
|
|
557
|
+
"required": false,
|
|
558
|
+
"optional": false,
|
|
559
|
+
"docs": {
|
|
560
|
+
"tags": [],
|
|
561
|
+
"text": "Theme of the component."
|
|
562
|
+
},
|
|
563
|
+
"getter": false,
|
|
564
|
+
"setter": false,
|
|
565
|
+
"reflect": true,
|
|
566
|
+
"attribute": "theme",
|
|
567
|
+
"defaultValue": "'light'"
|
|
568
|
+
},
|
|
569
|
+
"heading": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"mutable": false,
|
|
572
|
+
"complexType": {
|
|
573
|
+
"original": "string",
|
|
574
|
+
"resolved": "string",
|
|
575
|
+
"references": {}
|
|
576
|
+
},
|
|
577
|
+
"required": false,
|
|
578
|
+
"optional": true,
|
|
579
|
+
"docs": {
|
|
580
|
+
"tags": [],
|
|
581
|
+
"text": "Custom heading. Defaults to the translated TV program title."
|
|
582
|
+
},
|
|
583
|
+
"getter": false,
|
|
584
|
+
"setter": false,
|
|
585
|
+
"reflect": false,
|
|
586
|
+
"attribute": "heading"
|
|
587
|
+
},
|
|
22
588
|
"language": {
|
|
23
589
|
"type": "string",
|
|
24
590
|
"mutable": false,
|
|
@@ -45,7 +611,77 @@ export class TetTvProgram {
|
|
|
45
611
|
"reflect": false,
|
|
46
612
|
"attribute": "language",
|
|
47
613
|
"defaultValue": "'lv'"
|
|
614
|
+
},
|
|
615
|
+
"platforms": {
|
|
616
|
+
"type": "unknown",
|
|
617
|
+
"mutable": false,
|
|
618
|
+
"complexType": {
|
|
619
|
+
"original": "Platform[]",
|
|
620
|
+
"resolved": "Platform[]",
|
|
621
|
+
"references": {
|
|
622
|
+
"Platform": {
|
|
623
|
+
"location": "import",
|
|
624
|
+
"path": "./tet-tv-program.types",
|
|
625
|
+
"id": "src/components/views/tet-tv-program/tet-tv-program.types.ts::Platform",
|
|
626
|
+
"referenceLocation": "Platform"
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"required": false,
|
|
631
|
+
"optional": true,
|
|
632
|
+
"docs": {
|
|
633
|
+
"tags": [],
|
|
634
|
+
"text": "Platforms available in the TV program switch."
|
|
635
|
+
},
|
|
636
|
+
"getter": false,
|
|
637
|
+
"setter": false
|
|
48
638
|
}
|
|
49
639
|
};
|
|
50
640
|
}
|
|
641
|
+
static get states() {
|
|
642
|
+
return {
|
|
643
|
+
"channels": {},
|
|
644
|
+
"channelsLoading": {},
|
|
645
|
+
"programLoading": {},
|
|
646
|
+
"loadingMoreChannels": {},
|
|
647
|
+
"programItems": {},
|
|
648
|
+
"broadcastTiming": {},
|
|
649
|
+
"selectedDate": {},
|
|
650
|
+
"isMobile": {},
|
|
651
|
+
"currentTime": {},
|
|
652
|
+
"desktopSchedules": {},
|
|
653
|
+
"controlsHeight": {},
|
|
654
|
+
"desktopCurrentTimeVisible": {}
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
static get watchers() {
|
|
658
|
+
return [{
|
|
659
|
+
"propName": "programItems",
|
|
660
|
+
"methodName": "updateBroadcastTiming"
|
|
661
|
+
}, {
|
|
662
|
+
"propName": "isMobile",
|
|
663
|
+
"methodName": "updateBroadcastTiming"
|
|
664
|
+
}, {
|
|
665
|
+
"propName": "language",
|
|
666
|
+
"methodName": "onLanguageChange"
|
|
667
|
+
}, {
|
|
668
|
+
"propName": "programItems",
|
|
669
|
+
"methodName": "updateDesktopSchedules"
|
|
670
|
+
}];
|
|
671
|
+
}
|
|
672
|
+
static get listeners() {
|
|
673
|
+
return [{
|
|
674
|
+
"name": "broadcastSelected",
|
|
675
|
+
"method": "handleBroadcastSelected",
|
|
676
|
+
"target": undefined,
|
|
677
|
+
"capture": false,
|
|
678
|
+
"passive": false
|
|
679
|
+
}, {
|
|
680
|
+
"name": "currentTimeVisibilityChanged",
|
|
681
|
+
"method": "handleCurrentTimeVisibilityChanged",
|
|
682
|
+
"target": undefined,
|
|
683
|
+
"capture": false,
|
|
684
|
+
"passive": false
|
|
685
|
+
}];
|
|
686
|
+
}
|
|
51
687
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|