@tet/tet-components 1.4.155-testing → 1.4.156-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.
Files changed (502) hide show
  1. package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-Dr-iFaJ9.js} +1 -1
  2. package/dist/cjs/{index-Dzs7Nkbj.js → index-BEOR8cIU.js} +1 -1
  3. package/dist/cjs/{index-BL_zVDFC.js → index-DRNSo5RU.js} +13 -5
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-_8BsEWy8.js} +1 -1
  6. package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
  7. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
  8. package/dist/cjs/tet-address-offers-view.cjs.entry.js +4 -4
  9. package/dist/cjs/tet-address-offers_5.cjs.entry.js +9 -9
  10. package/dist/cjs/tet-assembler.cjs.entry.js +3 -3
  11. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
  12. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +2 -2
  13. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +6 -6
  14. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
  15. package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
  16. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  17. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  18. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  19. package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
  20. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  21. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  22. package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
  23. package/dist/cjs/tet-carousel.cjs.entry.js +11 -11
  24. package/dist/cjs/tet-checkbox_3.cjs.entry.js +2 -2
  25. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
  26. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  27. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  28. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
  29. package/dist/cjs/tet-compare-card-v3.cjs.entry.js +3 -3
  30. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
  32. package/dist/cjs/tet-components.cjs.js +2 -2
  33. package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
  34. package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
  35. package/dist/cjs/tet-counter.cjs.entry.js +1 -1
  36. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +6 -6
  37. package/dist/cjs/tet-datepicker.cjs.entry.js +5 -5
  38. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  39. package/dist/cjs/tet-display.cjs.entry.js +1 -1
  40. package/dist/cjs/tet-divider.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  43. package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
  44. package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
  45. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  47. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  48. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  49. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  50. package/dist/cjs/tet-icon.cjs.entry.js +3 -3
  51. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  52. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  53. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  54. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  55. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  56. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  57. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
  59. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +4 -4
  60. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +6 -6
  61. package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
  62. package/dist/cjs/tet-news-card.cjs.entry.js +4 -29
  63. package/dist/cjs/tet-notification.cjs.entry.js +2 -2
  64. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  65. package/dist/cjs/tet-paginator.cjs.entry.js +4 -4
  66. package/dist/cjs/tet-placeholder.cjs.entry.js +3 -3
  67. package/dist/cjs/tet-position.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-radio-blocks.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
  71. package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
  72. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  73. package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
  75. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  76. package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
  77. package/dist/cjs/tet-stepper-input.cjs.entry.js +4 -4
  78. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  79. package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
  80. package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  82. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-tag_2.cjs.entry.js +5 -5
  84. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-text.cjs.entry.js +1 -1
  86. package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
  87. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  88. package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +536 -0
  89. package/dist/cjs/tet-tv-program.cjs.entry.js +19 -0
  90. package/dist/cjs/{translations-Uvcq4kv8.js → translations-Dgrvj2-A.js} +1 -1
  91. package/dist/cjs/visibility-observer-Coef27xg.js +30 -0
  92. package/dist/collection/assets/icons/tc/tc-infinity.svg +3 -0
  93. package/dist/collection/assets/icons/tc-icons.svg +2 -0
  94. package/dist/collection/collection-manifest.json +3 -0
  95. package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
  96. package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
  97. package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
  98. package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
  99. package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
  100. package/dist/collection/components/advanced/cards/tet-news-card/tet-news-card.js +1 -1
  101. package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
  102. package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
  103. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
  104. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
  105. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
  106. package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
  107. package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +10 -10
  108. package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
  109. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.css +9 -3
  110. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
  111. package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
  112. package/dist/collection/components/basic/misc/tet-countdown/tet-countdown.js +1 -1
  113. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
  114. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
  115. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
  116. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
  117. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
  118. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
  119. package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
  120. package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
  121. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
  122. package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
  123. package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +1 -1
  124. package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
  125. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
  126. package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
  127. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
  128. package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
  129. package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
  130. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.css +200 -0
  131. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.js +438 -0
  132. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.css +227 -0
  133. package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +403 -0
  134. package/dist/collection/components/views/tet-tv-program/tet-tv-program.css +3 -0
  135. package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +51 -0
  136. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  137. package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
  138. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  139. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  140. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  141. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  142. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  143. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  144. package/dist/collection/services/utils/visibility-observer.js +2 -1
  145. package/dist/components/assets/icons/tc/tc-infinity.svg +3 -0
  146. package/dist/components/assets/icons/tc-icons.svg +2 -0
  147. package/dist/components/index.js +1 -1
  148. package/dist/components/{p-B5Dk5hzj.js → p-4Ucu3g0C.js} +1 -1
  149. package/dist/components/{p-8ThmuWkF.js → p-ALrE6ZGw.js} +1 -1
  150. package/dist/components/{p-B8Kug3o4.js → p-AMA9jkbS.js} +1 -1
  151. package/dist/components/{p-D8Xy3-us.js → p-B78wNYwG.js} +1 -1
  152. package/dist/components/{p-CqWEjd1z.js → p-B7dLSSga.js} +1 -1
  153. package/dist/components/{p-DxMWyVOs.js → p-BBNq_Obn.js} +1 -1
  154. package/dist/components/{p-YP4S-sZr.js → p-BBwZwi16.js} +1 -1
  155. package/dist/components/{p-CXef17B1.js → p-BHa6Bvm1.js} +1 -1
  156. package/dist/components/{p-DRrLXWjt.js → p-BKIzl46N.js} +1 -1
  157. package/dist/components/{p-CG6D6t5h.js → p-BKV7eseS.js} +1 -1
  158. package/dist/components/{p-BXSBo_9f.js → p-BNSgwUB6.js} +1 -1
  159. package/dist/components/{p-BIYngV7t.js → p-BOSgCY1r.js} +1 -1
  160. package/dist/components/{p-B3dJMfnA.js → p-BQ6Phr3_.js} +1 -1
  161. package/dist/components/{p-BWhbMR4x.js → p-BSB68YLB.js} +1 -1
  162. package/dist/components/{p-CMxcvnRv.js → p-BSySZotX.js} +1 -1
  163. package/dist/components/{p-CebBgDcM.js → p-BVdnP7TQ.js} +1 -1
  164. package/dist/components/{p-DsRgePgU.js → p-BWwJpXtA.js} +1 -1
  165. package/dist/components/{p-DN2JwXg9.js → p-BcXV5sQw.js} +1 -1
  166. package/dist/components/{p-iskuLYNx.js → p-Bem2btOu.js} +1 -1
  167. package/dist/components/{p-BOVU0z8h.js → p-BkFcfvMF.js} +1 -1
  168. package/dist/components/{p-iYhyyBx7.js → p-BmP8bH5F.js} +1 -1
  169. package/dist/components/{p-B0WxHzd1.js → p-C9nJlVOI.js} +1 -1
  170. package/dist/components/{p-BdH-lygG.js → p-CDHTIpIi.js} +1 -1
  171. package/dist/components/{p-lEX8wezw.js → p-CXP2jsSO.js} +1 -1
  172. package/dist/components/{p-ClIOIvnY.js → p-CXYXt1pz.js} +1 -1
  173. package/dist/components/p-C_KgLQQq.js +1 -0
  174. package/dist/components/{p-JbKpKbEr.js → p-C_hP1fqX.js} +1 -1
  175. package/dist/components/{p-Bw-D7nPx.js → p-CaHY4mtM.js} +1 -1
  176. package/dist/components/{p-euerg1lg.js → p-CeTXEEPS.js} +1 -1
  177. package/dist/components/{p-CE7y_FPY.js → p-CfBnOxVH.js} +1 -1
  178. package/dist/components/{p-DBONF873.js → p-Cvr3FvPc.js} +1 -1
  179. package/dist/components/{p-DesVo0z4.js → p-CwspMeKj.js} +1 -1
  180. package/dist/components/{p-Cor3VECP.js → p-Cy8GojJh.js} +1 -1
  181. package/dist/components/{p-COwD9Duu.js → p-D5-YWayk.js} +1 -1
  182. package/dist/components/{p-ZrIqsu-D.js → p-D5J-pubV.js} +1 -1
  183. package/dist/components/{p-BvWhh2Zj.js → p-D6SKvLQ-.js} +1 -1
  184. package/dist/components/{p-D1gY6lWT.js → p-DCd2ylyH.js} +1 -1
  185. package/dist/components/{p-BHj1lA0b.js → p-DD5q1beS.js} +1 -1
  186. package/dist/components/{p-Co8fuxx1.js → p-DFLw_cPH.js} +1 -1
  187. package/dist/components/{p-Cdi7KDBd.js → p-DIyhqSTP.js} +1 -1
  188. package/dist/components/{p-B-M2I3nG.js → p-DJjnCR9U.js} +1 -1
  189. package/dist/components/{p-Co1hjc3s.js → p-DQHzO7M-.js} +1 -1
  190. package/dist/components/p-DRCUHcTd.js +1 -0
  191. package/dist/components/{p-OQhv4b9F.js → p-DSO2W8wX.js} +1 -1
  192. package/dist/components/{p-CxbnslX3.js → p-DSVTCwMI.js} +1 -1
  193. package/dist/components/{p-DCDEvk-9.js → p-DTJWMga5.js} +1 -1
  194. package/dist/components/{p-B9bE6qY-.js → p-DZ6ri3Ez.js} +1 -1
  195. package/dist/components/p-DdqamPtp.js +1 -0
  196. package/dist/components/{p-DGpl5Py7.js → p-DrxRMhnn.js} +1 -1
  197. package/dist/components/{p-Ca1FWlv7.js → p-DvTeOdUJ.js} +1 -1
  198. package/dist/components/{p-Cx2KtaIS.js → p-QTasG90y.js} +1 -1
  199. package/dist/components/{p-MXbMDJMH.js → p-WvkszOBK.js} +1 -1
  200. package/dist/components/{p-Br4jWI9B.js → p-dg7EpwKx.js} +1 -1
  201. package/dist/components/{p-DszwT3ye.js → p-lNLcpuEl.js} +1 -1
  202. package/dist/components/{p-CSFy0ZOg.js → p-wVSy27Y7.js} +1 -1
  203. package/dist/components/tet-accordion.js +1 -1
  204. package/dist/components/tet-address-offers-filters-products.js +1 -1
  205. package/dist/components/tet-address-offers-filters.js +1 -1
  206. package/dist/components/tet-address-offers-view.js +1 -1
  207. package/dist/components/tet-address-offers.js +1 -1
  208. package/dist/components/tet-address-search.js +1 -1
  209. package/dist/components/tet-assembler.js +1 -1
  210. package/dist/components/tet-asset-availability-addresses.js +1 -1
  211. package/dist/components/tet-autocomplete-dropdown.js +1 -1
  212. package/dist/components/tet-autocomplete.js +1 -1
  213. package/dist/components/tet-availability-contact-form.js +1 -1
  214. package/dist/components/tet-b2b-check-out-form.js +1 -1
  215. package/dist/components/tet-b2b-compare-card.js +1 -1
  216. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  217. package/dist/components/tet-b2b-configurator.js +1 -1
  218. package/dist/components/tet-banner-nav.js +1 -1
  219. package/dist/components/tet-bar-graph.js +1 -1
  220. package/dist/components/tet-border-radius.js +1 -1
  221. package/dist/components/tet-business-card.js +1 -1
  222. package/dist/components/tet-business-compare-card.js +1 -1
  223. package/dist/components/tet-business-navigation.js +1 -1
  224. package/dist/components/tet-business-round-stepper.js +1 -1
  225. package/dist/components/tet-business-summary-card.js +1 -1
  226. package/dist/components/tet-button.js +1 -1
  227. package/dist/components/tet-card-list.js +1 -1
  228. package/dist/components/tet-carousel.js +1 -1
  229. package/dist/components/tet-checkbox.js +1 -1
  230. package/dist/components/tet-cloud-application-form-dialog.js +1 -1
  231. package/dist/components/tet-cloud-configurator.js +1 -1
  232. package/dist/components/tet-colors.js +1 -1
  233. package/dist/components/tet-compare-card-v2.js +1 -1
  234. package/dist/components/tet-compare-card-v3.js +1 -1
  235. package/dist/components/tet-compare-card.js +1 -1
  236. package/dist/components/tet-compare-cards-tab.js +1 -1
  237. package/dist/components/tet-compare-cards.js +1 -1
  238. package/dist/components/tet-container.js +1 -1
  239. package/dist/components/tet-countdown.js +1 -1
  240. package/dist/components/tet-counter.js +1 -1
  241. package/dist/components/tet-datepicker-header.js +1 -1
  242. package/dist/components/tet-datepicker-month-view.js +1 -1
  243. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  244. package/dist/components/tet-datepicker-year-view.js +1 -1
  245. package/dist/components/tet-datepicker.js +1 -1
  246. package/dist/components/tet-dialog.js +1 -1
  247. package/dist/components/tet-display.js +1 -1
  248. package/dist/components/tet-divider.js +1 -1
  249. package/dist/components/tet-dropdown.js +1 -1
  250. package/dist/components/tet-dynamic-card.js +1 -1
  251. package/dist/components/tet-expandable-input.js +1 -1
  252. package/dist/components/tet-expansion-panel.js +1 -1
  253. package/dist/components/tet-feedback-form.js +1 -1
  254. package/dist/components/tet-filter.js +1 -1
  255. package/dist/components/tet-floating-block.js +1 -1
  256. package/dist/components/tet-font-weight.js +1 -1
  257. package/dist/components/tet-fonts.js +1 -1
  258. package/dist/components/tet-grid.js +1 -1
  259. package/dist/components/tet-icon.js +1 -1
  260. package/dist/components/tet-inline-message.js +1 -1
  261. package/dist/components/tet-input.js +1 -1
  262. package/dist/components/tet-layout.js +1 -1
  263. package/dist/components/tet-link-card-list.js +1 -1
  264. package/dist/components/tet-link.js +1 -1
  265. package/dist/components/tet-loader.js +1 -1
  266. package/dist/components/tet-menu-mobile.js +1 -1
  267. package/dist/components/tet-menu.js +1 -1
  268. package/dist/components/tet-mini-compare-card.js +1 -1
  269. package/dist/components/tet-multi-step-dialog.js +1 -1
  270. package/dist/components/tet-navigation-mobile.js +1 -1
  271. package/dist/components/tet-news-card-list.js +1 -1
  272. package/dist/components/tet-news-card.js +1 -1
  273. package/dist/components/tet-notification.js +1 -1
  274. package/dist/components/tet-number-input.js +1 -1
  275. package/dist/components/tet-paginator.js +1 -1
  276. package/dist/components/tet-placeholder.js +1 -1
  277. package/dist/components/tet-position.js +1 -1
  278. package/dist/components/tet-price-view.js +1 -1
  279. package/dist/components/tet-radio-blocks.js +1 -1
  280. package/dist/components/tet-radio.js +1 -1
  281. package/dist/components/tet-range-slider.js +1 -1
  282. package/dist/components/tet-round-stepper.js +1 -1
  283. package/dist/components/tet-selection-list.js +1 -1
  284. package/dist/components/tet-snicker-card-group.js +1 -1
  285. package/dist/components/tet-snicker-card.js +1 -1
  286. package/dist/components/tet-spacing.js +1 -1
  287. package/dist/components/tet-spinner.js +1 -1
  288. package/dist/components/tet-stepper-input.js +1 -1
  289. package/dist/components/tet-stepper-v3.js +1 -1
  290. package/dist/components/tet-sticky-offer.js +1 -1
  291. package/dist/components/tet-support-search.js +1 -1
  292. package/dist/components/tet-switch.js +1 -1
  293. package/dist/components/tet-tab-content.js +1 -1
  294. package/dist/components/tet-tab-header.js +1 -1
  295. package/dist/components/tet-table.js +1 -1
  296. package/dist/components/tet-tag-group.js +1 -1
  297. package/dist/components/tet-tag.js +1 -1
  298. package/dist/components/tet-text-list.js +1 -1
  299. package/dist/components/tet-text.js +1 -1
  300. package/dist/components/tet-textarea.js +1 -1
  301. package/dist/components/tet-thank-you-view-v3.js +1 -1
  302. package/dist/components/tet-tooltip.js +1 -1
  303. package/dist/components/tet-tv-program-channel-picker.d.ts +11 -0
  304. package/dist/components/tet-tv-program-channel-picker.js +1 -0
  305. package/dist/components/tet-tv-program-date-picker.d.ts +11 -0
  306. package/dist/components/tet-tv-program-date-picker.js +1 -0
  307. package/dist/components/tet-tv-program.d.ts +11 -0
  308. package/dist/components/tet-tv-program.js +1 -0
  309. package/dist/esm/{http-codes-BQGPgOl6.js → http-codes-DP6cQyLI.js} +1 -1
  310. package/dist/esm/{index-DScZlZas.js → index-BTdj-C2n.js} +1 -1
  311. package/dist/esm/{index-BGB6gNkz.js → index-BWP8psSS.js} +13 -5
  312. package/dist/esm/loader.js +3 -3
  313. package/dist/esm/{product-comparison-DUVV7BFR.js → product-comparison-CBuVYKp-.js} +1 -1
  314. package/dist/esm/tet-accordion.entry.js +7 -7
  315. package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
  316. package/dist/esm/tet-address-offers-view.entry.js +4 -4
  317. package/dist/esm/tet-address-offers_5.entry.js +9 -9
  318. package/dist/esm/tet-assembler.entry.js +3 -3
  319. package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
  320. package/dist/esm/tet-autocomplete_2.entry.js +2 -2
  321. package/dist/esm/tet-b2b-check-out-form_5.entry.js +6 -6
  322. package/dist/esm/tet-b2b-configurator.entry.js +4 -4
  323. package/dist/esm/tet-banner-nav.entry.js +3 -3
  324. package/dist/esm/tet-bar-graph.entry.js +1 -1
  325. package/dist/esm/tet-border-radius.entry.js +2 -2
  326. package/dist/esm/tet-business-card.entry.js +1 -1
  327. package/dist/esm/tet-business-compare-card.entry.js +3 -3
  328. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  329. package/dist/esm/tet-button.entry.js +1 -1
  330. package/dist/esm/tet-card-list.entry.js +5 -5
  331. package/dist/esm/tet-carousel.entry.js +11 -11
  332. package/dist/esm/tet-checkbox_3.entry.js +2 -2
  333. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  334. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  335. package/dist/esm/tet-colors.entry.js +5 -5
  336. package/dist/esm/tet-compare-card-v2.entry.js +3 -3
  337. package/dist/esm/tet-compare-card-v3.entry.js +3 -3
  338. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  339. package/dist/esm/tet-compare-cards_2.entry.js +5 -5
  340. package/dist/esm/tet-components.js +3 -3
  341. package/dist/esm/tet-container_2.entry.js +1 -1
  342. package/dist/esm/tet-countdown.entry.js +2 -2
  343. package/dist/esm/tet-counter.entry.js +1 -1
  344. package/dist/esm/tet-datepicker-header_4.entry.js +6 -6
  345. package/dist/esm/tet-datepicker.entry.js +5 -5
  346. package/dist/esm/tet-dialog.entry.js +3 -3
  347. package/dist/esm/tet-display.entry.js +1 -1
  348. package/dist/esm/tet-divider.entry.js +1 -1
  349. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  350. package/dist/esm/tet-expandable-input.entry.js +1 -1
  351. package/dist/esm/tet-expansion-panel.entry.js +2 -2
  352. package/dist/esm/tet-feedback-form.entry.js +3 -3
  353. package/dist/esm/tet-filter.entry.js +1 -1
  354. package/dist/esm/tet-floating-block.entry.js +1 -1
  355. package/dist/esm/tet-font-weight.entry.js +2 -2
  356. package/dist/esm/tet-fonts.entry.js +2 -2
  357. package/dist/esm/tet-grid.entry.js +2 -2
  358. package/dist/esm/tet-icon.entry.js +3 -3
  359. package/dist/esm/tet-inline-message.entry.js +1 -1
  360. package/dist/esm/tet-input.entry.js +3 -3
  361. package/dist/esm/tet-layout.entry.js +2 -2
  362. package/dist/esm/tet-link-card-list.entry.js +1 -1
  363. package/dist/esm/tet-link.entry.js +2 -2
  364. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  365. package/dist/esm/tet-menu.entry.js +1 -1
  366. package/dist/esm/tet-mini-compare-card.entry.js +1 -1
  367. package/dist/esm/tet-multi-step-dialog.entry.js +4 -4
  368. package/dist/esm/tet-navigation-mobile.entry.js +6 -6
  369. package/dist/esm/tet-news-card-list.entry.js +2 -2
  370. package/dist/esm/tet-news-card.entry.js +3 -28
  371. package/dist/esm/tet-notification.entry.js +2 -2
  372. package/dist/esm/tet-number-input.entry.js +1 -1
  373. package/dist/esm/tet-paginator.entry.js +4 -4
  374. package/dist/esm/tet-placeholder.entry.js +3 -3
  375. package/dist/esm/tet-position.entry.js +1 -1
  376. package/dist/esm/tet-price-view.entry.js +1 -1
  377. package/dist/esm/tet-radio-blocks.entry.js +1 -1
  378. package/dist/esm/tet-radio_2.entry.js +3 -3
  379. package/dist/esm/tet-range-slider.entry.js +8 -8
  380. package/dist/esm/tet-round-stepper.entry.js +1 -1
  381. package/dist/esm/tet-snicker-card-group.entry.js +1 -1
  382. package/dist/esm/tet-snicker-card.entry.js +3 -3
  383. package/dist/esm/tet-spacing.entry.js +2 -2
  384. package/dist/esm/tet-spinner.entry.js +4 -4
  385. package/dist/esm/tet-stepper-input.entry.js +4 -4
  386. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  387. package/dist/esm/tet-sticky-offer.entry.js +2 -2
  388. package/dist/esm/tet-support-search.entry.js +1 -1
  389. package/dist/esm/tet-switch.entry.js +1 -1
  390. package/dist/esm/tet-table.entry.js +1 -1
  391. package/dist/esm/tet-tag_2.entry.js +5 -5
  392. package/dist/esm/tet-text-list.entry.js +1 -1
  393. package/dist/esm/tet-text.entry.js +1 -1
  394. package/dist/esm/tet-textarea.entry.js +3 -3
  395. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  396. package/dist/esm/tet-tv-program-channel-picker_2.entry.js +533 -0
  397. package/dist/esm/tet-tv-program.entry.js +17 -0
  398. package/dist/esm/{translations-Dc2OQnbI.js → translations-BxuQY6H_.js} +1 -1
  399. package/dist/esm/visibility-observer-DdqamPtp.js +28 -0
  400. package/dist/tet-components/assets/icons/tc/tc-infinity.svg +3 -0
  401. package/dist/tet-components/assets/icons/tc-icons.svg +2 -0
  402. package/dist/tet-components/{p-0386aeb9.entry.js → p-0344d53a.entry.js} +1 -1
  403. package/dist/tet-components/{p-f5cf45c1.entry.js → p-034aa6bf.entry.js} +1 -1
  404. package/dist/tet-components/p-0ef4061d.entry.js +1 -0
  405. package/dist/tet-components/{p-2c84bff1.entry.js → p-11bb38bc.entry.js} +1 -1
  406. package/dist/tet-components/{p-1b29e5f2.entry.js → p-1a24d6bb.entry.js} +1 -1
  407. package/dist/tet-components/{p-01577a41.entry.js → p-1c58ffe4.entry.js} +1 -1
  408. package/dist/tet-components/{p-f23fbdab.entry.js → p-21d3011e.entry.js} +1 -1
  409. package/dist/tet-components/{p-9cee887f.entry.js → p-2538d199.entry.js} +1 -1
  410. package/dist/tet-components/{p-78975957.entry.js → p-26bb2a36.entry.js} +1 -1
  411. package/dist/tet-components/{p-380c13f1.entry.js → p-2a96f73a.entry.js} +1 -1
  412. package/dist/tet-components/{p-a4d98d8f.entry.js → p-31d3b924.entry.js} +1 -1
  413. package/dist/tet-components/{p-49ba40a1.entry.js → p-34a661a6.entry.js} +1 -1
  414. package/dist/tet-components/{p-119e349d.entry.js → p-37512bb9.entry.js} +1 -1
  415. package/dist/tet-components/{p-c9c4656e.entry.js → p-376e55d2.entry.js} +1 -1
  416. package/dist/tet-components/{p-fa83efb2.entry.js → p-397d761d.entry.js} +1 -1
  417. package/dist/tet-components/{p-9d103705.entry.js → p-3b186178.entry.js} +1 -1
  418. package/dist/tet-components/{p-0c0dec4c.entry.js → p-3bbf937c.entry.js} +1 -1
  419. package/dist/tet-components/{p-0996dd5a.entry.js → p-3c232c0d.entry.js} +1 -1
  420. package/dist/tet-components/{p-b8b2a9f5.entry.js → p-45b56cb3.entry.js} +1 -1
  421. package/dist/tet-components/{p-fbb45705.entry.js → p-4a6bf53c.entry.js} +1 -1
  422. package/dist/tet-components/{p-6bc9b958.entry.js → p-4d985d70.entry.js} +1 -1
  423. package/dist/tet-components/{p-e2d4e5c3.entry.js → p-4f339642.entry.js} +1 -1
  424. package/dist/tet-components/{p-129027b6.entry.js → p-51fccc0d.entry.js} +1 -1
  425. package/dist/tet-components/{p-3af65955.entry.js → p-52cc694d.entry.js} +1 -1
  426. package/dist/tet-components/{p-7cc6b959.entry.js → p-53f83ad9.entry.js} +1 -1
  427. package/dist/tet-components/{p-11a66d8a.entry.js → p-5a5c38d9.entry.js} +1 -1
  428. package/dist/tet-components/{p-185e98b4.entry.js → p-5d2b1316.entry.js} +1 -1
  429. package/dist/tet-components/p-63a0db67.entry.js +1 -0
  430. package/dist/tet-components/{p-ad0b78d5.entry.js → p-64b9b07d.entry.js} +1 -1
  431. package/dist/tet-components/{p-38459b69.entry.js → p-6ca9f8e7.entry.js} +1 -1
  432. package/dist/tet-components/{p-45c01709.entry.js → p-6fd37205.entry.js} +1 -1
  433. package/dist/tet-components/{p-c97d7c52.entry.js → p-70af2afa.entry.js} +1 -1
  434. package/dist/tet-components/{p-a579df12.entry.js → p-729222fd.entry.js} +1 -1
  435. package/dist/tet-components/{p-830e4fe6.entry.js → p-77ef94a7.entry.js} +1 -1
  436. package/dist/tet-components/{p-b3acb430.entry.js → p-78fe0d42.entry.js} +1 -1
  437. package/dist/tet-components/{p-5e237b6d.entry.js → p-7a340194.entry.js} +1 -1
  438. package/dist/tet-components/{p-386be2d5.entry.js → p-7c4ef1a9.entry.js} +1 -1
  439. package/dist/tet-components/{p-a240b7c2.entry.js → p-7ceb9a05.entry.js} +1 -1
  440. package/dist/tet-components/{p-4b92e8e6.entry.js → p-82d5f453.entry.js} +1 -1
  441. package/dist/tet-components/{p-ecdaf331.entry.js → p-8bc5516d.entry.js} +1 -1
  442. package/dist/tet-components/{p-11ed5b55.entry.js → p-9988e041.entry.js} +1 -1
  443. package/dist/tet-components/{p-BGB6gNkz.js → p-BWP8psSS.js} +1 -1
  444. package/dist/tet-components/p-Bi5WA4Eb.js +1 -0
  445. package/dist/tet-components/{p-DX1IQAn5.js → p-CEkiSmjX.js} +1 -1
  446. package/dist/tet-components/p-D5A3ic42.js +1 -0
  447. package/dist/tet-components/p-DdqamPtp.js +1 -0
  448. package/dist/tet-components/{p-DbJll7nz.js → p-Ojgt8vhK.js} +1 -1
  449. package/dist/tet-components/{p-2ac83b4c.entry.js → p-a1542646.entry.js} +1 -1
  450. package/dist/tet-components/{p-c96c5b96.entry.js → p-a178ca0d.entry.js} +1 -1
  451. package/dist/tet-components/{p-bb16b0e5.entry.js → p-a9c20fd5.entry.js} +1 -1
  452. package/dist/tet-components/{p-6a8f5935.entry.js → p-a9d5bc77.entry.js} +1 -1
  453. package/dist/tet-components/{p-a96d7e90.entry.js → p-ad4dea23.entry.js} +1 -1
  454. package/dist/tet-components/{p-c2d6ac75.entry.js → p-b49ea768.entry.js} +1 -1
  455. package/dist/tet-components/{p-b31a3fa1.entry.js → p-b5301183.entry.js} +1 -1
  456. package/dist/tet-components/{p-1c254d23.entry.js → p-b61c5d27.entry.js} +1 -1
  457. package/dist/tet-components/{p-632d382c.entry.js → p-b64f4147.entry.js} +1 -1
  458. package/dist/tet-components/{p-9ca86779.entry.js → p-b87843b8.entry.js} +1 -1
  459. package/dist/tet-components/{p-512e516b.entry.js → p-ba4ee252.entry.js} +1 -1
  460. package/dist/tet-components/{p-4db60df6.entry.js → p-bcbb8e65.entry.js} +1 -1
  461. package/dist/tet-components/p-bd7bc9f6.entry.js +1 -0
  462. package/dist/tet-components/{p-122d141d.entry.js → p-c0cdf200.entry.js} +1 -1
  463. package/dist/tet-components/{p-74ccd606.entry.js → p-c6419606.entry.js} +1 -1
  464. package/dist/tet-components/{p-37c3f4c6.entry.js → p-c7473b74.entry.js} +1 -1
  465. package/dist/tet-components/{p-30523176.entry.js → p-cce2bb89.entry.js} +1 -1
  466. package/dist/tet-components/p-cd242e37.entry.js +1 -0
  467. package/dist/tet-components/{p-51e6df01.entry.js → p-cd25730a.entry.js} +1 -1
  468. package/dist/tet-components/{p-c6dc0917.entry.js → p-cf5c80ca.entry.js} +1 -1
  469. package/dist/tet-components/{p-cd7efc99.entry.js → p-d2179734.entry.js} +1 -1
  470. package/dist/tet-components/{p-3ae8cca8.entry.js → p-d64c6445.entry.js} +1 -1
  471. package/dist/tet-components/{p-cc3e87fe.entry.js → p-d9b9bae7.entry.js} +1 -1
  472. package/dist/tet-components/{p-ad8622a2.entry.js → p-daa0867b.entry.js} +1 -1
  473. package/dist/tet-components/p-daa729e7.entry.js +1 -0
  474. package/dist/tet-components/{p-de8125d5.entry.js → p-def88fbd.entry.js} +1 -1
  475. package/dist/tet-components/{p-7338bab9.entry.js → p-e0aacafc.entry.js} +1 -1
  476. package/dist/tet-components/{p-47b65d11.entry.js → p-e95c1ccf.entry.js} +1 -1
  477. package/dist/tet-components/{p-acdbec26.entry.js → p-e9b025ea.entry.js} +1 -1
  478. package/dist/tet-components/{p-41763924.entry.js → p-eab06d8d.entry.js} +1 -1
  479. package/dist/tet-components/{p-e7e18cc4.entry.js → p-eb219b3a.entry.js} +1 -1
  480. package/dist/tet-components/{p-e0752dc6.entry.js → p-ef27c46b.entry.js} +1 -1
  481. package/dist/tet-components/{p-8310d42d.entry.js → p-f0a12cbd.entry.js} +1 -1
  482. package/dist/tet-components/{p-6146284d.entry.js → p-f561ecaa.entry.js} +1 -1
  483. package/dist/tet-components/{p-24058988.entry.js → p-f6d3abd5.entry.js} +1 -1
  484. package/dist/tet-components/{p-0e32545c.entry.js → p-f6d9a385.entry.js} +1 -1
  485. package/dist/tet-components/{p-a560fec1.entry.js → p-f6f7436d.entry.js} +1 -1
  486. package/dist/tet-components/{p-4a39f6bc.entry.js → p-f7b720ca.entry.js} +1 -1
  487. package/dist/tet-components/{p-87675c65.entry.js → p-f7c08ca8.entry.js} +1 -1
  488. package/dist/tet-components/{p-db2a72c7.entry.js → p-f925fce1.entry.js} +1 -1
  489. package/dist/tet-components/{p-ec596eb2.entry.js → p-f93557c6.entry.js} +1 -1
  490. package/dist/tet-components/p-fff7dd3e.entry.js +1 -0
  491. package/dist/tet-components/tet-components.esm.js +1 -1
  492. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.d.ts +57 -0
  493. package/dist/types/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.d.ts +51 -0
  494. package/dist/types/components/views/tet-tv-program/tet-tv-program.d.ts +6 -0
  495. package/dist/types/components.d.ts +206 -4
  496. package/package.json +1 -1
  497. package/dist/tet-components/p-4804006b.entry.js +0 -1
  498. package/dist/tet-components/p-7dcb307f.entry.js +0 -1
  499. package/dist/tet-components/p-92340a39.entry.js +0 -1
  500. package/dist/tet-components/p-BzLFf73g.js +0 -1
  501. package/dist/tet-components/p-C1XJmhDH.js +0 -1
  502. package/dist/tet-components/p-ea9d92f6.entry.js +0 -1
