@tet/tet-components 1.4.22-testing → 1.4.23-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/{address-656e77f6.js → address-f852270f.js} +1 -1
- package/dist/cjs/{assets-f64f0e16.js → assets-b9d36649.js} +1 -1
- package/dist/cjs/{async-request-fcf33aba.js → async-request-4517f566.js} +1 -1
- package/dist/cjs/{http-codes-40da1e61.js → http-codes-062f76cf.js} +1 -1
- package/dist/cjs/{index-4b423f33.js → index-19a7608f.js} +1 -1
- package/dist/cjs/{index-3242ff3f.js → index-faec4c52.js} +5 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-055efd07.js → phone-d6be0dd2.js} +2 -2
- package/dist/cjs/{product-comparison-88a89820.js → product-comparison-aa80a77c.js} +1 -1
- 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 +4 -4
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +9 -9
- package/dist/cjs/tet-address-search.cjs.entry.js +7 -7
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +6 -6
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +4 -4
- package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-lines.cjs.entry.js +5 -5
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-button.cjs.entry.js +70 -9
- package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
- package/dist/cjs/tet-carousel.cjs.entry.js +10 -10
- package/dist/cjs/tet-checkbox.cjs.entry.js +23 -8
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +5 -5
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +5 -5
- 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-contact-form.cjs.entry.js +6 -6
- package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-counter.cjs.entry.js +271 -0
- package/dist/cjs/tet-customer-assets.cjs.entry.js +4 -4
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +6 -6
- package/dist/cjs/tet-datepicker.cjs.entry.js +5 -5
- package/dist/cjs/tet-dialog.cjs.entry.js +5 -5
- package/dist/cjs/tet-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- package/dist/cjs/tet-dropdown_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +4 -4
- package/dist/cjs/tet-expandable-input.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/tet-floating-block.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/tet-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-label.cjs.entry.js +5 -5
- package/dist/cjs/tet-layout.cjs.entry.js +2 -2
- package/dist/cjs/tet-link-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-link.cjs.entry.js +2 -2
- package/dist/cjs/tet-loader.cjs.entry.js +2 -2
- package/dist/cjs/tet-macd-view.cjs.entry.js +7 -7
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +2 -2
- package/dist/cjs/tet-menu.cjs.entry.js +2 -2
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +4 -4
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +4 -4
- package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-notification.cjs.entry.js +2 -2
- package/dist/cjs/tet-number-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +2 -2
- package/dist/cjs/tet-radio.cjs.entry.js +24 -9
- package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/tet-referral.cjs.entry.js +7 -7
- package/dist/cjs/tet-round-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-snicker-card-badge.cjs.entry.js +2 -2
- package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
- package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-input.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +2 -2
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +2 -2
- package/dist/cjs/tet-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-switch.cjs.entry.js +4 -4
- package/dist/cjs/tet-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/tet-table.cjs.entry.js +2 -2
- package/dist/cjs/tet-tag_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-text-list.cjs.entry.js +2 -2
- 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-v2.cjs.entry.js +4 -4
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +2 -2
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +2 -2
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +3 -3
- package/dist/cjs/{theme-wrapper-66880718.js → theme-wrapper-46514846.js} +2 -2
- package/dist/cjs/{translations-03c9de64.js → translations-89a0ec3d.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -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-compare-card/tet-compare-card.css +24 -2
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +24 -2
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +1 -1
- package/dist/collection/components/advanced/cards/tet-dynamic-card/tet-dynamic-card.js +3 -3
- package/dist/collection/components/advanced/cards/tet-snicker-card/partials/tet-snicker-card-badge/tet-snicker-card-badge.js +1 -1
- package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js +1 -1
- package/dist/collection/components/advanced/customer/tet-referral/tet-referral.js +2 -2
- 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/advanced/forms/tet-contact-form/tet-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-feedback-form/tet-feedback-form.js +1 -1
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/tet-tv-gift-block.js +1 -1
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js +2 -2
- package/dist/collection/components/basic/buttons/tet-button/tet-button.css +318 -495
- package/dist/collection/components/basic/buttons/tet-button/tet-button.js +127 -8
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.css +5 -0
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +39 -6
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.css +5 -0
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.js +40 -7
- package/dist/collection/components/basic/buttons/tet-switch/tet-switch.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 +7 -7
- package/dist/collection/components/basic/icon/tet-icon.js +1 -1
- package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
- package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
- package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
- package/dist/collection/components/basic/misc/tet-counter/tet-counter.css +16 -0
- package/dist/collection/components/basic/misc/tet-counter/tet-counter.js +583 -0
- package/dist/collection/components/basic/misc/tet-label/tet-label.js +2 -2
- package/dist/collection/components/basic/steppers/tet-round-stepper/tet-round-stepper.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper/tet-stepper.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper-v2/tet-stepper-v2.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.js +1 -1
- package/dist/collection/components/simple/filter/tet-filter/tet-filter.js +2 -2
- 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-dropdown/tet-dropdown.js +1 -1
- package/dist/collection/components/simple/inputs/tet-expandable-input/tet-expandable-input.js +2 -2
- package/dist/collection/components/simple/inputs/tet-number-input/tet-number-input.js +2 -2
- 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-link-card-list/tet-link-card-list.js +1 -1
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
- package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +24 -2
- package/dist/collection/components/simple/menu/tet-menu/tet-menu.js +1 -1
- package/dist/collection/components/simple/menu/tet-menu-mobile/tet-menu-mobile.js +1 -1
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
- 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/structural/tet-floating-block/tet-floating-block.js +1 -1
- package/dist/collection/components/simple/tables-and-graphs/tet-table/tet-table.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-dialog/tet-dialog.js +2 -2
- package/dist/collection/components/simple/text-blocks/tet-inline-message/tet-inline-message.js +2 -2
- 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-b2b-service-calculator/tet-b2b-service-calculator.js +1 -1
- package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +1 -1
- package/dist/collection/components/views/tet-macd-view/tet-macd-view.js +1 -1
- package/dist/collection/components/views/tet-price-view/tet-price-view.js +1 -1
- package/dist/collection/components/views/tet-thank-you-view/tet-thank-you-view.js +1 -1
- package/dist/collection/components/views/tet-thank-you-view-v2/tet-thank-you-view-v2.js +2 -2
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.js +2 -2
- 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/components/index.js +3 -1
- package/dist/components/{p-375a5cfa.js → p-067e24b2.js} +2 -2
- package/dist/components/{p-4029ad75.js → p-081e662f.js} +6 -6
- package/dist/components/{p-c9ec821b.js → p-0cd01523.js} +2 -2
- package/dist/components/{p-ac209bc1.js → p-0e5c120b.js} +3 -3
- package/dist/components/{p-77d77578.js → p-0ff0536d.js} +8 -8
- package/dist/components/{p-438d429c.js → p-1073635c.js} +5 -5
- package/dist/components/{p-83e9f500.js → p-1823d576.js} +2 -2
- package/dist/components/{p-f76fad86.js → p-26ffcb52.js} +1 -1
- package/dist/components/{p-c0e5e16a.js → p-29aa33c8.js} +3 -3
- package/dist/components/{p-ffe0b1f2.js → p-2a611bd4.js} +8 -8
- package/dist/components/{p-d3e6fe4e.js → p-338b45d9.js} +14 -14
- package/dist/components/{p-4468c9e9.js → p-3493f65f.js} +1 -1
- package/dist/components/{p-0a5f7ab0.js → p-3a320356.js} +5 -5
- package/dist/components/{p-20ca9fa1.js → p-3c78e73c.js} +1 -1
- package/dist/components/{p-b6e2a8cc.js → p-412014d8.js} +1 -1
- package/dist/components/{p-c722c61d.js → p-434a227a.js} +13 -13
- package/dist/components/{p-e76a41b8.js → p-4426ffeb.js} +4 -4
- package/dist/components/{p-7f859d29.js → p-44ddd769.js} +3 -3
- package/dist/components/{p-0f1423b7.js → p-4828e5f5.js} +10 -10
- package/dist/components/{p-ec253cea.js → p-56b80f8d.js} +3 -3
- package/dist/components/{p-b32cb3ad.js → p-56c2eff7.js} +10 -10
- package/dist/components/{p-5c47c2d5.js → p-5e4f8207.js} +2 -2
- package/dist/components/{p-82d03692.js → p-5fd85b9a.js} +7 -7
- package/dist/components/{p-69555360.js → p-6114f69a.js} +5 -5
- package/dist/components/p-6792548e.js +174 -0
- package/dist/components/{p-1675cb05.js → p-69131a6d.js} +5 -5
- package/dist/components/{p-c3dd8021.js → p-6d224324.js} +4 -4
- package/dist/components/{p-e3fecd23.js → p-7095bb34.js} +7 -7
- package/dist/components/{p-2e59089a.js → p-724e52a7.js} +1 -1
- package/dist/components/{p-635c5db4.js → p-74ba95e0.js} +1 -1
- package/dist/components/{p-c3d2ccd5.js → p-75b954b5.js} +1 -1
- package/dist/components/{p-8758fb64.js → p-768a2c8d.js} +1 -1
- package/dist/components/{p-a17553f4.js → p-77c9384e.js} +1 -1
- package/dist/components/{p-cd009231.js → p-922bbaa7.js} +5 -5
- package/dist/components/{p-69774b35.js → p-928d194b.js} +4 -4
- package/dist/components/{p-47760f25.js → p-9667687e.js} +2 -2
- package/dist/components/{p-039c578b.js → p-969a45a7.js} +3 -3
- package/dist/components/{p-b4b94c16.js → p-99746f8e.js} +4 -4
- package/dist/components/{p-56f9a49b.js → p-9ad56c01.js} +4 -4
- package/dist/components/{p-0e70d061.js → p-a2c27d73.js} +3 -3
- package/dist/components/{p-25b93e8f.js → p-aa122c92.js} +1 -1
- package/dist/components/{p-a7e888ab.js → p-acd8e0a7.js} +3 -3
- package/dist/components/{p-26ce88e8.js → p-b1cc938c.js} +5 -5
- package/dist/components/{p-41a7c21a.js → p-b6841a9b.js} +2 -2
- package/dist/components/{p-b52c715b.js → p-b8ff2ee7.js} +6 -6
- package/dist/components/{p-68513e60.js → p-bd8f948a.js} +10 -10
- package/dist/components/p-c4b485ea.js +153 -0
- package/dist/components/{p-ee17a01a.js → p-c6240e0c.js} +2 -2
- package/dist/components/{p-ab294e76.js → p-c69e3d71.js} +3 -3
- package/dist/components/{p-2f2fb278.js → p-cee6db3f.js} +3 -3
- package/dist/components/{p-afaf0812.js → p-d1aa707b.js} +2 -2
- package/dist/components/{p-b73ba300.js → p-d864ac46.js} +2 -2
- package/dist/components/{p-cd88ddf8.js → p-df729c73.js} +3 -3
- package/dist/components/{p-f52de522.js → p-ea7a0078.js} +7 -7
- package/dist/components/{p-9664416d.js → p-ed6c97fc.js} +3 -3
- package/dist/components/{p-b03d721d.js → p-ef5edf2b.js} +11 -11
- package/dist/components/{p-61cedfb0.js → p-f88fcd38.js} +2 -2
- package/dist/components/{p-b1c19d70.js → p-f8e5ca59.js} +25 -9
- 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 +25 -25
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-asset-addresses.js +13 -13
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +6 -6
- 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 +20 -20
- package/dist/components/tet-b2b-service-calculator.js +9 -9
- package/dist/components/tet-banner-nav.js +3 -3
- package/dist/components/tet-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +2 -2
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +5 -5
- package/dist/components/tet-business-lines.js +6 -6
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +2 -2
- 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 +11 -11
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +8 -8
- package/dist/components/tet-cloud-configurator.js +11 -11
- package/dist/components/tet-colors.js +5 -5
- package/dist/components/tet-compare-card-v2.js +11 -11
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +16 -16
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +10 -10
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-counter.d.ts +11 -0
- package/dist/components/tet-counter.js +312 -0
- package/dist/components/tet-customer-assets.js +10 -10
- 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 +10 -10
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +8 -8
- package/dist/components/tet-divider.js +7 -7
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +7 -7
- package/dist/components/tet-expandable-input.js +5 -5
- package/dist/components/tet-expansion-panel.js +2 -2
- package/dist/components/tet-feedback-form.js +8 -8
- package/dist/components/tet-filter.js +6 -6
- package/dist/components/tet-floating-block.js +4 -4
- package/dist/components/tet-font-weight.js +2 -2
- package/dist/components/tet-fonts.js +2 -2
- package/dist/components/tet-grid.js +2 -2
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +4 -4
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-label.js +5 -5
- package/dist/components/tet-layout.js +2 -2
- package/dist/components/tet-link-card-list.js +4 -4
- package/dist/components/tet-link.js +2 -2
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +11 -11
- package/dist/components/tet-menu-mobile.js +3 -3
- package/dist/components/tet-menu.js +3 -3
- package/dist/components/tet-multi-step-dialog.js +6 -6
- package/dist/components/tet-navigation-mobile.js +5 -5
- package/dist/components/tet-news-card-list.js +5 -5
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-position.js +7 -7
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +8 -8
- package/dist/components/tet-round-stepper.js +3 -3
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-badge.js +2 -2
- package/dist/components/tet-spacing.js +2 -2
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v2.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-stepper.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 +4 -4
- 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 +7 -7
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v2.js +6 -6
- package/dist/components/tet-thank-you-view-v3.js +6 -6
- package/dist/components/tet-thank-you-view.js +5 -5
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +2 -2
- package/dist/components/tet-tv-gift-list.js +4 -4
- package/dist/esm/{address-1e0810e7.js → address-20e2d850.js} +1 -1
- package/dist/esm/{assets-e1349520.js → assets-894007df.js} +1 -1
- package/dist/esm/{async-request-4c945e13.js → async-request-ae1056de.js} +1 -1
- package/dist/esm/{http-codes-1927ea00.js → http-codes-cf0086d4.js} +1 -1
- package/dist/esm/{index-412df137.js → index-e3209c56.js} +1 -1
- package/dist/esm/{index-aac31bd2.js → index-e933a7d2.js} +5 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-1a920c5c.js → phone-62660137.js} +2 -2
- package/dist/esm/{product-comparison-dd90c721.js → product-comparison-cb8955f6.js} +1 -1
- 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 +4 -4
- package/dist/esm/tet-address-offers_4.entry.js +9 -9
- package/dist/esm/tet-address-search.entry.js +7 -7
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
- package/dist/esm/tet-autocomplete.entry.js +1 -1
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +6 -6
- package/dist/esm/tet-b2b-configurator.entry.js +4 -4
- package/dist/esm/tet-b2b-service-calculator.entry.js +4 -4
- package/dist/esm/tet-banner-nav.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +2 -2
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +3 -3
- package/dist/esm/tet-business-lines.entry.js +5 -5
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-button.entry.js +70 -9
- package/dist/esm/tet-card-list.entry.js +5 -5
- package/dist/esm/tet-carousel.entry.js +10 -10
- package/dist/esm/tet-checkbox.entry.js +23 -8
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +5 -5
- package/dist/esm/tet-compare-card-v2.entry.js +5 -5
- 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-contact-form.entry.js +6 -6
- package/dist/esm/tet-contact-info.entry.js +1 -1
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-counter.entry.js +267 -0
- package/dist/esm/tet-customer-assets.entry.js +4 -4
- package/dist/esm/tet-datepicker-header_4.entry.js +6 -6
- package/dist/esm/tet-datepicker.entry.js +5 -5
- package/dist/esm/tet-dialog.entry.js +5 -5
- package/dist/esm/tet-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- package/dist/esm/tet-dropdown_2.entry.js +3 -3
- package/dist/esm/tet-dynamic-card.entry.js +4 -4
- package/dist/esm/tet-expandable-input.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/tet-floating-block.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/tet-input.entry.js +3 -3
- package/dist/esm/tet-label.entry.js +5 -5
- package/dist/esm/tet-layout.entry.js +2 -2
- package/dist/esm/tet-link-card-list.entry.js +2 -2
- package/dist/esm/tet-link.entry.js +2 -2
- package/dist/esm/tet-loader.entry.js +2 -2
- package/dist/esm/tet-macd-view.entry.js +7 -7
- package/dist/esm/tet-menu-mobile.entry.js +2 -2
- package/dist/esm/tet-menu.entry.js +2 -2
- package/dist/esm/tet-multi-step-dialog.entry.js +4 -4
- package/dist/esm/tet-navigation-mobile.entry.js +4 -4
- package/dist/esm/tet-news-card-list.entry.js +2 -2
- package/dist/esm/tet-notification.entry.js +2 -2
- package/dist/esm/tet-number-input.entry.js +3 -3
- package/dist/esm/tet-placeholder.entry.js +2 -2
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +2 -2
- package/dist/esm/tet-radio.entry.js +24 -9
- package/dist/esm/tet-range-slider.entry.js +8 -8
- package/dist/esm/tet-referral.entry.js +7 -7
- package/dist/esm/tet-round-stepper.entry.js +2 -2
- package/dist/esm/tet-snicker-card-badge.entry.js +2 -2
- package/dist/esm/tet-spacing.entry.js +2 -2
- package/dist/esm/tet-spinner.entry.js +4 -4
- package/dist/esm/tet-stepper-input.entry.js +4 -4
- package/dist/esm/tet-stepper-v2.entry.js +2 -2
- package/dist/esm/tet-stepper-v3.entry.js +2 -2
- package/dist/esm/tet-stepper.entry.js +2 -2
- package/dist/esm/tet-switch.entry.js +4 -4
- package/dist/esm/tet-tab-header.entry.js +3 -3
- package/dist/esm/tet-table.entry.js +2 -2
- package/dist/esm/tet-tag_2.entry.js +5 -5
- package/dist/esm/tet-text-list.entry.js +2 -2
- 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-v2.entry.js +4 -4
- package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
- package/dist/esm/tet-thank-you-view.entry.js +2 -2
- package/dist/esm/tet-tv-gift-block.entry.js +2 -2
- package/dist/esm/tet-tv-gift-list.entry.js +3 -3
- package/dist/esm/{theme-wrapper-72d0b9da.js → theme-wrapper-cf4d7d54.js} +2 -2
- package/dist/esm/{translations-4712c45f.js → translations-e60db8fd.js} +1 -1
- package/dist/tet-components/{p-38fb0eea.entry.js → p-0064eb71.entry.js} +1 -1
- package/dist/tet-components/{p-e0f7a4a5.entry.js → p-01cbb74c.entry.js} +1 -1
- package/dist/tet-components/{p-a7d9e280.entry.js → p-08569f07.entry.js} +1 -1
- package/dist/tet-components/{p-0f2d1a9c.entry.js → p-0a326f53.entry.js} +1 -1
- package/dist/tet-components/{p-a6c89f10.entry.js → p-0bda3eeb.entry.js} +1 -1
- package/dist/tet-components/p-0bf60061.entry.js +1 -0
- package/dist/tet-components/{p-77a1f676.entry.js → p-103dab6f.entry.js} +1 -1
- package/dist/tet-components/{p-f25a0e3a.entry.js → p-127b2895.entry.js} +1 -1
- package/dist/tet-components/{p-33d12bd1.entry.js → p-12f975ff.entry.js} +1 -1
- package/dist/tet-components/{p-3a6b0d35.entry.js → p-14c15a69.entry.js} +1 -1
- package/dist/tet-components/{p-39686fad.entry.js → p-1765c8c5.entry.js} +1 -1
- package/dist/tet-components/{p-d55121ce.entry.js → p-1a05c222.entry.js} +1 -1
- package/dist/tet-components/{p-4a16b8da.entry.js → p-1b976fcb.entry.js} +1 -1
- package/dist/tet-components/{p-bcca51cc.entry.js → p-1f5ed76c.entry.js} +1 -1
- package/dist/tet-components/{p-6297692b.entry.js → p-239fa72a.entry.js} +1 -1
- package/dist/tet-components/{p-0690732e.entry.js → p-23f3b153.entry.js} +1 -1
- package/dist/tet-components/{p-a87ce46a.entry.js → p-24df18b9.entry.js} +1 -1
- package/dist/tet-components/{p-f6916bfc.entry.js → p-265701de.entry.js} +1 -1
- package/dist/tet-components/{p-94dd5d95.entry.js → p-2a558830.entry.js} +1 -1
- package/dist/tet-components/{p-d8518d4b.js → p-2dbe670c.js} +1 -1
- package/dist/tet-components/{p-7056a120.entry.js → p-31d0b400.entry.js} +1 -1
- package/dist/tet-components/{p-e51579ab.entry.js → p-32488c4e.entry.js} +1 -1
- package/dist/tet-components/{p-6dde4d69.entry.js → p-330840ff.entry.js} +1 -1
- package/dist/tet-components/{p-43c3b078.entry.js → p-365ebf00.entry.js} +1 -1
- package/dist/tet-components/{p-79dab470.entry.js → p-39320aa4.entry.js} +1 -1
- package/dist/tet-components/{p-778c46a6.js → p-3ac57578.js} +1 -1
- package/dist/tet-components/{p-3fc6a020.entry.js → p-3b5e9fed.entry.js} +1 -1
- package/dist/tet-components/{p-c2dbf3db.entry.js → p-4176aaca.entry.js} +1 -1
- package/dist/tet-components/{p-f81b3bb0.js → p-4213c1d1.js} +1 -1
- package/dist/tet-components/{p-720e5059.entry.js → p-43eff59d.entry.js} +1 -1
- package/dist/tet-components/{p-e98a1ad1.entry.js → p-4d7f1c6e.entry.js} +1 -1
- package/dist/tet-components/p-4d935fc8.entry.js +1 -0
- package/dist/tet-components/{p-70c608a6.entry.js → p-4fc641da.entry.js} +1 -1
- package/dist/tet-components/{p-c51da57b.entry.js → p-52d7b6c3.entry.js} +1 -1
- package/dist/tet-components/{p-122f3d3c.entry.js → p-548d7cc1.entry.js} +1 -1
- package/dist/tet-components/p-581b1f01.entry.js +1 -0
- package/dist/tet-components/{p-85bcbb9d.entry.js → p-589e8e4b.entry.js} +1 -1
- package/dist/tet-components/{p-5af71510.entry.js → p-59007fe7.entry.js} +1 -1
- package/dist/tet-components/{p-83f43fdd.js → p-5abb3bea.js} +1 -1
- package/dist/tet-components/{p-298292ce.entry.js → p-5d56e074.entry.js} +1 -1
- package/dist/tet-components/{p-cde8057a.entry.js → p-60abca86.entry.js} +1 -1
- package/dist/tet-components/{p-33f2ed2e.entry.js → p-635ed958.entry.js} +1 -1
- package/dist/tet-components/{p-8bfd498e.entry.js → p-63f6def9.entry.js} +1 -1
- package/dist/tet-components/p-660bdc27.js +1 -0
- package/dist/tet-components/{p-85f61fc0.entry.js → p-6c6cd148.entry.js} +1 -1
- package/dist/tet-components/{p-33404a9a.entry.js → p-6c6fe82b.entry.js} +1 -1
- package/dist/tet-components/{p-79f778d6.entry.js → p-6cf6894d.entry.js} +1 -1
- package/dist/tet-components/{p-7194c3e1.entry.js → p-6fb8c506.entry.js} +1 -1
- package/dist/tet-components/{p-490f1cd2.entry.js → p-6ffacde3.entry.js} +1 -1
- package/dist/tet-components/{p-a70cec80.entry.js → p-70cec2eb.entry.js} +1 -1
- package/dist/tet-components/{p-1d207053.entry.js → p-725ed08d.entry.js} +1 -1
- package/dist/tet-components/{p-0ebbf5ef.js → p-726651bc.js} +1 -1
- package/dist/tet-components/{p-667d758e.entry.js → p-73c190a2.entry.js} +1 -1
- package/dist/tet-components/{p-adf006f9.entry.js → p-79ee95e0.entry.js} +1 -1
- package/dist/tet-components/{p-f5040842.entry.js → p-7bd6f009.entry.js} +1 -1
- package/dist/tet-components/{p-811eaad9.entry.js → p-81fdc2f2.entry.js} +1 -1
- package/dist/tet-components/{p-483e0253.entry.js → p-839ae15f.entry.js} +1 -1
- package/dist/tet-components/{p-10e72480.entry.js → p-8b93b91f.entry.js} +1 -1
- package/dist/tet-components/{p-bfd8348b.entry.js → p-8fae4e03.entry.js} +1 -1
- package/dist/tet-components/{p-17946d38.entry.js → p-92eb59b7.entry.js} +1 -1
- package/dist/tet-components/{p-cce44523.entry.js → p-965e10f6.entry.js} +1 -1
- package/dist/tet-components/{p-35cbd34e.entry.js → p-9bd457d2.entry.js} +1 -1
- package/dist/tet-components/{p-028e8ace.entry.js → p-9c714aa1.entry.js} +1 -1
- package/dist/tet-components/{p-d4dc17f5.entry.js → p-a15fda05.entry.js} +1 -1
- package/dist/tet-components/{p-a8051a99.js → p-a476fd02.js} +1 -1
- package/dist/tet-components/{p-e98108ba.entry.js → p-a81b19d6.entry.js} +1 -1
- package/dist/tet-components/p-abd6e438.entry.js +1 -0
- package/dist/tet-components/{p-d2f9b52a.entry.js → p-acd1b5e8.entry.js} +1 -1
- package/dist/tet-components/{p-6c7b5f8d.entry.js → p-af86e2dc.entry.js} +1 -1
- package/dist/tet-components/{p-09e92f79.entry.js → p-b179e1e3.entry.js} +1 -1
- package/dist/tet-components/{p-f68450a4.entry.js → p-b22de340.entry.js} +1 -1
- package/dist/tet-components/{p-ecad90f7.entry.js → p-b2c138f0.entry.js} +1 -1
- package/dist/tet-components/{p-7544dfd7.js → p-b39df477.js} +1 -1
- package/dist/tet-components/{p-872bbccf.entry.js → p-b468a922.entry.js} +1 -1
- package/dist/tet-components/{p-9c837569.entry.js → p-b4b90473.entry.js} +1 -1
- package/dist/tet-components/{p-5533f71b.entry.js → p-b4c23878.entry.js} +1 -1
- package/dist/tet-components/{p-162809ee.entry.js → p-b61304cf.entry.js} +1 -1
- package/dist/tet-components/{p-cf479331.entry.js → p-b64bd05a.entry.js} +1 -1
- package/dist/tet-components/{p-1fd2adaf.js → p-b92dff8a.js} +1 -1
- package/dist/tet-components/{p-798aa31d.entry.js → p-c2b120fa.entry.js} +1 -1
- package/dist/tet-components/{p-90763483.entry.js → p-c3a54cfd.entry.js} +1 -1
- package/dist/tet-components/{p-f9a0b36a.entry.js → p-c64bc4bf.entry.js} +1 -1
- package/dist/tet-components/{p-37a8e22b.entry.js → p-c76a4457.entry.js} +1 -1
- package/dist/tet-components/{p-b34e86ef.entry.js → p-c9583427.entry.js} +1 -1
- package/dist/tet-components/{p-0c6b6730.js → p-c9ddf890.js} +1 -1
- package/dist/tet-components/{p-8b421887.entry.js → p-d028d7c4.entry.js} +1 -1
- package/dist/tet-components/{p-43fd6ff8.entry.js → p-d267844d.entry.js} +1 -1
- package/dist/tet-components/{p-8cf12736.entry.js → p-d3db997e.entry.js} +1 -1
- package/dist/tet-components/{p-83ada223.entry.js → p-d4826b0a.entry.js} +1 -1
- package/dist/tet-components/p-d9b46efd.entry.js +1 -0
- package/dist/tet-components/p-da386a33.entry.js +1 -0
- package/dist/tet-components/{p-742d2b37.entry.js → p-df99dc91.entry.js} +1 -1
- package/dist/tet-components/{p-0e2dbd84.entry.js → p-e0a2de25.entry.js} +1 -1
- package/dist/tet-components/{p-a64e3e96.entry.js → p-e74416dc.entry.js} +1 -1
- package/dist/tet-components/{p-c9f21fde.entry.js → p-ec5b1040.entry.js} +1 -1
- package/dist/tet-components/{p-5e8466e6.entry.js → p-ecea1d66.entry.js} +1 -1
- package/dist/tet-components/{p-9eb496bb.entry.js → p-ef84df23.entry.js} +1 -1
- package/dist/tet-components/p-efc8d952.entry.js +1 -0
- package/dist/tet-components/{p-2328b1d4.entry.js → p-f9c98275.entry.js} +1 -1
- package/dist/tet-components/{p-e05e8cad.entry.js → p-fa3eb190.entry.js} +1 -1
- package/dist/tet-components/tet-components.css +2 -2
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/basic/buttons/tet-button/tet-button.d.ts +15 -1
- package/dist/types/components/basic/buttons/tet-checkbox/tet-checkbox.d.ts +3 -0
- package/dist/types/components/basic/buttons/tet-radio/tet-radio.d.ts +3 -0
- package/dist/types/components/basic/misc/tet-counter/tet-counter.d.ts +67 -0
- package/dist/types/components.d.ts +181 -2
- package/package.json +1 -1
- package/dist/components/p-7965bdfb.js +0 -89
- package/dist/components/p-f0a90a3d.js +0 -158
- package/dist/tet-components/p-1e7163c8.entry.js +0 -1
- package/dist/tet-components/p-31668864.entry.js +0 -1
- package/dist/tet-components/p-75927057.entry.js +0 -1
- package/dist/tet-components/p-8d8de315.entry.js +0 -1
- package/dist/tet-components/p-9ebb9fdf.entry.js +0 -1
- package/dist/tet-components/p-a903f58f.entry.js +0 -1
- package/dist/tet-components/p-f81d95ae.js +0 -1
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
const DEFAULT_EASING_START_PROGRESS = 0.2;
|
|
3
|
+
const DEFAULT_EASING_PROGRESS_AT_START = 0.5;
|
|
4
|
+
const DEFAULT_EASING_POWER = 3;
|
|
5
|
+
export class TetCounter {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.startValue = 0;
|
|
8
|
+
this.endValue = 10;
|
|
9
|
+
this.duration = 2000;
|
|
10
|
+
this.delay = 0;
|
|
11
|
+
this.valueSteps = 0;
|
|
12
|
+
this.stepValues = undefined;
|
|
13
|
+
this.loopInterval = 0;
|
|
14
|
+
this.easing = undefined;
|
|
15
|
+
this.easingConfig = undefined;
|
|
16
|
+
this.disableAnimation = false;
|
|
17
|
+
this.thousandSeparator = true;
|
|
18
|
+
this.startOnViewport = true;
|
|
19
|
+
this.currentValue = 0;
|
|
20
|
+
}
|
|
21
|
+
hostElement;
|
|
22
|
+
/** Emitted when counter run starts. */
|
|
23
|
+
counterStarted;
|
|
24
|
+
/** Emitted when counter reaches end value. */
|
|
25
|
+
counterFinished;
|
|
26
|
+
animationFrameId;
|
|
27
|
+
loopTimeoutId;
|
|
28
|
+
startDelayTimeoutId;
|
|
29
|
+
viewportObserver;
|
|
30
|
+
hasEnteredViewport = false;
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
this.scheduleCounterStart();
|
|
33
|
+
}
|
|
34
|
+
disconnectedCallback() {
|
|
35
|
+
this.clearTimer();
|
|
36
|
+
this.clearViewportObserver();
|
|
37
|
+
}
|
|
38
|
+
onCounterConfigChanged() {
|
|
39
|
+
this.scheduleCounterStart();
|
|
40
|
+
}
|
|
41
|
+
/** Restarts the counter animation from its configured start value. */
|
|
42
|
+
async restartCounter() {
|
|
43
|
+
this.scheduleCounterStart({ requireViewport: true });
|
|
44
|
+
}
|
|
45
|
+
clearViewportObserver() {
|
|
46
|
+
this.viewportObserver?.disconnect();
|
|
47
|
+
this.viewportObserver = undefined;
|
|
48
|
+
}
|
|
49
|
+
scheduleCounterStart(options = {}) {
|
|
50
|
+
const shouldWaitForViewport = this.startOnViewport && (options.requireViewport || !this.hasEnteredViewport);
|
|
51
|
+
if (!shouldWaitForViewport) {
|
|
52
|
+
this.clearViewportObserver();
|
|
53
|
+
this.startCounter();
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
this.clearTimer();
|
|
57
|
+
this.currentValue = this.startValue;
|
|
58
|
+
if (globalThis.IntersectionObserver === undefined) {
|
|
59
|
+
this.hasEnteredViewport = true;
|
|
60
|
+
this.startCounter();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (this.viewportObserver)
|
|
64
|
+
return;
|
|
65
|
+
this.viewportObserver = new globalThis.IntersectionObserver((entries) => {
|
|
66
|
+
const isVisible = entries.some((entry) => entry.isIntersecting);
|
|
67
|
+
if (!isVisible)
|
|
68
|
+
return;
|
|
69
|
+
this.hasEnteredViewport = true;
|
|
70
|
+
this.clearViewportObserver();
|
|
71
|
+
this.startCounter();
|
|
72
|
+
});
|
|
73
|
+
this.viewportObserver.observe(this.hostElement);
|
|
74
|
+
}
|
|
75
|
+
getSafeStepCount() {
|
|
76
|
+
const normalizedStepCount = Math.floor(this.valueSteps);
|
|
77
|
+
if (normalizedStepCount < 2)
|
|
78
|
+
return 0;
|
|
79
|
+
const valueRange = Math.abs(this.endValue - this.startValue);
|
|
80
|
+
if (valueRange === 0)
|
|
81
|
+
return 0;
|
|
82
|
+
return Math.min(normalizedStepCount, valueRange + 1);
|
|
83
|
+
}
|
|
84
|
+
getExplicitStepValues() {
|
|
85
|
+
if (!Array.isArray(this.stepValues) || this.stepValues.length === 0)
|
|
86
|
+
return null;
|
|
87
|
+
const normalizedValues = this.stepValues
|
|
88
|
+
.filter((value) => Number.isFinite(value))
|
|
89
|
+
.map((value) => Math.round(value));
|
|
90
|
+
if (normalizedValues.length === 0)
|
|
91
|
+
return null;
|
|
92
|
+
const withBoundaries = [...normalizedValues];
|
|
93
|
+
if (withBoundaries[0] !== this.startValue) {
|
|
94
|
+
withBoundaries.unshift(this.startValue);
|
|
95
|
+
}
|
|
96
|
+
if (withBoundaries.at(-1) !== this.endValue) {
|
|
97
|
+
withBoundaries.push(this.endValue);
|
|
98
|
+
}
|
|
99
|
+
const deduplicatedValues = withBoundaries.filter((value, index, values) => index === 0 || value !== values[index - 1]);
|
|
100
|
+
return deduplicatedValues.length >= 2 ? deduplicatedValues : null;
|
|
101
|
+
}
|
|
102
|
+
getRandomizedStepValues(stepCount) {
|
|
103
|
+
const minValue = Math.min(this.startValue, this.endValue);
|
|
104
|
+
const maxValue = Math.max(this.startValue, this.endValue);
|
|
105
|
+
const values = new Set([this.startValue, this.endValue]);
|
|
106
|
+
while (values.size < stepCount) {
|
|
107
|
+
const randomValue = Math.floor(Math.random() * (maxValue - minValue + 1)) + minValue;
|
|
108
|
+
values.add(randomValue);
|
|
109
|
+
}
|
|
110
|
+
const sortedValues = Array.from(values).sort((first, second) => first - second);
|
|
111
|
+
if (this.startValue > this.endValue) {
|
|
112
|
+
sortedValues.reverse();
|
|
113
|
+
}
|
|
114
|
+
return sortedValues;
|
|
115
|
+
}
|
|
116
|
+
clearTimer() {
|
|
117
|
+
if (this.animationFrameId !== undefined) {
|
|
118
|
+
globalThis.cancelAnimationFrame(this.animationFrameId);
|
|
119
|
+
this.animationFrameId = undefined;
|
|
120
|
+
}
|
|
121
|
+
if (this.loopTimeoutId !== undefined) {
|
|
122
|
+
globalThis.clearTimeout(this.loopTimeoutId);
|
|
123
|
+
this.loopTimeoutId = undefined;
|
|
124
|
+
}
|
|
125
|
+
if (this.startDelayTimeoutId !== undefined) {
|
|
126
|
+
globalThis.clearTimeout(this.startDelayTimeoutId);
|
|
127
|
+
this.startDelayTimeoutId = undefined;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
scheduleLoopRestart() {
|
|
131
|
+
const safeLoopIntervalMs = Number.isFinite(this.loopInterval) ? Math.max(0, this.loopInterval) : 0;
|
|
132
|
+
if (safeLoopIntervalMs === 0)
|
|
133
|
+
return;
|
|
134
|
+
this.loopTimeoutId = globalThis.setTimeout(() => {
|
|
135
|
+
this.loopTimeoutId = undefined;
|
|
136
|
+
this.startCounter({ skipDelay: true });
|
|
137
|
+
}, safeLoopIntervalMs);
|
|
138
|
+
}
|
|
139
|
+
getAnimationProgress(normalizedProgress) {
|
|
140
|
+
if (this.easing === 'ease-out') {
|
|
141
|
+
return this.getEasingCurveProgress(normalizedProgress);
|
|
142
|
+
}
|
|
143
|
+
if (this.easing === 'ease-in') {
|
|
144
|
+
return 1 - this.getEasingCurveProgress(1 - normalizedProgress);
|
|
145
|
+
}
|
|
146
|
+
return normalizedProgress;
|
|
147
|
+
}
|
|
148
|
+
getEasingCurveProgress(normalizedProgress) {
|
|
149
|
+
const startProgressValue = this.easingConfig?.startProgress ?? DEFAULT_EASING_START_PROGRESS;
|
|
150
|
+
const progressAtStartValue = this.easingConfig?.progressAtStart ?? DEFAULT_EASING_PROGRESS_AT_START;
|
|
151
|
+
const powerValue = this.easingConfig?.power ?? DEFAULT_EASING_POWER;
|
|
152
|
+
const normalizedStartProgress = Number.isFinite(startProgressValue) ? startProgressValue : DEFAULT_EASING_START_PROGRESS;
|
|
153
|
+
const normalizedProgressAtStart = Number.isFinite(progressAtStartValue) ? progressAtStartValue : DEFAULT_EASING_PROGRESS_AT_START;
|
|
154
|
+
const normalizedPower = Number.isFinite(powerValue) ? powerValue : DEFAULT_EASING_POWER;
|
|
155
|
+
const easingStartProgress = Math.min(0.99, Math.max(0.01, normalizedStartProgress));
|
|
156
|
+
const progressAtEasingStart = Math.min(0.99, Math.max(easingStartProgress, normalizedProgressAtStart));
|
|
157
|
+
const easingPower = Math.max(1.01, normalizedPower);
|
|
158
|
+
if (normalizedProgress <= easingStartProgress) {
|
|
159
|
+
return (progressAtEasingStart / easingStartProgress) * normalizedProgress;
|
|
160
|
+
}
|
|
161
|
+
const secondHalfProgress = (normalizedProgress - easingStartProgress) / (1 - easingStartProgress);
|
|
162
|
+
const easedSecondHalfProgress = 1 - Math.pow(1 - secondHalfProgress, easingPower);
|
|
163
|
+
const blendFactor = Math.min(0.85, Math.max(0.55, 1 - (1 / easingPower)));
|
|
164
|
+
const stabilizedSecondHalfProgress = (blendFactor * easedSecondHalfProgress) + ((1 - blendFactor) * secondHalfProgress);
|
|
165
|
+
return progressAtEasingStart + ((1 - progressAtEasingStart) * stabilizedSecondHalfProgress);
|
|
166
|
+
}
|
|
167
|
+
getProgressValue(animationProgress) {
|
|
168
|
+
const valueDifference = this.endValue - this.startValue;
|
|
169
|
+
const rawValue = this.startValue + (valueDifference * animationProgress);
|
|
170
|
+
if (valueDifference >= 0) {
|
|
171
|
+
return Math.floor(rawValue);
|
|
172
|
+
}
|
|
173
|
+
return Math.ceil(rawValue);
|
|
174
|
+
}
|
|
175
|
+
startCounter(options = {}) {
|
|
176
|
+
this.clearTimer();
|
|
177
|
+
const safeStartDelayMs = Number.isFinite(this.delay) ? Math.max(0, this.delay) : 0;
|
|
178
|
+
if (!options.skipDelay && safeStartDelayMs > 0) {
|
|
179
|
+
this.currentValue = this.startValue;
|
|
180
|
+
this.startDelayTimeoutId = globalThis.setTimeout(() => {
|
|
181
|
+
this.startDelayTimeoutId = undefined;
|
|
182
|
+
this.startCounter({ skipDelay: true });
|
|
183
|
+
}, safeStartDelayMs);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
this.counterStarted.emit();
|
|
187
|
+
if (this.disableAnimation) {
|
|
188
|
+
this.currentValue = this.endValue;
|
|
189
|
+
this.counterFinished.emit();
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
this.currentValue = this.startValue;
|
|
193
|
+
if (this.startValue === this.endValue) {
|
|
194
|
+
this.counterFinished.emit();
|
|
195
|
+
this.scheduleLoopRestart();
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
const safeDuration = Math.max(0, this.duration);
|
|
199
|
+
if (safeDuration === 0) {
|
|
200
|
+
this.currentValue = this.endValue;
|
|
201
|
+
this.counterFinished.emit();
|
|
202
|
+
this.scheduleLoopRestart();
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const explicitStepValues = this.getExplicitStepValues();
|
|
206
|
+
const safeStepCount = this.getSafeStepCount();
|
|
207
|
+
const stepValues = explicitStepValues ?? (safeStepCount > 0 ? this.getRandomizedStepValues(safeStepCount) : []);
|
|
208
|
+
const hasStepMode = stepValues.length > 0;
|
|
209
|
+
const lastStepIndex = hasStepMode ? stepValues.length - 1 : 0;
|
|
210
|
+
const startTimestamp = performance.now();
|
|
211
|
+
const tick = (timestamp) => {
|
|
212
|
+
const elapsed = timestamp - startTimestamp;
|
|
213
|
+
const normalizedProgress = Math.min(1, Math.max(0, elapsed / safeDuration));
|
|
214
|
+
const animationProgress = this.getAnimationProgress(normalizedProgress);
|
|
215
|
+
if (hasStepMode) {
|
|
216
|
+
const stepIndex = Math.max(0, Math.min(lastStepIndex, Math.floor(animationProgress * lastStepIndex)));
|
|
217
|
+
this.currentValue = stepValues[stepIndex] ?? this.endValue;
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
this.currentValue = this.getProgressValue(animationProgress);
|
|
221
|
+
}
|
|
222
|
+
if (normalizedProgress >= 1) {
|
|
223
|
+
this.currentValue = this.endValue;
|
|
224
|
+
this.clearTimer();
|
|
225
|
+
this.counterFinished.emit();
|
|
226
|
+
this.scheduleLoopRestart();
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
this.animationFrameId = globalThis.requestAnimationFrame(tick);
|
|
230
|
+
};
|
|
231
|
+
this.animationFrameId = globalThis.requestAnimationFrame(tick);
|
|
232
|
+
}
|
|
233
|
+
formatValue(value) {
|
|
234
|
+
if (!this.thousandSeparator)
|
|
235
|
+
return String(value);
|
|
236
|
+
return value.toLocaleString('lv-LV').replaceAll('\u00A0', ' ');
|
|
237
|
+
}
|
|
238
|
+
outputValue() {
|
|
239
|
+
return this.disableAnimation ? this.formatValue(this.endValue) : this.formatValue(this.currentValue);
|
|
240
|
+
}
|
|
241
|
+
render() {
|
|
242
|
+
return (h(Host, { key: 'e13bec371c06dfe2347fedab93e48b3a56e12554' }, h("span", { key: '05201f960f7c0ca1867c115dd54d7d8f126cd431', part: "counter", "aria-hidden": "true" }, this.outputValue()), h("span", { key: '87842c7a8fd6344c5b1c527d484179b56eb4a2f6', class: "sr-only" }, this.formatValue(this.endValue))));
|
|
243
|
+
}
|
|
244
|
+
static get is() { return "tet-counter"; }
|
|
245
|
+
static get encapsulation() { return "shadow"; }
|
|
246
|
+
static get originalStyleUrls() {
|
|
247
|
+
return {
|
|
248
|
+
"$": ["tet-counter.scss"]
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
static get styleUrls() {
|
|
252
|
+
return {
|
|
253
|
+
"$": ["tet-counter.css"]
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
static get properties() {
|
|
257
|
+
return {
|
|
258
|
+
"startValue": {
|
|
259
|
+
"type": "number",
|
|
260
|
+
"mutable": false,
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "number",
|
|
263
|
+
"resolved": "number",
|
|
264
|
+
"references": {}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": false,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": "Initial value shown by the counter."
|
|
271
|
+
},
|
|
272
|
+
"attribute": "start-value",
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"defaultValue": "0"
|
|
275
|
+
},
|
|
276
|
+
"endValue": {
|
|
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": "Target value the counter should reach."
|
|
289
|
+
},
|
|
290
|
+
"attribute": "end-value",
|
|
291
|
+
"reflect": false,
|
|
292
|
+
"defaultValue": "10"
|
|
293
|
+
},
|
|
294
|
+
"duration": {
|
|
295
|
+
"type": "number",
|
|
296
|
+
"mutable": false,
|
|
297
|
+
"complexType": {
|
|
298
|
+
"original": "number",
|
|
299
|
+
"resolved": "number",
|
|
300
|
+
"references": {}
|
|
301
|
+
},
|
|
302
|
+
"required": false,
|
|
303
|
+
"optional": false,
|
|
304
|
+
"docs": {
|
|
305
|
+
"tags": [],
|
|
306
|
+
"text": "Animation duration in milliseconds."
|
|
307
|
+
},
|
|
308
|
+
"attribute": "duration",
|
|
309
|
+
"reflect": false,
|
|
310
|
+
"defaultValue": "2000"
|
|
311
|
+
},
|
|
312
|
+
"delay": {
|
|
313
|
+
"type": "number",
|
|
314
|
+
"mutable": false,
|
|
315
|
+
"complexType": {
|
|
316
|
+
"original": "number",
|
|
317
|
+
"resolved": "number",
|
|
318
|
+
"references": {}
|
|
319
|
+
},
|
|
320
|
+
"required": false,
|
|
321
|
+
"optional": false,
|
|
322
|
+
"docs": {
|
|
323
|
+
"tags": [],
|
|
324
|
+
"text": "Delay in milliseconds before the counter animation starts."
|
|
325
|
+
},
|
|
326
|
+
"attribute": "delay",
|
|
327
|
+
"reflect": false,
|
|
328
|
+
"defaultValue": "0"
|
|
329
|
+
},
|
|
330
|
+
"valueSteps": {
|
|
331
|
+
"type": "number",
|
|
332
|
+
"mutable": false,
|
|
333
|
+
"complexType": {
|
|
334
|
+
"original": "number",
|
|
335
|
+
"resolved": "number",
|
|
336
|
+
"references": {}
|
|
337
|
+
},
|
|
338
|
+
"required": false,
|
|
339
|
+
"optional": false,
|
|
340
|
+
"docs": {
|
|
341
|
+
"tags": [],
|
|
342
|
+
"text": "Number of randomized displayed values (including start and end) during the animation."
|
|
343
|
+
},
|
|
344
|
+
"attribute": "value-steps",
|
|
345
|
+
"reflect": false,
|
|
346
|
+
"defaultValue": "0"
|
|
347
|
+
},
|
|
348
|
+
"stepValues": {
|
|
349
|
+
"type": "unknown",
|
|
350
|
+
"mutable": false,
|
|
351
|
+
"complexType": {
|
|
352
|
+
"original": "StepValues",
|
|
353
|
+
"resolved": "number[]",
|
|
354
|
+
"references": {
|
|
355
|
+
"StepValues": {
|
|
356
|
+
"location": "local",
|
|
357
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/basic/misc/tet-counter/tet-counter.tsx",
|
|
358
|
+
"id": "src/components/basic/misc/tet-counter/tet-counter.tsx::StepValues"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": true,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": "Optional explicit values to display during animation. Includes start/end automatically if omitted."
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"loopInterval": {
|
|
370
|
+
"type": "number",
|
|
371
|
+
"mutable": false,
|
|
372
|
+
"complexType": {
|
|
373
|
+
"original": "number",
|
|
374
|
+
"resolved": "number",
|
|
375
|
+
"references": {}
|
|
376
|
+
},
|
|
377
|
+
"required": false,
|
|
378
|
+
"optional": false,
|
|
379
|
+
"docs": {
|
|
380
|
+
"tags": [],
|
|
381
|
+
"text": "Delay in milliseconds before restarting the counter after completion."
|
|
382
|
+
},
|
|
383
|
+
"attribute": "loop-interval",
|
|
384
|
+
"reflect": false,
|
|
385
|
+
"defaultValue": "0"
|
|
386
|
+
},
|
|
387
|
+
"easing": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"mutable": false,
|
|
390
|
+
"complexType": {
|
|
391
|
+
"original": "EasingMode",
|
|
392
|
+
"resolved": "\"ease-in\" | \"ease-out\"",
|
|
393
|
+
"references": {
|
|
394
|
+
"EasingMode": {
|
|
395
|
+
"location": "local",
|
|
396
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/basic/misc/tet-counter/tet-counter.tsx",
|
|
397
|
+
"id": "src/components/basic/misc/tet-counter/tet-counter.tsx::EasingMode"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"required": false,
|
|
402
|
+
"optional": true,
|
|
403
|
+
"docs": {
|
|
404
|
+
"tags": [],
|
|
405
|
+
"text": "Optional easing mode for the animation timeline."
|
|
406
|
+
},
|
|
407
|
+
"attribute": "easing",
|
|
408
|
+
"reflect": false
|
|
409
|
+
},
|
|
410
|
+
"easingConfig": {
|
|
411
|
+
"type": "unknown",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "EasingConfig",
|
|
415
|
+
"resolved": "EasingConfig",
|
|
416
|
+
"references": {
|
|
417
|
+
"EasingConfig": {
|
|
418
|
+
"location": "local",
|
|
419
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/basic/misc/tet-counter/tet-counter.tsx",
|
|
420
|
+
"id": "src/components/basic/misc/tet-counter/tet-counter.tsx::EasingConfig"
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"required": false,
|
|
425
|
+
"optional": true,
|
|
426
|
+
"docs": {
|
|
427
|
+
"tags": [],
|
|
428
|
+
"text": "Optional object config for the selected easing behavior."
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"disableAnimation": {
|
|
432
|
+
"type": "boolean",
|
|
433
|
+
"mutable": false,
|
|
434
|
+
"complexType": {
|
|
435
|
+
"original": "boolean",
|
|
436
|
+
"resolved": "boolean",
|
|
437
|
+
"references": {}
|
|
438
|
+
},
|
|
439
|
+
"required": false,
|
|
440
|
+
"optional": false,
|
|
441
|
+
"docs": {
|
|
442
|
+
"tags": [],
|
|
443
|
+
"text": "Disables counting animation and shows the end value immediately."
|
|
444
|
+
},
|
|
445
|
+
"attribute": "disable-animation",
|
|
446
|
+
"reflect": false,
|
|
447
|
+
"defaultValue": "false"
|
|
448
|
+
},
|
|
449
|
+
"thousandSeparator": {
|
|
450
|
+
"type": "boolean",
|
|
451
|
+
"mutable": false,
|
|
452
|
+
"complexType": {
|
|
453
|
+
"original": "boolean",
|
|
454
|
+
"resolved": "boolean",
|
|
455
|
+
"references": {}
|
|
456
|
+
},
|
|
457
|
+
"required": false,
|
|
458
|
+
"optional": false,
|
|
459
|
+
"docs": {
|
|
460
|
+
"tags": [],
|
|
461
|
+
"text": "Formats the displayed number with thousand separators when enabled."
|
|
462
|
+
},
|
|
463
|
+
"attribute": "thousand-separator",
|
|
464
|
+
"reflect": false,
|
|
465
|
+
"defaultValue": "true"
|
|
466
|
+
},
|
|
467
|
+
"startOnViewport": {
|
|
468
|
+
"type": "boolean",
|
|
469
|
+
"mutable": false,
|
|
470
|
+
"complexType": {
|
|
471
|
+
"original": "boolean",
|
|
472
|
+
"resolved": "boolean",
|
|
473
|
+
"references": {}
|
|
474
|
+
},
|
|
475
|
+
"required": false,
|
|
476
|
+
"optional": false,
|
|
477
|
+
"docs": {
|
|
478
|
+
"tags": [],
|
|
479
|
+
"text": "Starts counting only after the component enters the viewport."
|
|
480
|
+
},
|
|
481
|
+
"attribute": "start-on-viewport",
|
|
482
|
+
"reflect": false,
|
|
483
|
+
"defaultValue": "true"
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
static get states() {
|
|
488
|
+
return {
|
|
489
|
+
"currentValue": {}
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
static get events() {
|
|
493
|
+
return [{
|
|
494
|
+
"method": "counterStarted",
|
|
495
|
+
"name": "counterStarted",
|
|
496
|
+
"bubbles": true,
|
|
497
|
+
"cancelable": true,
|
|
498
|
+
"composed": true,
|
|
499
|
+
"docs": {
|
|
500
|
+
"tags": [],
|
|
501
|
+
"text": "Emitted when counter run starts."
|
|
502
|
+
},
|
|
503
|
+
"complexType": {
|
|
504
|
+
"original": "void",
|
|
505
|
+
"resolved": "void",
|
|
506
|
+
"references": {}
|
|
507
|
+
}
|
|
508
|
+
}, {
|
|
509
|
+
"method": "counterFinished",
|
|
510
|
+
"name": "counterFinished",
|
|
511
|
+
"bubbles": true,
|
|
512
|
+
"cancelable": true,
|
|
513
|
+
"composed": true,
|
|
514
|
+
"docs": {
|
|
515
|
+
"tags": [],
|
|
516
|
+
"text": "Emitted when counter reaches end value."
|
|
517
|
+
},
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "void",
|
|
520
|
+
"resolved": "void",
|
|
521
|
+
"references": {}
|
|
522
|
+
}
|
|
523
|
+
}];
|
|
524
|
+
}
|
|
525
|
+
static get methods() {
|
|
526
|
+
return {
|
|
527
|
+
"restartCounter": {
|
|
528
|
+
"complexType": {
|
|
529
|
+
"signature": "() => Promise<void>",
|
|
530
|
+
"parameters": [],
|
|
531
|
+
"references": {
|
|
532
|
+
"Promise": {
|
|
533
|
+
"location": "global",
|
|
534
|
+
"id": "global::Promise"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"return": "Promise<void>"
|
|
538
|
+
},
|
|
539
|
+
"docs": {
|
|
540
|
+
"text": "Restarts the counter animation from its configured start value.",
|
|
541
|
+
"tags": []
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
static get elementRef() { return "hostElement"; }
|
|
547
|
+
static get watchers() {
|
|
548
|
+
return [{
|
|
549
|
+
"propName": "startValue",
|
|
550
|
+
"methodName": "onCounterConfigChanged"
|
|
551
|
+
}, {
|
|
552
|
+
"propName": "endValue",
|
|
553
|
+
"methodName": "onCounterConfigChanged"
|
|
554
|
+
}, {
|
|
555
|
+
"propName": "duration",
|
|
556
|
+
"methodName": "onCounterConfigChanged"
|
|
557
|
+
}, {
|
|
558
|
+
"propName": "delay",
|
|
559
|
+
"methodName": "onCounterConfigChanged"
|
|
560
|
+
}, {
|
|
561
|
+
"propName": "valueSteps",
|
|
562
|
+
"methodName": "onCounterConfigChanged"
|
|
563
|
+
}, {
|
|
564
|
+
"propName": "stepValues",
|
|
565
|
+
"methodName": "onCounterConfigChanged"
|
|
566
|
+
}, {
|
|
567
|
+
"propName": "loopInterval",
|
|
568
|
+
"methodName": "onCounterConfigChanged"
|
|
569
|
+
}, {
|
|
570
|
+
"propName": "easing",
|
|
571
|
+
"methodName": "onCounterConfigChanged"
|
|
572
|
+
}, {
|
|
573
|
+
"propName": "easingConfig",
|
|
574
|
+
"methodName": "onCounterConfigChanged"
|
|
575
|
+
}, {
|
|
576
|
+
"propName": "disableAnimation",
|
|
577
|
+
"methodName": "onCounterConfigChanged"
|
|
578
|
+
}, {
|
|
579
|
+
"propName": "startOnViewport",
|
|
580
|
+
"methodName": "onCounterConfigChanged"
|
|
581
|
+
}];
|
|
582
|
+
}
|
|
583
|
+
}
|
|
@@ -13,12 +13,12 @@ export class TetLabel {
|
|
|
13
13
|
this.showIcon = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'c77468e7d0e8cf9309be371a5228820e78016d11' }, h("div", { key: '0893759ac35c617c8832f8cda94f22df4980ce17', class: {
|
|
17
17
|
label: true,
|
|
18
18
|
'label-active': this.active,
|
|
19
19
|
[`label-type-${this.type}`]: true,
|
|
20
20
|
[`theme-${this.theme}`]: true,
|
|
21
|
-
} }, this.labelTitle && h("p", { key: '
|
|
21
|
+
} }, this.labelTitle && h("p", { key: '357088a0ed3815c89d0004a8fe9626749c2e987f', class: "label-title" }, this.translateTitle ? t(this.labelTitle) : this.labelTitle), this.showIcon && h("tet-icon", { key: 'c783b3a210a19fa191927f7ec4ae0e6eadcc3111', class: "label-icon", name: "close-circle", part: "icon-selected" }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "tet-label"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class TetRoundStepper {
|
|
|
59
59
|
this.calculateContainerWidth();
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '8a5a3b29be17614f8335bfbf68ce0809d01383a7' }, h("div", { key: 'cf8b4828ac4cb737d7371ee7d7cc76eee9435789', class: {
|
|
63
63
|
'round-stepper': true,
|
|
64
64
|
'column': this.forcedColumn,
|
|
65
65
|
'hide-icons': this.hideIcons
|
|
@@ -75,7 +75,7 @@ export class TetStepper {
|
|
|
75
75
|
return this.stepperData.length - 1 > index ? h("li", { class: lineClasses }) : null;
|
|
76
76
|
};
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '75c32c0134cfec39a5a6e28752981aec67997ac8' }, h("ol", { key: '8c5827988374deacb4f8b94a7292b168c62dedf4', class: "stepper" }, this.stepperData.map(this.renderStep))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "tet-stepper"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,7 +35,7 @@ export class TetStepperV2 {
|
|
|
35
35
|
return isLastStep ? h("div", { class: { 'stepper-line': true, active } }) : null;
|
|
36
36
|
};
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '5f17828ac9be1e79feb0da7a6fee85663961d26d' }, h("ol", { key: 'b42b945a5e444853df9e0c73ca7d19a126129640', class: {
|
|
39
39
|
'stepper': true,
|
|
40
40
|
[this.theme]: true,
|
|
41
41
|
} }, this.stepperData.map(this.renderStep.bind(this)))));
|
|
@@ -27,7 +27,7 @@ export class TetStepperV3 {
|
|
|
27
27
|
return description ? h("div", { class: "content-description", innerHTML: description }) : null;
|
|
28
28
|
};
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '80ab39b826b3c78e316f1834bddc9f9091ec3b70' }, h("ol", { key: 'bca96ce3d01fc609435e9443c72c66ff127bdc2f', class: {
|
|
31
31
|
stepper: true,
|
|
32
32
|
[this.theme]: true
|
|
33
33
|
} }, this.stepperData.map(this.renderStep.bind(this)))));
|
|
@@ -39,11 +39,11 @@ export class TetFilter {
|
|
|
39
39
|
this.filterChange.emit(this.filterState);
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'eff35285c891a8cf8ab0035061a31fdf61a3d6da' }, h("div", { key: '4754cd18461b0778723419eba5b93851a4f70fdd', class: { 'filter-container': true, [`theme-${this.theme}`]: true } }, h("tet-tag-group", { key: 'cc4b599acb3a7faf1241af9479c63078f71b1afc', tags: this.filterState.map(tag => ({
|
|
43
43
|
...tag,
|
|
44
44
|
clickAction: () => this.handleTagClick(tag),
|
|
45
45
|
showIcon: tag.active && !tag.disabled
|
|
46
|
-
})), theme: this.theme }), this.showClearFilterButton && this.filterState.some(tag => tag.active) && (h("button", { key: '
|
|
46
|
+
})), theme: this.theme }), this.showClearFilterButton && this.filterState.some(tag => tag.active) && (h("button", { key: '7d4b9d5a2b382efc7859a4260b89b6310d2b2308', class: "clear-button", onClick: this.handleClearClick }, h("tet-icon", { key: '33699626600987d5ce619a0ad219ba9dd7a8a195', name: "tc-reload", style: { '--icon-size': '1rem', '--icon-container-display': 'flex' }, accessibilityLabel: this.clearFilterButtonTitle }), this.clearFilterButtonTitle)))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "tet-filter"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,9 +55,9 @@ export class TetDatepickerHeader {
|
|
|
55
55
|
this.datepickerViewChanged.emit(view);
|
|
56
56
|
};
|
|
57
57
|
render() {
|
|
58
|
-
return (h("div", { key: '
|
|
58
|
+
return (h("div", { key: '680ac39611eaeff615289e20b845fa484613f300', class: "header" }, this.datepickerView !== 'year'
|
|
59
59
|
? (h("div", { class: "icon-container", onClick: () => this.subtractDates() }, h("tet-icon", { class: "arrow-left", name: "arrow-left" })))
|
|
60
|
-
: h("div", null), h("div", { key: '
|
|
60
|
+
: h("div", null), h("div", { key: '370eadab0ce764da8252c38f5c27eada0a97cd79', class: "control-button", onClick: () => this.changeDatepickerView() }, this.getControlButtonDate(), h("tet-icon", { key: 'eb1797ccea14f21a193ca5e9cbe3de263fab42a5', class: "chevron-down", name: this.datepickerView === 'month' ? 'chevron-down' : 'chevron-up' })), this.datepickerView !== 'year'
|
|
61
61
|
? (h("div", { class: "icon-container", onClick: () => this.addDates() }, h("tet-icon", { class: "arrow-left", name: "arrow-right" })))
|
|
62
62
|
: h("div", null)));
|
|
63
63
|
}
|