@tet/tet-components 1.4.25-testing → 1.4.26-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 -5
- 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 +3 -3
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +3 -3
- 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 +1 -1
- 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 +2 -2
- package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-carousel.cjs.entry.js +178 -45
- package/dist/cjs/tet-checkbox.cjs.entry.js +1 -1
- 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 +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
- 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 +1 -1
- package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- 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 +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 +1 -1
- 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 +6 -6
- 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-multi-step-dialog.cjs.entry.js +3 -3
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/tet-radio.cjs.entry.js +1 -1
- package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/tet-referral.cjs.entry.js +5 -5
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-badge.cjs.entry.js +1 -1
- 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 +75 -53
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
- 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-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
- 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/components/basic/buttons/tet-button/tet-button.css +2 -0
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.css +38 -75
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +199 -43
- 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-label/tet-label.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-range-slider/tet-range-slider.js +7 -7
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.css +40 -67
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +172 -79
- 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/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-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/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 +1 -1
- package/dist/components/{p-e30431fd.js → p-09e12e32.js} +4 -4
- package/dist/components/{p-cfd5023a.js → p-0af4c96a.js} +4 -4
- package/dist/components/{p-3872e105.js → p-0d4040e8.js} +5 -5
- package/dist/components/{p-3096b932.js → p-11700d82.js} +11 -11
- package/dist/components/{p-e9414745.js → p-13296f85.js} +2 -2
- package/dist/components/{p-ef6e73e5.js → p-1469ed4f.js} +3 -3
- package/dist/components/{p-82a49157.js → p-164c4f08.js} +4 -4
- package/dist/components/{p-855e42f7.js → p-19f32f2a.js} +2 -2
- package/dist/components/{p-e54fd2f8.js → p-1fe9d8a5.js} +10 -11
- package/dist/components/{p-f76fad86.js → p-26ffcb52.js} +1 -1
- package/dist/components/{p-a6be19f9.js → p-29aa33c8.js} +1 -1
- package/dist/components/{p-6ad26440.js → p-2a189a6b.js} +2 -2
- package/dist/components/{p-3b8e4380.js → p-308ed708.js} +2 -2
- package/dist/components/{p-29756311.js → p-3447cfe2.js} +1 -1
- package/dist/components/{p-4468c9e9.js → p-3493f65f.js} +1 -1
- package/dist/components/{p-caaa2258.js → p-3cf8ea69.js} +14 -14
- package/dist/components/{p-4f20d266.js → p-3d4fecca.js} +9 -9
- package/dist/components/{p-a93c0563.js → p-40893ddd.js} +3 -3
- package/dist/components/{p-15a22b5e.js → p-41b79a2e.js} +6 -6
- package/dist/components/{p-c1699d44.js → p-464c7198.js} +1 -1
- package/dist/components/{p-3f8c8b14.js → p-4db83698.js} +7 -7
- package/dist/components/{p-1eccdae0.js → p-5a3da1ac.js} +1 -1
- package/dist/components/{p-04f53f4e.js → p-5b460f62.js} +2 -2
- package/dist/components/{p-7d2d4b42.js → p-65a05865.js} +2 -2
- package/dist/components/{p-cc73e2ac.js → p-6e9df8dd.js} +2 -2
- package/dist/components/{p-4bfb71e5.js → p-75612e20.js} +3 -3
- package/dist/components/{p-f43af9a3.js → p-8921cb9c.js} +2 -2
- package/dist/components/p-8bbea05f.js +153 -0
- package/dist/components/{p-44bcedca.js → p-92423544.js} +2 -2
- package/dist/components/{p-dc1f5043.js → p-95722fb3.js} +2 -2
- package/dist/components/{p-2b5669f6.js → p-99746f8e.js} +1 -1
- package/dist/components/{p-733ef05a.js → p-9b4b062e.js} +7 -7
- package/dist/components/{p-a81878c9.js → p-a0f69423.js} +2 -2
- package/dist/components/{p-c11a2525.js → p-a1135d10.js} +2 -2
- package/dist/components/{p-36208112.js → p-a25b08b6.js} +7 -7
- package/dist/components/{p-461e1a38.js → p-a2c27d73.js} +1 -1
- package/dist/components/{p-a9f2bc99.js → p-a31e7e42.js} +3 -3
- package/dist/components/{p-4f89f22a.js → p-a3b7c408.js} +3 -3
- package/dist/components/{p-270c8032.js → p-a830ca83.js} +3 -3
- package/dist/components/{p-25b93e8f.js → p-aa122c92.js} +1 -1
- package/dist/components/{p-e808ca9d.js → p-aedb4093.js} +1 -1
- package/dist/components/{p-44201f97.js → p-b6841a9b.js} +1 -1
- package/dist/components/{p-c88f1bfe.js → p-bac1705f.js} +3 -3
- package/dist/components/{p-0dc71304.js → p-c29a45f3.js} +10 -10
- package/dist/components/{p-f7fedf70.js → p-c2ea4c67.js} +3 -3
- package/dist/components/{p-385320e5.js → p-c4f77126.js} +3 -3
- package/dist/components/{p-ebae7914.js → p-c6284dbe.js} +14 -9
- package/dist/components/{p-0f23d911.js → p-c9cc0a5b.js} +6 -6
- package/dist/components/{p-821f17ff.js → p-d21c7be3.js} +1 -1
- package/dist/components/{p-4f2ae6bc.js → p-d298006c.js} +1 -1
- package/dist/components/{p-11d7e1f9.js → p-d2a4570d.js} +18 -5
- package/dist/components/{p-0c695d78.js → p-d2c3076d.js} +2 -2
- package/dist/components/{p-6d1d2938.js → p-e9cec2be.js} +1 -1
- package/dist/components/{p-3b54553d.js → p-ec4cea27.js} +89 -57
- package/dist/components/{p-758be5ce.js → p-f2402ed7.js} +2 -2
- package/dist/components/{p-814f84c9.js → p-f259ef5f.js} +13 -8
- package/dist/components/{p-00489f30.js → p-f4c5337a.js} +2 -2
- package/dist/components/{p-cabfa2a5.js → p-f5f56fe1.js} +8 -8
- 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 +5 -5
- 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 +3 -3
- 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 +185 -48
- 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 +20 -14
- package/dist/components/tet-colors.js +5 -5
- package/dist/components/tet-compare-card-v2.js +9 -9
- 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 +9 -9
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-counter.js +1 -1
- package/dist/components/tet-customer-assets.js +9 -9
- 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 +4 -4
- package/dist/components/tet-expandable-input.js +3 -3
- package/dist/components/tet-expansion-panel.js +2 -2
- package/dist/components/tet-feedback-form.js +7 -7
- package/dist/components/tet-filter.js +4 -4
- package/dist/components/tet-floating-block.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/components/tet-link.js +2 -2
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +10 -10
- package/dist/components/tet-menu-mobile.js +2 -2
- package/dist/components/tet-menu.js +2 -2
- package/dist/components/tet-multi-step-dialog.js +5 -5
- 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 +6 -6
- package/dist/components/tet-round-stepper.js +2 -2
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-badge.js +1 -1
- 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 +3 -3
- 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 +5 -5
- package/dist/components/tet-thank-you-view-v3.js +5 -5
- package/dist/components/tet-thank-you-view.js +4 -4
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +1 -1
- package/dist/components/tet-tv-gift-list.js +2 -2
- 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 -5
- 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 +3 -3
- package/dist/esm/tet-address-offers-view.entry.js +4 -4
- package/dist/esm/tet-address-offers_4.entry.js +7 -7
- package/dist/esm/tet-address-search.entry.js +4 -4
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
- package/dist/esm/tet-autocomplete.entry.js +1 -1
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
- 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 +1 -1
- 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 +2 -2
- package/dist/esm/tet-card-list.entry.js +1 -1
- package/dist/esm/tet-carousel.entry.js +178 -45
- package/dist/esm/tet-checkbox.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +3 -3
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-contact-form.entry.js +5 -5
- 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 +1 -1
- package/dist/esm/tet-customer-assets.entry.js +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- 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 +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 +1 -1
- 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 +6 -6
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/tet-radio.entry.js +1 -1
- package/dist/esm/tet-range-slider.entry.js +8 -8
- package/dist/esm/tet-referral.entry.js +5 -5
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-snicker-card-badge.entry.js +1 -1
- 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 +75 -53
- package/dist/esm/tet-stepper-v2.entry.js +1 -1
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-stepper.entry.js +1 -1
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-tab-header.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +3 -3
- 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-v2.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/tet-thank-you-view.entry.js +1 -1
- package/dist/esm/tet-tv-gift-block.entry.js +1 -1
- package/dist/esm/tet-tv-gift-list.entry.js +1 -1
- 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-55be4b32.entry.js → p-01cbb74c.entry.js} +1 -1
- package/dist/tet-components/{p-dc5b2828.entry.js → p-0614c980.entry.js} +1 -1
- package/dist/tet-components/{p-4967b041.entry.js → p-08569f07.entry.js} +1 -1
- package/dist/tet-components/{p-79700f85.entry.js → p-0bda3eeb.entry.js} +1 -1
- package/dist/tet-components/{p-5391d594.entry.js → p-0bf60061.entry.js} +1 -1
- package/dist/tet-components/{p-03159225.entry.js → p-0d2c26f6.entry.js} +1 -1
- package/dist/tet-components/{p-7a3c1254.entry.js → p-127b2895.entry.js} +1 -1
- package/dist/tet-components/{p-26b112a2.entry.js → p-12f975ff.entry.js} +1 -1
- package/dist/tet-components/{p-2a43ccef.entry.js → p-14c15a69.entry.js} +1 -1
- package/dist/tet-components/{p-c13b2ba7.entry.js → p-1765c8c5.entry.js} +1 -1
- package/dist/tet-components/{p-040c0f07.entry.js → p-1a05c222.entry.js} +1 -1
- package/dist/tet-components/p-1ab14ba0.entry.js +1 -0
- package/dist/tet-components/{p-4e58c5e2.entry.js → p-1b976fcb.entry.js} +1 -1
- package/dist/tet-components/{p-1024ee6b.entry.js → p-1ea5d4bf.entry.js} +1 -1
- package/dist/tet-components/{p-bcca51cc.entry.js → p-1f5ed76c.entry.js} +1 -1
- package/dist/tet-components/{p-5ce2274d.entry.js → p-22c2b9f8.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-be3a10d0.entry.js → p-24df18b9.entry.js} +1 -1
- package/dist/tet-components/{p-d9560c74.entry.js → p-24e724eb.entry.js} +1 -1
- package/dist/tet-components/{p-f6916bfc.entry.js → p-265701de.entry.js} +1 -1
- package/dist/tet-components/p-27a27a6f.entry.js +1 -0
- package/dist/tet-components/{p-b0fc3440.entry.js → p-2a558830.entry.js} +1 -1
- package/dist/tet-components/{p-04f6f0c8.entry.js → p-2a973b3c.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-629a9a5d.entry.js → p-32488c4e.entry.js} +1 -1
- package/dist/tet-components/{p-778c46a6.js → p-3ac57578.js} +1 -1
- package/dist/tet-components/{p-0c85ece1.entry.js → p-3b3fdcb0.entry.js} +1 -1
- package/dist/tet-components/{p-3fc6a020.entry.js → p-3b5e9fed.entry.js} +1 -1
- package/dist/tet-components/{p-f81b3bb0.js → p-4213c1d1.js} +1 -1
- package/dist/tet-components/{p-ee3604eb.entry.js → p-43eff59d.entry.js} +1 -1
- package/dist/tet-components/{p-991f4f18.entry.js → p-49779ee5.entry.js} +1 -1
- package/dist/tet-components/{p-7b8a1e9e.entry.js → p-49da8f23.entry.js} +1 -1
- package/dist/tet-components/{p-81db4c30.entry.js → p-4d7f1c6e.entry.js} +1 -1
- package/dist/tet-components/{p-7c7fb42f.entry.js → p-4d935fc8.entry.js} +1 -1
- package/dist/tet-components/{p-73411459.entry.js → p-4fc641da.entry.js} +1 -1
- package/dist/tet-components/{p-122f3d3c.entry.js → p-548d7cc1.entry.js} +1 -1
- package/dist/tet-components/{p-eb814bc7.entry.js → p-54cc6dd2.entry.js} +1 -1
- package/dist/tet-components/{p-f63abf74.entry.js → p-55ded3a8.entry.js} +1 -1
- package/dist/tet-components/{p-71018cb8.entry.js → p-581b1f01.entry.js} +1 -1
- package/dist/tet-components/{p-ce850061.entry.js → p-589e8e4b.entry.js} +1 -1
- package/dist/tet-components/{p-5845a3dc.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-5a6fc34c.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-8bfd498e.entry.js → p-63f6def9.entry.js} +1 -1
- package/dist/tet-components/p-660bdc27.js +1 -0
- package/dist/tet-components/{p-4fec6598.entry.js → p-687e922e.entry.js} +1 -1
- package/dist/tet-components/{p-c10d5369.entry.js → p-6c6cd148.entry.js} +1 -1
- package/dist/tet-components/{p-cf11c4cd.entry.js → p-6c6fe82b.entry.js} +1 -1
- package/dist/tet-components/{p-ae8ff573.entry.js → p-6cf6894d.entry.js} +1 -1
- package/dist/tet-components/p-6e06eb15.entry.js +1 -0
- package/dist/tet-components/{p-76526271.entry.js → p-6fb8c506.entry.js} +1 -1
- package/dist/tet-components/{p-32ece6e1.entry.js → p-6ffacde3.entry.js} +1 -1
- package/dist/tet-components/{p-fcd61f09.entry.js → p-70bdb222.entry.js} +1 -1
- package/dist/tet-components/{p-fa446e53.entry.js → p-70cec2eb.entry.js} +1 -1
- package/dist/tet-components/{p-0ebbf5ef.js → p-726651bc.js} +1 -1
- package/dist/tet-components/{p-46975ec4.entry.js → p-73c190a2.entry.js} +1 -1
- package/dist/tet-components/{p-ed044f47.entry.js → p-79ee95e0.entry.js} +1 -1
- package/dist/tet-components/{p-22e89e25.entry.js → p-7a9db071.entry.js} +1 -1
- package/dist/tet-components/{p-b822a377.entry.js → p-7bd6f009.entry.js} +1 -1
- package/dist/tet-components/{p-c66f4833.entry.js → p-835c7ee4.entry.js} +1 -1
- package/dist/tet-components/{p-3a3fd77f.entry.js → p-839ae15f.entry.js} +1 -1
- package/dist/tet-components/{p-f207db98.entry.js → p-8574b729.entry.js} +1 -1
- package/dist/tet-components/{p-25f6d66d.entry.js → p-86b8ce79.entry.js} +1 -1
- package/dist/tet-components/{p-10e72480.entry.js → p-8b93b91f.entry.js} +1 -1
- package/dist/tet-components/{p-f5d4d8c8.entry.js → p-8fae4e03.entry.js} +1 -1
- package/dist/tet-components/{p-f16514db.entry.js → p-9bd457d2.entry.js} +1 -1
- package/dist/tet-components/{p-a8051a99.js → p-a476fd02.js} +1 -1
- package/dist/tet-components/{p-565e9d34.entry.js → p-a64706a6.entry.js} +1 -1
- package/dist/tet-components/{p-0d5562a1.entry.js → p-af86e2dc.entry.js} +1 -1
- package/dist/tet-components/{p-f68450a4.entry.js → p-b22de340.entry.js} +1 -1
- package/dist/tet-components/{p-6b4c6447.entry.js → p-b29111f0.entry.js} +1 -1
- package/dist/tet-components/{p-ce4b6943.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-7de684c1.entry.js → p-b61304cf.entry.js} +1 -1
- package/dist/tet-components/{p-1fd2adaf.js → p-b92dff8a.js} +1 -1
- package/dist/tet-components/{p-23130318.entry.js → p-c094dfd6.entry.js} +1 -1
- package/dist/tet-components/{p-fdc09ded.entry.js → p-c1b9f3f1.entry.js} +1 -1
- package/dist/tet-components/{p-9c36ecbd.entry.js → p-c76a4457.entry.js} +1 -1
- package/dist/tet-components/{p-62eb3efd.entry.js → p-c87aa965.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-cc99e827.entry.js +1 -0
- package/dist/tet-components/{p-b4ecbc40.entry.js → p-d028d7c4.entry.js} +1 -1
- package/dist/tet-components/{p-39796998.entry.js → p-d3db997e.entry.js} +1 -1
- package/dist/tet-components/{p-27f8f84e.entry.js → p-d76479dc.entry.js} +1 -1
- package/dist/tet-components/{p-62bcf382.entry.js → p-df99dc91.entry.js} +1 -1
- package/dist/tet-components/{p-a64e3e96.entry.js → p-e74416dc.entry.js} +1 -1
- package/dist/tet-components/{p-0256e74f.entry.js → p-ec1e970f.entry.js} +1 -1
- package/dist/tet-components/{p-c9f21fde.entry.js → p-ec5b1040.entry.js} +1 -1
- package/dist/tet-components/{p-1d0c3563.entry.js → p-ef84df23.entry.js} +1 -1
- package/dist/tet-components/{p-2738fbb7.entry.js → p-efc8d952.entry.js} +1 -1
- package/dist/tet-components/{p-2328b1d4.entry.js → p-f9c98275.entry.js} +1 -1
- package/dist/tet-components/{p-acd8d8bd.entry.js → p-fa67ec09.entry.js} +1 -1
- package/dist/tet-components/{p-26eb119d.entry.js → p-fdd44094.entry.js} +1 -1
- package/dist/tet-components/p-fe7dab47.entry.js +1 -0
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/basic/carousel/tet-carousel/tet-carousel.d.ts +39 -10
- package/dist/types/components/simple/inputs/tet-stepper-input/tet-stepper-input.d.ts +32 -54
- package/dist/types/components.d.ts +50 -26
- package/package.json +1 -1
- package/dist/components/p-533388cb.js +0 -153
- package/dist/components/p-713fff27.js +0 -15
- package/dist/tet-components/p-10d6af5d.entry.js +0 -1
- package/dist/tet-components/p-35114d81.entry.js +0 -1
- package/dist/tet-components/p-6d58ffac.entry.js +0 -1
- package/dist/tet-components/p-ec10d364.entry.js +0 -1
- package/dist/tet-components/p-ed28b055.entry.js +0 -1
- package/dist/tet-components/p-f81d95ae.js +0 -1
|
@@ -6,30 +6,76 @@ export class TetCarousel {
|
|
|
6
6
|
this.dotCount = 0;
|
|
7
7
|
this.totalItems = 0;
|
|
8
8
|
this.activeItem = 0;
|
|
9
|
-
this.theme = 'light';
|
|
10
9
|
this.isDragging = false;
|
|
11
10
|
this.dragOffset = 0;
|
|
11
|
+
this.isNudgeAnimating = false;
|
|
12
|
+
this.theme = 'light';
|
|
12
13
|
this.showDots = true;
|
|
13
14
|
this.showGradient = false;
|
|
14
15
|
this.showButtons = true;
|
|
15
16
|
this.transitionDuration = 500;
|
|
16
17
|
this.swipeThreshold = 32;
|
|
17
|
-
this.transitionTiming = '
|
|
18
|
+
this.transitionTiming = 'ease-out';
|
|
18
19
|
this.buttonIconLeft = 'arrow-left';
|
|
19
20
|
this.buttonIconRight = 'arrow-right';
|
|
20
21
|
this.maxDots = 8;
|
|
21
22
|
this.label = undefined;
|
|
23
|
+
this.nudgeAnimationInterval = 0;
|
|
22
24
|
this.language = 'lv';
|
|
23
25
|
}
|
|
26
|
+
static NUDGE_DISTANCE_PX = 16;
|
|
27
|
+
static NUDGE_IDLE_THRESHOLD_MS = 1500;
|
|
28
|
+
static GRADIENT_VISIBILITY_THRESHOLD_PX = 1;
|
|
24
29
|
draggedAnchor = null;
|
|
25
30
|
dragMoved = false;
|
|
26
31
|
dragPointerStartX = 0;
|
|
32
|
+
dragStartX = 0;
|
|
33
|
+
nudgeTimeoutId;
|
|
34
|
+
nudgeGradientRafId;
|
|
35
|
+
lastInteractionAt = 0;
|
|
27
36
|
trackElement = null;
|
|
37
|
+
trackContentElement = null;
|
|
28
38
|
container;
|
|
29
|
-
|
|
39
|
+
leftGradientRef;
|
|
40
|
+
rightGradientRef;
|
|
41
|
+
slotObserver;
|
|
30
42
|
async onLanguageChange(language) {
|
|
31
43
|
processTranslations('tet-components', language).then(() => forceUpdate(this));
|
|
32
44
|
}
|
|
45
|
+
checkGradient() {
|
|
46
|
+
if (this.showGradient) {
|
|
47
|
+
const absOffset = Math.abs(this.getRealDragOffset());
|
|
48
|
+
const wrapperWidth = this.getViewportWidth();
|
|
49
|
+
const totalWidth = this.getSlotClientWidth();
|
|
50
|
+
const rightEdgeDistance = totalWidth - absOffset - wrapperWidth;
|
|
51
|
+
if (rightEdgeDistance >= 0) {
|
|
52
|
+
const rightEdge = rightEdgeDistance < TetCarousel.GRADIENT_VISIBILITY_THRESHOLD_PX;
|
|
53
|
+
if (absOffset < TetCarousel.GRADIENT_VISIBILITY_THRESHOLD_PX) {
|
|
54
|
+
this.leftGradientRef.style.opacity = '0';
|
|
55
|
+
this.rightGradientRef.style.opacity = '1';
|
|
56
|
+
}
|
|
57
|
+
else if (rightEdge) {
|
|
58
|
+
this.leftGradientRef.style.opacity = '1';
|
|
59
|
+
this.rightGradientRef.style.opacity = '0';
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
this.leftGradientRef.style.opacity = '1';
|
|
63
|
+
this.rightGradientRef.style.opacity = '1';
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
this.leftGradientRef.style.opacity = '0';
|
|
69
|
+
this.rightGradientRef.style.opacity = '0';
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
onNudgeAnimIntervalChange() {
|
|
73
|
+
this.syncNudgeSchedule();
|
|
74
|
+
}
|
|
75
|
+
onNudgeAnimationStateChange() {
|
|
76
|
+
this.syncNudgeGradientLoop();
|
|
77
|
+
this.checkGradient();
|
|
78
|
+
}
|
|
33
79
|
componentWillLoad() {
|
|
34
80
|
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
35
81
|
}
|
|
@@ -94,33 +140,20 @@ export class TetCarousel {
|
|
|
94
140
|
}
|
|
95
141
|
return count;
|
|
96
142
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
this.leftGradientRef.style.opacity = '0';
|
|
109
|
-
this.rightGradientRef.style.opacity = '1';
|
|
110
|
-
}
|
|
111
|
-
else if (rightEdge) {
|
|
112
|
-
this.leftGradientRef.style.opacity = '1';
|
|
113
|
-
this.rightGradientRef.style.opacity = '0';
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
this.leftGradientRef.style.opacity = '1';
|
|
117
|
-
this.rightGradientRef.style.opacity = '1';
|
|
118
|
-
}
|
|
119
|
-
}
|
|
143
|
+
getRealDragOffset() {
|
|
144
|
+
return this.dragOffset + this.getCurrentNudgeTranslateX();
|
|
145
|
+
}
|
|
146
|
+
getCurrentNudgeTranslateX() {
|
|
147
|
+
if (!this.isNudgeAnimating || !this.trackContentElement)
|
|
148
|
+
return 0;
|
|
149
|
+
const transform = getComputedStyle(this.trackContentElement).transform;
|
|
150
|
+
if (!transform || transform === 'none')
|
|
151
|
+
return 0;
|
|
152
|
+
try {
|
|
153
|
+
return new DOMMatrixReadOnly(transform).m41 || 0;
|
|
120
154
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
this.rightGradientRef.style.opacity = '0';
|
|
155
|
+
catch {
|
|
156
|
+
return 0;
|
|
124
157
|
}
|
|
125
158
|
}
|
|
126
159
|
getDotCount() {
|
|
@@ -147,6 +180,7 @@ export class TetCarousel {
|
|
|
147
180
|
}
|
|
148
181
|
};
|
|
149
182
|
handlePrev = () => {
|
|
183
|
+
this.registerUserInteraction();
|
|
150
184
|
if (this.activeItem <= 0)
|
|
151
185
|
return;
|
|
152
186
|
this.afterLayout(() => {
|
|
@@ -161,6 +195,7 @@ export class TetCarousel {
|
|
|
161
195
|
});
|
|
162
196
|
};
|
|
163
197
|
handleNext = () => {
|
|
198
|
+
this.registerUserInteraction();
|
|
164
199
|
if (this.activeItem >= this.totalItems - 1)
|
|
165
200
|
return;
|
|
166
201
|
this.afterLayout(() => {
|
|
@@ -205,6 +240,7 @@ export class TetCarousel {
|
|
|
205
240
|
return { item: assigned[0], index: 0 };
|
|
206
241
|
};
|
|
207
242
|
handleDotClick = (idx) => {
|
|
243
|
+
this.registerUserInteraction();
|
|
208
244
|
this.activeDotIndex = idx;
|
|
209
245
|
const totalWidth = this.getSlotClientWidth();
|
|
210
246
|
let targetDragOffset = 0;
|
|
@@ -229,6 +265,7 @@ export class TetCarousel {
|
|
|
229
265
|
}
|
|
230
266
|
};
|
|
231
267
|
onPointerDown = (e) => {
|
|
268
|
+
this.registerUserInteraction();
|
|
232
269
|
e.preventDefault();
|
|
233
270
|
e.stopPropagation();
|
|
234
271
|
e.stopImmediatePropagation();
|
|
@@ -252,6 +289,7 @@ export class TetCarousel {
|
|
|
252
289
|
onPointerMove = (e) => {
|
|
253
290
|
if (!this.isDragging)
|
|
254
291
|
return;
|
|
292
|
+
this.registerUserInteraction();
|
|
255
293
|
// Only consider this a move (and prevent clicks) when movement exceeds a small threshold.
|
|
256
294
|
const moveDistanceFromStart = Math.abs(e.screenX - this.dragPointerStartX);
|
|
257
295
|
if (!this.dragMoved && moveDistanceFromStart > 5) {
|
|
@@ -275,6 +313,9 @@ export class TetCarousel {
|
|
|
275
313
|
}
|
|
276
314
|
};
|
|
277
315
|
onPointerUp = (e) => {
|
|
316
|
+
if (!this.isDragging)
|
|
317
|
+
return;
|
|
318
|
+
this.registerUserInteraction();
|
|
278
319
|
if (this.trackElement) {
|
|
279
320
|
try {
|
|
280
321
|
this.trackElement.releasePointerCapture?.(e.pointerId);
|
|
@@ -331,8 +372,8 @@ export class TetCarousel {
|
|
|
331
372
|
this.addAnchorFocusListeners();
|
|
332
373
|
this.checkGradient();
|
|
333
374
|
this.initSlotListeners();
|
|
375
|
+
this.syncNudgeSchedule();
|
|
334
376
|
}
|
|
335
|
-
slotObserver;
|
|
336
377
|
handleSlotChange() {
|
|
337
378
|
this.getDotCount();
|
|
338
379
|
this.checkGradient();
|
|
@@ -379,10 +420,95 @@ export class TetCarousel {
|
|
|
379
420
|
});
|
|
380
421
|
anchors.forEach((a, index) => {
|
|
381
422
|
a.addEventListener('focus', () => {
|
|
423
|
+
this.registerUserInteraction();
|
|
382
424
|
this.moveToItem(a, index);
|
|
383
425
|
});
|
|
384
426
|
});
|
|
385
427
|
}
|
|
428
|
+
startNudgeGradientLoop() {
|
|
429
|
+
if (this.nudgeGradientRafId)
|
|
430
|
+
return;
|
|
431
|
+
const step = () => {
|
|
432
|
+
this.checkGradient();
|
|
433
|
+
if (!this.isNudgeAnimating) {
|
|
434
|
+
this.nudgeGradientRafId = undefined;
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
this.nudgeGradientRafId = requestAnimationFrame(step);
|
|
438
|
+
};
|
|
439
|
+
this.nudgeGradientRafId = requestAnimationFrame(step);
|
|
440
|
+
}
|
|
441
|
+
stopNudgeGradientLoop() {
|
|
442
|
+
if (!this.nudgeGradientRafId)
|
|
443
|
+
return;
|
|
444
|
+
cancelAnimationFrame(this.nudgeGradientRafId);
|
|
445
|
+
this.nudgeGradientRafId = undefined;
|
|
446
|
+
}
|
|
447
|
+
syncNudgeGradientLoop() {
|
|
448
|
+
if (this.isNudgeAnimating) {
|
|
449
|
+
this.startNudgeGradientLoop();
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
this.stopNudgeGradientLoop();
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
registerUserInteraction() {
|
|
456
|
+
this.lastInteractionAt = Date.now();
|
|
457
|
+
if (this.stopNudgeAnimation()) {
|
|
458
|
+
this.scheduleNextNudge();
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
hasRecentInteraction() {
|
|
462
|
+
if (!this.lastInteractionAt)
|
|
463
|
+
return false;
|
|
464
|
+
return Date.now() - this.lastInteractionAt < TetCarousel.NUDGE_IDLE_THRESHOLD_MS;
|
|
465
|
+
}
|
|
466
|
+
isRightNavigationDisabled() {
|
|
467
|
+
return this.dotCount <= 1 || this.activeItem === this.totalItems - 1 || this.isLastViewport(-this.dragOffset);
|
|
468
|
+
}
|
|
469
|
+
isNudgeEligible() {
|
|
470
|
+
return !!this.trackElement && !this.isDragging && !this.isNudgeAnimating && !this.hasRecentInteraction() && !this.isRightNavigationDisabled();
|
|
471
|
+
}
|
|
472
|
+
scheduleNextNudge() {
|
|
473
|
+
if (this.nudgeAnimationInterval <= 0)
|
|
474
|
+
return;
|
|
475
|
+
this.clearNudgeTimeout();
|
|
476
|
+
this.nudgeTimeoutId = setTimeout(() => {
|
|
477
|
+
this.nudgeTimeoutId = undefined;
|
|
478
|
+
if (this.isNudgeEligible()) {
|
|
479
|
+
this.isNudgeAnimating = true;
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
this.scheduleNextNudge();
|
|
483
|
+
}, this.nudgeAnimationInterval);
|
|
484
|
+
}
|
|
485
|
+
onNudgeAnimationEnd = (event) => {
|
|
486
|
+
if (event.animationName === 'tet-carousel-nudge') {
|
|
487
|
+
this.stopNudgeAnimation();
|
|
488
|
+
this.scheduleNextNudge();
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
stopNudgeAnimation() {
|
|
492
|
+
const wasAnimating = this.isNudgeAnimating;
|
|
493
|
+
if (wasAnimating) {
|
|
494
|
+
this.isNudgeAnimating = false;
|
|
495
|
+
}
|
|
496
|
+
return wasAnimating;
|
|
497
|
+
}
|
|
498
|
+
clearNudgeTimeout() {
|
|
499
|
+
if (this.nudgeTimeoutId) {
|
|
500
|
+
clearTimeout(this.nudgeTimeoutId);
|
|
501
|
+
this.nudgeTimeoutId = undefined;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
stopNudgeSchedule() {
|
|
505
|
+
this.clearNudgeTimeout();
|
|
506
|
+
this.stopNudgeAnimation();
|
|
507
|
+
}
|
|
508
|
+
syncNudgeSchedule() {
|
|
509
|
+
this.stopNudgeSchedule();
|
|
510
|
+
this.scheduleNextNudge();
|
|
511
|
+
}
|
|
386
512
|
clampDotIndex(dotIndex) {
|
|
387
513
|
return Math.max(0, Math.min(dotIndex, this.dotCount - 1));
|
|
388
514
|
}
|
|
@@ -414,6 +540,8 @@ export class TetCarousel {
|
|
|
414
540
|
}
|
|
415
541
|
}
|
|
416
542
|
disconnectedCallback() {
|
|
543
|
+
this.stopNudgeSchedule();
|
|
544
|
+
this.stopNudgeGradientLoop();
|
|
417
545
|
window.removeEventListener('resize', this.getDotCount.bind(this));
|
|
418
546
|
const slot = this.container?.querySelector('slot');
|
|
419
547
|
if (slot) {
|
|
@@ -427,28 +555,31 @@ export class TetCarousel {
|
|
|
427
555
|
document.removeEventListener('pointerup', this.onPointerUp);
|
|
428
556
|
}
|
|
429
557
|
render() {
|
|
430
|
-
return (h(Host, { key: '
|
|
558
|
+
return (h(Host, { key: '3a7b181e4c8a1d19777a39ca77197199452e12b5' }, h("div", { key: 'f5830e6a8158c0ae5ffddd3cde678223b8e1b51a', class: { 'tet-carousel': true, [`${this.theme}`]: true }, ref: (el) => (this.container = el), part: "carousel" }, h("div", { key: '77031caf2348f1a06e757096192cdaa7cadaf3cc', class: "tet-carousel__container" }, h("div", { key: 'd514790264ef2b4a7faf66ef9932871525db053a', class: "tet-carousel__gradient-left", ref: (el) => {
|
|
431
559
|
this.leftGradientRef = el;
|
|
432
|
-
} }), h("div", { key: '
|
|
560
|
+
} }), h("div", { key: 'ced61d4ccfcc5de268ba1da71bccff32ad8ec9f6', class: "tet-carousel__gradient-right", ref: (el) => {
|
|
433
561
|
this.rightGradientRef = el;
|
|
434
|
-
} }), h("div", { key: '
|
|
562
|
+
} }), h("div", { key: 'd76b0c1211165a3ee32adfec02cc109b7d296307', class: `tet-carousel__track ${!this._showButtons() && !this._showDots() ? 'tet-carousel__track--center' : ''}`, ref: (el) => (this.trackElement = el), style: {
|
|
435
563
|
transform: `translateX(${this.dragOffset}px)`,
|
|
436
564
|
transition: this.isDragging ? 'none' : `transform ${this.transitionDuration}ms ${this.transitionTiming}`
|
|
437
|
-
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("
|
|
565
|
+
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("div", { key: '874945906359997e34b179988f05b33d4300b4ae', class: {
|
|
566
|
+
'tet-carousel__track-content': true,
|
|
567
|
+
'tet-carousel__track-content--nudge': this.isNudgeAnimating
|
|
568
|
+
}, ref: (el) => (this.trackContentElement = el), style: {
|
|
569
|
+
'--tet-carousel-nudge-distance': `${TetCarousel.NUDGE_DISTANCE_PX}px`
|
|
570
|
+
}, onAnimationEnd: this.onNudgeAnimationEnd }, h("slot", { key: 'c714dd8072438aae03661de4d3dc689fb471e412' })))), !!this.label && h("div", { key: '28a233d7c5c7799b0dc505e83616da798deb970c', class: "tet-carousel__label" }, this.label), (this._showButtons() || this._showDots()) && (h("div", { key: 'e84c35e48571aa85420686a5e608135610103571', class: "tet-carousel__controls" }, this._showButtons() && (h("div", { key: '3222b45cfd3a37deb7a4a572d0523044be1eb1f5', class: "tet-carousel__buttons tet-carousel__buttons--mobile" }, h("tet-button", { key: 'a296a74cbbecb955d378de5e9ba04c6ef1a4a74f', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
438
571
|
if (!this.isDragging)
|
|
439
572
|
this.handlePrev();
|
|
440
|
-
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }))), this._showDots() && (h("div", { key: '
|
|
573
|
+
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }))), this._showDots() && (h("div", { key: 'e205c6a0354ab7a66985759dd95f6f0aa086bba0', class: "tet-carousel__dots" }, Array.from({ length: this.dotCount }).map((_, idx) => (h("button", { type: "button", tabIndex: -1, class: `tet-carousel__dot${idx === this.activeDotIndex ? ' active' : ''}`, key: idx, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
441
574
|
if (!this.isDragging)
|
|
442
575
|
this.handleDotClick(idx);
|
|
443
|
-
}, onClick: () => this.handleDotClick(idx) }))))), this._showButtons() && (h("div", { key: '
|
|
576
|
+
}, onClick: () => this.handleDotClick(idx) }))))), this._showButtons() && (h("div", { key: 'ff9081c15d417e870db6e5e82f030bc031310027', class: "tet-carousel__buttons" }, h("tet-button", { key: '279bac2814813a2ce35308d556bca341f1b4a3bb', class: "tet-carousel__buttons--desktop", theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
444
577
|
if (!this.isDragging)
|
|
445
578
|
this.handlePrev();
|
|
446
|
-
},
|
|
579
|
+
}, accessibilityLabel: t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }), h("tet-button", { key: '320adc13d425ca84c26ef2d1cc7001220ce7d9c4', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconRight, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
447
580
|
if (!this.isDragging)
|
|
448
581
|
this.handleNext();
|
|
449
|
-
},
|
|
450
|
-
this.activeItem === this.totalItems - 1 ||
|
|
451
|
-
this.isLastViewport(-this.dragOffset) }))))))));
|
|
582
|
+
}, accessibilityLabel: t('components-carousel-next'), disabled: this.isRightNavigationDisabled() }))))))));
|
|
452
583
|
}
|
|
453
584
|
static get is() { return "tet-carousel"; }
|
|
454
585
|
static get encapsulation() { return "shadow"; }
|
|
@@ -588,7 +719,7 @@ export class TetCarousel {
|
|
|
588
719
|
},
|
|
589
720
|
"attribute": "transition-timing",
|
|
590
721
|
"reflect": false,
|
|
591
|
-
"defaultValue": "'
|
|
722
|
+
"defaultValue": "'ease-out'"
|
|
592
723
|
},
|
|
593
724
|
"buttonIconLeft": {
|
|
594
725
|
"type": "string",
|
|
@@ -656,11 +787,29 @@ export class TetCarousel {
|
|
|
656
787
|
"optional": true,
|
|
657
788
|
"docs": {
|
|
658
789
|
"tags": [],
|
|
659
|
-
"text": "
|
|
790
|
+
"text": "Label for the carousel."
|
|
660
791
|
},
|
|
661
792
|
"attribute": "label",
|
|
662
793
|
"reflect": false
|
|
663
794
|
},
|
|
795
|
+
"nudgeAnimationInterval": {
|
|
796
|
+
"type": "number",
|
|
797
|
+
"mutable": false,
|
|
798
|
+
"complexType": {
|
|
799
|
+
"original": "number",
|
|
800
|
+
"resolved": "number",
|
|
801
|
+
"references": {}
|
|
802
|
+
},
|
|
803
|
+
"required": false,
|
|
804
|
+
"optional": false,
|
|
805
|
+
"docs": {
|
|
806
|
+
"tags": [],
|
|
807
|
+
"text": "Interval for the nudge animation in milliseconds."
|
|
808
|
+
},
|
|
809
|
+
"attribute": "nudge-animation-interval",
|
|
810
|
+
"reflect": false,
|
|
811
|
+
"defaultValue": "0"
|
|
812
|
+
},
|
|
664
813
|
"language": {
|
|
665
814
|
"type": "string",
|
|
666
815
|
"mutable": false,
|
|
@@ -694,7 +843,8 @@ export class TetCarousel {
|
|
|
694
843
|
"totalItems": {},
|
|
695
844
|
"activeItem": {},
|
|
696
845
|
"isDragging": {},
|
|
697
|
-
"dragOffset": {}
|
|
846
|
+
"dragOffset": {},
|
|
847
|
+
"isNudgeAnimating": {}
|
|
698
848
|
};
|
|
699
849
|
}
|
|
700
850
|
static get watchers() {
|
|
@@ -707,6 +857,12 @@ export class TetCarousel {
|
|
|
707
857
|
}, {
|
|
708
858
|
"propName": "dragOffset",
|
|
709
859
|
"methodName": "checkGradient"
|
|
860
|
+
}, {
|
|
861
|
+
"propName": "nudgeAnimationInterval",
|
|
862
|
+
"methodName": "onNudgeAnimIntervalChange"
|
|
863
|
+
}, {
|
|
864
|
+
"propName": "isNudgeAnimating",
|
|
865
|
+
"methodName": "onNudgeAnimationStateChange"
|
|
710
866
|
}];
|
|
711
867
|
}
|
|
712
868
|
}
|
|
@@ -50,7 +50,7 @@ export class TetIcon {
|
|
|
50
50
|
};
|
|
51
51
|
shouldUseDefaultColor = () => (this.useDefaultColor || defaultColorIcons.includes(this.name));
|
|
52
52
|
render() {
|
|
53
|
-
return (h("span", { key: '
|
|
53
|
+
return (h("span", { key: 'ed320686c17d5866f26d5f418f328c6948d3640f', class: "icon-wrapper", tabindex: (this.focusable || this.accessibilityLabel) ? 0 : -1 }, h("span", { key: '8d5eb263eba6ce33576caff437625d5f021f9b19', class: {
|
|
54
54
|
'icon-container': true,
|
|
55
55
|
'default-color': this.shouldUseDefaultColor(),
|
|
56
56
|
[this.theme]: true,
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TetLoader {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '85b2d0e291d3ef70af1e83c6adba5ace485b9010', class: "loader" }, h("div", { key: '962714060397a7dec7af28e046e5cd6533ed4505', class: "loader-inner" })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "tet-loader"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class TetPlaceholder {
|
|
|
9
9
|
this.darkTheme = false;
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'f9c9d1dfed194378e90fe06171441b0db34111cd', style: { width: this.width, height: this.height } }, h("div", { key: 'd1f3b190ecfae5bfbb58a4a84901bf6ff7da64dd', class: { 'dark-theme': this.darkTheme } }, h("div", { key: '79e229334a49b944ef89c27e3aefbcd053f2dc9d', class: "placeholder", style: { height: this.height } }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "tet-placeholder"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,13 +48,13 @@ export class TetSpinner {
|
|
|
48
48
|
foreignObject.setAttribute('clip-path', 'url(#clip)');
|
|
49
49
|
};
|
|
50
50
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: 'c5de3ff62bae17c64468e3406729a4c4a3a587f8', ref: element => (this.spinner = element), class: {
|
|
52
52
|
spinner: true,
|
|
53
53
|
[`${this.theme}-theme`]: true,
|
|
54
54
|
[`size--${this.size}`]: true,
|
|
55
55
|
[`spinner--${this.type}`]: true,
|
|
56
|
-
} }, h("svg", { key: '
|
|
57
|
-
0 40 8.9543 40 20ZM6 20C6 27.732 12.268 34 20 34C27.732 34 34 27.732 34 20C34 12.268 27.732 6 20 6C12.268 6 6 12.268 6 20Z` })), h("foreignObject", { key: '
|
|
56
|
+
} }, h("svg", { key: 'acb4ecdbf2a75a47aae09a18a1fa44d8f942b6c5', viewBox: "0 0 40 40" }, h("clipPath", { key: 'f45be4277077512749cd357ec78146d2d180cf46', id: "clip" }, h("path", { key: '4d82466e60d835501e4622ae28e6cc3b90229c33', d: `M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457
|
|
57
|
+
0 40 8.9543 40 20ZM6 20C6 27.732 12.268 34 20 34C27.732 34 34 27.732 34 20C34 12.268 27.732 6 20 6C12.268 6 6 12.268 6 20Z` })), h("foreignObject", { key: '62877b47af730b01ec32cb094b24445c0a4fa328' }, h("div", { key: 'b09da6b267c7dcfee4e17bedd0bc297ffea54ace', class: "spinner__gradient" })))));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "tet-spinner"; }
|
|
60
60
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: 'e126e5919f6be51dc62a20027556a7c0e803f9a4' }, h("div", { key: '08ce2538f49bb446d065eb7e1ca22e43ae732d3d', 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: '7ebcaf67ad4fe0fa7fbab9956bbe5cbe7fc1016c', class: "label-title" }, this.translateTitle ? t(this.labelTitle) : this.labelTitle), this.showIcon && h("tet-icon", { key: 'bcc130874d361d1765c5a0c6b2478e79435f2a63', 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"; }
|
|
@@ -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: 'eabd0fd41ab5d16da4c28f953b040a628c472825', 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: 'a41aabaa5e06a7632874ea12e33ace557989594f', class: "control-button", onClick: () => this.changeDatepickerView() }, this.getControlButtonDate(), h("tet-icon", { key: '6765d3880b0fa9dd11582d4109104d75c8e735e9', 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
|
}
|
|
@@ -159,7 +159,7 @@ export class TetDatepickerMonthView {
|
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
161
|
render() {
|
|
162
|
-
return (h(Host, { key: '
|
|
162
|
+
return (h(Host, { key: '5006dcdcb3b2fb73458d2570ee3e5868e9746bad' }, h("div", { key: '397d63b6868d5f0bf83d78fe0281921b8eff9d3f', class: "weekday-header" }, this.days.map((day) => h("div", { class: "day" }, day))), h("div", { key: 'cb15ac94b2e1500655d0a98216d99b899da83b83', class: "month-dates" }, this.previousMonthPreviewDates.map((date) => h("div", { class: "date-container" }, h("div", { class: "preview-date" }, date.getDate()))), this.monthDates.map(date => h("div", { class: this.getDateContainerClasses(date), onPointerEnter: (event) => this.setInRangeHover(date, event), onPointerLeave: (event) => this.removeInRangeHover(event) }, h("div", { class: this.getDateClasses(date), onClick: () => this.handleDateSelection(date) }, date.getDate()))), this.nextMonthPreviewDates.map((date) => h("div", { class: "date-container" }, h("div", { class: "preview-date" }, date))))));
|
|
163
163
|
}
|
|
164
164
|
static get is() { return "tet-datepicker-month-view"; }
|
|
165
165
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,7 +32,7 @@ export class TetDatepickerMultiYearView {
|
|
|
32
32
|
return { year: true, current: year === currentYear, selected: this.isSelectedYear(year) };
|
|
33
33
|
};
|
|
34
34
|
render() {
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '1015708cc1361091f9cd7e96c771c6d9f14053b3', class: "container" }, this.years.map((year) => h("div", { class: this.getYearClasses(year), onClick: () => this.handleYearSelection(year) }, year))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "tet-datepicker-multi-year-view"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,7 @@ export class TetDatepickerYearView {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: 'c6cebcc616dc7ad4ebe644c37aafd1379ee86867', class: "container" }, this.months.map((month, index) => h("div", { class: "month-container" }, h("div", { class: this.getMonthClasses(index), onClick: () => this.handleMonthSelection(index) }, month)))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "tet-datepicker-year-view"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -100,10 +100,10 @@ export class TetDatepicker {
|
|
|
100
100
|
return { overlay: true, closed: !this.isOpen, 'overlay-effect': this.overlayEffect };
|
|
101
101
|
};
|
|
102
102
|
render() {
|
|
103
|
-
return (h("div", { key: '
|
|
104
|
-
h("tet-datepicker-month-view", { key: '
|
|
105
|
-
h("tet-datepicker-multi-year-view", { key: '
|
|
106
|
-
h("tet-datepicker-year-view", { key: '
|
|
103
|
+
return (h("div", { key: '86dabe383b21b6fda3d4ee7de596c1eb90dcca8f', class: this.getOverlayClasses(), onClick: this.handleDatepickerClose }, h("div", { key: 'd6ab55b8985e2a392f5f3ffbdce0cb53c5a48477', class: "container", ref: (el) => this.datepickerContainer = el }, h("tet-datepicker-header", { key: '179b9fcceddfcfcdaac97b6def9d33d9746c3139', selectedDate: this.date, internalDate: this.internalDate, locale: this.locale, datepickerView: this.datepickerView }), this.datepickerView === 'month' &&
|
|
104
|
+
h("tet-datepicker-month-view", { key: '9c9e0046ca5b1f287cc8464eb01d6a02c19596cf', selectedDate: this.date, internalDate: this.internalDate, rangePickerMode: this.rangePickerMode, rangeDates: this.rangeDates }), this.datepickerView === 'multi-year' &&
|
|
105
|
+
h("tet-datepicker-multi-year-view", { key: '378525502835c38a657722116e9d87ce3b649815', selectedDate: this.date, internalDate: this.internalDate }), this.datepickerView === 'year' &&
|
|
106
|
+
h("tet-datepicker-year-view", { key: '5ad09fb548685b6cd3942d84ed687f848cb03130', selectedDate: this.date, internalDate: this.internalDate }))));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "tet-datepicker"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -760,31 +760,31 @@ export class TetRangeSlider {
|
|
|
760
760
|
return dataListItem;
|
|
761
761
|
};
|
|
762
762
|
render() {
|
|
763
|
-
return (h(Host, { key: '
|
|
763
|
+
return (h(Host, { key: 'ebafef0764cad521f4d0a1ad04bd14ea4b33fc34' }, h("div", { key: 'ac62632dd6025bf34344c97002cfda4435031826', class: {
|
|
764
764
|
'range-slider': true,
|
|
765
765
|
[`range-slider--${this.containerSize}`]: true,
|
|
766
766
|
[`range-slider--${this.type}`]: true,
|
|
767
767
|
'range-slider--no-controls': !this.withControls,
|
|
768
768
|
'range-slider--no-input': !this.withInput,
|
|
769
769
|
[this.theme]: true,
|
|
770
|
-
} }, h("div", { key: '
|
|
770
|
+
} }, h("div", { key: '203a318df8a5f2dcf15fc9b47d5b865ef777ead6', class: {
|
|
771
771
|
'range-slider__input-container': true,
|
|
772
772
|
'hidden': !this.withInput,
|
|
773
|
-
} }, h("tet-input", { key: '
|
|
773
|
+
} }, h("tet-input", { key: '4cd2625ce22bfd189607958ad04b88fa0d2201cb', "input-class": "range-slider__input", "input-type": "number", "input-value": this.currentValue, ref: inputEl => (this.inputRef = inputEl), theme: this.theme, onInput: this.onInputChange, onKeyDown: (event) => this.onInputKeyDown(event, true), accessibilityLabel: this.numberInputAccessibilityLabel, ...(this.containerSize !== 'large' ? { inputTabindex: 3 } : {}) })), h("div", { key: 'acc67a500cd277551c6647dbd2c869ce14791bff', class: "range-slider__container" }, h("tet-button", { key: 'cb81687a384812615e63bbe81836a73b6ebbc113', theme: this.theme, iconMode: true, class: {
|
|
774
774
|
'range-slider__control': true,
|
|
775
775
|
'range-slider__control--left': true,
|
|
776
776
|
'hidden': !this.withControls,
|
|
777
|
-
}, clickCallback: this.onControlPreviousClick, ...(this.reduceButtonAccessibilityLabel ? { accessibilityLabel: this.reduceButtonAccessibilityLabel } : {}), ...(this.containerSize !== 'large' ? { tabindex: 2 } : {}) }, h("tet-icon", { key: '
|
|
777
|
+
}, clickCallback: this.onControlPreviousClick, ...(this.reduceButtonAccessibilityLabel ? { accessibilityLabel: this.reduceButtonAccessibilityLabel } : {}), ...(this.containerSize !== 'large' ? { tabindex: 2 } : {}) }, h("tet-icon", { key: 'be6a56e0ff20488516c1c1ab1ebf094efd9b0bb1', name: "remove", class: "range-slider__control--icon" })), h("div", { key: 'eb3ec7776668b7ebeaa0d99bf2f59a76f0d939a5', onTouchStart: this.onContainerTouchStart, onTouchEnd: this.onContainerTouchEnd, onMouseDown: this.onContainerMouseDown, onScroll: this.onContainerScroll, ref: sliderContainerEl => (this.sliderContainerRef = sliderContainerEl), class: "range-slider__slider-container", draggable: false }, h("div", { key: '3e5164c4b8ca9d9a3d911545b18525263fd5c078', class: "range-slider__slider-wrapper" }, h("input", { key: '717cb69fb664957a5867ab55da46371bafa2ad71', ref: sliderEl => (this.sliderRef = sliderEl), type: "range", min: this.minValue, max: this.maxValue, step: this.step, value: this.defaultValue, list: "steplist", id: "rangeInput", onInput: this.onSliderInput, onChange: this.onSliderChange, onPointerDown: this.onSliderPointerDown, onPointerUp: this.onSliderPointerUp, onKeyDown: this.onInputKeyDown, class: "range-slider__slider", ...(this.sliderInputAccessibilityLabel ? { "aria-label": this.sliderInputAccessibilityLabel } : {}), ...(this.containerSize !== 'large' ? { tabindex: 1 } : {}) })), h("div", { key: '8e7e077417277d080e38f377c5527a88d9c942b0', class: "range-slider__track range-slider__track--background" }), h("div", { key: 'e2a1e570cbcf97c8cf0b1fd4ce855adde8096cf6', ref: progressTrackEl => (this.progressTrackRef = progressTrackEl), class: "range-slider__track range-slider__track--progress" }), h("div", { key: 'fddc819a7f3106dfc5e432c2063f9955aecb1de1', ref: tickContainerEl => (this.tickContainerRef = tickContainerEl), class: "range-slider__tick-container" }), h("div", { key: '991b98aa20fbffb3528a32647dabab94d22a1a6b', ref: dataLabelEl => (this.dataLabelRef = dataLabelEl), class: {
|
|
778
778
|
'range-slider__data-label-container': true,
|
|
779
779
|
'hidden': this.type === 'secondary' && this.containerSize === 'small',
|
|
780
|
-
} })), h("div", { key: '
|
|
780
|
+
} })), h("div", { key: '86daa095139cc87d7e99a40d5c37f3d4da43dac1', class: {
|
|
781
781
|
'range-slider__current-step-container': true,
|
|
782
782
|
'hidden': !this.withCurrentStepCounter,
|
|
783
|
-
} }, h("div", { key: '
|
|
783
|
+
} }, h("div", { key: 'a6c111fcd16cad59b77830825cb59619968181f0', class: "range-slider__current-step", "aria-live": "polite" }, this.dataSet.indexOf(this.getClosestOverrideDataPoint()) + 1, "/", this.dataPoints.length)), h("div", { key: '2b48c092b79f16721d6d83bd2b3a4d6a7c3ddc58', ref: toolbarHandleEl => (this.tooltipHandleRef = toolbarHandleEl), class: "range-slider__tooltip-handle" }, h("div", { key: '158b1e8dec1254680235b2f332d60f2cc78c1dda', class: "range-slider__tooltip translation-none", style: { [`--tooltip-offset`]: `${this.tooltipOffset}rem` }, "aria-live": "polite" }, this.getTooltipValue())), h("tet-button", { key: '2e442cc696fba3bbc9143531ecead99dfdec6cb2', theme: this.theme, iconMode: true, class: {
|
|
784
784
|
'range-slider__control': true,
|
|
785
785
|
'range-slider__control--right': true,
|
|
786
786
|
'hidden': !this.withControls,
|
|
787
|
-
}, clickCallback: this.onControlNextClick, ...(this.addButtonAccessibilityLabel ? { accessibilityLabel: this.addButtonAccessibilityLabel } : {}), ...(this.containerSize !== 'large' ? { tabindex: 4 } : {}) }, h("tet-icon", { key: '
|
|
787
|
+
}, clickCallback: this.onControlNextClick, ...(this.addButtonAccessibilityLabel ? { accessibilityLabel: this.addButtonAccessibilityLabel } : {}), ...(this.containerSize !== 'large' ? { tabindex: 4 } : {}) }, h("tet-icon", { key: 'f8639052793ebc0ce28bc9b05634571ea3755e07', name: "add", class: "range-slider__control--icon" }))))));
|
|
788
788
|
}
|
|
789
789
|
static get is() { return "tet-range-slider"; }
|
|
790
790
|
static get encapsulation() { return "shadow"; }
|