@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,403 @@
|
|
|
1
|
+
import { forceUpdate, h, Host } from "@stencil/core";
|
|
2
|
+
import { processTranslations, t } from "../../../../../services/translations/index";
|
|
3
|
+
const DRAGGING_CLASS = 'tv-date-picker__list--dragging';
|
|
4
|
+
const DRAG_THRESHOLD = 5;
|
|
5
|
+
export class TetTvProgramDatePicker {
|
|
6
|
+
/** Theme of the component */
|
|
7
|
+
theme = 'light';
|
|
8
|
+
/** Number of days displayed before and after today, clamped to 0–30. Today is always included. */
|
|
9
|
+
daysRange = 7;
|
|
10
|
+
/** Language used for weekday names and translations. */
|
|
11
|
+
language = 'lv';
|
|
12
|
+
/** Disables date selection and navigation while allowing scrolling. */
|
|
13
|
+
disabled = false;
|
|
14
|
+
selectedDate = this.formatDate(new Date());
|
|
15
|
+
focusedDate;
|
|
16
|
+
/** Emitted when a date is clicked, with the selected local date in YYYY-MM-DD format. */
|
|
17
|
+
dateSelected;
|
|
18
|
+
weekdayFormatter = new Intl.DateTimeFormat(this.language, { weekday: 'long' });
|
|
19
|
+
dateList;
|
|
20
|
+
renderedSelectedDate;
|
|
21
|
+
renderedDaysRange;
|
|
22
|
+
drag;
|
|
23
|
+
suppressDateClick = false;
|
|
24
|
+
resizeObserver;
|
|
25
|
+
async onDaysRangeChange() {
|
|
26
|
+
if (!this.getDates().some(date => this.formatDate(date) === this.focusedDate)) {
|
|
27
|
+
this.focusedDate = undefined;
|
|
28
|
+
}
|
|
29
|
+
await this.setDate(this.selectedDate);
|
|
30
|
+
}
|
|
31
|
+
async onLanguageChange(language) {
|
|
32
|
+
this.weekdayFormatter = new Intl.DateTimeFormat(language, { weekday: 'long' });
|
|
33
|
+
await processTranslations('tet-components', language);
|
|
34
|
+
forceUpdate(this);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Selects a local calendar date in YYYY-MM-DD format.
|
|
38
|
+
* Missing, invalid, or out-of-range dates reset to today. Does not emit dateSelected.
|
|
39
|
+
*/
|
|
40
|
+
async setDate(date) {
|
|
41
|
+
const isAvailable = this.getDates().some(item => this.formatDate(item) === date);
|
|
42
|
+
const nextDate = date && isAvailable ? date : this.formatDate(new Date());
|
|
43
|
+
if (nextDate === this.selectedDate) {
|
|
44
|
+
this.centerDate();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.selectedDate = nextDate;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
connectedCallback() {
|
|
51
|
+
if (this.dateList) {
|
|
52
|
+
this.resizeObserver?.observe(this.dateList);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async componentWillLoad() {
|
|
56
|
+
await this.onLanguageChange(this.language);
|
|
57
|
+
}
|
|
58
|
+
componentDidLoad() {
|
|
59
|
+
if (this.dateList && typeof globalThis.ResizeObserver === 'function') {
|
|
60
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
61
|
+
if (!this.drag) {
|
|
62
|
+
this.centerDate();
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
this.resizeObserver.observe(this.dateList);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
componentDidRender() {
|
|
69
|
+
if (this.renderedSelectedDate !== this.selectedDate || this.renderedDaysRange !== this.daysRange) {
|
|
70
|
+
this.centerDate();
|
|
71
|
+
}
|
|
72
|
+
this.renderedSelectedDate = this.selectedDate;
|
|
73
|
+
this.renderedDaysRange = this.daysRange;
|
|
74
|
+
}
|
|
75
|
+
disconnectedCallback() {
|
|
76
|
+
this.resizeObserver?.disconnect();
|
|
77
|
+
if (this.drag) {
|
|
78
|
+
this.handlePointerEnd(this.drag.pointerId);
|
|
79
|
+
}
|
|
80
|
+
this.suppressDateClick = false;
|
|
81
|
+
}
|
|
82
|
+
handlePointerDown(event) {
|
|
83
|
+
this.suppressDateClick = false;
|
|
84
|
+
if (event.pointerType === 'mouse' && event.button === 0 && this.dateList) {
|
|
85
|
+
this.drag = {
|
|
86
|
+
pointerId: event.pointerId,
|
|
87
|
+
startX: event.clientX,
|
|
88
|
+
scrollLeft: this.dateList.scrollLeft,
|
|
89
|
+
active: false,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
handlePointerMove(event) {
|
|
94
|
+
const drag = this.drag;
|
|
95
|
+
const list = this.dateList;
|
|
96
|
+
if (!drag || !list || event.pointerId !== drag.pointerId) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if ((event.buttons & 1) === 0) {
|
|
100
|
+
this.handlePointerEnd(event.pointerId);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const distance = event.clientX - drag.startX;
|
|
104
|
+
if (!drag.active && Math.abs(distance) < DRAG_THRESHOLD) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (!drag.active) {
|
|
108
|
+
drag.active = true;
|
|
109
|
+
this.suppressDateClick = true;
|
|
110
|
+
list.classList.add(DRAGGING_CLASS);
|
|
111
|
+
list.setPointerCapture(event.pointerId);
|
|
112
|
+
}
|
|
113
|
+
event.preventDefault();
|
|
114
|
+
list.scrollLeft = drag.scrollLeft - distance;
|
|
115
|
+
}
|
|
116
|
+
handlePointerEnd(pointerId) {
|
|
117
|
+
if (this.drag?.pointerId === pointerId) {
|
|
118
|
+
this.drag = undefined;
|
|
119
|
+
this.dateList?.classList.remove(DRAGGING_CLASS);
|
|
120
|
+
if (this.dateList?.hasPointerCapture(pointerId)) {
|
|
121
|
+
this.dateList.releasePointerCapture(pointerId);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
handleDateButtonClick(date, event) {
|
|
126
|
+
if (!this.suppressDateClick || event.detail === 0) {
|
|
127
|
+
this.handleDateClick(date);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
handleDateKeyDown(event, date) {
|
|
131
|
+
if (this.disabled || event.altKey || event.ctrlKey || event.metaKey || !['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
event.preventDefault();
|
|
135
|
+
const dates = this.getDates();
|
|
136
|
+
const index = dates.findIndex(item => this.formatDate(item) === this.formatDate(date));
|
|
137
|
+
const targetIndices = {
|
|
138
|
+
ArrowLeft: index - 1,
|
|
139
|
+
ArrowRight: index + 1,
|
|
140
|
+
Home: 0,
|
|
141
|
+
End: dates.length - 1,
|
|
142
|
+
};
|
|
143
|
+
const nextDate = index >= 0 ? dates[targetIndices[event.key]] : undefined;
|
|
144
|
+
if (nextDate) {
|
|
145
|
+
this.focusedDate = this.formatDate(nextDate);
|
|
146
|
+
this.dateList?.querySelectorAll('button')[targetIndices[event.key]]?.focus({ preventScroll: true });
|
|
147
|
+
this.centerDate(this.focusedDate);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
handleDateFocus(event, dateValue) {
|
|
151
|
+
this.focusedDate = dateValue;
|
|
152
|
+
if (!this.drag && event.currentTarget instanceof Element && event.currentTarget.matches(':focus-visible')) {
|
|
153
|
+
this.centerDate(dateValue);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
handleFocusOut(event) {
|
|
157
|
+
if (!(event.relatedTarget instanceof Node) || !this.dateList?.contains(event.relatedTarget)) {
|
|
158
|
+
this.focusedDate = undefined;
|
|
159
|
+
this.centerDate();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
centerDate(dateValue = this.selectedDate) {
|
|
163
|
+
const list = this.dateList;
|
|
164
|
+
const index = this.getDates().findIndex(date => this.formatDate(date) === dateValue);
|
|
165
|
+
const button = list?.querySelectorAll('button')[index];
|
|
166
|
+
if (list && button) {
|
|
167
|
+
const listBounds = list.getBoundingClientRect();
|
|
168
|
+
const buttonBounds = button.getBoundingClientRect();
|
|
169
|
+
const offset = buttonBounds.left - listBounds.left - list.clientLeft;
|
|
170
|
+
const target = list.scrollLeft + offset - (list.clientWidth - buttonBounds.width) / 2;
|
|
171
|
+
const maxScroll = Math.max(0, list.scrollWidth - list.clientWidth);
|
|
172
|
+
list.scrollLeft = Math.max(0, Math.min(target, maxScroll));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
getDates() {
|
|
176
|
+
const range = Number.isFinite(this.daysRange) ? Math.min(30, Math.max(0, Math.floor(this.daysRange))) : 0;
|
|
177
|
+
const today = new Date();
|
|
178
|
+
return Array.from({ length: range * 2 + 1 }, (_, index) => (new Date(today.getFullYear(), today.getMonth(), today.getDate() + index - range)));
|
|
179
|
+
}
|
|
180
|
+
formatDate(date) {
|
|
181
|
+
const year = date.getFullYear();
|
|
182
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
183
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
184
|
+
return `${year}-${month}-${day}`;
|
|
185
|
+
}
|
|
186
|
+
formatLabel(date, dayOffset) {
|
|
187
|
+
const weekday = this.weekdayFormatter.format(date);
|
|
188
|
+
const capitalizedWeekday = weekday.charAt(0).toLocaleUpperCase(this.language) + weekday.slice(1);
|
|
189
|
+
const relativeDayKeys = {
|
|
190
|
+
[-1]: 'tet-components-tv-program-yesterday',
|
|
191
|
+
0: 'tet-components-tv-program-today',
|
|
192
|
+
1: 'tet-components-tv-program-tomorrow',
|
|
193
|
+
};
|
|
194
|
+
const translationKey = relativeDayKeys[dayOffset];
|
|
195
|
+
const dayName = translationKey ? t(translationKey) : capitalizedWeekday;
|
|
196
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
197
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
198
|
+
return (h("span", null, h("span", { class: "tv-date-picker__day-name" }, dayName, ","), ' ', h("span", { class: "tv-date-picker__date" }, day, ".", month)));
|
|
199
|
+
}
|
|
200
|
+
handleDateClick(date) {
|
|
201
|
+
const formattedDate = this.formatDate(date);
|
|
202
|
+
if (this.disabled) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
if (formattedDate === this.selectedDate) {
|
|
206
|
+
this.centerDate();
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
this.selectedDate = formattedDate;
|
|
210
|
+
this.dateSelected.emit(formattedDate);
|
|
211
|
+
}
|
|
212
|
+
getNavigationDate(position, dates) {
|
|
213
|
+
const selectedIndex = dates.findIndex(date => this.formatDate(date) === this.selectedDate);
|
|
214
|
+
const offset = position === 'left' ? -1 : 1;
|
|
215
|
+
return selectedIndex >= 0 ? dates[selectedIndex + offset] : undefined;
|
|
216
|
+
}
|
|
217
|
+
handleNavButtonClick(position) {
|
|
218
|
+
const date = this.getNavigationDate(position, this.getDates());
|
|
219
|
+
if (date) {
|
|
220
|
+
this.handleDateClick(date);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
renderNavigationButtons(position, dates) {
|
|
224
|
+
const isPrevious = position === 'left';
|
|
225
|
+
const iconName = isPrevious ? 'tc-chevron-left' : 'tc-chevron-right';
|
|
226
|
+
const label = t(isPrevious ? 'tet-components-tv-program-previous-day' : 'tet-components-tv-program-next-day');
|
|
227
|
+
return (h("button", { type: "button", class: {
|
|
228
|
+
"tv-date-picker__button": true,
|
|
229
|
+
"tv-date-picker__button--nav": true,
|
|
230
|
+
[`tv-date-picker__button--nav-${position}`]: true,
|
|
231
|
+
}, "aria-label": label, disabled: this.disabled || !this.getNavigationDate(position, dates), onClick: () => this.handleNavButtonClick(position) }, h("tet-icon", { class: "tv-date-picker__nav-button-icon", name: iconName, theme: this.theme })));
|
|
232
|
+
}
|
|
233
|
+
render() {
|
|
234
|
+
const dates = this.getDates();
|
|
235
|
+
const todayIndex = Math.floor(dates.length / 2);
|
|
236
|
+
return (h(Host, { key: '10b9f58c24334855f56f04bd7d689edd0bc5c307' }, h("div", { key: '231df765738af1ba1a523c016cf24235cd4e92aa', class: "tv-date-picker" }, this.renderNavigationButtons('left', dates), h("ul", { key: 'f49812cfdae2a289286bbada19c9ca0ebfe6070a', class: "tv-date-picker__list", tabIndex: -1, ref: element => { this.dateList = element; }, onFocusout: event => this.handleFocusOut(event), onPointerDown: event => this.handlePointerDown(event), onPointerMove: event => this.handlePointerMove(event), onPointerUp: event => this.handlePointerEnd(event.pointerId), onPointerCancel: event => this.handlePointerEnd(event.pointerId), onLostPointerCapture: event => this.handlePointerEnd(event.pointerId) }, dates.map((date, index) => {
|
|
237
|
+
const dateValue = this.formatDate(date);
|
|
238
|
+
const isSelected = this.selectedDate === dateValue;
|
|
239
|
+
return (h("li", { class: "tv-date-picker__item", key: dateValue }, h("button", { type: "button", class: "tv-date-picker__button tv-date-picker__button--date", disabled: this.disabled, "aria-pressed": isSelected ? 'true' : 'false', tabIndex: (this.focusedDate ?? this.selectedDate) === dateValue ? 0 : -1, onFocus: event => this.handleDateFocus(event, dateValue), onClick: event => this.handleDateButtonClick(date, event), onKeyDown: event => this.handleDateKeyDown(event, date) }, h("time", { dateTime: dateValue }, this.formatLabel(date, index - todayIndex)))));
|
|
240
|
+
})), this.renderNavigationButtons('right', dates))));
|
|
241
|
+
}
|
|
242
|
+
static get is() { return "tet-tv-program-date-picker"; }
|
|
243
|
+
static get encapsulation() { return "shadow"; }
|
|
244
|
+
static get originalStyleUrls() {
|
|
245
|
+
return {
|
|
246
|
+
"$": ["tet-tv-program-date-picker.scss"]
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
static get styleUrls() {
|
|
250
|
+
return {
|
|
251
|
+
"$": ["tet-tv-program-date-picker.css"]
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
static get properties() {
|
|
255
|
+
return {
|
|
256
|
+
"theme": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"mutable": false,
|
|
259
|
+
"complexType": {
|
|
260
|
+
"original": "'light' | 'dark'",
|
|
261
|
+
"resolved": "\"dark\" | \"light\"",
|
|
262
|
+
"references": {}
|
|
263
|
+
},
|
|
264
|
+
"required": false,
|
|
265
|
+
"optional": false,
|
|
266
|
+
"docs": {
|
|
267
|
+
"tags": [],
|
|
268
|
+
"text": "Theme of the component"
|
|
269
|
+
},
|
|
270
|
+
"getter": false,
|
|
271
|
+
"setter": false,
|
|
272
|
+
"reflect": true,
|
|
273
|
+
"attribute": "theme",
|
|
274
|
+
"defaultValue": "'light'"
|
|
275
|
+
},
|
|
276
|
+
"daysRange": {
|
|
277
|
+
"type": "number",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "number",
|
|
281
|
+
"resolved": "number",
|
|
282
|
+
"references": {}
|
|
283
|
+
},
|
|
284
|
+
"required": false,
|
|
285
|
+
"optional": false,
|
|
286
|
+
"docs": {
|
|
287
|
+
"tags": [],
|
|
288
|
+
"text": "Number of days displayed before and after today, clamped to 0\u201330. Today is always included."
|
|
289
|
+
},
|
|
290
|
+
"getter": false,
|
|
291
|
+
"setter": false,
|
|
292
|
+
"reflect": false,
|
|
293
|
+
"attribute": "days-range",
|
|
294
|
+
"defaultValue": "7"
|
|
295
|
+
},
|
|
296
|
+
"language": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "Language",
|
|
301
|
+
"resolved": "\"en\" | \"lv\" | \"ru\"",
|
|
302
|
+
"references": {
|
|
303
|
+
"Language": {
|
|
304
|
+
"location": "import",
|
|
305
|
+
"path": "@services/translations",
|
|
306
|
+
"id": "src/services/translations/index.ts::Language",
|
|
307
|
+
"referenceLocation": "Language"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"required": false,
|
|
312
|
+
"optional": false,
|
|
313
|
+
"docs": {
|
|
314
|
+
"tags": [],
|
|
315
|
+
"text": "Language used for weekday names and translations."
|
|
316
|
+
},
|
|
317
|
+
"getter": false,
|
|
318
|
+
"setter": false,
|
|
319
|
+
"reflect": false,
|
|
320
|
+
"attribute": "language",
|
|
321
|
+
"defaultValue": "'lv'"
|
|
322
|
+
},
|
|
323
|
+
"disabled": {
|
|
324
|
+
"type": "boolean",
|
|
325
|
+
"mutable": false,
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "boolean",
|
|
328
|
+
"resolved": "boolean",
|
|
329
|
+
"references": {}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": "Disables date selection and navigation while allowing scrolling."
|
|
336
|
+
},
|
|
337
|
+
"getter": false,
|
|
338
|
+
"setter": false,
|
|
339
|
+
"reflect": true,
|
|
340
|
+
"attribute": "disabled",
|
|
341
|
+
"defaultValue": "false"
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
static get states() {
|
|
346
|
+
return {
|
|
347
|
+
"selectedDate": {},
|
|
348
|
+
"focusedDate": {}
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
static get events() {
|
|
352
|
+
return [{
|
|
353
|
+
"method": "dateSelected",
|
|
354
|
+
"name": "dateSelected",
|
|
355
|
+
"bubbles": true,
|
|
356
|
+
"cancelable": true,
|
|
357
|
+
"composed": true,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": "Emitted when a date is clicked, with the selected local date in YYYY-MM-DD format."
|
|
361
|
+
},
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "string",
|
|
364
|
+
"resolved": "string",
|
|
365
|
+
"references": {}
|
|
366
|
+
}
|
|
367
|
+
}];
|
|
368
|
+
}
|
|
369
|
+
static get methods() {
|
|
370
|
+
return {
|
|
371
|
+
"setDate": {
|
|
372
|
+
"complexType": {
|
|
373
|
+
"signature": "(date?: string) => Promise<void>",
|
|
374
|
+
"parameters": [{
|
|
375
|
+
"name": "date",
|
|
376
|
+
"type": "string",
|
|
377
|
+
"docs": ""
|
|
378
|
+
}],
|
|
379
|
+
"references": {
|
|
380
|
+
"Promise": {
|
|
381
|
+
"location": "global",
|
|
382
|
+
"id": "global::Promise"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"return": "Promise<void>"
|
|
386
|
+
},
|
|
387
|
+
"docs": {
|
|
388
|
+
"text": "Selects a local calendar date in YYYY-MM-DD format.\nMissing, invalid, or out-of-range dates reset to today. Does not emit dateSelected.",
|
|
389
|
+
"tags": []
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
static get watchers() {
|
|
395
|
+
return [{
|
|
396
|
+
"propName": "daysRange",
|
|
397
|
+
"methodName": "onDaysRangeChange"
|
|
398
|
+
}, {
|
|
399
|
+
"propName": "language",
|
|
400
|
+
"methodName": "onLanguageChange"
|
|
401
|
+
}];
|
|
402
|
+
}
|
|
403
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class TetTvProgram {
|
|
3
|
+
/** Language used by the TV program components. */
|
|
4
|
+
language = 'lv';
|
|
5
|
+
render() {
|
|
6
|
+
return (h(Host, { key: 'dbc18fd2147e35fd58c1d90473353951f885199b' }, h("tet-tv-program-channel-picker", { key: 'daa573110383c054b29afa62f513843879f07589', loading: true }), h("tet-tv-program-date-picker", { key: '38e8e2e35df31021ac3344361a0e1bd76aea644e', language: this.language })));
|
|
7
|
+
}
|
|
8
|
+
static get is() { return "tet-tv-program"; }
|
|
9
|
+
static get encapsulation() { return "shadow"; }
|
|
10
|
+
static get originalStyleUrls() {
|
|
11
|
+
return {
|
|
12
|
+
"$": ["tet-tv-program.scss"]
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
static get styleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["tet-tv-program.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get properties() {
|
|
21
|
+
return {
|
|
22
|
+
"language": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"mutable": false,
|
|
25
|
+
"complexType": {
|
|
26
|
+
"original": "Language",
|
|
27
|
+
"resolved": "\"en\" | \"lv\" | \"ru\"",
|
|
28
|
+
"references": {
|
|
29
|
+
"Language": {
|
|
30
|
+
"location": "import",
|
|
31
|
+
"path": "@services/translations",
|
|
32
|
+
"id": "src/services/translations/index.ts::Language",
|
|
33
|
+
"referenceLocation": "Language"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": false,
|
|
38
|
+
"optional": false,
|
|
39
|
+
"docs": {
|
|
40
|
+
"tags": [],
|
|
41
|
+
"text": "Language used by the TV program components."
|
|
42
|
+
},
|
|
43
|
+
"getter": false,
|
|
44
|
+
"setter": false,
|
|
45
|
+
"reflect": false,
|
|
46
|
+
"attribute": "language",
|
|
47
|
+
"defaultValue": "'lv'"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class TetBorderRadius {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '824695af0bdc8618a5e13312583d930394edc062' }, h("div", { key: '4e31fd7b1c02f20521dcaa12e4865d7c24396901', class: "variable-container" }, h("div", { key: 'e0d904db4a4c55f1a1d3bd7f38e85978b649335d', class: "container-title main" }, "Border r\u0101diusa klase"), h("div", { key: 'c47184e263ee3c30b9610706ec6c01f57fd1652f', class: "container-section" }, h("div", { key: '180d3bd4ee52825beae42d95f940dc274eb2aad9', class: "variable-name" }, h("div", { key: '562879900d54b23f887693c42d117f00e2ae7875', class: "variable-part" }, "tet"), h("div", { key: '292ca9d4d99a3b25627f32d6e9b2faae80c677eb', class: "variable-part" }, "-border"), h("div", { key: '5039dae824531f3bcfd7445e703184be18652fd4', class: "variable-part variable variable-type" }, "-radius"), h("div", { key: '109b76eb35e05e3ff8f6dab3624e4e60d46d959b', class: "variable-part variable variable-size" }, "--md")))), h("div", { key: '74579cdac69de91f4046335008b3b713ebfc133e', class: "tet-fonts-container" }, h("div", { key: 'f220407e26557e647534797a68fadc222289cb22', class: "container-title" }, "R\u0101diusa izm\u0113ri"), h("div", { key: 'f35b2dc9ac52b8d3a57e97604c0b738de16bb804', class: "section" }, h("div", { key: '6f8db5b529707d796f13d1bcaff5790ba81ce1fd', class: "section-variable" }, h("div", { key: '8a2a872d7d70b63ba56e8d73f0e5e7933689c1e5', class: "border tet-border-radius--xs" }), h("div", { key: 'bf83b4833fe57bb5dd482aa0675a076935899207', class: "section-font-class" }, "klase: tet-border-radius--xs"), h("div", { key: '4af7748836ce92d5e036cdb8fc7299d3af1d1660', class: "section-font-size" }, "border radius: 0.25rem / 4px")), h("div", { key: '1b56a0e9bb9af0fe97ef722e9b9f6c3dd76ad07a', class: "section-variable" }, h("div", { key: '5306079890e8227554c7ba9786f5f43dd66049d7', class: "border tet-border-radius--sm" }), h("div", { key: 'f127eceacf5c5f9e1deab915633c974ea3de290b', class: "section-font-class" }, "klase: tet-border-radius--sm"), h("div", { key: 'cea678272d74df702dea10996a800d521feaede7', class: "section-font-size" }, "border radius: 0.5rem / 8px")), h("div", { key: '1f97acd42cac01d8fb04fc4a2c67cbfd4035b585', class: "section-variable" }, h("div", { key: '052b51da4fa0ef6be8c32f8a530c473260807f4b', class: "border tet-border-radius--md" }), h("div", { key: 'd7090e283161c6b6a038afe526913fa4f0dd26da', class: "section-font-class" }, "klase: tet-border-radius--md"), h("div", { key: 'c481386916cb419d593fbfa7550b3606e9148902', class: "section-font-size" }, "border radius: 1rem / 16px")), h("div", { key: 'e970f004eb83f1834d59f1fda7646b90cf7dcad9', class: "section-variable" }, h("div", { key: 'c0bea393cff284d5809e8121cd1a815050622deb', class: "border tet-border-radius--lg" }), h("div", { key: '77ace4611d911356a5d0a33c0e51c392f369665c', class: "section-font-class" }, "klase: tet-border-radius--lg"), h("div", { key: 'e97f9d8e7f79ec085259b4f9614a730557e3ea13', class: "section-font-size" }, "border radius: 1.5rem / 24px"), h("div", { key: '01940f7bbadc90c5ab5257cc0a297ce726303642', class: "section-font-size" })), h("div", { key: '3493b74fe5050e5c8fda7e2eec7d5debdfde295c', class: "section-variable" }, h("div", { key: '130f8eb3c9f40b0fa7f314658f15309b58d7ffc7', class: "border tet-border-radius--xl" }), h("div", { key: '94aba6bdcf8bea0942efa3d123c59a7b58eaac8a', class: "section-font-class" }, "klase: tet-border-radius--xl"), h("div", { key: '5cab0eecd699064182b7ebf755ff82ceff103a97', class: "section-font-size" }, "border radius: 2rem / 32px"))))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "tet-border-radius"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -597,15 +597,15 @@ export class TetColors {
|
|
|
597
597
|
return (h("div", { class: `section section-${sectionKey}` }, h("div", { class: "section__title" }, section.title), section.colors.map((color) => this.renderColorItem(color))));
|
|
598
598
|
};
|
|
599
599
|
render() {
|
|
600
|
-
return (h(Host, { key: '
|
|
600
|
+
return (h(Host, { key: '432018897bae7d7e5506d636a22a4d654bdf83e7' }, h("div", { key: '2699627c852210258198c95ca273e4e1a7779e74', class: {
|
|
601
601
|
'dark': this.darkTheme
|
|
602
|
-
} }, !this.isTokensExample && (h("div", { key: '
|
|
602
|
+
} }, !this.isTokensExample && (h("div", { key: '83ba960abf931b05ab194d4532b1a862dfa3db8c', class: {
|
|
603
603
|
'container': true,
|
|
604
604
|
'variable-container': true,
|
|
605
|
-
} }, h("div", { key: '
|
|
605
|
+
} }, h("div", { key: 'f5665bda08abf8e61f101e40f74ed70bf98d6306', class: "container-title main" }, "Kr\u0101sas klase"), h("div", { key: '01d79e16393e19ab4a6f1131f759238ad1a44a4f', class: "container-section" }, h("div", { key: '73cdbde73a7cde3313ee0767c3c34b0680d3cf4d', class: "variable-wrapper" }, h("span", { key: '1ba510eec58543249c5dcc6427c8f5e72229802e', class: "variable-name" }, h("span", { key: '24706f881084e6ef92dc3d4709c740fe1e941abf', class: "variable-part" }, "tet"), h("span", { key: 'd846ad0bea2e0c1e5c26f675c30357ba666cfbf6', class: "variable-part variable variable-attribute" }, "-color"), h("span", { key: 'ead704742936ad83f5670a351ad7a10c5c1ccf8e', class: "variable-part variable variable-color" }, "__red30"), h("span", { key: 'db73711fdcc9ba7b66aed5329bb0b0fe0e5a774e', class: "variable-part variable variable-type" }, "--background"), h("span", { key: '3824260fbad3de162eba91fcbb7d9163b2137a16', class: "variable-part variable variable-state" }, "-focus")))))), !this.isTokensExample && (h("div", { key: '1176d9d0e5c70c91e5ba5200f72b2e97d2402697', class: "container" }, h("div", { key: 'c023bd5fc9caf921397c0116f1f2cb528b0a77e0', class: "container-title" }, "Piem\u0113ri"), h("div", { key: '3cdeb6e36ea8897a0d2daa81c290a84c84740973', class: "container-section container-example" }, h("span", { key: 'c757d2b39bc110cb7cd5ae12ba54cc081cdfebd9', class: "subsection-title" }, "Teksta kr\u0101sas mai\u0146a"), h("code", { key: 'f802f287e4a6ae3dc3f68e1bb79ad4acb8ef5230', class: "variable-example" }, "<div class=\"tet-color__red30\">Teksts</div>"), h("span", { key: 'd83119f8a7002858b187088db713fdf1681a57d7' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: '4c15024fd6417fad3013d5f9aaad700358be277d', class: "example-element tet-color__red30" }, "elementam"), "."), h("code", { key: '61d9a18bee827426062e0f0e2ddf77fb35ed7361', class: "variable-example" }, "<div class=\"tet-color__red30--hover\">Teksts</div>"), h("span", { key: '68a31d69376563362436662c3e27ae0f7b92abcd' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: '0de02c3db667193f3d1614946687109f701c23c8', class: "example-element example-element--hover tet-color__red30--hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: 'a461a7df409afe56590564eb921e4415ab668323', class: "variable-example" }, "<div class=\"tet-color__red30--focus\">Teksts</div>"), h("span", { key: 'd00ca4fae8a2ee4530ffedde2b806a0984900736' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: 'dbbd925bfc90d8e885b4f0d066ce039f9cc7d492', tabindex: "0", class: "example-element tet-color__red30--focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: '04c3df52c29f9e172570f81cbf63c48d14deb70e', class: "subsection-title" }, "Fona kr\u0101sas mai\u0146a"), h("code", { key: '60586a9204bbeabbca93ad1ef84f463b989ac4c9', class: "variable-example" }, "<div class=\"tet-color__red30--background\">Teksts</div>"), h("span", { key: 'e77370c05be47fdf3d905e85b97c13854b4d9b75' }, "Fona kr\u0101sas mai\u0146a", ' ', h("span", { key: 'a399bbc9c26ca0be6ddec699d595b18b963dd73a', class: "example-element tet-color__red30--background" }, "elementam"), "."), h("code", { key: 'f8bbc47fd7c45d046d119036348aa09e3da79d0c', class: "variable-example" }, "<div class=\"tet-color__red30--background-hover\">Teksts</div>"), h("span", { key: '04b8eaacf2edff8bdc520ebbe9db22d20b28cd8e' }, "Fona kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: '2ad7ab7ea666c73876ebbfe04641407b2d6a1b13', class: "example-element example-element--hover tet-color__red30--background-hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: 'd65b87ee79d1388426e71facc43b71e5f7affbb8', class: "variable-example" }, "<div class=\"tet-color__red30--background-focus\">Teksts</div>"), h("span", { key: '2e7b69bf32b03929c88c3df4e4f18aec07219552' }, "Fona kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: 'e1b3cbcede475cb9954b599161ac55aef79d4d8f', tabindex: "0", class: "example-element tet-color__red30--background-focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: 'ebc974514dfacc4b11d40682e88b8d21a9d55239', class: "subsection-title" }, "Apmales kr\u0101sas mai\u0146a"), h("code", { key: '14f714fb988b134021c46f412b81246630792a08', class: "variable-example" }, "<div class=\"tet-color__red30--border\">Teksts</div>"), h("span", { key: '45dfb1405f4c1ad1267a0f80f9872bfb3391e571' }, "Apmales kr\u0101sas mai\u0146a", ' ', h("span", { key: 'cf39fb0a0a7578472a8001b49a19fe96b6182bb6', class: "example-element border-example tet-color__red30--border" }, "elementam"), "."), h("code", { key: 'c2106e84ba21bc5de5e7f12707656e51b0248f2c', class: "variable-example" }, "<div class=\"tet-color__red30--border-hover\">Teksts</div>"), h("span", { key: '54dc9abb84265b22b1fae8abea40521b102c6e43' }, "Apmales kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: 'b5c65250fdbc414b74b720de68a1e8b335053f28', class: "example-element example-element--hover border-example tet-color__red30--border-hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: '6402f201ae6dfe95e114fe25bc29ebd38b765efa', class: "variable-example" }, "<div class=\"tet-color__red30--border-focus\">Teksts</div>"), h("span", { key: 'fe7c562e06861716c8158af5aeda302a3861a39a' }, "Apmales kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: 'dbb053619cc042fc35034fa7e5b6fc5695197416', tabindex: "0", class: "example-element border-example tet-color__red30--border-focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: '62d2ccddddec4c334a6625518b1305dd92385362', class: "subsection-title" }, "Nemain\u012Bga gai\u0161\u0101s t\u0113mas kr\u0101sa"), h("code", { key: '21792af3c753530fc8d134651de3e1b9885d1363', class: "variable-example" }, "<div class=\"tet-color__red30 tet-color--static\">Teksts</div>"), h("span", { key: '406082772d6e21f12397d7a7112129a3fd101e29' }, "Nemain\u012Bga teksta kr\u0101sa", ' ', h("span", { key: 'a761e66e35ea8bfc90133814fb2dbbe1bced2229', class: "example-element tet-color__red30 tet-color--static" }, "elementam"), ".")))), !this.isTokensExample && (h("div", { key: '2171ab55481cb2d3ec9a9b4e5e03270020355d24', class: {
|
|
606
606
|
'container': true,
|
|
607
607
|
'show-variables': this.showVariables
|
|
608
|
-
} }, h("div", { key: '
|
|
608
|
+
} }, h("div", { key: 'ce8c6fd123f1bb45fe1e67f65d7c240952caeab2', class: "container-title" }, "Kr\u0101sas un To\u0146i"), h("div", { key: 'd98d9768b8b6bce427e20122bae5da276efc7272', class: "container-section" }, Object.entries(this.colorSections).map(([key, section]) => this.renderColorSection(key, section))))), this.isTokensExample && (h("div", { key: 'ce72cba71c5b00ee602e5e1aec5bdc25b2217bdd', class: "container" }, h("div", { key: '4e537fe09ebd6b070a80928b19d566521c764087', class: "container-title main" }, "Tokens"), h("div", { key: '7ca805fed7316fc5af25657be8f1ab43e619ab89', class: "container-section token-sections" }, this.tokenSections.length
|
|
609
609
|
? this.tokenSections.map(section => this.renderTokenSection(section))
|
|
610
610
|
: h("div", { class: "token-empty-state" }, "Tokens not found.")))))));
|
|
611
611
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class TetFontWeight {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '437890b8f65b447175ba5ea29c16e43a2db5b7c1' }, h("div", { key: '6814efc3694b3232fe2e760d744939aea31cf2c9', class: "variable-container" }, h("div", { key: '9f54d7b637286f52841da5b2de1a3261406e7735', class: "container-title main" }, "Fonta biezuma klase"), h("div", { key: '79af5ab9d9b74c24400b55230a78aafd9329ae40', class: "container-section" }, h("div", { key: 'c7f74d05a64a00ce7342c019223b32e704204695', class: "variable-name" }, h("div", { key: '7a914f8fd8f54018395a1878ee2e4100d342c2bd', class: "variable-part" }, "tet"), h("div", { key: '3633e5ad940a1c4d90747c900118c70ceb7c2444', class: "variable-part" }, "-font"), h("div", { key: '1ad3deb27adf31f91c9681bd24a34e95182d64aa', class: "variable-part" }, "-weight"), h("div", { key: '801576110b9a30188c3621714dcde34d1925cfc1', class: "variable-part variable variable-weight" }, "--semi-bold")))), h("div", { key: 'aa5b97a167b95389b14b17f31e1d2dcd758cc622', class: "tet-fonts-container" }, h("div", { key: 'ccbe6a31df505ed2917192db3b1a8ce64ec25e53', class: "section" }, h("div", { key: '4d5c37c5cac43c8da7c6cd63b0a650193b57efa9', class: "container-title" }, "Fontu biezumi"), h("div", { key: 'bbda4e3974c03119c619af27b51fe906ef816875', class: "section-font" }, h("div", { key: '502e0712c4bae8554e7cc2cdaf63f68a2216bb70', class: "font font-body-xs" }, "Font weight - 400"), h("div", { key: 'a9aed24f2c9550ce50718044bc3d40af39fe88ca', class: "section-font-class" }, "klase: tet-font-weight--normal"), h("div", { key: '7a1ba6390b7abd7384e3b2d5c781171a72d6f6a5', class: "section-font-weight" })), h("div", { key: '0a176147a4df3722a2a6445a99341d6a8edecb9d', class: "section-font" }, h("div", { key: 'f94402916695b649452a54977694d69304ab20d1', class: "font font-body-s" }, "Font weight - 500"), h("div", { key: '5fb787904d2f3716591d8a0ee1ca4bf589c79f9e', class: "section-font-class" }, "klase: tet-font-weight--medium"), h("div", { key: '7da91ae1fc687424c038f400cf02bcab56f2cb09', class: "section-font-weight" })), h("div", { key: 'd00a25a24d4909ebc1daeb986423f46fe355155c', class: "section-font" }, h("div", { key: 'ca4141a67a8272c265164aba21f1b6b0b578e880', class: "font font-body-m" }, "Font weight - 600"), h("div", { key: '5e9e2149bc07c2e1a130693332b740db2b7424df', class: "section-font-class" }, "klase: tet-font-weight--semi-bold"), h("div", { key: '6fba6050a7955d01059d94f6ff443c1ea5e1c80b', class: "section-font-weight" }))))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "tet-font-weight"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|