@tet/tet-components 1.4.157-testing → 1.4.158-staging
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/format-program-start-date-zxseYpV_.js +151 -0
- package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-BPqfZGg_.js} +2 -1
- package/dist/cjs/{index-Dzs7Nkbj.js → index-BEOR8cIU.js} +1 -1
- package/dist/cjs/{index-BL_zVDFC.js → index-DRNSo5RU.js} +21 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-1j61pRJX.js} +1 -1
- package/dist/cjs/{service-availability-services-BXL7V5i1.js → service-availability-services-pWb5YaEM.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +8 -8
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers-v2.cjs.entry.js +5 -5
- package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +5 -5
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers_3.cjs.entry.js +6 -6
- package/dist/cjs/tet-address-search_2.cjs.entry.js +7 -7
- package/dist/cjs/tet-assembler_3.cjs.entry.js +4 -4
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +2 -2
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +6 -6
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-button.cjs.entry.js +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
- package/dist/cjs/tet-carousel.cjs.entry.js +9 -9
- package/dist/cjs/{tet-checkbox_3.cjs.entry.js → tet-checkbox_2.cjs.entry.js} +1 -453
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +5 -5
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +6 -6
- package/dist/cjs/tet-datepicker.cjs.entry.js +5 -5
- package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
- package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
- package/dist/cjs/tet-grid.cjs.entry.js +2 -2
- package/dist/cjs/tet-icon.cjs.entry.js +2 -2
- package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
- package/dist/cjs/tet-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-layout.cjs.entry.js +2 -2
- package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +2 -2
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu.cjs.entry.js +1 -1
- package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +4 -4
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +6 -6
- package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-news-card.cjs.entry.js +2 -2
- package/dist/cjs/tet-notification.cjs.entry.js +2 -2
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-paginator.cjs.entry.js +4 -4
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
- package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-input.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
- package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-text.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-tooltip.cjs.entry.js +456 -0
- package/dist/cjs/tet-tv-program-channel-picker_3.cjs.entry.js +1465 -0
- package/dist/cjs/tet-tv-program-item.cjs.entry.js +217 -0
- package/dist/cjs/tet-tv-program-placeholders-CRvdN2bT.js +22 -0
- package/dist/cjs/tet-tv-program.cjs.entry.js +642 -3
- package/dist/cjs/{translations-Uvcq4kv8.js → translations-C5voiGIZ.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
- package/dist/collection/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.js +1 -1
- package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
- package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
- package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
- package/dist/collection/components/advanced/cards/tet-news-card/tet-news-card.js +1 -1
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +6 -6
- package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
- package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
- package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
- package/dist/collection/components/basic/misc/tet-countdown/tet-countdown.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
- package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +1 -1
- package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.css +5 -1
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
- package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.js +2 -2
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.css +21 -8
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.js +59 -39
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.css +52 -36
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +24 -30
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.css +352 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.js +488 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.mock.js +45 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.css +567 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.js +1309 -0
- package/dist/collection/components/views/tet-tv-program/test/mock-schedule-layout.js +74 -0
- package/dist/collection/components/views/tet-tv-program/tet-tv-program-placeholders.js +8 -0
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.css +777 -0
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +638 -2
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.types.js +1 -0
- package/dist/collection/components/views/tet-tv-program/utils/broadcast-time.js +26 -0
- package/dist/collection/components/views/tet-tv-program/utils/fill-program-gaps.js +44 -0
- package/dist/collection/components/views/tet-tv-program/utils/format-program-start-date.js +13 -0
- package/dist/collection/components/views/tet-tv-program/utils/tooltip-lifecycle.js +132 -0
- package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
- package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
- package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
- package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
- package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
- package/dist/collection/docs/styling/link/tet-link.js +1 -1
- package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
- package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
- package/dist/collection/services/api/index.js +1 -0
- package/dist/collection/services/api/services/tv/tv-program-types.js +1 -0
- package/dist/collection/services/api/services/tv/tv-program.js +31 -0
- package/dist/collection/services/utils/date.js +7 -0
- package/dist/collection/services/utils/index.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-p-J7NvGs.js → p-B5ujbvD5.js} +1 -1
- package/dist/components/{p-CgV4zAwQ.js → p-B8pZddqI.js} +1 -1
- package/dist/components/{p-Mpe-2CVQ.js → p-BBNq_Obn.js} +1 -1
- package/dist/components/{p-nKvolHsW.js → p-BCe35fiF.js} +1 -1
- package/dist/components/{p-CPGJg5Si.js → p-BCpsmWJM.js} +1 -1
- package/dist/components/{p-t_FgKIcd.js → p-BKIzl46N.js} +1 -1
- package/dist/components/{p-CMxcvnRv.js → p-BSySZotX.js} +1 -1
- package/dist/components/{p-CSxtbfBJ.js → p-BV6g-luP.js} +1 -1
- package/dist/components/{p-DN2JwXg9.js → p-BcXV5sQw.js} +1 -1
- package/dist/components/{p-DXQ-UeYl.js → p-BdrzH5ar.js} +1 -1
- package/dist/components/{p-CZach5oP.js → p-BnOTR5fm.js} +1 -1
- package/dist/components/{p-BMSAKp34.js → p-BxOwqp0a.js} +1 -1
- package/dist/components/{p-HzogPVbA.js → p-C16rQ6Rb.js} +1 -1
- package/dist/components/{p-BI70OOEF.js → p-C4ul-L9-.js} +1 -1
- package/dist/components/{p-vu71OGLf.js → p-CFyjcGK7.js} +1 -1
- package/dist/components/{p-C32vgbsV.js → p-CHCXv4yB.js} +1 -1
- package/dist/components/{p-BmH_7-IQ.js → p-CLWLTBE0.js} +1 -1
- package/dist/components/{p-B60jnxEn.js → p-CMSs7Ay5.js} +1 -1
- package/dist/components/{p-CvUaogvc.js → p-CNTMOgMT.js} +1 -1
- package/dist/components/{p-Lpb2mgqh.js → p-CPY7aG_q.js} +1 -1
- package/dist/components/p-CT0JjXhe.js +1 -0
- package/dist/components/{p-C-sZ3Bzu.js → p-CVthBaQt.js} +1 -1
- package/dist/components/{p-C4uKGuRj.js → p-C_hP1fqX.js} +1 -1
- package/dist/components/{p-Bw-D7nPx.js → p-CaHY4mtM.js} +1 -1
- package/dist/components/{p-CwZljiBM.js → p-CgWcN6ca.js} +1 -1
- package/dist/components/{p-DKZxpjnL.js → p-CqSiuKpc.js} +1 -1
- package/dist/components/{p-CF15dAPd.js → p-CtcmUD5r.js} +1 -1
- package/dist/components/{p-Bc4oqt_L.js → p-CushMMdv.js} +1 -1
- package/dist/components/{p-C61jDpta.js → p-D5J-pubV.js} +1 -1
- package/dist/components/{p-B5HqUnpw.js → p-D6zXaWBn.js} +1 -1
- package/dist/components/{p-BrPUjt5B.js → p-D8V6RYb0.js} +1 -1
- package/dist/components/{p-Bho4Xl9R.js → p-DAZQBXWo.js} +1 -1
- package/dist/components/{p-DikHJHTd.js → p-DAjLPYxx.js} +1 -1
- package/dist/components/{p-BztqMLE1.js → p-DD5q1beS.js} +1 -1
- package/dist/components/{p-CDUvchOX.js → p-DEasZUte.js} +1 -1
- package/dist/components/{p-C9dDgHzh.js → p-DEjrxfHh.js} +1 -1
- package/dist/components/{p-B1d6HEqd.js → p-DIDgNN8z.js} +1 -1
- package/dist/components/{p-Cdi7KDBd.js → p-DIyhqSTP.js} +1 -1
- package/dist/components/p-DPGMd9pW.js +1 -0
- package/dist/components/{p-CJnk1Plz.js → p-DSO2W8wX.js} +1 -1
- package/dist/components/p-D_ZrduSw.js +8 -0
- package/dist/components/{p-Czx7ardH.js → p-DopPk-Ix.js} +1 -1
- package/dist/components/{p-CYMnJi7q.js → p-DyY_BOZd.js} +1 -1
- package/dist/components/{p-B-1KdQSL.js → p-DzJunF5n.js} +1 -1
- package/dist/components/{p-lEX8wezw.js → p-IyO0AtW2.js} +1 -1
- package/dist/components/{p-o4S5jRzK.js → p-JSqvRN9t.js} +1 -1
- package/dist/components/{p-D8avEs-F.js → p-Jl97CICe.js} +1 -1
- package/dist/components/{p-mVj43aKR.js → p-PMDuFwdO.js} +1 -1
- package/dist/components/p-PuQGb_kZ.js +1 -0
- package/dist/components/{p-DutLsF-O.js → p-RKwM_UoL.js} +1 -1
- package/dist/components/{p-DnPS3TWn.js → p-U1U7KO8M.js} +1 -1
- package/dist/components/p-WTP67GQt.js +1 -0
- package/dist/components/{p-Bsqoxd9G.js → p-WvkszOBK.js} +1 -1
- package/dist/components/{p-BcVrianM.js → p-Zd3FJ-E9.js} +1 -1
- package/dist/components/{p-BD6bBnqr.js → p-h65iKcGh.js} +1 -1
- package/dist/components/{p-Cb2bEUmu.js → p-kj9GRPBV.js} +1 -1
- package/dist/components/{p-44eECwiT.js → p-nu13atxU.js} +1 -1
- package/dist/components/{p-DgT79UG-.js → p-o3DB-jeO.js} +1 -1
- package/dist/components/p-rItngdC7.js +1 -0
- package/dist/components/{p-B9bE6qY-.js → p-raVwRdrn.js} +1 -1
- package/dist/components/{p-sgozlrhg.js → p-tV8a7IEe.js} +1 -1
- package/dist/components/tet-accordion.js +1 -1
- package/dist/components/tet-address-offers-filters-products.js +1 -1
- package/dist/components/tet-address-offers-filters.js +1 -1
- package/dist/components/tet-address-offers-v2.js +1 -1
- package/dist/components/tet-address-offers-view-v2.js +1 -1
- package/dist/components/tet-address-offers-view.js +1 -1
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-assembler.js +1 -1
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +1 -1
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-check-out-form.js +1 -1
- package/dist/components/tet-b2b-compare-card.js +1 -1
- package/dist/components/tet-b2b-configurator-cart.js +1 -1
- package/dist/components/tet-b2b-configurator.js +1 -1
- package/dist/components/tet-banner-nav.js +1 -1
- package/dist/components/tet-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +1 -1
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +1 -1
- package/dist/components/tet-business-summary-card.js +1 -1
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +1 -1
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +1 -1
- package/dist/components/tet-cloud-configurator.js +1 -1
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.js +1 -1
- package/dist/components/tet-compare-card-v3.js +1 -1
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +1 -1
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-countdown.js +1 -1
- package/dist/components/tet-counter.js +1 -1
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +1 -1
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +1 -1
- package/dist/components/tet-divider.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +1 -1
- package/dist/components/tet-expandable-input.js +1 -1
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-feedback-form.js +1 -1
- package/dist/components/tet-filter.js +1 -1
- package/dist/components/tet-floating-block.js +1 -1
- package/dist/components/tet-font-weight.js +1 -1
- package/dist/components/tet-fonts.js +1 -1
- package/dist/components/tet-grid.js +1 -1
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +1 -1
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link-card-list.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-menu-mobile.js +1 -1
- package/dist/components/tet-menu.js +1 -1
- package/dist/components/tet-mini-compare-card.js +1 -1
- package/dist/components/tet-multi-step-dialog.js +1 -1
- package/dist/components/tet-navigation-mobile.js +1 -1
- package/dist/components/tet-news-card-list.js +1 -1
- package/dist/components/tet-news-card.js +1 -1
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-paginator.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-position.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio-blocks.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-round-stepper.js +1 -1
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-group.js +1 -1
- package/dist/components/tet-snicker-card.js +1 -1
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-sticky-offer.js +1 -1
- package/dist/components/tet-support-search.js +1 -1
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +1 -1
- package/dist/components/tet-tag-group.js +1 -1
- package/dist/components/tet-tag.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/components/tet-text.js +1 -1
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v3.js +1 -1
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-program-channel-picker.js +1 -1
- package/dist/components/tet-tv-program-date-picker.js +1 -1
- package/dist/components/tet-tv-program-item.d.ts +11 -0
- package/dist/components/tet-tv-program-item.js +1 -0
- package/dist/components/tet-tv-program-schedule.d.ts +11 -0
- package/dist/components/tet-tv-program-schedule.js +1 -0
- package/dist/components/tet-tv-program.js +1 -1
- package/dist/esm/format-program-start-date-BTxL4Knq.js +148 -0
- package/dist/esm/{http-codes-CHPW8K5J.js → http-codes-DxBVAMp_.js} +2 -1
- package/dist/esm/{index-gA3_LS77.js → index-BlxQHXlF.js} +21 -13
- package/dist/esm/{index-BzVLx-ae.js → index-Cl1zJLqR.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{product-comparison-09p7FlLY.js → product-comparison-CIa1tZy1.js} +1 -1
- package/dist/esm/{service-availability-services-DHbWTGBw.js → service-availability-services-DR0G7lAz.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +8 -8
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
- package/dist/esm/tet-address-offers-v2.entry.js +5 -5
- package/dist/esm/tet-address-offers-view-v2.entry.js +5 -5
- package/dist/esm/tet-address-offers-view.entry.js +4 -4
- package/dist/esm/tet-address-offers_3.entry.js +6 -6
- package/dist/esm/tet-address-search_2.entry.js +7 -7
- package/dist/esm/tet-assembler_3.entry.js +4 -4
- package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
- package/dist/esm/tet-autocomplete_2.entry.js +2 -2
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +6 -6
- package/dist/esm/tet-b2b-configurator.entry.js +4 -4
- package/dist/esm/tet-banner-nav.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +2 -2
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +3 -3
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-button.entry.js +1 -1
- package/dist/esm/tet-card-list.entry.js +5 -5
- package/dist/esm/tet-carousel.entry.js +9 -9
- package/dist/esm/{tet-checkbox_3.entry.js → tet-checkbox_2.entry.js} +2 -453
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +5 -5
- package/dist/esm/tet-compare-card-v2.entry.js +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +5 -5
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-countdown.entry.js +2 -2
- package/dist/esm/tet-counter.entry.js +1 -1
- package/dist/esm/tet-datepicker-header_4.entry.js +6 -6
- package/dist/esm/tet-datepicker.entry.js +5 -5
- package/dist/esm/tet-dialog.entry.js +3 -3
- package/dist/esm/tet-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- package/dist/esm/tet-dynamic-card.entry.js +1 -1
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +2 -2
- package/dist/esm/tet-feedback-form.entry.js +3 -3
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-floating-block.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +2 -2
- package/dist/esm/tet-fonts.entry.js +2 -2
- package/dist/esm/tet-grid.entry.js +2 -2
- package/dist/esm/tet-icon.entry.js +2 -2
- package/dist/esm/tet-inline-message.entry.js +1 -1
- package/dist/esm/tet-input.entry.js +3 -3
- package/dist/esm/tet-layout.entry.js +2 -2
- package/dist/esm/tet-link-card-list.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +2 -2
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-mini-compare-card.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +4 -4
- package/dist/esm/tet-navigation-mobile.entry.js +6 -6
- package/dist/esm/tet-news-card-list.entry.js +2 -2
- package/dist/esm/tet-news-card.entry.js +2 -2
- package/dist/esm/tet-notification.entry.js +2 -2
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-paginator.entry.js +4 -4
- package/dist/esm/tet-placeholder.entry.js +2 -2
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio_2.entry.js +3 -3
- package/dist/esm/tet-range-slider.entry.js +8 -8
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-snicker-card-group.entry.js +1 -1
- package/dist/esm/tet-snicker-card.entry.js +3 -3
- package/dist/esm/tet-spacing.entry.js +2 -2
- package/dist/esm/tet-spinner.entry.js +4 -4
- package/dist/esm/tet-stepper-input.entry.js +4 -4
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-sticky-offer.entry.js +2 -2
- package/dist/esm/tet-support-search.entry.js +1 -1
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +5 -5
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-text.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/tet-tooltip.entry.js +454 -0
- package/dist/esm/tet-tv-program-channel-picker_3.entry.js +1461 -0
- package/dist/esm/tet-tv-program-item.entry.js +215 -0
- package/dist/esm/tet-tv-program-placeholders-6PnHO3Vt.js +19 -0
- package/dist/esm/tet-tv-program.entry.js +642 -3
- package/dist/esm/{translations-CLCWF8K_.js → translations-CpmeCaXU.js} +1 -1
- package/dist/tet-components/{p-1af6b8cb.entry.js → p-00383c63.entry.js} +1 -1
- package/dist/tet-components/{p-7c1dd176.entry.js → p-01b6e854.entry.js} +1 -1
- package/dist/tet-components/{p-0744b479.entry.js → p-0364bd08.entry.js} +1 -1
- package/dist/tet-components/{p-13550c14.entry.js → p-07719feb.entry.js} +1 -1
- package/dist/tet-components/{p-6a3891bf.entry.js → p-090b1ee9.entry.js} +1 -1
- package/dist/tet-components/{p-6800ae9e.entry.js → p-0bc383b2.entry.js} +1 -1
- package/dist/tet-components/p-13029731.entry.js +1 -0
- package/dist/tet-components/{p-aa0b655b.entry.js → p-144a817d.entry.js} +1 -1
- package/dist/tet-components/{p-ae31acd5.entry.js → p-14fe8c03.entry.js} +1 -1
- package/dist/tet-components/{p-57d07760.entry.js → p-16f75f0c.entry.js} +1 -1
- package/dist/tet-components/{p-0e021d89.entry.js → p-18c6bad0.entry.js} +1 -1
- package/dist/tet-components/p-197d157d.entry.js +1 -0
- package/dist/tet-components/{p-e88e50e6.entry.js → p-222d6593.entry.js} +1 -1
- package/dist/tet-components/{p-bc73adcc.entry.js → p-22ea8015.entry.js} +1 -1
- package/dist/tet-components/{p-484266ca.entry.js → p-23e33f99.entry.js} +1 -1
- package/dist/tet-components/{p-9d612283.entry.js → p-248957cf.entry.js} +1 -1
- package/dist/tet-components/{p-b370c444.entry.js → p-2a5e14d3.entry.js} +1 -1
- package/dist/tet-components/{p-7d62e8e0.entry.js → p-2eee7043.entry.js} +1 -1
- package/dist/tet-components/{p-0d0de163.entry.js → p-2ff74667.entry.js} +1 -1
- package/dist/tet-components/{p-32983951.entry.js → p-35228f86.entry.js} +1 -1
- package/dist/tet-components/{p-db92c865.entry.js → p-359ddd3d.entry.js} +1 -1
- package/dist/tet-components/{p-1ce9b751.entry.js → p-394504cc.entry.js} +1 -1
- package/dist/tet-components/p-3a242ce0.entry.js +1 -0
- package/dist/tet-components/{p-827abc22.entry.js → p-3a99d267.entry.js} +1 -1
- package/dist/tet-components/{p-231dde32.entry.js → p-3f254745.entry.js} +1 -1
- package/dist/tet-components/{p-73a66398.entry.js → p-429d9d2c.entry.js} +1 -1
- package/dist/tet-components/p-45573d70.entry.js +1 -0
- package/dist/tet-components/{p-c5068d10.entry.js → p-4aab89f2.entry.js} +1 -1
- package/dist/tet-components/{p-2884891b.entry.js → p-4b6daee6.entry.js} +1 -1
- package/dist/tet-components/{p-e45dab2b.entry.js → p-52a679f8.entry.js} +1 -1
- package/dist/tet-components/{p-17f8270f.entry.js → p-537e043d.entry.js} +1 -1
- package/dist/tet-components/{p-039121d4.entry.js → p-549fc480.entry.js} +1 -1
- package/dist/tet-components/{p-f73c5481.entry.js → p-645519ea.entry.js} +1 -1
- package/dist/tet-components/{p-0bd6e06e.entry.js → p-6a39e30f.entry.js} +1 -1
- package/dist/tet-components/{p-c321199b.entry.js → p-6d5bb64b.entry.js} +1 -1
- package/dist/tet-components/p-71918ee5.entry.js +1 -0
- package/dist/tet-components/{p-675387bc.entry.js → p-73ba2953.entry.js} +1 -1
- package/dist/tet-components/{p-e7c43c95.entry.js → p-80179dc9.entry.js} +1 -1
- package/dist/tet-components/{p-7672a3cf.entry.js → p-84835070.entry.js} +1 -1
- package/dist/tet-components/{p-0026968d.entry.js → p-85704684.entry.js} +1 -1
- package/dist/tet-components/{p-72c54f04.entry.js → p-8c129c83.entry.js} +1 -1
- package/dist/tet-components/{p-845419ea.entry.js → p-8dd9bde1.entry.js} +1 -1
- package/dist/tet-components/{p-9f8c0d62.entry.js → p-8df51fe3.entry.js} +1 -1
- package/dist/tet-components/{p-16282657.entry.js → p-8f708ddc.entry.js} +1 -1
- package/dist/tet-components/{p-8424ddb6.entry.js → p-94bf94ea.entry.js} +1 -1
- package/dist/tet-components/{p-af7f7020.entry.js → p-984c1332.entry.js} +1 -1
- package/dist/tet-components/{p-ff164570.entry.js → p-994b8b7f.entry.js} +1 -1
- package/dist/tet-components/{p-324d8840.entry.js → p-9d5f14db.entry.js} +1 -1
- package/dist/tet-components/{p-25c80589.entry.js → p-9dd85372.entry.js} +1 -1
- package/dist/tet-components/{p-7d218d65.entry.js → p-9e0845ff.entry.js} +1 -1
- package/dist/tet-components/{p-AT09y63b.js → p-B3oUiyJ_.js} +1 -1
- package/dist/tet-components/p-BTo8T4K7.js +1 -0
- package/dist/tet-components/p-BTxL4Knq.js +1 -0
- package/dist/tet-components/{p-gA3_LS77.js → p-BlxQHXlF.js} +1 -1
- package/dist/tet-components/p-C2_Y9hR8.js +8 -0
- package/dist/tet-components/{p-ChdlTQSF.js → p-Cu_nZUjB.js} +1 -1
- package/dist/tet-components/{p-nYl-0ap-.js → p-Du1r7fBd.js} +1 -1
- package/dist/tet-components/{p-a91c8e30.entry.js → p-a1e75f54.entry.js} +1 -1
- package/dist/tet-components/{p-22db539b.entry.js → p-a672882d.entry.js} +1 -1
- package/dist/tet-components/{p-c778dbd4.entry.js → p-a8c5f562.entry.js} +1 -1
- package/dist/tet-components/{p-0e9201e6.entry.js → p-aa0626f1.entry.js} +1 -1
- package/dist/tet-components/{p-73acf518.entry.js → p-aab954fd.entry.js} +1 -1
- package/dist/tet-components/{p-76be889b.entry.js → p-adabdd88.entry.js} +1 -1
- package/dist/tet-components/{p-a9706390.entry.js → p-af2bed0c.entry.js} +1 -1
- package/dist/tet-components/{p-1ed0c66f.entry.js → p-b1f8889c.entry.js} +1 -1
- package/dist/tet-components/{p-12fe3881.entry.js → p-b36bd5ee.entry.js} +1 -1
- package/dist/tet-components/{p-2be883e9.entry.js → p-b8c728a3.entry.js} +1 -1
- package/dist/tet-components/{p-b389b07a.entry.js → p-b9892cf7.entry.js} +1 -1
- package/dist/tet-components/{p-0e4129ea.entry.js → p-bc53afc8.entry.js} +1 -1
- package/dist/tet-components/{p-8b7bbbbf.entry.js → p-bfc1d731.entry.js} +1 -1
- package/dist/tet-components/{p-318947f9.entry.js → p-c32a7bb6.entry.js} +1 -1
- package/dist/tet-components/{p-7dfd519c.entry.js → p-c577fcf2.entry.js} +1 -1
- package/dist/tet-components/{p-3dd266f3.entry.js → p-c5fa28a5.entry.js} +1 -1
- package/dist/tet-components/{p-4a21fdfb.entry.js → p-c6266e47.entry.js} +1 -1
- package/dist/tet-components/{p-8b2edb99.entry.js → p-c6dcceb2.entry.js} +1 -1
- package/dist/tet-components/{p-19cb8e38.entry.js → p-c7c9c272.entry.js} +1 -1
- package/dist/tet-components/{p-9ab815b3.entry.js → p-cafa6809.entry.js} +1 -1
- package/dist/tet-components/{p-467663a9.entry.js → p-cbb61a78.entry.js} +1 -1
- package/dist/tet-components/{p-e59ec4c3.entry.js → p-d19565db.entry.js} +1 -1
- package/dist/tet-components/{p-0b122cc1.entry.js → p-d5212455.entry.js} +1 -1
- package/dist/tet-components/p-d5b8d06c.entry.js +1 -0
- package/dist/tet-components/{p-f8aa1f9b.entry.js → p-d770c106.entry.js} +1 -1
- package/dist/tet-components/{p-340c3e79.entry.js → p-d875735c.entry.js} +1 -1
- package/dist/tet-components/{p-daa8ca5c.entry.js → p-d94f8fc5.entry.js} +1 -1
- package/dist/tet-components/{p-ebd66166.entry.js → p-ddcaa280.entry.js} +1 -1
- package/dist/tet-components/{p-7b98b883.entry.js → p-ddfa57fd.entry.js} +1 -1
- package/dist/tet-components/{p-e9e288f6.entry.js → p-eb487864.entry.js} +1 -1
- package/dist/tet-components/{p-03b6c7a2.entry.js → p-ef89dc8a.entry.js} +1 -1
- package/dist/tet-components/{p-8329cd9d.entry.js → p-f378220c.entry.js} +1 -1
- package/dist/tet-components/p-f459c748.entry.js +1 -0
- package/dist/tet-components/{p-a2e40f04.entry.js → p-f490d4a6.entry.js} +1 -1
- package/dist/tet-components/{p-ac515335.entry.js → p-f675b69e.entry.js} +1 -1
- package/dist/tet-components/{p-f53d2d9f.entry.js → p-f7a06231.entry.js} +1 -1
- package/dist/tet-components/{p-Th74Kc5K.js → p-qSX0mu28.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.d.ts +9 -13
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.d.ts +1 -3
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.d.ts +62 -0
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-item/tet-tv-program-item.mock.d.ts +2 -0
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-schedule/tet-tv-program-schedule.d.ts +174 -0
- package/dist/types/components/views/tet-tv-program/test/mock-schedule-layout.d.ts +4 -0
- package/dist/types/components/views/tet-tv-program/tet-tv-program-placeholders.d.ts +2 -0
- package/dist/types/components/views/tet-tv-program/tet-tv-program.d.ts +96 -0
- package/dist/types/components/views/tet-tv-program/tet-tv-program.types.d.ts +30 -0
- package/dist/types/components/views/tet-tv-program/utils/broadcast-time.d.ts +14 -0
- package/dist/types/components/views/tet-tv-program/utils/fill-program-gaps.d.ts +3 -0
- package/dist/types/components/views/tet-tv-program/utils/format-program-start-date.d.ts +1 -0
- package/dist/types/components/views/tet-tv-program/utils/tooltip-lifecycle.d.ts +22 -0
- package/dist/types/components.d.ts +339 -6
- package/dist/types/services/api/index.d.ts +2 -0
- package/dist/types/services/api/services/tv/tv-program-types.d.ts +46 -0
- package/dist/types/services/api/services/tv/tv-program.d.ts +7 -0
- package/dist/types/services/utils/date.d.ts +2 -0
- package/dist/types/services/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +0 -536
- package/dist/components/p-Br4jWI9B.js +0 -8
- package/dist/components/p-DrFW6lxe.js +0 -1
- package/dist/components/p-Q3NUC_eC.js +0 -1
- package/dist/esm/tet-tv-program-channel-picker_2.entry.js +0 -533
- package/dist/tet-components/p-3a573d6e.entry.js +0 -1
- package/dist/tet-components/p-CNGb2lWC.js +0 -8
- package/dist/tet-components/p-aea861c9.entry.js +0 -1
- package/dist/tet-components/p-b21b4329.entry.js +0 -1
- package/dist/tet-components/p-c102d7e8.entry.js +0 -1
- package/dist/tet-components/p-dabdfe62.entry.js +0 -1
|
@@ -14,4 +14,6 @@ import { TranslatableProperty } from './interfaces/property.interface';
|
|
|
14
14
|
import { operations, OperationsResponse } from "./services/operations/operations";
|
|
15
15
|
import { HttpCodes } from './http-codes';
|
|
16
16
|
import { AsyncApiRequestError } from './errors/async-api-request-error';
|
|
17
|
+
export { tvProgram, TvProgramRequestError } from './services/tv/tv-program';
|
|
18
|
+
export type { TvProgramQuery, TvProgramResponse, TvProgramChannel, TvProgramEvent, TvProgramChannelSchedule, } from './services/tv/tv-program-types';
|
|
17
19
|
export { searchAddress, searchAddressByKey, requestTranslations, queryCustomer, customerAssets, productComparison, assemblerScenario, createCallCenterTask, getComponentData, operations, AddressInterface, TranslationsInterface, CustomerInterface, CustomerAsset, CustomerNotFound, CallCenterTaskRequest, ServiceAvailabilityServicesCategoryTheme, ProductComparisonInterface, productComparisonAttributeInterface, AssemblerBackendDataInterface, AssemblerBackendPanelItemInterface, CatalogOffer, ComparableCatalogOffer, OffersGiftComponentData, TranslatableProperty, OperationsResponse, HttpCodes, AsyncApiRequestError };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface TvProgramQuery {
|
|
2
|
+
date: string;
|
|
3
|
+
platformId: number;
|
|
4
|
+
channelId?: number;
|
|
5
|
+
includeChannels?: boolean;
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface TvProgramChannel {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
channelNumber: number;
|
|
13
|
+
description: string | null;
|
|
14
|
+
languages: string[];
|
|
15
|
+
logo: {
|
|
16
|
+
transparentDarkSmall: string | null;
|
|
17
|
+
transparentLightSmall: string | null;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface TvProgramEvent {
|
|
21
|
+
startDate: string;
|
|
22
|
+
endDate: string;
|
|
23
|
+
startTime: string;
|
|
24
|
+
endTime: string;
|
|
25
|
+
title: string;
|
|
26
|
+
description: string | null;
|
|
27
|
+
image: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface TvProgramChannelSchedule {
|
|
30
|
+
channel: {
|
|
31
|
+
id: number;
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
events: TvProgramEvent[];
|
|
35
|
+
}
|
|
36
|
+
export interface TvProgramResponse {
|
|
37
|
+
humanDate: string;
|
|
38
|
+
date: string;
|
|
39
|
+
platformId: number;
|
|
40
|
+
page: number;
|
|
41
|
+
pageSize: number;
|
|
42
|
+
totalPages: number;
|
|
43
|
+
/** Omitted when includeChannels is false. */
|
|
44
|
+
channels?: TvProgramChannel[];
|
|
45
|
+
program: TvProgramChannelSchedule[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TvProgramQuery, TvProgramResponse } from './tv-program-types';
|
|
2
|
+
export declare class TvProgramRequestError extends Error {
|
|
3
|
+
readonly status: number;
|
|
4
|
+
constructor(status: number);
|
|
5
|
+
}
|
|
6
|
+
/** Fetches channels and their schedules. Optional parameters use defaults. */
|
|
7
|
+
export declare function tvProgram(query: TvProgramQuery, signal?: AbortSignal): Promise<TvProgramResponse>;
|
|
@@ -14,4 +14,5 @@ export { isFocusableElementOrChild } from './isFocusableElementOrChild';
|
|
|
14
14
|
export { copyTextToClipboard } from './clipboard';
|
|
15
15
|
export { innerTextFromHtml } from './inner-text-from-html';
|
|
16
16
|
export { observeOnce } from './visibility-observer';
|
|
17
|
+
export { formatLocalDate } from './date';
|
|
17
18
|
export { InertiaScroll } from './inertia-scroll';
|
package/package.json
CHANGED
|
@@ -1,536 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-BL_zVDFC.js');
|
|
4
|
-
var visibilityObserver = require('./visibility-observer-Coef27xg.js');
|
|
5
|
-
var translations = require('./translations-Uvcq4kv8.js');
|
|
6
|
-
require('./http-codes-D7ffzpYW.js');
|
|
7
|
-
require('./typecheck--Bs-bZ_K.js');
|
|
8
|
-
|
|
9
|
-
const tetTvProgramChannelPickerCss = () => `@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{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--tv-channel-picker-text-primary-color:var(--tc-text-primary);--tv-channel-picker-button-background-color:var(--tc-layer-grey-primary);--tv-channel-picker-button-hover-background-color:var(--tc-layer-grey-secondary);--tv-channel-picker-button-active-background-color:var(--tc-layer-grey-tertiary);--tv-channel-picker-focus-outline-color:var(--tc-blue-40);--tv-channel-picker-gradient-color:var(--tc-background-primary);display:block;height:3.875rem}:host([theme=dark]){--tv-channel-picker-text-primary-color:var(--tc-text-primary-dark);--tv-channel-picker-button-background-color:var(--tc-layer-grey-primary-dark);--tv-channel-picker-button-hover-background-color:var(--tc-layer-grey-secondary-dark);--tv-channel-picker-button-active-background-color:var(--tc-layer-grey-tertiary-dark);--tv-channel-picker-focus-outline-color:var(--tc-blue-40-dark);--tv-channel-picker-gradient-color:var(--tc-background-primary-dark)}.tv-channel-picker{position:relative;display:flex;align-items:center;max-width:100%;height:100%}.tv-channel-picker--gradients::before,.tv-channel-picker--gradients::after{content:"";position:absolute;top:0;bottom:0;width:119px;pointer-events:none;z-index:2;opacity:0}.tv-channel-picker--gradients::before{left:0;background:linear-gradient(to right, var(--tv-channel-picker-gradient-color), transparent)}.tv-channel-picker--gradients::after{right:0;background:linear-gradient(to left, var(--tv-channel-picker-gradient-color), transparent)}.tv-channel-picker--gradient-left::before,.tv-channel-picker--gradient-right::after{opacity:1}.tv-channel-picker__list{display:flex;flex:1;flex-direction:row;justify-content:safe center;gap:0.5rem;height:100%;min-width:0;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;-webkit-user-select:none;user-select:none}.tv-channel-picker__list--dragging{scroll-behavior:auto;scroll-snap-type:none}.tv-channel-picker__list--dragging,.tv-channel-picker__list--dragging .tv-channel-picker__button{cursor:grabbing}@media (prefers-reduced-motion: reduce){.tv-channel-picker__list{scroll-behavior:auto}}.tv-channel-picker__list::-webkit-scrollbar{display:none}.tv-channel-picker__item{display:flex;flex-direction:column;gap:0.25rem;list-style:none;width:6.25rem;height:100%;flex-shrink:0}.tv-channel-picker__image{display:block;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}.tv-channel-picker__fallback{font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";align-self:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tv-channel-picker__button,.tv-channel-picker__placeholder{width:100%;align-self:center;height:3.375rem}.tv-channel-picker__button{display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:0.5rem;padding:0.5rem 0.625rem;color:var(--tv-channel-picker-text-primary-color);background-color:var(--tv-channel-picker-button-background-color)}.tv-channel-picker__button:hover{background-color:var(--tv-channel-picker-button-hover-background-color)}.tv-channel-picker__button:active,.tv-channel-picker__button[aria-pressed=true]{background-color:var(--tv-channel-picker-button-active-background-color)}.tv-channel-picker__button:disabled{pointer-events:none}.tv-channel-picker__button:focus-visible{outline:0.125rem solid var(--tv-channel-picker-focus-outline-color);outline-offset:-0.125rem}.tv-channel-picker__placeholder tet-placeholder{--placeholder-border-radius:0.5rem}.tv-channel-picker__button-underline{height:0.25rem;border-radius:0.5rem;background-color:var(--tv-channel-picker-button-active-background-color)}`;
|
|
10
|
-
|
|
11
|
-
const DRAGGING_CLASS$1 = 'tv-channel-picker__list--dragging';
|
|
12
|
-
const DRAG_THRESHOLD$1 = 5;
|
|
13
|
-
const TetTvProgramChannelPicker = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
index.registerInstance(this, hostRef);
|
|
16
|
-
this.channelSelected = index.createEvent(this, "channelSelected");
|
|
17
|
-
}
|
|
18
|
-
/** Theme of the component */
|
|
19
|
-
theme = 'light';
|
|
20
|
-
/** Channels available for selection. Channel IDs must be unique. */
|
|
21
|
-
channels = [];
|
|
22
|
-
/** Disables channel selection and navigation while allowing scrolling. */
|
|
23
|
-
disabled = false;
|
|
24
|
-
/** Shows placeholder items while the parent fetches channels. */
|
|
25
|
-
loading = false;
|
|
26
|
-
/** Shows full-height gradients at both edges of the channel list. */
|
|
27
|
-
showGradients = false;
|
|
28
|
-
selectedChannel;
|
|
29
|
-
focusedChannel;
|
|
30
|
-
failedImageSources = [];
|
|
31
|
-
visibleChannelIds = [];
|
|
32
|
-
canScrollLeft = false;
|
|
33
|
-
canScrollRight = false;
|
|
34
|
-
/** Emitted when the user selects a different channel, with its ID. */
|
|
35
|
-
channelSelected;
|
|
36
|
-
channelList;
|
|
37
|
-
renderedSelectedChannel;
|
|
38
|
-
renderedLoading = false;
|
|
39
|
-
drag;
|
|
40
|
-
suppressChannelClick = false;
|
|
41
|
-
resizeObserver;
|
|
42
|
-
imageObservations = new Map();
|
|
43
|
-
onThemeChange() {
|
|
44
|
-
this.visibleChannelIds = [];
|
|
45
|
-
for (const stop of this.imageObservations.values()) {
|
|
46
|
-
stop();
|
|
47
|
-
}
|
|
48
|
-
this.imageObservations.clear();
|
|
49
|
-
}
|
|
50
|
-
onChannelsChange() {
|
|
51
|
-
const channelIds = new Set(this.channels.map(channel => channel.id));
|
|
52
|
-
this.visibleChannelIds = this.visibleChannelIds.filter(id => channelIds.has(id));
|
|
53
|
-
if (!this.channels.some(channel => channel.id === this.selectedChannel)) {
|
|
54
|
-
this.selectedChannel = this.channels[0]?.id;
|
|
55
|
-
}
|
|
56
|
-
if (!this.channels.some(channel => channel.id === this.focusedChannel)) {
|
|
57
|
-
this.focusedChannel = undefined;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
/** Selects a channel by ID. Missing or unknown IDs select the first channel. Does not emit channelSelected. */
|
|
61
|
-
async setChannel(id) {
|
|
62
|
-
const nextChannel = this.channels.find(channel => channel.id === id) ?? this.channels[0];
|
|
63
|
-
if (nextChannel?.id === this.selectedChannel) {
|
|
64
|
-
this.centerChannel();
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
this.selectedChannel = nextChannel?.id;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
connectedCallback() {
|
|
71
|
-
if (this.channelList) {
|
|
72
|
-
this.resizeObserver?.observe(this.channelList);
|
|
73
|
-
this.observeChannelImages();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
componentWillLoad() {
|
|
77
|
-
this.onChannelsChange();
|
|
78
|
-
}
|
|
79
|
-
componentDidLoad() {
|
|
80
|
-
if (this.channelList && typeof globalThis.ResizeObserver === 'function') {
|
|
81
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
82
|
-
if (!this.drag) {
|
|
83
|
-
this.centerChannel();
|
|
84
|
-
}
|
|
85
|
-
this.updateScrollEdges();
|
|
86
|
-
});
|
|
87
|
-
this.resizeObserver.observe(this.channelList);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
componentDidRender() {
|
|
91
|
-
const selectionChanged = this.renderedSelectedChannel !== this.selectedChannel;
|
|
92
|
-
const channelsBecameVisible = this.renderedLoading && !this.loading;
|
|
93
|
-
this.renderedSelectedChannel = this.selectedChannel;
|
|
94
|
-
this.renderedLoading = this.loading;
|
|
95
|
-
if (selectionChanged || channelsBecameVisible) {
|
|
96
|
-
this.centerChannel();
|
|
97
|
-
}
|
|
98
|
-
this.updateScrollEdges();
|
|
99
|
-
this.observeChannelImages();
|
|
100
|
-
}
|
|
101
|
-
disconnectedCallback() {
|
|
102
|
-
this.resizeObserver?.disconnect();
|
|
103
|
-
for (const stop of this.imageObservations.values()) {
|
|
104
|
-
stop();
|
|
105
|
-
}
|
|
106
|
-
this.imageObservations.clear();
|
|
107
|
-
if (this.drag) {
|
|
108
|
-
this.handlePointerEnd(this.drag.pointerId);
|
|
109
|
-
}
|
|
110
|
-
this.suppressChannelClick = false;
|
|
111
|
-
}
|
|
112
|
-
handlePointerDown(event) {
|
|
113
|
-
this.suppressChannelClick = false;
|
|
114
|
-
if (event.pointerType === 'mouse' && event.button === 0 && this.channelList) {
|
|
115
|
-
this.drag = {
|
|
116
|
-
pointerId: event.pointerId,
|
|
117
|
-
startX: event.clientX,
|
|
118
|
-
scrollLeft: this.channelList.scrollLeft,
|
|
119
|
-
active: false,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
handlePointerMove(event) {
|
|
124
|
-
const drag = this.drag;
|
|
125
|
-
const list = this.channelList;
|
|
126
|
-
if (!drag || !list || event.pointerId !== drag.pointerId) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
if ((event.buttons & 1) === 0) {
|
|
130
|
-
this.handlePointerEnd(event.pointerId);
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
const distance = event.clientX - drag.startX;
|
|
134
|
-
if (!drag.active && Math.abs(distance) < DRAG_THRESHOLD$1) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
if (!drag.active) {
|
|
138
|
-
drag.active = true;
|
|
139
|
-
this.suppressChannelClick = true;
|
|
140
|
-
list.classList.add(DRAGGING_CLASS$1);
|
|
141
|
-
list.setPointerCapture(event.pointerId);
|
|
142
|
-
}
|
|
143
|
-
event.preventDefault();
|
|
144
|
-
list.scrollLeft = drag.scrollLeft - distance;
|
|
145
|
-
}
|
|
146
|
-
handlePointerEnd(pointerId) {
|
|
147
|
-
if (this.drag?.pointerId === pointerId) {
|
|
148
|
-
this.drag = undefined;
|
|
149
|
-
this.channelList?.classList.remove(DRAGGING_CLASS$1);
|
|
150
|
-
if (this.channelList?.hasPointerCapture(pointerId)) {
|
|
151
|
-
this.channelList.releasePointerCapture(pointerId);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
handleChannelButtonClick(channel, event) {
|
|
156
|
-
if (!this.suppressChannelClick || event.detail === 0) {
|
|
157
|
-
this.handleChannelClick(channel);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
handleChannelKeyDown(event, channel) {
|
|
161
|
-
if (this.disabled || this.loading || event.altKey || event.ctrlKey || event.metaKey ||
|
|
162
|
-
!['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
event.preventDefault();
|
|
166
|
-
const index = this.channels.findIndex(item => item.id === channel.id);
|
|
167
|
-
const targetIndices = {
|
|
168
|
-
ArrowLeft: index - 1,
|
|
169
|
-
ArrowRight: index + 1,
|
|
170
|
-
Home: 0,
|
|
171
|
-
End: this.channels.length - 1,
|
|
172
|
-
};
|
|
173
|
-
const targetIndex = targetIndices[event.key];
|
|
174
|
-
const nextChannel = index >= 0 ? this.channels[targetIndex] : undefined;
|
|
175
|
-
if (nextChannel) {
|
|
176
|
-
this.channelList?.querySelectorAll('button')[targetIndex]?.focus({ preventScroll: true });
|
|
177
|
-
this.centerChannel(nextChannel.id);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
handleChannelFocus(event, channel) {
|
|
181
|
-
this.focusedChannel = channel.id;
|
|
182
|
-
if (!this.drag && event.currentTarget instanceof Element && event.currentTarget.matches(':focus-visible')) {
|
|
183
|
-
this.centerChannel(channel.id);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
handleFocusOut(event) {
|
|
187
|
-
const nextTarget = event.relatedTarget;
|
|
188
|
-
if (!(nextTarget instanceof Node) || !this.channelList?.contains(nextTarget)) {
|
|
189
|
-
this.focusedChannel = undefined;
|
|
190
|
-
this.centerChannel();
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
observeChannelImages() {
|
|
194
|
-
const list = this.channelList;
|
|
195
|
-
if (!list) {
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
for (const [button, stop] of this.imageObservations) {
|
|
199
|
-
if (!list.contains(button) || this.visibleChannelIds.includes(button.dataset.channelId ?? '')) {
|
|
200
|
-
stop();
|
|
201
|
-
this.imageObservations.delete(button);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
for (const button of Array.from(list.querySelectorAll('button[data-channel-id]'))) {
|
|
205
|
-
const channelId = button.dataset.channelId;
|
|
206
|
-
if (channelId && !this.visibleChannelIds.includes(channelId) && !this.imageObservations.has(button) && button.querySelector('img')) {
|
|
207
|
-
const observedTheme = this.theme;
|
|
208
|
-
const stop = visibilityObserver.observeOnce(button, () => {
|
|
209
|
-
if (this.theme === observedTheme && list.contains(button) && !this.visibleChannelIds.includes(channelId)) {
|
|
210
|
-
this.visibleChannelIds = [...this.visibleChannelIds, channelId];
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
this.imageObservations.set(button, stop);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
updateScrollEdges() {
|
|
218
|
-
const list = this.channelList;
|
|
219
|
-
this.canScrollLeft = !!list && list.scrollLeft > 1;
|
|
220
|
-
this.canScrollRight = !!list && list.scrollWidth - list.clientWidth - list.scrollLeft > 1;
|
|
221
|
-
}
|
|
222
|
-
centerChannel(channelId = this.selectedChannel) {
|
|
223
|
-
const list = this.channelList;
|
|
224
|
-
const index = this.channels.findIndex(channel => channel.id === channelId);
|
|
225
|
-
const button = list?.querySelectorAll('button')[index];
|
|
226
|
-
if (list && button) {
|
|
227
|
-
const listBounds = list.getBoundingClientRect();
|
|
228
|
-
const buttonBounds = button.getBoundingClientRect();
|
|
229
|
-
const offset = buttonBounds.left - listBounds.left - list.clientLeft;
|
|
230
|
-
const target = list.scrollLeft + offset - (list.clientWidth - buttonBounds.width) / 2;
|
|
231
|
-
const maxScroll = Math.max(0, list.scrollWidth - list.clientWidth);
|
|
232
|
-
list.scrollLeft = Math.max(0, Math.min(target, maxScroll));
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
handleChannelClick(channel) {
|
|
236
|
-
if (this.disabled || this.loading) {
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
if (channel.id === this.selectedChannel) {
|
|
240
|
-
this.centerChannel();
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
this.selectedChannel = channel.id;
|
|
244
|
-
this.channelSelected.emit(channel.id);
|
|
245
|
-
}
|
|
246
|
-
renderChannelPlaceholders() {
|
|
247
|
-
return Array.from({ length: 16 }, (_, index$1) => (index.h("li", { class: "tv-channel-picker__item", key: `loading-${index$1}`, "aria-hidden": "true" }, index.h("div", { class: "tv-channel-picker__placeholder" }, index.h("tet-placeholder", { width: "100%", height: "100%", darkTheme: this.theme === 'dark' })))));
|
|
248
|
-
}
|
|
249
|
-
renderChannelButtons() {
|
|
250
|
-
return this.channels.map(channel => {
|
|
251
|
-
const isSelected = this.selectedChannel === channel.id;
|
|
252
|
-
const imageSource = this.theme === 'dark' ? channel.imageSourceDark ?? channel.imageSource : channel.imageSource;
|
|
253
|
-
return (index.h("li", { class: "tv-channel-picker__item", key: channel.id }, index.h("button", { type: "button", class: "tv-channel-picker__button", "data-channel-id": channel.id, disabled: this.disabled, "aria-label": channel.name, "aria-pressed": isSelected ? 'true' : 'false', tabIndex: (this.focusedChannel ?? this.selectedChannel) === channel.id ? 0 : -1, onFocus: event => this.handleChannelFocus(event, channel), onClick: event => this.handleChannelButtonClick(channel, event), onKeyDown: event => this.handleChannelKeyDown(event, channel) }, !imageSource || this.failedImageSources.includes(imageSource) ? (index.h("span", { class: "tv-channel-picker__fallback" }, channel.name)) : (index.h("img", { class: "tv-channel-picker__image", src: this.visibleChannelIds.includes(channel.id) ? imageSource : undefined, alt: "", draggable: false, onError: () => {
|
|
254
|
-
if (!this.failedImageSources.includes(imageSource)) {
|
|
255
|
-
this.failedImageSources = [...this.failedImageSources, imageSource];
|
|
256
|
-
}
|
|
257
|
-
} }))), isSelected && (index.h("div", { class: "tv-channel-picker__button-underline" }))));
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
render() {
|
|
261
|
-
return (index.h(index.Host, { key: 'b39ec97eedb9e2c0b349b7436ff5c3d5da4f573f' }, index.h("div", { key: 'a0f1936c84f99a4ad51f92c62fdd93b1b6ee0295', class: {
|
|
262
|
-
'tv-channel-picker': true,
|
|
263
|
-
'tv-channel-picker--gradients': this.showGradients,
|
|
264
|
-
'tv-channel-picker--gradient-left': this.showGradients && this.canScrollLeft,
|
|
265
|
-
'tv-channel-picker--gradient-right': this.showGradients && this.canScrollRight,
|
|
266
|
-
} }, index.h("ul", { key: 'fa85fbac4fe8a7f5d736cafa3c6bc8413b9c2624', class: "tv-channel-picker__list", tabIndex: -1, "aria-busy": this.loading ? 'true' : 'false', ref: element => { this.channelList = element; }, onScroll: () => this.updateScrollEdges(), onFocusout: event => this.handleFocusOut(event), onPointerDown: event => this.handlePointerDown(event), onPointerMove: event => this.handlePointerMove(event), onPointerUp: event => this.handlePointerEnd(event.pointerId), onPointerCancel: event => this.handlePointerEnd(event.pointerId), onLostPointerCapture: event => this.handlePointerEnd(event.pointerId) }, this.loading ? this.renderChannelPlaceholders() : this.renderChannelButtons()))));
|
|
267
|
-
}
|
|
268
|
-
static get watchers() { return {
|
|
269
|
-
"theme": [{
|
|
270
|
-
"onThemeChange": 0
|
|
271
|
-
}],
|
|
272
|
-
"channels": [{
|
|
273
|
-
"onChannelsChange": 0
|
|
274
|
-
}]
|
|
275
|
-
}; }
|
|
276
|
-
};
|
|
277
|
-
TetTvProgramChannelPicker.style = tetTvProgramChannelPickerCss();
|
|
278
|
-
|
|
279
|
-
const tetTvProgramDatePickerCss = () => `@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{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--tv-date-picker-text-primary-color:var(--tc-text-primary);--tv-date-picker-text-permanent-black-color:var(--tc-text-black-permanent);--tv-date-picker-main-background-color:var(--tc-layer-grey-primary);--tv-date-picker-button-hover-background-color:var(--tc-button-secondary-background-hover);--tv-date-picker-button-pressed-background-color:var(--tc-button-secondary-background-pressed);--tv-date-picker-button-active-background-color:var(--tc-button-primary-yellow-background-default);--tv-date-picker-focus-outline-color:var(--tc-blue-40);display:block;min-height:3.75rem}:host([theme=dark]){--tv-date-picker-text-primary-color:var(--tc-text-primary-dark);--tv-date-picker-text-permanent-black-color:var(--tc-text-black-permanent-dark);--tv-date-picker-main-background-color:var(--tc-layer-grey-primary-dark);--tv-date-picker-button-hover-background-color:var(--tc-button-secondary-background-hover-dark);--tv-date-picker-button-pressed-background-color:var(--tc-button-secondary-background-pressed-dark);--tv-date-picker-button-active-background-color:var(--tc-button-primary-yellow-background-default-dark);--tv-date-picker-focus-outline-color:var(--tc-blue-40-dark)}.tv-date-picker{display:flex;align-items:center;max-width:100%;height:3.75rem}@media screen and (min-width: 48rem){.tv-date-picker{border-radius:1.875rem;background-color:var(--tv-date-picker-main-background-color)}}.tv-date-picker__button{align-items:center;border:none;cursor:pointer;color:var(--tv-date-picker-text-primary-color);background-color:var(--tv-date-picker-main-background-color)}.tv-date-picker__button:hover{background-color:var(--tv-date-picker-button-hover-background-color)}.tv-date-picker__button:active{background-color:var(--tv-date-picker-button-pressed-background-color)}.tv-date-picker__button:disabled{pointer-events:none}.tv-date-picker__button:focus-visible{outline:0.125rem solid var(--tv-date-picker-focus-outline-color);outline-offset:0.125rem;z-index:1}.tv-date-picker__list{--date-gap:0.5rem;display:flex;flex:1;flex-direction:row;justify-content:safe center;gap:var(--date-gap);min-width:0;padding:0.4375rem 0.25rem;margin-inline:-0.25rem;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;-webkit-user-select:none;user-select:none}@media screen and (min-width: 48rem){.tv-date-picker__list{--visible-dates:3;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--visible-dates) - 1) * var(--date-gap)) / var(--visible-dates));padding:0.5rem;margin-inline:0;scroll-snap-type:x mandatory;scroll-padding-inline:0.5rem}}@media screen and (min-width: 64rem){.tv-date-picker__list{--visible-dates:5}}.tv-date-picker__list--dragging{scroll-behavior:auto;scroll-snap-type:none}.tv-date-picker__list--dragging,.tv-date-picker__list--dragging .tv-date-picker__button{cursor:grabbing}@media (prefers-reduced-motion: reduce){.tv-date-picker__list{scroll-behavior:auto}}.tv-date-picker__list::-webkit-scrollbar{display:none}.tv-date-picker__button--nav{display:none;height:100%}@media screen and (min-width: 48rem){.tv-date-picker__button--nav{display:flex}}.tv-date-picker__button--nav-left{border-top-left-radius:1.875rem;border-bottom-left-radius:1.875rem;padding-inline:1.5rem 1rem}.tv-date-picker__button--nav-right{border-top-right-radius:1.875rem;border-bottom-right-radius:1.875rem;padding-inline:1rem 1.5rem}.tv-date-picker__button--nav:focus-visible{outline-offset:-0.125rem}.tv-date-picker__nav-button-icon{--icon-size:1.5rem}.tv-date-picker__item{list-style:none}@media screen and (min-width: 48rem){.tv-date-picker__item{min-width:0;scroll-snap-align:start}}@media screen and (min-width: 64rem){.tv-date-picker__date{display:block}}@media screen and (min-width: 80rem){.tv-date-picker__date{display:inline}}.tv-date-picker__button--date{font:500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";padding-inline:1.5rem;border-radius:1.5rem;height:2.875rem;white-space:nowrap}@media screen and (min-width: 48rem){.tv-date-picker__button--date{font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";width:100%;padding-inline:2.5rem}}.tv-date-picker__button--date[aria-pressed=true]{color:var(--tv-date-picker-text-permanent-black-color);background-color:var(--tv-date-picker-button-active-background-color)}`;
|
|
280
|
-
|
|
281
|
-
const DRAGGING_CLASS = 'tv-date-picker__list--dragging';
|
|
282
|
-
const DRAG_THRESHOLD = 5;
|
|
283
|
-
const TetTvProgramDatePicker = class {
|
|
284
|
-
constructor(hostRef) {
|
|
285
|
-
index.registerInstance(this, hostRef);
|
|
286
|
-
this.dateSelected = index.createEvent(this, "dateSelected");
|
|
287
|
-
}
|
|
288
|
-
/** Theme of the component */
|
|
289
|
-
theme = 'light';
|
|
290
|
-
/** Number of days displayed before and after today, clamped to 0–30. Today is always included. */
|
|
291
|
-
daysRange = 7;
|
|
292
|
-
/** Language used for weekday names and translations. */
|
|
293
|
-
language = 'lv';
|
|
294
|
-
/** Disables date selection and navigation while allowing scrolling. */
|
|
295
|
-
disabled = false;
|
|
296
|
-
selectedDate = this.formatDate(new Date());
|
|
297
|
-
focusedDate;
|
|
298
|
-
/** Emitted when a date is clicked, with the selected local date in YYYY-MM-DD format. */
|
|
299
|
-
dateSelected;
|
|
300
|
-
weekdayFormatter = new Intl.DateTimeFormat(this.language, { weekday: 'long' });
|
|
301
|
-
dateList;
|
|
302
|
-
renderedSelectedDate;
|
|
303
|
-
renderedDaysRange;
|
|
304
|
-
drag;
|
|
305
|
-
suppressDateClick = false;
|
|
306
|
-
resizeObserver;
|
|
307
|
-
async onDaysRangeChange() {
|
|
308
|
-
if (!this.getDates().some(date => this.formatDate(date) === this.focusedDate)) {
|
|
309
|
-
this.focusedDate = undefined;
|
|
310
|
-
}
|
|
311
|
-
await this.setDate(this.selectedDate);
|
|
312
|
-
}
|
|
313
|
-
async onLanguageChange(language) {
|
|
314
|
-
this.weekdayFormatter = new Intl.DateTimeFormat(language, { weekday: 'long' });
|
|
315
|
-
await translations.processTranslations('tet-components', language);
|
|
316
|
-
index.forceUpdate(this);
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* Selects a local calendar date in YYYY-MM-DD format.
|
|
320
|
-
* Missing, invalid, or out-of-range dates reset to today. Does not emit dateSelected.
|
|
321
|
-
*/
|
|
322
|
-
async setDate(date) {
|
|
323
|
-
const isAvailable = this.getDates().some(item => this.formatDate(item) === date);
|
|
324
|
-
const nextDate = date && isAvailable ? date : this.formatDate(new Date());
|
|
325
|
-
if (nextDate === this.selectedDate) {
|
|
326
|
-
this.centerDate();
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
this.selectedDate = nextDate;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
connectedCallback() {
|
|
333
|
-
if (this.dateList) {
|
|
334
|
-
this.resizeObserver?.observe(this.dateList);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
async componentWillLoad() {
|
|
338
|
-
await this.onLanguageChange(this.language);
|
|
339
|
-
}
|
|
340
|
-
componentDidLoad() {
|
|
341
|
-
if (this.dateList && typeof globalThis.ResizeObserver === 'function') {
|
|
342
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
343
|
-
if (!this.drag) {
|
|
344
|
-
this.centerDate();
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
this.resizeObserver.observe(this.dateList);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
componentDidRender() {
|
|
351
|
-
if (this.renderedSelectedDate !== this.selectedDate || this.renderedDaysRange !== this.daysRange) {
|
|
352
|
-
this.centerDate();
|
|
353
|
-
}
|
|
354
|
-
this.renderedSelectedDate = this.selectedDate;
|
|
355
|
-
this.renderedDaysRange = this.daysRange;
|
|
356
|
-
}
|
|
357
|
-
disconnectedCallback() {
|
|
358
|
-
this.resizeObserver?.disconnect();
|
|
359
|
-
if (this.drag) {
|
|
360
|
-
this.handlePointerEnd(this.drag.pointerId);
|
|
361
|
-
}
|
|
362
|
-
this.suppressDateClick = false;
|
|
363
|
-
}
|
|
364
|
-
handlePointerDown(event) {
|
|
365
|
-
this.suppressDateClick = false;
|
|
366
|
-
if (event.pointerType === 'mouse' && event.button === 0 && this.dateList) {
|
|
367
|
-
this.drag = {
|
|
368
|
-
pointerId: event.pointerId,
|
|
369
|
-
startX: event.clientX,
|
|
370
|
-
scrollLeft: this.dateList.scrollLeft,
|
|
371
|
-
active: false,
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
handlePointerMove(event) {
|
|
376
|
-
const drag = this.drag;
|
|
377
|
-
const list = this.dateList;
|
|
378
|
-
if (!drag || !list || event.pointerId !== drag.pointerId) {
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
if ((event.buttons & 1) === 0) {
|
|
382
|
-
this.handlePointerEnd(event.pointerId);
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
const distance = event.clientX - drag.startX;
|
|
386
|
-
if (!drag.active && Math.abs(distance) < DRAG_THRESHOLD) {
|
|
387
|
-
return;
|
|
388
|
-
}
|
|
389
|
-
if (!drag.active) {
|
|
390
|
-
drag.active = true;
|
|
391
|
-
this.suppressDateClick = true;
|
|
392
|
-
list.classList.add(DRAGGING_CLASS);
|
|
393
|
-
list.setPointerCapture(event.pointerId);
|
|
394
|
-
}
|
|
395
|
-
event.preventDefault();
|
|
396
|
-
list.scrollLeft = drag.scrollLeft - distance;
|
|
397
|
-
}
|
|
398
|
-
handlePointerEnd(pointerId) {
|
|
399
|
-
if (this.drag?.pointerId === pointerId) {
|
|
400
|
-
this.drag = undefined;
|
|
401
|
-
this.dateList?.classList.remove(DRAGGING_CLASS);
|
|
402
|
-
if (this.dateList?.hasPointerCapture(pointerId)) {
|
|
403
|
-
this.dateList.releasePointerCapture(pointerId);
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
handleDateButtonClick(date, event) {
|
|
408
|
-
if (!this.suppressDateClick || event.detail === 0) {
|
|
409
|
-
this.handleDateClick(date);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
handleDateKeyDown(event, date) {
|
|
413
|
-
if (this.disabled || event.altKey || event.ctrlKey || event.metaKey || !['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) {
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
event.preventDefault();
|
|
417
|
-
const dates = this.getDates();
|
|
418
|
-
const index = dates.findIndex(item => this.formatDate(item) === this.formatDate(date));
|
|
419
|
-
const targetIndices = {
|
|
420
|
-
ArrowLeft: index - 1,
|
|
421
|
-
ArrowRight: index + 1,
|
|
422
|
-
Home: 0,
|
|
423
|
-
End: dates.length - 1,
|
|
424
|
-
};
|
|
425
|
-
const nextDate = index >= 0 ? dates[targetIndices[event.key]] : undefined;
|
|
426
|
-
if (nextDate) {
|
|
427
|
-
this.focusedDate = this.formatDate(nextDate);
|
|
428
|
-
this.dateList?.querySelectorAll('button')[targetIndices[event.key]]?.focus({ preventScroll: true });
|
|
429
|
-
this.centerDate(this.focusedDate);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
handleDateFocus(event, dateValue) {
|
|
433
|
-
this.focusedDate = dateValue;
|
|
434
|
-
if (!this.drag && event.currentTarget instanceof Element && event.currentTarget.matches(':focus-visible')) {
|
|
435
|
-
this.centerDate(dateValue);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
handleFocusOut(event) {
|
|
439
|
-
if (!(event.relatedTarget instanceof Node) || !this.dateList?.contains(event.relatedTarget)) {
|
|
440
|
-
this.focusedDate = undefined;
|
|
441
|
-
this.centerDate();
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
centerDate(dateValue = this.selectedDate) {
|
|
445
|
-
const list = this.dateList;
|
|
446
|
-
const index = this.getDates().findIndex(date => this.formatDate(date) === dateValue);
|
|
447
|
-
const button = list?.querySelectorAll('button')[index];
|
|
448
|
-
if (list && button) {
|
|
449
|
-
const listBounds = list.getBoundingClientRect();
|
|
450
|
-
const buttonBounds = button.getBoundingClientRect();
|
|
451
|
-
const offset = buttonBounds.left - listBounds.left - list.clientLeft;
|
|
452
|
-
const target = list.scrollLeft + offset - (list.clientWidth - buttonBounds.width) / 2;
|
|
453
|
-
const maxScroll = Math.max(0, list.scrollWidth - list.clientWidth);
|
|
454
|
-
list.scrollLeft = Math.max(0, Math.min(target, maxScroll));
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
getDates() {
|
|
458
|
-
const range = Number.isFinite(this.daysRange) ? Math.min(30, Math.max(0, Math.floor(this.daysRange))) : 0;
|
|
459
|
-
const today = new Date();
|
|
460
|
-
return Array.from({ length: range * 2 + 1 }, (_, index) => (new Date(today.getFullYear(), today.getMonth(), today.getDate() + index - range)));
|
|
461
|
-
}
|
|
462
|
-
formatDate(date) {
|
|
463
|
-
const year = date.getFullYear();
|
|
464
|
-
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
465
|
-
const day = String(date.getDate()).padStart(2, '0');
|
|
466
|
-
return `${year}-${month}-${day}`;
|
|
467
|
-
}
|
|
468
|
-
formatLabel(date, dayOffset) {
|
|
469
|
-
const weekday = this.weekdayFormatter.format(date);
|
|
470
|
-
const capitalizedWeekday = weekday.charAt(0).toLocaleUpperCase(this.language) + weekday.slice(1);
|
|
471
|
-
const relativeDayKeys = {
|
|
472
|
-
[-1]: 'tet-components-tv-program-yesterday',
|
|
473
|
-
0: 'tet-components-tv-program-today',
|
|
474
|
-
1: 'tet-components-tv-program-tomorrow',
|
|
475
|
-
};
|
|
476
|
-
const translationKey = relativeDayKeys[dayOffset];
|
|
477
|
-
const dayName = translationKey ? translations.translate(translationKey) : capitalizedWeekday;
|
|
478
|
-
const day = String(date.getDate()).padStart(2, '0');
|
|
479
|
-
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
480
|
-
return (index.h("span", null, index.h("span", { class: "tv-date-picker__day-name" }, dayName, ","), ' ', index.h("span", { class: "tv-date-picker__date" }, day, ".", month)));
|
|
481
|
-
}
|
|
482
|
-
handleDateClick(date) {
|
|
483
|
-
const formattedDate = this.formatDate(date);
|
|
484
|
-
if (this.disabled) {
|
|
485
|
-
return;
|
|
486
|
-
}
|
|
487
|
-
if (formattedDate === this.selectedDate) {
|
|
488
|
-
this.centerDate();
|
|
489
|
-
return;
|
|
490
|
-
}
|
|
491
|
-
this.selectedDate = formattedDate;
|
|
492
|
-
this.dateSelected.emit(formattedDate);
|
|
493
|
-
}
|
|
494
|
-
getNavigationDate(position, dates) {
|
|
495
|
-
const selectedIndex = dates.findIndex(date => this.formatDate(date) === this.selectedDate);
|
|
496
|
-
const offset = position === 'left' ? -1 : 1;
|
|
497
|
-
return selectedIndex >= 0 ? dates[selectedIndex + offset] : undefined;
|
|
498
|
-
}
|
|
499
|
-
handleNavButtonClick(position) {
|
|
500
|
-
const date = this.getNavigationDate(position, this.getDates());
|
|
501
|
-
if (date) {
|
|
502
|
-
this.handleDateClick(date);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
renderNavigationButtons(position, dates) {
|
|
506
|
-
const isPrevious = position === 'left';
|
|
507
|
-
const iconName = isPrevious ? 'tc-chevron-left' : 'tc-chevron-right';
|
|
508
|
-
const label = translations.translate(isPrevious ? 'tet-components-tv-program-previous-day' : 'tet-components-tv-program-next-day');
|
|
509
|
-
return (index.h("button", { type: "button", class: {
|
|
510
|
-
"tv-date-picker__button": true,
|
|
511
|
-
"tv-date-picker__button--nav": true,
|
|
512
|
-
[`tv-date-picker__button--nav-${position}`]: true,
|
|
513
|
-
}, "aria-label": label, disabled: this.disabled || !this.getNavigationDate(position, dates), onClick: () => this.handleNavButtonClick(position) }, index.h("tet-icon", { class: "tv-date-picker__nav-button-icon", name: iconName, theme: this.theme })));
|
|
514
|
-
}
|
|
515
|
-
render() {
|
|
516
|
-
const dates = this.getDates();
|
|
517
|
-
const todayIndex = Math.floor(dates.length / 2);
|
|
518
|
-
return (index.h(index.Host, { key: '93b825fe8a2b67acde5599e31a3296a5d8b10e87' }, index.h("div", { key: 'd39bac81b115e1ca61fb2fb48f54318dfa9a8d34', class: "tv-date-picker" }, this.renderNavigationButtons('left', dates), index.h("ul", { key: '20a7a669d07ffcf0be14864e8298b5b32ecf4d74', class: "tv-date-picker__list", tabIndex: -1, ref: element => { this.dateList = element; }, onFocusout: event => this.handleFocusOut(event), onPointerDown: event => this.handlePointerDown(event), onPointerMove: event => this.handlePointerMove(event), onPointerUp: event => this.handlePointerEnd(event.pointerId), onPointerCancel: event => this.handlePointerEnd(event.pointerId), onLostPointerCapture: event => this.handlePointerEnd(event.pointerId) }, dates.map((date, index$1) => {
|
|
519
|
-
const dateValue = this.formatDate(date);
|
|
520
|
-
const isSelected = this.selectedDate === dateValue;
|
|
521
|
-
return (index.h("li", { class: "tv-date-picker__item", key: dateValue }, index.h("button", { type: "button", class: "tv-date-picker__button tv-date-picker__button--date", disabled: this.disabled, "aria-pressed": isSelected ? 'true' : 'false', tabIndex: (this.focusedDate ?? this.selectedDate) === dateValue ? 0 : -1, onFocus: event => this.handleDateFocus(event, dateValue), onClick: event => this.handleDateButtonClick(date, event), onKeyDown: event => this.handleDateKeyDown(event, date) }, index.h("time", { dateTime: dateValue }, this.formatLabel(date, index$1 - todayIndex)))));
|
|
522
|
-
})), this.renderNavigationButtons('right', dates))));
|
|
523
|
-
}
|
|
524
|
-
static get watchers() { return {
|
|
525
|
-
"daysRange": [{
|
|
526
|
-
"onDaysRangeChange": 0
|
|
527
|
-
}],
|
|
528
|
-
"language": [{
|
|
529
|
-
"onLanguageChange": 0
|
|
530
|
-
}]
|
|
531
|
-
}; }
|
|
532
|
-
};
|
|
533
|
-
TetTvProgramDatePicker.style = tetTvProgramDatePickerCss();
|
|
534
|
-
|
|
535
|
-
exports.tet_tv_program_channel_picker = TetTvProgramChannelPicker;
|
|
536
|
-
exports.tet_tv_program_date_picker = TetTvProgramDatePicker;
|