@tet/tet-components 1.4.155-testing → 1.4.156-production
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{http-codes-D7ffzpYW.js → http-codes-oHpK-Vsh.js} +1 -1
- package/dist/cjs/{index-BL_zVDFC.js → index-puzHM5yZ.js} +13 -13
- package/dist/cjs/{index-Dzs7Nkbj.js → index-t4WNVvo_.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-DAR6p-NV.js} +1 -1
- package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
- package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +5 -5
- package/dist/cjs/tet-address-offers_5.cjs.entry.js +11 -11
- package/dist/cjs/tet-assembler.cjs.entry.js +4 -4
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +7 -7
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +5 -5
- package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-button.cjs.entry.js +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
- package/dist/cjs/tet-carousel.cjs.entry.js +12 -12
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +2 -2
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +4 -4
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-colors.cjs.entry.js +5 -5
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-card-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-container_2.cjs.entry.js +2 -2
- package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
- package/dist/cjs/tet-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
- package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
- package/dist/cjs/tet-grid.cjs.entry.js +2 -2
- package/dist/cjs/tet-icon.cjs.entry.js +3 -3
- package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
- package/dist/cjs/tet-input.cjs.entry.js +4 -4
- package/dist/cjs/tet-layout.cjs.entry.js +2 -2
- package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +2 -2
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu.cjs.entry.js +1 -1
- package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +5 -5
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +7 -7
- package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-news-card.cjs.entry.js +4 -29
- package/dist/cjs/tet-notification.cjs.entry.js +2 -2
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-paginator.cjs.entry.js +5 -5
- package/dist/cjs/tet-placeholder.cjs.entry.js +3 -3
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio-blocks.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card.cjs.entry.js +4 -4
- package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
- package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-input.cjs.entry.js +5 -5
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
- package/dist/cjs/tet-support-search.cjs.entry.js +2 -2
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +6 -6
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-text.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
- package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +536 -0
- package/dist/cjs/tet-tv-program.cjs.entry.js +19 -0
- package/dist/cjs/{translations-Uvcq4kv8.js → translations-D5zHdnnh.js} +2 -2
- package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
- 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-CSFy0ZOg.js → p-79Qa1DK2.js} +1 -1
- package/dist/components/{p-BIYngV7t.js → p-8pxXtKqI.js} +1 -1
- package/dist/components/{p-D1gY6lWT.js → p-AzSj-eml.js} +1 -1
- package/dist/components/p-B7F8WcB_.js +1 -0
- package/dist/components/{p-BHj1lA0b.js → p-BAf_O-kb.js} +1 -1
- package/dist/components/{p-B9bE6qY-.js → p-BDEIj3j6.js} +1 -1
- package/dist/components/{p-B-M2I3nG.js → p-BHwwcLhF.js} +1 -1
- package/dist/components/p-BIGo0rq3.js +1 -0
- package/dist/components/{p-Cor3VECP.js → p-BMX43eZF.js} +1 -1
- package/dist/components/{p-YP4S-sZr.js → p-BOBphMbp.js} +1 -1
- package/dist/components/{p-Cx2KtaIS.js → p-BOS_HT6p.js} +1 -1
- package/dist/components/{p-DesVo0z4.js → p-Baz1tNCV.js} +1 -1
- package/dist/components/{p-DsRgePgU.js → p-Bcv8ei49.js} +1 -1
- package/dist/components/p-BdMiAoro.js +1 -0
- package/dist/components/{p-iskuLYNx.js → p-BhXr_N4d.js} +1 -1
- package/dist/components/{p-OQhv4b9F.js → p-C50q8-fi.js} +1 -1
- package/dist/components/{p-Co1hjc3s.js → p-C5d7kQcA.js} +1 -1
- package/dist/components/{p-DCDEvk-9.js → p-C8PVLroR.js} +1 -1
- package/dist/components/p-CEbqKP1h.js +1 -0
- package/dist/components/{p-DRrLXWjt.js → p-CEyoGS5R.js} +1 -1
- package/dist/components/{p-CMxcvnRv.js → p-CKWJROPt.js} +1 -1
- package/dist/components/{p-Ca1FWlv7.js → p-CU8Cp-HR.js} +1 -1
- package/dist/components/p-CWuhYFDW.js +1 -0
- package/dist/components/{p-BWhbMR4x.js → p-CZKkgmI5.js} +1 -1
- package/dist/components/{p-Co8fuxx1.js → p-CeMqexKQ.js} +1 -1
- package/dist/components/{p-B5Dk5hzj.js → p-Ch9O60SQ.js} +1 -1
- package/dist/components/{p-BOVU0z8h.js → p-CioY7Olt.js} +1 -1
- package/dist/components/{p-DszwT3ye.js → p-CpJ_GE1B.js} +1 -1
- package/dist/components/{p-DGpl5Py7.js → p-CpyGYYPQ.js} +1 -1
- package/dist/components/{p-JbKpKbEr.js → p-D4MolLd8.js} +1 -1
- package/dist/components/{p-iYhyyBx7.js → p-D67l6-0a.js} +1 -1
- package/dist/components/{p-CXef17B1.js → p-DDYXXKzr.js} +1 -1
- package/dist/components/{p-B3dJMfnA.js → p-DGv9agNo.js} +1 -1
- package/dist/components/{p-ZrIqsu-D.js → p-DTOuhcpL.js} +1 -1
- package/dist/components/{p-ClIOIvnY.js → p-DTXQQ3yQ.js} +1 -1
- package/dist/components/{p-DN2JwXg9.js → p-DZRioc0D.js} +1 -1
- package/dist/components/{p-DBONF873.js → p-DaYJPQ1g.js} +1 -1
- package/dist/components/{p-CebBgDcM.js → p-Ddoy5ttY.js} +1 -1
- package/dist/components/p-DdqamPtp.js +1 -0
- package/dist/components/{p-CqWEjd1z.js → p-DnYku8t4.js} +1 -1
- package/dist/components/{p-MXbMDJMH.js → p-DobMlMDf.js} +1 -1
- package/dist/components/p-DuHCcTbE.js +1 -0
- package/dist/components/{p-D8Xy3-us.js → p-Dz0s7ewh.js} +1 -1
- package/dist/components/{p-DxMWyVOs.js → p-QlyBltAE.js} +1 -1
- package/dist/components/{p-euerg1lg.js → p-XAZAnDvX.js} +1 -1
- package/dist/components/p-_2UzwYR8.js +1 -0
- package/dist/components/{p-B8Kug3o4.js → p-bpJ--0b-.js} +1 -1
- package/dist/components/p-e4DwrsCE.js +1 -0
- package/dist/components/{p-Br4jWI9B.js → p-fUGNvavt.js} +1 -1
- package/dist/components/{p-Bw-D7nPx.js → p-sp4th_AU.js} +1 -1
- package/dist/components/{p-CE7y_FPY.js → p-uKtVLC1S.js} +1 -1
- package/dist/components/{p-BdH-lygG.js → p-vwGsm9v4.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-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +1 -1
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +1 -1
- package/dist/components/tet-business-summary-card.js +1 -1
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +1 -1
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +1 -1
- package/dist/components/tet-cloud-configurator.js +1 -1
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.js +1 -1
- package/dist/components/tet-compare-card-v3.js +1 -1
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +1 -1
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-countdown.js +1 -1
- package/dist/components/tet-counter.js +1 -1
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +1 -1
- package/dist/components/tet-divider.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +1 -1
- package/dist/components/tet-expandable-input.js +1 -1
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-feedback-form.js +1 -1
- package/dist/components/tet-filter.js +1 -1
- package/dist/components/tet-floating-block.js +1 -1
- package/dist/components/tet-font-weight.js +1 -1
- package/dist/components/tet-fonts.js +1 -1
- package/dist/components/tet-grid.js +1 -1
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +1 -1
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link-card-list.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-menu-mobile.js +1 -1
- package/dist/components/tet-menu.js +1 -1
- package/dist/components/tet-mini-compare-card.js +1 -1
- package/dist/components/tet-multi-step-dialog.js +1 -1
- package/dist/components/tet-navigation-mobile.js +1 -1
- package/dist/components/tet-news-card-list.js +1 -1
- package/dist/components/tet-news-card.js +1 -1
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-paginator.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-position.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio-blocks.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-round-stepper.js +1 -1
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-group.js +1 -1
- package/dist/components/tet-snicker-card.js +1 -1
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-sticky-offer.js +1 -1
- package/dist/components/tet-support-search.js +1 -1
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +1 -1
- package/dist/components/tet-tag-group.js +1 -1
- package/dist/components/tet-tag.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/components/tet-text.js +1 -1
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v3.js +1 -1
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-program-channel-picker.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-datepicker.d.ts → tet-tv-program.d.ts} +4 -4
- package/dist/components/tet-tv-program.js +1 -0
- package/dist/esm/{http-codes-BQGPgOl6.js → http-codes-Db3nijH5.js} +1 -1
- package/dist/esm/{index-DScZlZas.js → index-BwDyy0_n.js} +1 -1
- package/dist/esm/{index-BGB6gNkz.js → index-Pqdi2xbP.js} +13 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{product-comparison-DUVV7BFR.js → product-comparison-dUap5wKc.js} +1 -1
- package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
- package/dist/esm/tet-accordion.entry.js +7 -7
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
- package/dist/esm/tet-address-offers-view.entry.js +5 -5
- package/dist/esm/tet-address-offers_5.entry.js +11 -11
- package/dist/esm/tet-assembler.entry.js +4 -4
- package/dist/esm/tet-autocomplete-dropdown.entry.js +3 -3
- package/dist/esm/tet-autocomplete_2.entry.js +4 -4
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +7 -7
- package/dist/esm/tet-b2b-configurator.entry.js +5 -5
- package/dist/esm/tet-banner-nav.entry.js +4 -4
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +2 -2
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +3 -3
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-button.entry.js +1 -1
- package/dist/esm/tet-card-list.entry.js +5 -5
- package/dist/esm/tet-carousel.entry.js +12 -12
- package/dist/esm/tet-checkbox_3.entry.js +2 -2
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +4 -4
- package/dist/esm/tet-cloud-configurator.entry.js +4 -4
- package/dist/esm/tet-colors.entry.js +5 -5
- package/dist/esm/tet-compare-card-v2.entry.js +3 -3
- package/dist/esm/tet-compare-card-v3.entry.js +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +5 -5
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-container_2.entry.js +2 -2
- package/dist/esm/tet-countdown.entry.js +2 -2
- package/dist/esm/tet-counter.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +4 -4
- package/dist/esm/tet-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- package/dist/esm/tet-dynamic-card.entry.js +1 -1
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +2 -2
- package/dist/esm/tet-feedback-form.entry.js +4 -4
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-floating-block.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +2 -2
- package/dist/esm/tet-fonts.entry.js +2 -2
- package/dist/esm/tet-grid.entry.js +2 -2
- package/dist/esm/tet-icon.entry.js +3 -3
- package/dist/esm/tet-inline-message.entry.js +1 -1
- package/dist/esm/tet-input.entry.js +4 -4
- package/dist/esm/tet-layout.entry.js +2 -2
- package/dist/esm/tet-link-card-list.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +2 -2
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-mini-compare-card.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +5 -5
- package/dist/esm/tet-navigation-mobile.entry.js +7 -7
- package/dist/esm/tet-news-card-list.entry.js +2 -2
- package/dist/esm/tet-news-card.entry.js +3 -28
- package/dist/esm/tet-notification.entry.js +2 -2
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-paginator.entry.js +5 -5
- package/dist/esm/tet-placeholder.entry.js +3 -3
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio-blocks.entry.js +1 -1
- package/dist/esm/tet-radio_2.entry.js +3 -3
- package/dist/esm/tet-range-slider.entry.js +8 -8
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-snicker-card-group.entry.js +1 -1
- package/dist/esm/tet-snicker-card.entry.js +4 -4
- package/dist/esm/tet-spacing.entry.js +2 -2
- package/dist/esm/tet-spinner.entry.js +4 -4
- package/dist/esm/tet-stepper-input.entry.js +5 -5
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-sticky-offer.entry.js +2 -2
- package/dist/esm/tet-support-search.entry.js +2 -2
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +6 -6
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-text.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
- package/dist/esm/tet-tv-program-channel-picker_2.entry.js +533 -0
- package/dist/esm/tet-tv-program.entry.js +17 -0
- package/dist/esm/{translations-Dc2OQnbI.js → translations-86O17evG.js} +2 -2
- package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
- 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-0c0dec4c.entry.js → p-0033b358.entry.js} +1 -1
- package/dist/tet-components/{p-3ae8cca8.entry.js → p-08b02e0e.entry.js} +1 -1
- package/dist/tet-components/{p-0e32545c.entry.js → p-0d5fcbc7.entry.js} +1 -1
- package/dist/tet-components/{p-74ccd606.entry.js → p-0dc7e52f.entry.js} +1 -1
- package/dist/tet-components/{p-78975957.entry.js → p-11e0a4c1.entry.js} +1 -1
- package/dist/tet-components/{p-01577a41.entry.js → p-12631d81.entry.js} +1 -1
- package/dist/tet-components/{p-c97d7c52.entry.js → p-12cda941.entry.js} +1 -1
- package/dist/tet-components/{p-830e4fe6.entry.js → p-160bf328.entry.js} +1 -1
- package/dist/tet-components/{p-512e516b.entry.js → p-188ce1dd.entry.js} +1 -1
- package/dist/tet-components/{p-ecdaf331.entry.js → p-227c5237.entry.js} +1 -1
- package/dist/tet-components/{p-c9c4656e.entry.js → p-26583aa4.entry.js} +1 -1
- package/dist/tet-components/{p-a240b7c2.entry.js → p-28df50ce.entry.js} +1 -1
- package/dist/tet-components/{p-632d382c.entry.js → p-2b3f3308.entry.js} +1 -1
- package/dist/tet-components/{p-3af65955.entry.js → p-2f1fb5d8.entry.js} +1 -1
- package/dist/tet-components/{p-122d141d.entry.js → p-3072df67.entry.js} +1 -1
- package/dist/tet-components/{p-acdbec26.entry.js → p-33e92f72.entry.js} +1 -1
- package/dist/tet-components/{p-ad0b78d5.entry.js → p-36a4d956.entry.js} +1 -1
- package/dist/tet-components/{p-380c13f1.entry.js → p-37a1db2e.entry.js} +1 -1
- package/dist/tet-components/p-386eca79.entry.js +1 -0
- package/dist/tet-components/{p-fbb45705.entry.js → p-38a487ff.entry.js} +1 -1
- package/dist/tet-components/{p-a560fec1.entry.js → p-3f524c8d.entry.js} +1 -1
- package/dist/tet-components/{p-41763924.entry.js → p-413bdca4.entry.js} +1 -1
- package/dist/tet-components/{p-1c254d23.entry.js → p-43f24feb.entry.js} +1 -1
- package/dist/tet-components/{p-8310d42d.entry.js → p-44274421.entry.js} +1 -1
- package/dist/tet-components/p-48080fa2.entry.js +1 -0
- package/dist/tet-components/{p-6bc9b958.entry.js → p-50b880c4.entry.js} +1 -1
- package/dist/tet-components/{p-9ca86779.entry.js → p-530b5ad5.entry.js} +1 -1
- package/dist/tet-components/{p-386be2d5.entry.js → p-5de0dfcb.entry.js} +1 -1
- package/dist/tet-components/{p-cc3e87fe.entry.js → p-5eb7d25a.entry.js} +1 -1
- package/dist/tet-components/p-613a9c50.entry.js +1 -0
- package/dist/tet-components/{p-11a66d8a.entry.js → p-63576f32.entry.js} +1 -1
- package/dist/tet-components/{p-6a8f5935.entry.js → p-6687eb0c.entry.js} +1 -1
- package/dist/tet-components/{p-e7e18cc4.entry.js → p-66c3e3df.entry.js} +1 -1
- package/dist/tet-components/p-6cc6a8db.entry.js +1 -0
- package/dist/tet-components/{p-db2a72c7.entry.js → p-6d3543e5.entry.js} +1 -1
- package/dist/tet-components/{p-e0752dc6.entry.js → p-6de668f5.entry.js} +1 -1
- package/dist/tet-components/{p-47b65d11.entry.js → p-6f8eeb3e.entry.js} +1 -1
- package/dist/tet-components/{p-37c3f4c6.entry.js → p-724e2781.entry.js} +1 -1
- package/dist/tet-components/{p-2c84bff1.entry.js → p-7411c26d.entry.js} +1 -1
- package/dist/tet-components/{p-de8125d5.entry.js → p-7809088d.entry.js} +1 -1
- package/dist/tet-components/{p-9d103705.entry.js → p-7cc1f029.entry.js} +1 -1
- package/dist/tet-components/{p-cd7efc99.entry.js → p-817159e1.entry.js} +1 -1
- package/dist/tet-components/{p-ad8622a2.entry.js → p-86952753.entry.js} +1 -1
- package/dist/tet-components/{p-bb16b0e5.entry.js → p-8742a416.entry.js} +1 -1
- package/dist/tet-components/{p-6146284d.entry.js → p-8796553b.entry.js} +1 -1
- package/dist/tet-components/{p-2ac83b4c.entry.js → p-87eab542.entry.js} +1 -1
- package/dist/tet-components/{p-4db60df6.entry.js → p-8814294c.entry.js} +1 -1
- package/dist/tet-components/{p-ec596eb2.entry.js → p-88a85db8.entry.js} +1 -1
- package/dist/tet-components/p-8a703ca7.entry.js +1 -0
- package/dist/tet-components/{p-38459b69.entry.js → p-8b0a8ab1.entry.js} +1 -1
- package/dist/tet-components/{p-c2d6ac75.entry.js → p-8c4ab7a1.entry.js} +1 -1
- package/dist/tet-components/{p-fa83efb2.entry.js → p-95e8359c.entry.js} +1 -1
- package/dist/tet-components/{p-c96c5b96.entry.js → p-974ed233.entry.js} +1 -1
- package/dist/tet-components/{p-0996dd5a.entry.js → p-9cd7e838.entry.js} +1 -1
- package/dist/tet-components/{p-a96d7e90.entry.js → p-9ce84cc8.entry.js} +1 -1
- package/dist/tet-components/{p-DbJll7nz.js → p-B7QSqkXs.js} +1 -1
- package/dist/tet-components/p-BxMAl4Ol.js +1 -0
- package/dist/tet-components/p-C9BlrGW8.js +1 -0
- package/dist/tet-components/{p-DX1IQAn5.js → p-CZm2B2F9.js} +1 -1
- package/dist/tet-components/p-CaZKtSyx.js +1 -0
- package/dist/tet-components/p-DdqamPtp.js +1 -0
- package/dist/{components/p-lEX8wezw.js → tet-components/p-OiVa1VV1.js} +1 -1
- package/dist/tet-components/p-Pqdi2xbP.js +3 -0
- package/dist/tet-components/{p-9cee887f.entry.js → p-a10e05b0.entry.js} +1 -1
- package/dist/tet-components/{p-f23fbdab.entry.js → p-a1adcc35.entry.js} +1 -1
- package/dist/tet-components/{p-30523176.entry.js → p-aa538d1c.entry.js} +1 -1
- package/dist/tet-components/{p-7338bab9.entry.js → p-af90f478.entry.js} +1 -1
- package/dist/tet-components/{p-49ba40a1.entry.js → p-b0073cd0.entry.js} +1 -1
- package/dist/tet-components/{p-7cc6b959.entry.js → p-b09e9aa4.entry.js} +1 -1
- package/dist/tet-components/{p-c6dc0917.entry.js → p-b239d172.entry.js} +1 -1
- package/dist/tet-components/{p-11ed5b55.entry.js → p-c055c92b.entry.js} +1 -1
- package/dist/tet-components/p-c0d9e9e8.entry.js +1 -0
- package/dist/tet-components/{p-4b92e8e6.entry.js → p-c1af090d.entry.js} +1 -1
- package/dist/tet-components/{p-0386aeb9.entry.js → p-c46fa871.entry.js} +1 -1
- package/dist/tet-components/{p-129027b6.entry.js → p-ceccc970.entry.js} +1 -1
- package/dist/tet-components/{p-b3acb430.entry.js → p-d2b05a14.entry.js} +1 -1
- package/dist/tet-components/{p-b8b2a9f5.entry.js → p-d790f6de.entry.js} +1 -1
- package/dist/tet-components/{p-a4d98d8f.entry.js → p-d7db3443.entry.js} +1 -1
- package/dist/tet-components/{p-51e6df01.entry.js → p-dc106bf5.entry.js} +1 -1
- package/dist/tet-components/{p-e2d4e5c3.entry.js → p-dccf260d.entry.js} +1 -1
- package/dist/tet-components/{p-f5cf45c1.entry.js → p-ddb6d6c1.entry.js} +1 -1
- package/dist/tet-components/{p-a579df12.entry.js → p-e23942f5.entry.js} +1 -1
- package/dist/tet-components/{p-185e98b4.entry.js → p-e3f77ab0.entry.js} +1 -1
- package/dist/tet-components/{p-1b29e5f2.entry.js → p-e53dee37.entry.js} +1 -1
- package/dist/tet-components/{p-b31a3fa1.entry.js → p-e5ade6a8.entry.js} +1 -1
- package/dist/tet-components/{p-4a39f6bc.entry.js → p-e76ea04f.entry.js} +1 -1
- package/dist/tet-components/{p-24058988.entry.js → p-eaf808b1.entry.js} +1 -1
- package/dist/tet-components/{p-45c01709.entry.js → p-eba7482b.entry.js} +1 -1
- package/dist/tet-components/{p-119e349d.entry.js → p-fff9e103.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/views/tet-tv-program/components/tet-tv-program-channel-picker/tet-tv-program-channel-picker.d.ts +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 -387
- package/package.json +1 -1
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +0 -387
- package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css +0 -393
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css +0 -382
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
- package/dist/components/p-8ThmuWkF.js +0 -1
- package/dist/components/p-B0WxHzd1.js +0 -1
- package/dist/components/p-BXSBo_9f.js +0 -1
- package/dist/components/p-BvWhh2Zj.js +0 -1
- package/dist/components/p-CG6D6t5h.js +0 -1
- package/dist/components/p-COwD9Duu.js +0 -1
- package/dist/components/p-Cdi7KDBd.js +0 -1
- package/dist/components/p-Cef0hbKH.js +0 -1
- package/dist/components/p-CoQ-OVcl.js +0 -1
- package/dist/components/p-CxbnslX3.js +0 -1
- package/dist/components/p-D0GJDW-O.js +0 -1
- package/dist/components/tet-datepicker-header.d.ts +0 -11
- package/dist/components/tet-datepicker-header.js +0 -1
- package/dist/components/tet-datepicker-month-view.d.ts +0 -11
- package/dist/components/tet-datepicker-month-view.js +0 -1
- package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
- package/dist/components/tet-datepicker-multi-year-view.js +0 -1
- package/dist/components/tet-datepicker-year-view.d.ts +0 -11
- package/dist/components/tet-datepicker-year-view.js +0 -1
- package/dist/components/tet-datepicker.js +0 -1
- package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
- package/dist/esm/tet-datepicker.entry.js +0 -130
- package/dist/tet-components/p-4804006b.entry.js +0 -1
- package/dist/tet-components/p-5e237b6d.entry.js +0 -1
- package/dist/tet-components/p-7dcb307f.entry.js +0 -1
- package/dist/tet-components/p-87675c65.entry.js +0 -1
- package/dist/tet-components/p-92340a39.entry.js +0 -1
- package/dist/tet-components/p-BGB6gNkz.js +0 -3
- package/dist/tet-components/p-Bvqcvhjw.js +0 -1
- package/dist/tet-components/p-BzLFf73g.js +0 -1
- package/dist/tet-components/p-C1XJmhDH.js +0 -1
- package/dist/tet-components/p-D0GJDW-O.js +0 -1
- package/dist/tet-components/p-ea9d92f6.entry.js +0 -1
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
- package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
|
@@ -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"; }
|