@@ -0,0 +1,438 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import { observeOnce } from "../../../../../services/utils/visibility-observer";
3
+ const DRAGGING_CLASS = 'tv-channel-picker__list--dragging';
4
+ const DRAG_THRESHOLD = 5;
5
+ export class TetTvProgramChannelPicker {
6
+ /** Theme of the component */
7
+ theme = 'light';
8
+ /** Channels available for selection. Channel IDs must be unique. */
9
+ channels = [];
10
+ /** Disables channel selection and navigation while allowing scrolling. */
11
+ disabled = false;
12
+ /** Shows placeholder items while the parent fetches channels. */
13
+ loading = false;
14
+ /** Shows full-height gradients at both edges of the channel list. */
15
+ showGradients = false;
16
+ selectedChannel;
17
+ focusedChannel;
18
+ failedImageSources = [];
19
+ visibleChannelIds = [];
20
+ canScrollLeft = false;
21
+ canScrollRight = false;
22
+ /** Emitted when the user selects a different channel, with its ID. */
23
+ channelSelected;
24
+ channelList;
25
+ renderedSelectedChannel;
26
+ renderedLoading = false;
27
+ drag;
28
+ suppressChannelClick = false;
29
+ resizeObserver;
30
+ imageObservations = new Map();
31
+ onThemeChange() {
32
+ this.visibleChannelIds = [];
33
+ for (const stop of this.imageObservations.values()) {
34
+ stop();
35
+ }
36
+ this.imageObservations.clear();
37
+ }
38
+ onChannelsChange() {
39
+ const channelIds = new Set(this.channels.map(channel => channel.id));
40
+ this.visibleChannelIds = this.visibleChannelIds.filter(id => channelIds.has(id));
41
+ if (!this.channels.some(channel => channel.id === this.selectedChannel)) {
42
+ this.selectedChannel = this.channels[0]?.id;
43
+ }
44
+ if (!this.channels.some(channel => channel.id === this.focusedChannel)) {
45
+ this.focusedChannel = undefined;
46
+ }
47
+ }
48
+ /** Selects a channel by ID. Missing or unknown IDs select the first channel. Does not emit channelSelected. */
49
+ async setChannel(id) {
50
+ const nextChannel = this.channels.find(channel => channel.id === id) ?? this.channels[0];
51
+ if (nextChannel?.id === this.selectedChannel) {
52
+ this.centerChannel();
53
+ }
54
+ else {
55
+ this.selectedChannel = nextChannel?.id;
56
+ }
57
+ }
58
+ connectedCallback() {
59
+ if (this.channelList) {
60
+ this.resizeObserver?.observe(this.channelList);
61
+ this.observeChannelImages();
62
+ }
63
+ }
64
+ componentWillLoad() {
65
+ this.onChannelsChange();
66
+ }
67
+ componentDidLoad() {
68
+ if (this.channelList && typeof globalThis.ResizeObserver === 'function') {
69
+ this.resizeObserver = new ResizeObserver(() => {
70
+ if (!this.drag) {
71
+ this.centerChannel();
72
+ }
73
+ this.updateScrollEdges();
74
+ });
75
+ this.resizeObserver.observe(this.channelList);
76
+ }
77
+ }
78
+ componentDidRender() {
79
+ const selectionChanged = this.renderedSelectedChannel !== this.selectedChannel;
80
+ const channelsBecameVisible = this.renderedLoading && !this.loading;
81
+ this.renderedSelectedChannel = this.selectedChannel;
82
+ this.renderedLoading = this.loading;
83
+ if (selectionChanged || channelsBecameVisible) {
84
+ this.centerChannel();
85
+ }
86
+ this.updateScrollEdges();
87
+ this.observeChannelImages();
88
+ }
89
+ disconnectedCallback() {
90
+ this.resizeObserver?.disconnect();
91
+ for (const stop of this.imageObservations.values()) {
92
+ stop();
93
+ }
94
+ this.imageObservations.clear();
95
+ if (this.drag) {
96
+ this.handlePointerEnd(this.drag.pointerId);
97
+ }
98
+ this.suppressChannelClick = false;
99
+ }
100
+ handlePointerDown(event) {
101
+ this.suppressChannelClick = false;
102
+ if (event.pointerType === 'mouse' && event.button === 0 && this.channelList) {
103
+ this.drag = {
104
+ pointerId: event.pointerId,
105
+ startX: event.clientX,
106
+ scrollLeft: this.channelList.scrollLeft,
107
+ active: false,
108
+ };
109
+ }
110
+ }
111
+ handlePointerMove(event) {
112
+ const drag = this.drag;
113
+ const list = this.channelList;
114
+ if (!drag || !list || event.pointerId !== drag.pointerId) {
115
+ return;
116
+ }
117
+ if ((event.buttons & 1) === 0) {
118
+ this.handlePointerEnd(event.pointerId);
119
+ return;
120
+ }
121
+ const distance = event.clientX - drag.startX;
122
+ if (!drag.active && Math.abs(distance) < DRAG_THRESHOLD) {
123
+ return;
124
+ }
125
+ if (!drag.active) {
126
+ drag.active = true;
127
+ this.suppressChannelClick = true;
128
+ list.classList.add(DRAGGING_CLASS);
129
+ list.setPointerCapture(event.pointerId);
130
+ }
131
+ event.preventDefault();
132
+ list.scrollLeft = drag.scrollLeft - distance;
133
+ }
134
+ handlePointerEnd(pointerId) {
135
+ if (this.drag?.pointerId === pointerId) {
136
+ this.drag = undefined;
137
+ this.channelList?.classList.remove(DRAGGING_CLASS);
138
+ if (this.channelList?.hasPointerCapture(pointerId)) {
139
+ this.channelList.releasePointerCapture(pointerId);
140
+ }
141
+ }
142
+ }
143
+ handleChannelButtonClick(channel, event) {
144
+ if (!this.suppressChannelClick || event.detail === 0) {
145
+ this.handleChannelClick(channel);
146
+ }
147
+ }
148
+ handleChannelKeyDown(event, channel) {
149
+ if (this.disabled || this.loading || event.altKey || event.ctrlKey || event.metaKey ||
150
+ !['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) {
151
+ return;
152
+ }
153
+ event.preventDefault();
154
+ const index = this.channels.findIndex(item => item.id === channel.id);
155
+ const targetIndices = {
156
+ ArrowLeft: index - 1,
157
+ ArrowRight: index + 1,
158
+ Home: 0,
159
+ End: this.channels.length - 1,
160
+ };
161
+ const targetIndex = targetIndices[event.key];
162
+ const nextChannel = index >= 0 ? this.channels[targetIndex] : undefined;
163
+ if (nextChannel) {
164
+ this.channelList?.querySelectorAll('button')[targetIndex]?.focus({ preventScroll: true });
165
+ this.centerChannel(nextChannel.id);
166
+ }
167
+ }
168
+ handleChannelFocus(event, channel) {
169
+ this.focusedChannel = channel.id;
170
+ if (!this.drag && event.currentTarget instanceof Element && event.currentTarget.matches(':focus-visible')) {
171
+ this.centerChannel(channel.id);
172
+ }
173
+ }
174
+ handleFocusOut(event) {
175
+ const nextTarget = event.relatedTarget;
176
+ if (!(nextTarget instanceof Node) || !this.channelList?.contains(nextTarget)) {
177
+ this.focusedChannel = undefined;
178
+ this.centerChannel();
179
+ }
180
+ }
181
+ observeChannelImages() {
182
+ const list = this.channelList;
183
+ if (!list) {
184
+ return;
185
+ }
186
+ for (const [button, stop] of this.imageObservations) {
187
+ if (!list.contains(button) || this.visibleChannelIds.includes(button.dataset.channelId ?? '')) {
188
+ stop();
189
+ this.imageObservations.delete(button);
190
+ }
191
+ }
192
+ for (const button of Array.from(list.querySelectorAll('button[data-channel-id]'))) {
193
+ const channelId = button.dataset.channelId;
194
+ if (channelId && !this.visibleChannelIds.includes(channelId) && !this.imageObservations.has(button) && button.querySelector('img')) {
195
+ const observedTheme = this.theme;
196
+ const stop = observeOnce(button, () => {
197
+ if (this.theme === observedTheme && list.contains(button) && !this.visibleChannelIds.includes(channelId)) {
198
+ this.visibleChannelIds = [...this.visibleChannelIds, channelId];
199
+ }
200
+ });
201
+ this.imageObservations.set(button, stop);
202
+ }
203
+ }
204
+ }
205
+ updateScrollEdges() {
206
+ const list = this.channelList;
207
+ this.canScrollLeft = !!list && list.scrollLeft > 1;
208
+ this.canScrollRight = !!list && list.scrollWidth - list.clientWidth - list.scrollLeft > 1;
209
+ }
210
+ centerChannel(channelId = this.selectedChannel) {
211
+ const list = this.channelList;
212
+ const index = this.channels.findIndex(channel => channel.id === channelId);
213
+ const button = list?.querySelectorAll('button')[index];
214
+ if (list && button) {
215
+ const listBounds = list.getBoundingClientRect();
216
+ const buttonBounds = button.getBoundingClientRect();
217
+ const offset = buttonBounds.left - listBounds.left - list.clientLeft;
218
+ const target = list.scrollLeft + offset - (list.clientWidth - buttonBounds.width) / 2;
219
+ const maxScroll = Math.max(0, list.scrollWidth - list.clientWidth);
220
+ list.scrollLeft = Math.max(0, Math.min(target, maxScroll));
221
+ }
222
+ }
223
+ handleChannelClick(channel) {
224
+ if (this.disabled || this.loading) {
225
+ return;
226
+ }
227
+ if (channel.id === this.selectedChannel) {
228
+ this.centerChannel();
229
+ return;
230
+ }
231
+ this.selectedChannel = channel.id;
232
+ this.channelSelected.emit(channel.id);
233
+ }
234
+ renderChannelPlaceholders() {
235
+ return Array.from({ length: 16 }, (_, index) => (h("li", { class: "tv-channel-picker__item", key: `loading-${index}`, "aria-hidden": "true" }, h("div", { class: "tv-channel-picker__placeholder" }, h("tet-placeholder", { width: "100%", height: "100%", darkTheme: this.theme === 'dark' })))));
236
+ }
237
+ renderChannelButtons() {
238
+ return this.channels.map(channel => {
239
+ const isSelected = this.selectedChannel === channel.id;
240
+ const imageSource = this.theme === 'dark' ? channel.imageSourceDark ?? channel.imageSource : channel.imageSource;
241
+ return (h("li", { class: "tv-channel-picker__item", key: channel.id }, 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) ? (h("span", { class: "tv-channel-picker__fallback" }, channel.name)) : (h("img", { class: "tv-channel-picker__image", src: this.visibleChannelIds.includes(channel.id) ? imageSource : undefined, alt: "", draggable: false, onError: () => {
242
+ if (!this.failedImageSources.includes(imageSource)) {
243
+ this.failedImageSources = [...this.failedImageSources, imageSource];
244
+ }
245
+ } }))), isSelected && (h("div", { class: "tv-channel-picker__button-underline" }))));
246
+ });
247
+ }
248
+ render() {
249
+ return (h(Host, { key: 'b39ec97eedb9e2c0b349b7436ff5c3d5da4f573f' }, h("div", { key: 'a0f1936c84f99a4ad51f92c62fdd93b1b6ee0295', class: {
250
+ 'tv-channel-picker': true,
251
+ 'tv-channel-picker--gradients': this.showGradients,
252
+ 'tv-channel-picker--gradient-left': this.showGradients && this.canScrollLeft,
253
+ 'tv-channel-picker--gradient-right': this.showGradients && this.canScrollRight,
254
+ } }, 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()))));
255
+ }
256
+ static get is() { return "tet-tv-program-channel-picker"; }
257
+ static get encapsulation() { return "shadow"; }
258
+ static get originalStyleUrls() {
259
+ return {
260
+ "$": ["tet-tv-program-channel-picker.scss"]
261
+ };
262
+ }
263
+ static get styleUrls() {
264
+ return {
265
+ "$": ["tet-tv-program-channel-picker.css"]
266
+ };
267
+ }
268
+ static get properties() {
269
+ return {
270
+ "theme": {
271
+ "type": "string",
272
+ "mutable": false,
273
+ "complexType": {
274
+ "original": "'light' | 'dark'",
275
+ "resolved": "\"dark\" | \"light\"",
276
+ "references": {}
277
+ },
278
+ "required": false,
279
+ "optional": false,
280
+ "docs": {
281
+ "tags": [],
282
+ "text": "Theme of the component"
283
+ },
284
+ "getter": false,
285
+ "setter": false,
286
+ "reflect": true,
287
+ "attribute": "theme",
288
+ "defaultValue": "'light'"
289
+ },
290
+ "channels": {
291
+ "type": "unknown",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "TvProgramChannel[]",
295
+ "resolved": "TvProgramChannel[]",
296
+ "references": {
297
+ "TvProgramChannel": {
298
+ "location": "local",
299
+ "path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.tsx",
300
+ "id": "src/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.tsx::TvProgramChannel"
301
+ }
302
+ }
303
+ },
304
+ "required": false,
305
+ "optional": false,
306
+ "docs": {
307
+ "tags": [],
308
+ "text": "Channels available for selection. Channel IDs must be unique."
309
+ },
310
+ "getter": false,
311
+ "setter": false,
312
+ "defaultValue": "[]"
313
+ },
314
+ "disabled": {
315
+ "type": "boolean",
316
+ "mutable": false,
317
+ "complexType": {
318
+ "original": "boolean",
319
+ "resolved": "boolean",
320
+ "references": {}
321
+ },
322
+ "required": false,
323
+ "optional": false,
324
+ "docs": {
325
+ "tags": [],
326
+ "text": "Disables channel selection and navigation while allowing scrolling."
327
+ },
328
+ "getter": false,
329
+ "setter": false,
330
+ "reflect": true,
331
+ "attribute": "disabled",
332
+ "defaultValue": "false"
333
+ },
334
+ "loading": {
335
+ "type": "boolean",
336
+ "mutable": false,
337
+ "complexType": {
338
+ "original": "boolean",
339
+ "resolved": "boolean",
340
+ "references": {}
341
+ },
342
+ "required": false,
343
+ "optional": false,
344
+ "docs": {
345
+ "tags": [],
346
+ "text": "Shows placeholder items while the parent fetches channels."
347
+ },
348
+ "getter": false,
349
+ "setter": false,
350
+ "reflect": false,
351
+ "attribute": "loading",
352
+ "defaultValue": "false"
353
+ },
354
+ "showGradients": {
355
+ "type": "boolean",
356
+ "mutable": false,
357
+ "complexType": {
358
+ "original": "boolean",
359
+ "resolved": "boolean",
360
+ "references": {}
361
+ },
362
+ "required": false,
363
+ "optional": false,
364
+ "docs": {
365
+ "tags": [],
366
+ "text": "Shows full-height gradients at both edges of the channel list."
367
+ },
368
+ "getter": false,
369
+ "setter": false,
370
+ "reflect": false,
371
+ "attribute": "show-gradients",
372
+ "defaultValue": "false"
373
+ }
374
+ };
375
+ }
376
+ static get states() {
377
+ return {
378
+ "selectedChannel": {},
379
+ "focusedChannel": {},
380
+ "failedImageSources": {},
381
+ "visibleChannelIds": {},
382
+ "canScrollLeft": {},
383
+ "canScrollRight": {}
384
+ };
385
+ }
386
+ static get events() {
387
+ return [{
388
+ "method": "channelSelected",
389
+ "name": "channelSelected",
390
+ "bubbles": true,
391
+ "cancelable": true,
392
+ "composed": true,
393
+ "docs": {
394
+ "tags": [],
395
+ "text": "Emitted when the user selects a different channel, with its ID."
396
+ },
397
+ "complexType": {
398
+ "original": "string",
399
+ "resolved": "string",
400
+ "references": {}
401
+ }
402
+ }];
403
+ }
404
+ static get methods() {
405
+ return {
406
+ "setChannel": {
407
+ "complexType": {
408
+ "signature": "(id?: string) => Promise<void>",
409
+ "parameters": [{
410
+ "name": "id",
411
+ "type": "string",
412
+ "docs": ""
413
+ }],
414
+ "references": {
415
+ "Promise": {
416
+ "location": "global",
417
+ "id": "global::Promise"
418
+ }
419
+ },
420
+ "return": "Promise<void>"
421
+ },
422
+ "docs": {
423
+ "text": "Selects a channel by ID. Missing or unknown IDs select the first channel. Does not emit channelSelected.",
424
+ "tags": []
425
+ }
426
+ }
427
+ };
428
+ }
429
+ static get watchers() {
430
+ return [{
431
+ "propName": "theme",
432
+ "methodName": "onThemeChange"
433
+ }, {
434
+ "propName": "channels",
435
+ "methodName": "onChannelsChange"
436
+ }];
437
+ }
438
+ }
@@ -0,0 +1,227 @@
1
+ @font-face {
2
+ font-family: "Gilroy";
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff");
7
+ }
8
+ @font-face {
9
+ font-family: "Gilroy";
10
+ font-style: normal;
11
+ font-weight: 500;
12
+ font-display: swap;
13
+ src: url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff");
14
+ }
15
+ @font-face {
16
+ font-family: "Gilroy";
17
+ font-style: normal;
18
+ font-weight: 600;
19
+ font-display: swap;
20
+ src: url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff");
21
+ }
22
+ @font-face {
23
+ font-family: "Gilroy";
24
+ font-style: normal;
25
+ font-weight: 700;
26
+ font-display: swap;
27
+ src: url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff");
28
+ }
29
+ @font-face {
30
+ font-family: "Inter";
31
+ font-style: normal;
32
+ font-weight: 400;
33
+ font-display: swap;
34
+ src: url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff");
35
+ }
36
+ @font-face {
37
+ font-family: "Inter";
38
+ font-style: normal;
39
+ font-weight: 500;
40
+ font-display: swap;
41
+ src: url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff");
42
+ }
43
+ @font-face {
44
+ font-family: "Inter";
45
+ font-style: normal;
46
+ font-weight: 600;
47
+ font-display: swap;
48
+ src: url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff");
49
+ }
50
+ :host {
51
+ box-sizing: border-box;
52
+ }
53
+
54
+ *,
55
+ *:before,
56
+ *:after {
57
+ box-sizing: inherit;
58
+ padding: 0;
59
+ margin: 0;
60
+ }
61
+
62
+ :host {
63
+ --tv-date-picker-text-primary-color: var(--tc-text-primary);
64
+ --tv-date-picker-text-permanent-black-color: var(--tc-text-black-permanent);
65
+ --tv-date-picker-main-background-color: var(--tc-layer-grey-primary);
66
+ --tv-date-picker-button-hover-background-color: var(--tc-button-secondary-background-hover);
67
+ --tv-date-picker-button-pressed-background-color: var(--tc-button-secondary-background-pressed);
68
+ --tv-date-picker-button-active-background-color: var(--tc-button-primary-yellow-background-default);
69
+ --tv-date-picker-focus-outline-color: var(--tc-blue-40);
70
+ display: block;
71
+ min-height: 3.75rem;
72
+ }
73
+
74
+ :host([theme=dark]) {
75
+ --tv-date-picker-text-primary-color: var(--tc-text-primary-dark);
76
+ --tv-date-picker-text-permanent-black-color: var(--tc-text-black-permanent-dark);
77
+ --tv-date-picker-main-background-color: var(--tc-layer-grey-primary-dark);
78
+ --tv-date-picker-button-hover-background-color: var(--tc-button-secondary-background-hover-dark);
79
+ --tv-date-picker-button-pressed-background-color: var(--tc-button-secondary-background-pressed-dark);
80
+ --tv-date-picker-button-active-background-color: var(--tc-button-primary-yellow-background-default-dark);
81
+ --tv-date-picker-focus-outline-color: var(--tc-blue-40-dark);
82
+ }
83
+
84
+ .tv-date-picker {
85
+ display: flex;
86
+ align-items: center;
87
+ max-width: 100%;
88
+ height: 3.75rem;
89
+ }
90
+ @media screen and (min-width: 48rem) {
91
+ .tv-date-picker {
92
+ border-radius: 1.875rem;
93
+ background-color: var(--tv-date-picker-main-background-color);
94
+ }
95
+ }
96
+ .tv-date-picker__button {
97
+ align-items: center;
98
+ border: none;
99
+ cursor: pointer;
100
+ color: var(--tv-date-picker-text-primary-color);
101
+ background-color: var(--tv-date-picker-main-background-color);
102
+ }
103
+ .tv-date-picker__button:hover {
104
+ background-color: var(--tv-date-picker-button-hover-background-color);
105
+ }
106
+ .tv-date-picker__button:active {
107
+ background-color: var(--tv-date-picker-button-pressed-background-color);
108
+ }
109
+ .tv-date-picker__button:disabled {
110
+ pointer-events: none;
111
+ }
112
+ .tv-date-picker__button:focus-visible {
113
+ outline: 0.125rem solid var(--tv-date-picker-focus-outline-color);
114
+ outline-offset: 0.125rem;
115
+ z-index: 1;
116
+ }
117
+ .tv-date-picker__list {
118
+ --date-gap: 0.5rem;
119
+ display: flex;
120
+ flex: 1;
121
+ flex-direction: row;
122
+ justify-content: safe center;
123
+ gap: var(--date-gap);
124
+ min-width: 0;
125
+ padding: 0.4375rem 0.25rem;
126
+ margin-inline: -0.25rem;
127
+ overflow-x: auto;
128
+ scroll-behavior: smooth;
129
+ scrollbar-width: none;
130
+ -webkit-user-select: none;
131
+ user-select: none;
132
+ }
133
+ @media screen and (min-width: 48rem) {
134
+ .tv-date-picker__list {
135
+ --visible-dates: 3;
136
+ display: grid;
137
+ grid-auto-flow: column;
138
+ grid-auto-columns: calc((100% - (var(--visible-dates) - 1) * var(--date-gap)) / var(--visible-dates));
139
+ padding: 0.5rem;
140
+ margin-inline: 0;
141
+ scroll-snap-type: x mandatory;
142
+ scroll-padding-inline: 0.5rem;
143
+ }
144
+ }
145
+ @media screen and (min-width: 64rem) {
146
+ .tv-date-picker__list {
147
+ --visible-dates: 5;
148
+ }
149
+ }
150
+ .tv-date-picker__list--dragging {
151
+ scroll-behavior: auto;
152
+ scroll-snap-type: none;
153
+ }
154
+ .tv-date-picker__list--dragging,
155
+ .tv-date-picker__list--dragging .tv-date-picker__button {
156
+ cursor: grabbing;
157
+ }
158
+ @media (prefers-reduced-motion: reduce) {
159
+ .tv-date-picker__list {
160
+ scroll-behavior: auto;
161
+ }
162
+ }
163
+ .tv-date-picker__list::-webkit-scrollbar {
164
+ display: none;
165
+ }
166
+ .tv-date-picker__button--nav {
167
+ display: none;
168
+ height: 100%;
169
+ }
170
+ @media screen and (min-width: 48rem) {
171
+ .tv-date-picker__button--nav {
172
+ display: flex;
173
+ }
174
+ }
175
+ .tv-date-picker__button--nav-left {
176
+ border-top-left-radius: 1.875rem;
177
+ border-bottom-left-radius: 1.875rem;
178
+ padding-inline: 1.5rem 1rem;
179
+ }
180
+ .tv-date-picker__button--nav-right {
181
+ border-top-right-radius: 1.875rem;
182
+ border-bottom-right-radius: 1.875rem;
183
+ padding-inline: 1rem 1.5rem;
184
+ }
185
+ .tv-date-picker__button--nav:focus-visible {
186
+ outline-offset: -0.125rem;
187
+ }
188
+ .tv-date-picker__nav-button-icon {
189
+ --icon-size: 1.5rem;
190
+ }
191
+ .tv-date-picker__item {
192
+ list-style: none;
193
+ }
194
+ @media screen and (min-width: 48rem) {
195
+ .tv-date-picker__item {
196
+ min-width: 0;
197
+ scroll-snap-align: start;
198
+ }
199
+ }
200
+ @media screen and (min-width: 64rem) {
201
+ .tv-date-picker__date {
202
+ display: block;
203
+ }
204
+ }
205
+ @media screen and (min-width: 80rem) {
206
+ .tv-date-picker__date {
207
+ display: inline;
208
+ }
209
+ }
210
+ .tv-date-picker__button--date {
211
+ font: 500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
212
+ padding-inline: 1.5rem;
213
+ border-radius: 1.5rem;
214
+ height: 2.875rem;
215
+ white-space: nowrap;
216
+ }
217
+ @media screen and (min-width: 48rem) {
218
+ .tv-date-picker__button--date {
219
+ font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
220
+ width: 100%;
221
+ padding-inline: 2.5rem;
222
+ }
223
+ }
224
+ .tv-date-picker__button--date[aria-pressed=true] {
225
+ color: var(--tv-date-picker-text-permanent-black-color);
226
+ background-color: var(--tv-date-picker-button-active-background-color);
227
+ }