@tet/tet-components 1.4.155-staging → 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.
- package/dist/cjs/index-DRNSo5RU.js +12 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +6 -6
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-address-offers_5.cjs.entry.js +5 -5
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +3 -3
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +2 -2
- package/dist/cjs/tet-card-list.cjs.entry.js +4 -4
- package/dist/cjs/tet-carousel.cjs.entry.js +8 -8
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +1 -1
- package/dist/cjs/tet-colors.cjs.entry.js +4 -4
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +2 -2
- package/dist/cjs/tet-components.cjs.js +1 -1
- package/dist/cjs/tet-countdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +5 -5
- package/dist/cjs/tet-datepicker.cjs.entry.js +4 -4
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
- package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
- package/dist/cjs/tet-grid.cjs.entry.js +1 -1
- package/dist/cjs/tet-icon.cjs.entry.js +1 -1
- package/dist/cjs/tet-layout.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +1 -1
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +3 -3
- package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-news-card.cjs.entry.js +3 -28
- package/dist/cjs/tet-notification.cjs.entry.js +1 -1
- package/dist/cjs/tet-paginator.cjs.entry.js +1 -1
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/tet-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/tet-range-slider.cjs.entry.js +7 -7
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-spinner.cjs.entry.js +3 -3
- package/dist/cjs/tet-stepper-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-sticky-offer.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +2 -2
- package/dist/cjs/tet-textarea.cjs.entry.js +2 -2
- package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +536 -0
- package/dist/cjs/tet-tv-program.cjs.entry.js +19 -0
- package/dist/cjs/visibility-observer-Coef27xg.js +30 -0
- package/dist/collection/assets/icons/tc/tc-infinity.svg +3 -0
- package/dist/collection/assets/icons/tc-icons.svg +2 -0
- package/dist/collection/collection-manifest.json +3 -0
- 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-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 +10 -10
- package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
- package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.css +9 -3
- 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.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-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.css +200 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.js +438 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.css +227 -0
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +403 -0
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.css +3 -0
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +51 -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/utils/visibility-observer.js +2 -1
- package/dist/components/assets/icons/tc/tc-infinity.svg +3 -0
- package/dist/components/assets/icons/tc-icons.svg +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-JaT8ONyw.js → p-ALrE6ZGw.js} +1 -1
- package/dist/components/{p-Cf_9cxT9.js → p-AMA9jkbS.js} +1 -1
- package/dist/components/{p-DAobsjqJ.js → p-B78wNYwG.js} +1 -1
- package/dist/components/{p-DJrx8NEf.js → p-B7dLSSga.js} +1 -1
- package/dist/components/{p-BViKXVLO.js → p-BBNq_Obn.js} +1 -1
- package/dist/components/{p-DwxXr-g-.js → p-BBwZwi16.js} +1 -1
- package/dist/components/{p-CmVD5led.js → p-BHa6Bvm1.js} +1 -1
- package/dist/components/{p-CgvUqRbk.js → p-BKIzl46N.js} +1 -1
- package/dist/components/{p-BVh-9ng4.js → p-BKV7eseS.js} +1 -1
- package/dist/components/{p-DdxlDzyZ.js → p-BNSgwUB6.js} +1 -1
- package/dist/components/{p-DU6cJhmH.js → p-BOSgCY1r.js} +1 -1
- package/dist/components/{p-BeTa3m59.js → p-BQ6Phr3_.js} +1 -1
- package/dist/components/{p-CggeQ2yU.js → p-BSB68YLB.js} +1 -1
- package/dist/components/{p-B_keqw_Z.js → p-BVdnP7TQ.js} +1 -1
- package/dist/components/{p-CEYVXw4e.js → p-BWwJpXtA.js} +1 -1
- package/dist/components/{p-C4fUQICQ.js → p-Bem2btOu.js} +1 -1
- package/dist/components/{p-ClLZiPyE.js → p-BkFcfvMF.js} +1 -1
- package/dist/components/{p-DCAgLRpf.js → p-BmP8bH5F.js} +1 -1
- package/dist/components/{p-BcYT5W0z.js → p-C9nJlVOI.js} +1 -1
- package/dist/components/{p-DZtMtpGk.js → p-CDHTIpIi.js} +1 -1
- package/dist/components/{p-BebHcWaL.js → p-CXYXt1pz.js} +1 -1
- package/dist/components/p-C_KgLQQq.js +1 -0
- package/dist/components/{p-DqcJxqKt.js → p-C_hP1fqX.js} +1 -1
- package/dist/components/{p-BuWAthI-.js → p-CeTXEEPS.js} +1 -1
- package/dist/components/{p-BhVOqBq3.js → p-CfBnOxVH.js} +1 -1
- package/dist/components/{p-CXVoCm_Q.js → p-Cvr3FvPc.js} +1 -1
- package/dist/components/{p-CacSARKA.js → p-CwspMeKj.js} +1 -1
- package/dist/components/{p-CHlBG23-.js → p-Cy8GojJh.js} +1 -1
- package/dist/components/{p-hURJ2Oks.js → p-D5-YWayk.js} +1 -1
- package/dist/components/{p-Cpo8sN_w.js → p-D5J-pubV.js} +1 -1
- package/dist/components/{p-CcHWhQDQ.js → p-D6SKvLQ-.js} +1 -1
- package/dist/components/{p-CSMQd3dq.js → p-DCd2ylyH.js} +1 -1
- package/dist/components/{p-DUB7cnhh.js → p-DD5q1beS.js} +1 -1
- package/dist/components/{p-C5-t_14V.js → p-DFLw_cPH.js} +1 -1
- package/dist/components/{p-DPTmA0Wh.js → p-DJjnCR9U.js} +1 -1
- package/dist/components/{p-mFtGZGWz.js → p-DQHzO7M-.js} +1 -1
- package/dist/components/p-DRCUHcTd.js +1 -0
- package/dist/components/{p-DkLIrCuQ.js → p-DSO2W8wX.js} +1 -1
- package/dist/components/{p-NcCsJO5d.js → p-DSVTCwMI.js} +1 -1
- package/dist/components/{p-DnYER_XE.js → p-DTJWMga5.js} +1 -1
- package/dist/components/p-DdqamPtp.js +1 -0
- package/dist/components/{p-Bl10COPd.js → p-DrxRMhnn.js} +1 -1
- package/dist/components/{p-Bk_2VUgw.js → p-DvTeOdUJ.js} +1 -1
- package/dist/components/{p-BYJ7Tqpb.js → p-QTasG90y.js} +1 -1
- package/dist/components/{p-CJjh7VYr.js → p-WvkszOBK.js} +1 -1
- package/dist/components/{p-Df8nPyr-.js → p-lNLcpuEl.js} +1 -1
- package/dist/components/{p-C454nOI2.js → p-wVSy27Y7.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-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-border-radius.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-countdown.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-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-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-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.d.ts +11 -0
- package/dist/components/tet-tv-program-channel-picker.js +1 -0
- package/dist/components/tet-tv-program-date-picker.d.ts +11 -0
- package/dist/components/tet-tv-program-date-picker.js +1 -0
- package/dist/components/tet-tv-program.d.ts +11 -0
- package/dist/components/tet-tv-program.js +1 -0
- package/dist/esm/index-BWP8psSS.js +12 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tet-accordion.entry.js +6 -6
- package/dist/esm/tet-address-offers-view.entry.js +1 -1
- package/dist/esm/tet-address-offers_5.entry.js +5 -5
- package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
- package/dist/esm/tet-autocomplete_2.entry.js +1 -1
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +2 -2
- package/dist/esm/tet-card-list.entry.js +4 -4
- package/dist/esm/tet-carousel.entry.js +8 -8
- package/dist/esm/tet-checkbox_3.entry.js +1 -1
- package/dist/esm/tet-colors.entry.js +4 -4
- package/dist/esm/tet-compare-cards_2.entry.js +2 -2
- package/dist/esm/tet-components.js +1 -1
- package/dist/esm/tet-countdown.entry.js +1 -1
- package/dist/esm/tet-datepicker-header_4.entry.js +5 -5
- package/dist/esm/tet-datepicker.entry.js +4 -4
- package/dist/esm/tet-expansion-panel.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +1 -1
- package/dist/esm/tet-fonts.entry.js +1 -1
- package/dist/esm/tet-grid.entry.js +1 -1
- package/dist/esm/tet-icon.entry.js +1 -1
- package/dist/esm/tet-layout.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +1 -1
- package/dist/esm/tet-navigation-mobile.entry.js +3 -3
- package/dist/esm/tet-news-card-list.entry.js +1 -1
- package/dist/esm/tet-news-card.entry.js +2 -27
- package/dist/esm/tet-notification.entry.js +1 -1
- package/dist/esm/tet-paginator.entry.js +1 -1
- package/dist/esm/tet-placeholder.entry.js +2 -2
- package/dist/esm/tet-radio_2.entry.js +2 -2
- package/dist/esm/tet-range-slider.entry.js +7 -7
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-spinner.entry.js +3 -3
- package/dist/esm/tet-stepper-input.entry.js +1 -1
- package/dist/esm/tet-sticky-offer.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +2 -2
- package/dist/esm/tet-textarea.entry.js +2 -2
- package/dist/esm/tet-tv-program-channel-picker_2.entry.js +533 -0
- package/dist/esm/tet-tv-program.entry.js +17 -0
- package/dist/esm/visibility-observer-DdqamPtp.js +28 -0
- package/dist/tet-components/assets/icons/tc/tc-infinity.svg +3 -0
- package/dist/tet-components/assets/icons/tc-icons.svg +2 -0
- package/dist/tet-components/{p-5317947b.entry.js → p-0344d53a.entry.js} +1 -1
- package/dist/tet-components/{p-96f0eff9.entry.js → p-034aa6bf.entry.js} +1 -1
- package/dist/tet-components/p-0ef4061d.entry.js +1 -0
- package/dist/tet-components/{p-3c489f4d.entry.js → p-21d3011e.entry.js} +1 -1
- package/dist/tet-components/{p-b98a8b9e.entry.js → p-26bb2a36.entry.js} +1 -1
- package/dist/tet-components/{p-e4cc950c.entry.js → p-31d3b924.entry.js} +1 -1
- package/dist/tet-components/{p-f63194a6.entry.js → p-37512bb9.entry.js} +1 -1
- package/dist/tet-components/{p-65202638.entry.js → p-397d761d.entry.js} +1 -1
- package/dist/tet-components/{p-8903db67.entry.js → p-45b56cb3.entry.js} +1 -1
- package/dist/tet-components/{p-0821f339.entry.js → p-53f83ad9.entry.js} +1 -1
- package/dist/tet-components/{p-ef09f495.entry.js → p-5a5c38d9.entry.js} +1 -1
- package/dist/tet-components/p-63a0db67.entry.js +1 -0
- package/dist/tet-components/{p-1dfbd098.entry.js → p-729222fd.entry.js} +1 -1
- package/dist/tet-components/{p-73f3d6e1.entry.js → p-7a340194.entry.js} +1 -1
- package/dist/tet-components/{p-315b6aac.entry.js → p-7ceb9a05.entry.js} +1 -1
- package/dist/tet-components/{p-14fa05f5.entry.js → p-8bc5516d.entry.js} +1 -1
- package/dist/tet-components/p-DdqamPtp.js +1 -0
- package/dist/tet-components/{p-e362d48f.entry.js → p-a1542646.entry.js} +1 -1
- package/dist/tet-components/{p-1dc250ec.entry.js → p-a9c20fd5.entry.js} +1 -1
- package/dist/tet-components/{p-dfe40a38.entry.js → p-ad4dea23.entry.js} +1 -1
- package/dist/tet-components/{p-43bd87cf.entry.js → p-b5301183.entry.js} +1 -1
- package/dist/tet-components/{p-f3baa590.entry.js → p-b61c5d27.entry.js} +1 -1
- package/dist/tet-components/{p-15bd70e7.entry.js → p-b87843b8.entry.js} +1 -1
- package/dist/tet-components/{p-5a3ca73d.entry.js → p-ba4ee252.entry.js} +1 -1
- package/dist/tet-components/{p-94c9fce7.entry.js → p-bcbb8e65.entry.js} +1 -1
- package/dist/tet-components/p-bd7bc9f6.entry.js +1 -0
- package/dist/tet-components/{p-7c86fdb6.entry.js → p-c0cdf200.entry.js} +1 -1
- package/dist/tet-components/{p-15df2f2b.entry.js → p-cce2bb89.entry.js} +1 -1
- package/dist/tet-components/p-cd242e37.entry.js +1 -0
- package/dist/tet-components/{p-a7d8477f.entry.js → p-cd25730a.entry.js} +1 -1
- package/dist/tet-components/{p-61a9bc72.entry.js → p-cf5c80ca.entry.js} +1 -1
- package/dist/tet-components/p-daa729e7.entry.js +1 -0
- package/dist/tet-components/{p-4187e993.entry.js → p-def88fbd.entry.js} +1 -1
- package/dist/tet-components/{p-7fac3d04.entry.js → p-e95c1ccf.entry.js} +1 -1
- package/dist/tet-components/{p-cad7f27d.entry.js → p-e9b025ea.entry.js} +1 -1
- package/dist/tet-components/{p-1bb794e8.entry.js → p-f561ecaa.entry.js} +1 -1
- package/dist/tet-components/{p-f78dd5fe.entry.js → p-f6d9a385.entry.js} +1 -1
- package/dist/tet-components/{p-38192518.entry.js → p-f7c08ca8.entry.js} +1 -1
- package/dist/tet-components/{p-b2c85619.entry.js → p-f925fce1.entry.js} +1 -1
- package/dist/tet-components/{p-59a4500c.entry.js → p-f93557c6.entry.js} +1 -1
- package/dist/tet-components/p-fff7dd3e.entry.js +1 -0
- 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 +57 -0
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.d.ts +51 -0
- package/dist/types/components/views/tet-tv-program/tet-tv-program.d.ts +6 -0
- package/dist/types/components.d.ts +206 -4
- package/package.json +1 -1
- package/dist/tet-components/p-132da9f3.entry.js +0 -1
- package/dist/tet-components/p-71f9504c.entry.js +0 -1
- package/dist/tet-components/p-c3455ad8.entry.js +0 -1
- package/dist/tet-components/p-cafa7f45.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
|
+
}
|