@tet/tet-components 1.4.29-testing → 1.4.30-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} +13 -9
- 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 +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 +21 -10
- 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 +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
- package/dist/cjs/tet-carousel.cjs.entry.js +9 -9
- 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 +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 +1 -1
- 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 +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 +10 -5
- 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 +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 +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 +7 -7
- 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 +4 -4
- 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-support-search.cjs.entry.js +192 -0
- 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 +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 +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/tet-autocomplete.css +29 -10
- package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +40 -8
- 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/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/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/advanced/search/tet-support-search/tet-support-search.css +485 -0
- package/dist/collection/components/advanced/search/tet-support-search/tet-support-search.js +373 -0
- 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 +6 -6
- 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-input/tet-input.js +41 -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-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/tables-and-graphs/tet-table/tet-table.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/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 +1 -1
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.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/collection/services/api/services/article-search.js +11 -0
- package/dist/collection/services/utils/index.js +16 -20
- package/dist/collection/services/utils/inner-text-from-html.js +13 -0
- package/dist/components/index.js +3 -1
- package/dist/components/{p-67c5a58c.js → p-0025a4e9.js} +4 -4
- package/dist/components/{p-48611429.js → p-0545a113.js} +2 -2
- package/dist/components/{p-bef5a700.js → p-0600f2a8.js} +1 -1
- package/dist/components/{p-1e624d81.js → p-0c71dbc1.js} +2 -2
- package/dist/components/{p-def0e33f.js → p-16c3c70b.js} +3 -3
- package/dist/components/{p-95cc2537.js → p-20ce6730.js} +12 -5
- package/dist/components/{p-f76fad86.js → p-26ffcb52.js} +1 -1
- package/dist/components/{p-af9beaa1.js → p-2a10842f.js} +7 -7
- package/dist/components/{p-64690a6c.js → p-2aeb516c.js} +3 -3
- package/dist/components/{p-e3cb1d2d.js → p-32ed1082.js} +7 -7
- package/dist/components/{p-4468c9e9.js → p-3493f65f.js} +1 -1
- package/dist/components/{p-331ebe65.js → p-36cd40b1.js} +2 -2
- package/dist/components/{p-7f859d29.js → p-3990f3e5.js} +3 -3
- package/dist/components/{p-5472702d.js → p-3f09d5b9.js} +6 -6
- package/dist/components/{p-4903892e.js → p-3ff74849.js} +10 -10
- package/dist/components/{p-be5d67d1.js → p-46261374.js} +1 -1
- package/dist/components/{p-795a1c43.js → p-4965551a.js} +4 -4
- package/dist/components/{p-af0662ff.js → p-5199cad0.js} +2 -2
- package/dist/components/{p-193320bd.js → p-5259f563.js} +1 -1
- package/dist/components/{p-d22aed2d.js → p-53b12eea.js} +6 -6
- package/dist/components/{p-defc1e19.js → p-573a13c2.js} +14 -14
- package/dist/components/{p-2b5669f6.js → p-584f6222.js} +4 -4
- package/dist/components/{p-2c1233bc.js → p-5bc8e660.js} +2 -2
- package/dist/components/{p-41260991.js → p-5f5b40d1.js} +5 -5
- package/dist/components/{p-a57bdbb3.js → p-5f8ead19.js} +11 -11
- package/dist/components/{p-e4f06634.js → p-659abc43.js} +8 -8
- package/dist/components/{p-74e1a749.js → p-683362d8.js} +6 -6
- package/dist/components/{p-c964254d.js → p-6ae0afae.js} +2 -2
- package/dist/components/{p-1b7b79a5.js → p-707df8bb.js} +3 -3
- package/dist/components/{p-aae07dc6.js → p-72dec153.js} +2 -2
- package/dist/components/{p-04a2d6a8.js → p-7333ff31.js} +1 -1
- package/dist/components/{p-8a5c883e.js → p-7bcc69aa.js} +1 -1
- package/dist/components/{p-089612ee.js → p-80ce5780.js} +10 -10
- package/dist/components/{p-68143dc1.js → p-86309b82.js} +5 -5
- package/dist/components/{p-e87a77a6.js → p-986d5007.js} +2 -2
- package/dist/components/{p-0a575a94.js → p-9a0f2cfd.js} +6 -6
- package/dist/components/{p-59997b7c.js → p-9abdf1f3.js} +1 -1
- package/dist/components/{p-bf18b5b7.js → p-9c9430e6.js} +4 -4
- package/dist/components/{p-a6be19f9.js → p-a289a8f3.js} +3 -3
- package/dist/components/{p-6fa17892.js → p-a626214b.js} +13 -13
- package/dist/components/{p-25b93e8f.js → p-aa122c92.js} +1 -1
- package/dist/components/{p-df5d84f1.js → p-ad7d7e2a.js} +24 -12
- package/dist/components/{p-8f56bf1c.js → p-b23b7bbf.js} +2 -2
- package/dist/components/{p-50c4fd79.js → p-b270c5a0.js} +1 -1
- package/dist/components/{p-027f730e.js → p-b35077ba.js} +7 -7
- package/dist/components/{p-ddcc69cd.js → p-b63af45a.js} +2 -2
- package/dist/components/{p-44201f97.js → p-b6841a9b.js} +1 -1
- package/dist/components/{p-49251432.js → p-bd9cecff.js} +8 -8
- package/dist/components/{p-c1c77130.js → p-bf8ca05f.js} +2 -2
- package/dist/components/{p-4b4a0334.js → p-c58566bc.js} +2 -2
- package/dist/components/{p-375a5cfa.js → p-c8cfd2bf.js} +2 -2
- package/dist/components/{p-34265c9d.js → p-c9b8d9b5.js} +3 -3
- package/dist/components/{p-9783cca1.js → p-ccb2bd11.js} +10 -10
- package/dist/components/{p-49b5dcf4.js → p-cf7f9e48.js} +2 -2
- package/dist/components/{p-5c6b063f.js → p-d72db94e.js} +2 -2
- package/dist/components/{p-461e1a38.js → p-dd16efb9.js} +3 -3
- package/dist/components/{p-d57cec8c.js → p-e8a9eae7.js} +2 -2
- package/dist/components/{p-1035feaa.js → p-f973674b.js} +3 -3
- 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 +10 -10
- 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 +12 -12
- 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 +10 -10
- 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 +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 +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 +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 +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-support-search.d.ts +11 -0
- package/dist/components/tet-support-search.js +256 -0
- 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/{debounce-dee91907.js → debounce-33d1ec42.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} +13 -9
- 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 +9 -9
- package/dist/esm/tet-address-search.entry.js +8 -8
- 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 +22 -11
- 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 +1 -1
- package/dist/esm/tet-card-list.entry.js +5 -5
- package/dist/esm/tet-carousel.entry.js +9 -9
- 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 +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 +1 -1
- 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 +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 +10 -5
- 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 +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 +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 +9 -9
- package/dist/esm/tet-referral.entry.js +7 -7
- 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 +4 -4
- 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-support-search.entry.js +188 -0
- package/dist/esm/tet-switch.entry.js +4 -4
- package/dist/esm/tet-tab-header.entry.js +4 -4
- 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 +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 +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-5391d594.entry.js → p-0bf60061.entry.js} +1 -1
- package/dist/tet-components/{p-a7b563a4.entry.js → p-0cbaaeef.entry.js} +1 -1
- package/dist/tet-components/{p-43c3b078.entry.js → p-0ff24bbc.entry.js} +1 -1
- package/dist/tet-components/{p-028e8ace.entry.js → p-125ceadf.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-188169cd.entry.js +1 -0
- package/dist/tet-components/p-1b4da160.entry.js +1 -0
- package/dist/tet-components/p-1d35f1d4.entry.js +1 -0
- package/dist/tet-components/p-1e672d5b.entry.js +1 -0
- package/dist/tet-components/{p-bcca51cc.entry.js → p-1f5ed76c.entry.js} +1 -1
- package/dist/tet-components/{p-d4dc17f5.entry.js → p-206b137f.entry.js} +1 -1
- package/dist/tet-components/{p-81db4c30.entry.js → p-23c58fed.entry.js} +1 -1
- package/dist/tet-components/{p-be3a10d0.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-00e4bbed.entry.js → p-27a27a6f.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-040c0f07.entry.js → p-346342a2.entry.js} +1 -1
- package/dist/tet-components/{p-3a3fd77f.entry.js → p-37d43e7a.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-f81b3bb0.js → p-4213c1d1.js} +1 -1
- package/dist/tet-components/{p-4967b041.entry.js → p-4467148d.entry.js} +1 -1
- package/dist/tet-components/{p-4f5a19cb.entry.js → p-49402f08.entry.js} +1 -1
- package/dist/tet-components/{p-5e8466e6.entry.js → p-4b287640.entry.js} +1 -1
- package/dist/tet-components/{p-7c7fb42f.entry.js → p-4d935fc8.entry.js} +1 -1
- package/dist/tet-components/{p-33f2ed2e.entry.js → p-53d710a2.entry.js} +1 -1
- package/dist/tet-components/{p-cf479331.entry.js → p-54280bef.entry.js} +1 -1
- package/dist/tet-components/{p-584f54a7.entry.js → p-54750b41.entry.js} +1 -1
- package/dist/tet-components/{p-122f3d3c.entry.js → p-548d7cc1.entry.js} +1 -1
- package/dist/tet-components/{p-7de684c1.entry.js → p-5562d01c.entry.js} +1 -1
- package/dist/tet-components/{p-efdef0e5.entry.js → p-56813f4c.entry.js} +1 -1
- package/dist/tet-components/{p-4e58c5e2.entry.js → p-575b5351.entry.js} +1 -1
- package/dist/tet-components/{p-d5b72171.entry.js → p-576aac54.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-5533f71b.entry.js → p-593f9520.entry.js} +1 -1
- package/dist/tet-components/{p-83f43fdd.js → p-5abb3bea.js} +1 -1
- package/dist/tet-components/{p-0f2d1a9c.entry.js → p-5c98ce7f.entry.js} +1 -1
- package/dist/tet-components/{p-cf11c4cd.entry.js → p-5f330fa1.entry.js} +1 -1
- package/dist/tet-components/{p-cde8057a.entry.js → p-60abca86.entry.js} +1 -1
- package/dist/tet-components/{p-f9a0b36a.entry.js → p-63c6bd0e.entry.js} +1 -1
- package/dist/tet-components/{p-8bfd498e.entry.js → p-63f6def9.entry.js} +1 -1
- package/dist/tet-components/{p-87bbb893.js → p-64ec8edd.js} +1 -1
- package/dist/tet-components/p-660bdc27.js +1 -0
- package/dist/tet-components/{p-e98108ba.entry.js → p-66c1854f.entry.js} +1 -1
- package/dist/tet-components/{p-b822a377.entry.js → p-6c292a03.entry.js} +1 -1
- package/dist/tet-components/{p-c10d5369.entry.js → p-6c6cd148.entry.js} +1 -1
- package/dist/tet-components/{p-ae8ff573.entry.js → p-6cf6894d.entry.js} +1 -1
- package/dist/tet-components/{p-ed044f47.entry.js → p-6e57defa.entry.js} +1 -1
- 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-c13b2ba7.entry.js → p-71783e88.entry.js} +1 -1
- package/dist/tet-components/{p-0ebbf5ef.js → p-726651bc.js} +1 -1
- package/dist/tet-components/p-72e93e4c.entry.js +1 -0
- package/dist/tet-components/{p-46975ec4.entry.js → p-73c190a2.entry.js} +1 -1
- package/dist/tet-components/{p-629a9a5d.entry.js → p-7ee7b3d9.entry.js} +1 -1
- package/dist/tet-components/{p-6dde4d69.entry.js → p-869f802c.entry.js} +1 -1
- package/dist/tet-components/{p-fa446e53.entry.js → p-87b6fe17.entry.js} +1 -1
- package/dist/tet-components/p-8adc0ab3.entry.js +1 -0
- package/dist/tet-components/{p-10e72480.entry.js → p-8b93b91f.entry.js} +1 -1
- package/dist/tet-components/{p-c31236d5.entry.js → p-8cdad878.entry.js} +1 -1
- package/dist/tet-components/{p-5a6fc34c.entry.js → p-8d0c5a09.entry.js} +1 -1
- package/dist/tet-components/{p-f5d4d8c8.entry.js → p-8fae4e03.entry.js} +1 -1
- package/dist/tet-components/{p-09e92f79.entry.js → p-95fbc38f.entry.js} +1 -1
- package/dist/tet-components/p-97a4e6d0.entry.js +1 -0
- package/dist/tet-components/{p-7a3e4581.entry.js → p-98896fce.entry.js} +1 -1
- package/dist/tet-components/{p-0e2dbd84.entry.js → p-9bc92020.entry.js} +1 -1
- package/dist/tet-components/{p-f16514db.entry.js → p-9bd457d2.entry.js} +1 -1
- package/dist/tet-components/{p-da0fc55d.entry.js → p-9c263933.entry.js} +1 -1
- package/dist/tet-components/{p-a8051a99.js → p-a476fd02.js} +1 -1
- package/dist/tet-components/{p-d9560c74.entry.js → p-a7cf9c43.entry.js} +1 -1
- package/dist/tet-components/{p-bb7d4ae2.entry.js → p-a99c273f.entry.js} +1 -1
- package/dist/tet-components/{p-f6fbba3e.entry.js → p-a9d2c4cb.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-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-1fd2adaf.js → p-b92dff8a.js} +1 -1
- package/dist/tet-components/{p-62bcf382.entry.js → p-bbc96f81.entry.js} +1 -1
- package/dist/tet-components/{p-b0fc3440.entry.js → p-c65385bd.entry.js} +1 -1
- package/dist/tet-components/{p-43fd6ff8.entry.js → p-c77a6f82.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-55be4b32.entry.js → p-ca43526e.entry.js} +1 -1
- 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-ee3604eb.entry.js → p-d5945e9c.entry.js} +1 -1
- package/dist/tet-components/{p-73411459.entry.js → p-e35d7379.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-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-f06fb66c.entry.js → p-f3fc1267.entry.js} +1 -1
- package/dist/tet-components/{p-2328b1d4.entry.js → p-f9c98275.entry.js} +1 -1
- package/dist/tet-components/{p-798aa31d.entry.js → p-fc04e584.entry.js} +1 -1
- package/dist/tet-components/{p-5d70599c.entry.js → p-fd5db2e4.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/address/tet-autocomplete/tet-autocomplete.d.ts +3 -0
- package/dist/types/components/advanced/search/tet-support-search/tet-support-search.d.ts +83 -0
- package/dist/types/components/simple/inputs/tet-input/tet-input.d.ts +4 -0
- package/dist/types/components.d.ts +139 -0
- package/dist/types/services/api/services/article-search.d.ts +9 -0
- package/dist/types/services/utils/index.d.ts +16 -16
- package/dist/types/services/utils/inner-text-from-html.d.ts +9 -0
- package/package.json +1 -1
- package/dist/tet-components/p-0690732e.entry.js +0 -1
- package/dist/tet-components/p-33768388.entry.js +0 -1
- package/dist/tet-components/p-6297692b.entry.js +0 -1
- package/dist/tet-components/p-75927057.entry.js +0 -1
- package/dist/tet-components/p-79700f85.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,373 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { findArticles } from "../../../../services/api/services/article-search";
|
|
3
|
+
import { normalize, debounceAsync, innerTextFromHtml } from "../../../../services/utils/index";
|
|
4
|
+
/**
|
|
5
|
+
* Support search input with autocomplete suggestions fetched from the configured support search API endpoint.
|
|
6
|
+
* Emits `searchSubmitted` for manual searches and `optionSelected` when a suggested article is chosen.
|
|
7
|
+
*/
|
|
8
|
+
export class TetSupportSearch {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.theme = 'light';
|
|
11
|
+
this.minSearchLength = 4;
|
|
12
|
+
this.showInputLabel = false;
|
|
13
|
+
this.labels = undefined;
|
|
14
|
+
this.disabled = false;
|
|
15
|
+
this.searchApiUrl = '';
|
|
16
|
+
this.maxSearchResults = 5;
|
|
17
|
+
this.inputIconRight = '';
|
|
18
|
+
this.inputValueLength = 0;
|
|
19
|
+
this.isLoading = false;
|
|
20
|
+
}
|
|
21
|
+
/** The event that is emitted when the user clicks the search button. */
|
|
22
|
+
searchSubmitted;
|
|
23
|
+
/** The autocomplete option selection event. */
|
|
24
|
+
optionSelected;
|
|
25
|
+
/** The reference to the native input element inside tet-input. */
|
|
26
|
+
nativeInput;
|
|
27
|
+
/** The reference to the tet-input element. */
|
|
28
|
+
inputComponent;
|
|
29
|
+
/** Pre-bound callback references to preserve component context when passing methods as handlers. */
|
|
30
|
+
boundOptionsFilterFunction = this.optionsFilterFunction.bind(this);
|
|
31
|
+
boundFinishedLoadingFunction = this.finishedLoading.bind(this);
|
|
32
|
+
boundHandleAutocompleteOptionSelection = this.handleAutocompleteOptionSelection.bind(this);
|
|
33
|
+
boundHandleSearchSubmit = this.handleSearchSubmit.bind(this);
|
|
34
|
+
boundHandleInputRightIcon = this.handleInputRightIcon.bind(this);
|
|
35
|
+
boundRenderOption = this.renderOption.bind(this);
|
|
36
|
+
onDisabledStateChange() {
|
|
37
|
+
if (this.disabled) {
|
|
38
|
+
this.removeIconRight();
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.inputValueLength && this.addClearIcon();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** Resets the input value, icon, and loading state to the initial state. */
|
|
45
|
+
async resetInputState() {
|
|
46
|
+
if (this.nativeInput) {
|
|
47
|
+
this.nativeInput.value = '';
|
|
48
|
+
}
|
|
49
|
+
this.inputValueLength = 0;
|
|
50
|
+
this.isLoading = false;
|
|
51
|
+
this.removeIconRight();
|
|
52
|
+
}
|
|
53
|
+
async componentDidLoad() {
|
|
54
|
+
this.nativeInput = await this.inputComponent.getInputHtmlElement();
|
|
55
|
+
this.nativeInput?.addEventListener('input', this.boundHandleInputRightIcon);
|
|
56
|
+
}
|
|
57
|
+
disconnectedCallback() {
|
|
58
|
+
this.nativeInput?.removeEventListener('input', this.boundHandleInputRightIcon);
|
|
59
|
+
}
|
|
60
|
+
handleInputRightIcon({ target }) {
|
|
61
|
+
const value = normalize(target.value);
|
|
62
|
+
this.inputValueLength = value.length;
|
|
63
|
+
if (this.inputValueLength >= this.minSearchLength) {
|
|
64
|
+
this.addLoadIcon();
|
|
65
|
+
this.removeIconRight();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (value && !this.inputIconRight) {
|
|
69
|
+
this.addClearIcon();
|
|
70
|
+
}
|
|
71
|
+
if (!value && this.inputIconRight) {
|
|
72
|
+
this.removeIconRight();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Filters autocomplete options by the given keyword.
|
|
77
|
+
*
|
|
78
|
+
* @param keyword
|
|
79
|
+
*/
|
|
80
|
+
async optionsFilterFunction(keyword) {
|
|
81
|
+
if (keyword.length < this.minSearchLength || !this.searchApiUrl) {
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
const articles = await findArticles(this.searchApiUrl, keyword);
|
|
85
|
+
const limitedArticles = articles.slice(0, this.maxSearchResults);
|
|
86
|
+
const articleOptions = limitedArticles.map(({ title, id, description, categories, url }) => {
|
|
87
|
+
const label = innerTextFromHtml(title);
|
|
88
|
+
return {
|
|
89
|
+
label,
|
|
90
|
+
value: { id, description, categories, url, htmlLabel: title },
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
if (articleOptions.length > 0) {
|
|
94
|
+
articleOptions.push({
|
|
95
|
+
label: this.labels.moreResultsLabel,
|
|
96
|
+
value: 'more-results',
|
|
97
|
+
clickCallback: this.boundHandleSearchSubmit,
|
|
98
|
+
ignoreHighlighting: true,
|
|
99
|
+
cssPart: `more-results`
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return articleOptions;
|
|
103
|
+
}
|
|
104
|
+
debounceOptionsFilter = debounceAsync(this.boundOptionsFilterFunction, 300);
|
|
105
|
+
removeIconRight() {
|
|
106
|
+
this.inputIconRight = '';
|
|
107
|
+
}
|
|
108
|
+
addClearIcon() {
|
|
109
|
+
this.isLoading = false;
|
|
110
|
+
this.inputIconRight = 'tc-close';
|
|
111
|
+
}
|
|
112
|
+
/** Removes the loader icon and adds the clear icon. */
|
|
113
|
+
finishedLoading() {
|
|
114
|
+
this.removeIconRight();
|
|
115
|
+
if (this.inputValueLength >= 1) {
|
|
116
|
+
this.addClearIcon();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
addLoadIcon() {
|
|
120
|
+
this.isLoading = true;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The function that is executed when an autocomplete option is selected.
|
|
124
|
+
*
|
|
125
|
+
* @param event
|
|
126
|
+
*/
|
|
127
|
+
handleAutocompleteOptionSelection(event) {
|
|
128
|
+
event.stopPropagation();
|
|
129
|
+
const { label, value, _originalEvent } = event.detail;
|
|
130
|
+
const detail = {
|
|
131
|
+
label,
|
|
132
|
+
id: value.id,
|
|
133
|
+
url: value.url,
|
|
134
|
+
originalEvent: _originalEvent
|
|
135
|
+
};
|
|
136
|
+
this.optionSelected.emit(detail);
|
|
137
|
+
}
|
|
138
|
+
handleSearchSubmit() {
|
|
139
|
+
this.searchSubmitted.emit(this.nativeInput?.value ?? '');
|
|
140
|
+
}
|
|
141
|
+
renderOption(option) {
|
|
142
|
+
const { description, categories, htmlLabel } = option.value;
|
|
143
|
+
return (h("div", { part: "dropdown-option" }, h("tet-icon", { part: "option-icon", class: "icon", name: "tc-arrow-right" }), h("div", { part: "dropdown-option-content" }, h("div", { part: "option-label", innerHTML: htmlLabel }), description && (h("div", { part: "option-description", innerHTML: description })), categories?.length && (h("div", { part: "option-categories" }, categories.map((category, i) => ([
|
|
144
|
+
h("span", { innerHTML: category }),
|
|
145
|
+
(i < categories.length - 1) && (h("tet-icon", { name: "tc-chevron-right-small", theme: this.theme, type: "secondary", part: "option-category-separator" }))
|
|
146
|
+
])))))));
|
|
147
|
+
}
|
|
148
|
+
render() {
|
|
149
|
+
return (h(Host, { key: '2fcf66c81bc71b0a869760c2df5e4279e1490cc2', class: {
|
|
150
|
+
"search-container": true,
|
|
151
|
+
[this.theme]: true,
|
|
152
|
+
} }, h("div", { key: '899abc00ebffe0b6d8f0cad8c724f432d83841ff', class: "search-container__inner-wrapper" }, h("tet-autocomplete", { key: '01c77e473e4afeac84736469e2fec4d9cc3f65dc', optionsFilterAction: this.debounceOptionsFilter, onOptionSelected: this.boundHandleAutocompleteOptionSelection, noOptionsMessage: this.labels.notFoundMessage, customOptionRenderFunction: this.boundRenderOption, finishedLoading: this.boundFinishedLoadingFunction, darkTheme: this.theme === 'dark', newStyle: true }, h("tet-input", { key: '650b286ac63028063ed50dc8b19afcd9b848acc3', class: "search-container__input", "input-class": `autocomplete-input search-container__input ${this.isLoading ? 'with-loader' : ''}`, "input-placeholder": this.labels.placeholder, "input-disabled": this.disabled, label: this.showInputLabel ? this.labels.label : undefined, accessibilityLabel: this.showInputLabel ? undefined : this.labels.label, iconLeft: "tc-search-short", iconRight: this.inputIconRight, iconRightClickCallback: () => this.resetInputState(), iconRightAccessibilityLabel: this.labels.clearButtonLabel, theme: this.theme, ref: (el) => (this.inputComponent = el), autocomplete: "off" }, this.isLoading &&
|
|
153
|
+
h("tet-spinner", { key: 'e9e3028b2a69557a9ba39feb401e38fd9bf29fae', theme: this.theme, class: "search-container__spinner", size: "small" }))), h("tet-button", { key: '13611884e5fed25ef0f92ae8cfd281f73ba40911', class: "search-container__button search-container__button--mobile", theme: this.theme, size: "small", "accessibility-label": this.labels.searchButtonLabel, iconName: "tc-arrow-right", iconMode: true, disabled: this.disabled, onClick: this.boundHandleSearchSubmit }), h("tet-button", { key: '6bd17d80b7e744ebdce53f2cd0e40aadc5fdc3f3', class: "search-container__button search-container__button--desktop", theme: this.theme, size: "large", disabled: this.disabled, onClick: this.boundHandleSearchSubmit }, this.labels.searchButtonLabel))));
|
|
154
|
+
}
|
|
155
|
+
static get is() { return "tet-support-search"; }
|
|
156
|
+
static get encapsulation() { return "shadow"; }
|
|
157
|
+
static get originalStyleUrls() {
|
|
158
|
+
return {
|
|
159
|
+
"$": ["tet-support-search.scss"]
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
static get styleUrls() {
|
|
163
|
+
return {
|
|
164
|
+
"$": ["tet-support-search.css"]
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
static get properties() {
|
|
168
|
+
return {
|
|
169
|
+
"theme": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"mutable": false,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "'light' | 'dark'",
|
|
174
|
+
"resolved": "\"dark\" | \"light\"",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": "The theme of the component."
|
|
182
|
+
},
|
|
183
|
+
"attribute": "theme",
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"defaultValue": "'light'"
|
|
186
|
+
},
|
|
187
|
+
"minSearchLength": {
|
|
188
|
+
"type": "number",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "number",
|
|
192
|
+
"resolved": "number",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "The minimum length of the keyword before search functionality is applied."
|
|
200
|
+
},
|
|
201
|
+
"attribute": "min-search-length",
|
|
202
|
+
"reflect": false,
|
|
203
|
+
"defaultValue": "4"
|
|
204
|
+
},
|
|
205
|
+
"showInputLabel": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "boolean",
|
|
210
|
+
"resolved": "boolean",
|
|
211
|
+
"references": {}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": false,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": "Determines if the input label should be shown."
|
|
218
|
+
},
|
|
219
|
+
"attribute": "show-input-label",
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"defaultValue": "false"
|
|
222
|
+
},
|
|
223
|
+
"labels": {
|
|
224
|
+
"type": "unknown",
|
|
225
|
+
"mutable": false,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "Labels",
|
|
228
|
+
"resolved": "Labels",
|
|
229
|
+
"references": {
|
|
230
|
+
"Labels": {
|
|
231
|
+
"location": "local",
|
|
232
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/search/tet-support-search/tet-support-search.tsx",
|
|
233
|
+
"id": "src/components/advanced/search/tet-support-search/tet-support-search.tsx::Labels"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"required": false,
|
|
238
|
+
"optional": false,
|
|
239
|
+
"docs": {
|
|
240
|
+
"tags": [],
|
|
241
|
+
"text": "Required labels and texts used in the component."
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"disabled": {
|
|
245
|
+
"type": "boolean",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "boolean",
|
|
249
|
+
"resolved": "boolean",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": "The enabled or disabled state of the component."
|
|
257
|
+
},
|
|
258
|
+
"attribute": "disabled",
|
|
259
|
+
"reflect": false,
|
|
260
|
+
"defaultValue": "false"
|
|
261
|
+
},
|
|
262
|
+
"searchApiUrl": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"mutable": false,
|
|
265
|
+
"complexType": {
|
|
266
|
+
"original": "string",
|
|
267
|
+
"resolved": "string",
|
|
268
|
+
"references": {}
|
|
269
|
+
},
|
|
270
|
+
"required": false,
|
|
271
|
+
"optional": false,
|
|
272
|
+
"docs": {
|
|
273
|
+
"tags": [],
|
|
274
|
+
"text": "URL of the search API endpoint used to fetch autocomplete results for the entered query."
|
|
275
|
+
},
|
|
276
|
+
"attribute": "search-api-url",
|
|
277
|
+
"reflect": false,
|
|
278
|
+
"defaultValue": "''"
|
|
279
|
+
},
|
|
280
|
+
"maxSearchResults": {
|
|
281
|
+
"type": "number",
|
|
282
|
+
"mutable": false,
|
|
283
|
+
"complexType": {
|
|
284
|
+
"original": "number",
|
|
285
|
+
"resolved": "number",
|
|
286
|
+
"references": {}
|
|
287
|
+
},
|
|
288
|
+
"required": false,
|
|
289
|
+
"optional": false,
|
|
290
|
+
"docs": {
|
|
291
|
+
"tags": [],
|
|
292
|
+
"text": "The maximum number of search results to be shown in the dropdown."
|
|
293
|
+
},
|
|
294
|
+
"attribute": "max-search-results",
|
|
295
|
+
"reflect": false,
|
|
296
|
+
"defaultValue": "5"
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
static get states() {
|
|
301
|
+
return {
|
|
302
|
+
"inputIconRight": {},
|
|
303
|
+
"inputValueLength": {},
|
|
304
|
+
"isLoading": {}
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
static get events() {
|
|
308
|
+
return [{
|
|
309
|
+
"method": "searchSubmitted",
|
|
310
|
+
"name": "searchSubmitted",
|
|
311
|
+
"bubbles": true,
|
|
312
|
+
"cancelable": true,
|
|
313
|
+
"composed": true,
|
|
314
|
+
"docs": {
|
|
315
|
+
"tags": [],
|
|
316
|
+
"text": "The event that is emitted when the user clicks the search button."
|
|
317
|
+
},
|
|
318
|
+
"complexType": {
|
|
319
|
+
"original": "string",
|
|
320
|
+
"resolved": "string",
|
|
321
|
+
"references": {}
|
|
322
|
+
}
|
|
323
|
+
}, {
|
|
324
|
+
"method": "optionSelected",
|
|
325
|
+
"name": "optionSelected",
|
|
326
|
+
"bubbles": true,
|
|
327
|
+
"cancelable": true,
|
|
328
|
+
"composed": true,
|
|
329
|
+
"docs": {
|
|
330
|
+
"tags": [],
|
|
331
|
+
"text": "The autocomplete option selection event."
|
|
332
|
+
},
|
|
333
|
+
"complexType": {
|
|
334
|
+
"original": "OptionSelectedEventDetail",
|
|
335
|
+
"resolved": "{ label: string; id: string | number; url: string; originalEvent: Event; }",
|
|
336
|
+
"references": {
|
|
337
|
+
"OptionSelectedEventDetail": {
|
|
338
|
+
"location": "local",
|
|
339
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/search/tet-support-search/tet-support-search.tsx",
|
|
340
|
+
"id": "src/components/advanced/search/tet-support-search/tet-support-search.tsx::OptionSelectedEventDetail"
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}];
|
|
345
|
+
}
|
|
346
|
+
static get methods() {
|
|
347
|
+
return {
|
|
348
|
+
"resetInputState": {
|
|
349
|
+
"complexType": {
|
|
350
|
+
"signature": "() => Promise<void>",
|
|
351
|
+
"parameters": [],
|
|
352
|
+
"references": {
|
|
353
|
+
"Promise": {
|
|
354
|
+
"location": "global",
|
|
355
|
+
"id": "global::Promise"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"return": "Promise<void>"
|
|
359
|
+
},
|
|
360
|
+
"docs": {
|
|
361
|
+
"text": "Resets the input value, icon, and loading state to the initial state.",
|
|
362
|
+
"tags": []
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
static get watchers() {
|
|
368
|
+
return [{
|
|
369
|
+
"propName": "disabled",
|
|
370
|
+
"methodName": "onDisabledStateChange"
|
|
371
|
+
}];
|
|
372
|
+
}
|
|
373
|
+
}
|
|
@@ -46,16 +46,16 @@ export class TetSwitch {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
const { label, name, theme, disabled, checked, accessibilityLabel, labelFont, alignCenter, labelPosition } = this;
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '9353eee67de4abd810beea107865694ee2c36fb2' }, h("div", { key: '6bbae8932cb99a054e3ed9f02ea18f8925b0dc8d', class: { 'switch': true, [`${theme}`]: true } }, h("label", { key: 'feaa3924ba8a2b869d5130fcf44194809123ffbb', class: {
|
|
50
50
|
'switch__container': true,
|
|
51
51
|
'switch__container--align-start': !alignCenter,
|
|
52
52
|
[`switch__container--${labelFont}`]: true,
|
|
53
53
|
'switch__container--focus-style': this.focusStyleOnContainer,
|
|
54
|
-
}, part: "switch-container", htmlFor: "tet-switch" }, h("input", { key: '
|
|
54
|
+
}, part: "switch-container", htmlFor: "tet-switch" }, h("input", { key: 'a6cdceb08729e1d6f156c93af49e8963db480744', class: "switch__html-input", name: name, id: "tet-switch", type: "checkbox", disabled: disabled, checked: checked, onChange: this.handleChange.bind(this), ...(accessibilityLabel ? { "aria-label": accessibilityLabel } : {}) }), labelPosition === 'right' && this.renderSwitch(), h("span", { key: '19482e239c3c5b873751f04f9c6e387bf36dff7d', class: {
|
|
55
55
|
'switch__label': true,
|
|
56
56
|
...(labelPosition === 'left' ? { 'switch__label--left': true } : {}),
|
|
57
57
|
...(labelFont ? { [`switch__label--${labelFont}`]: true } : {}),
|
|
58
|
-
}, innerHTML: label }, h("slot", { key: '
|
|
58
|
+
}, innerHTML: label }, h("slot", { key: '20487b7313d9a0393f0056eb972200f13645c6d2' })), labelPosition === 'left' && this.renderSwitch()))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "tet-switch"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js
CHANGED
|
@@ -161,11 +161,11 @@ export class TetTabContent {
|
|
|
161
161
|
this.selectedId = id;
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: 'ced475171679de9cca4b613f81f0d6c0badbf286' }, h("div", { key: '55ab49bc392db797c16c37874fec99545e2a8de9', class: {
|
|
165
165
|
'tet-tab-content': true,
|
|
166
166
|
'use-visibility': this.useVisibility,
|
|
167
167
|
[this.theme]: true
|
|
168
|
-
} }, h("slot", { key: '
|
|
168
|
+
} }, h("slot", { key: '9e5e1dd3c987d5d899ac83a1cec08615e9732367' }))));
|
|
169
169
|
}
|
|
170
170
|
static get is() { return "tet-tab-content"; }
|
|
171
171
|
static get encapsulation() { return "shadow"; }
|
|
@@ -471,14 +471,14 @@ export class TetTabHeader {
|
|
|
471
471
|
return {};
|
|
472
472
|
}
|
|
473
473
|
render() {
|
|
474
|
-
return (h(Host, { key: '
|
|
474
|
+
return (h(Host, { key: '5c045abbb1262176d0db6c82f3631c2d6e8460cb', "data-id-suffix": this.idSuffix }, h("div", { key: '95b8b8238282f8924d4f6b7307c29a08335155c2', class: {
|
|
475
475
|
'tabs': true,
|
|
476
476
|
'tabs--segmented': this.segmented,
|
|
477
477
|
[this.position]: true,
|
|
478
478
|
[this.theme]: true,
|
|
479
479
|
[this.sizing]: true,
|
|
480
480
|
[this.type]: !!this.type
|
|
481
|
-
}, onMouseDown: this.onContainerMouseDown, style: this.getStyle(), ref: (ref) => (this.tabElement = ref), role: "tablist" }, h("slot", { key: '
|
|
481
|
+
}, onMouseDown: this.onContainerMouseDown, style: this.getStyle(), ref: (ref) => (this.tabElement = ref), role: "tablist" }, h("slot", { key: '0cf3da0a4a3daefeec430b107c4951760546e29d', ref: (slot) => (this.tabContainer = slot) })), h("div", { key: '02f14be1cbb29f08c4a95e56dcabf13528f530ab', class: {
|
|
482
482
|
'tabs-line': !this.segmented,
|
|
483
483
|
'no-underline': this.hideHeaderUnderline,
|
|
484
484
|
[this.theme]: true,
|
|
@@ -20,12 +20,12 @@ export class TetTag {
|
|
|
20
20
|
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '69e61de08a865ff1cc66829a63ef817c6b49da85' }, h("button", { key: '530f302e2facb86c2f5fed622508f83a9f405284', class: {
|
|
24
24
|
tag: true,
|
|
25
25
|
'tag-active': this.active,
|
|
26
26
|
'tag--icon': this.showIcon,
|
|
27
27
|
[`theme-${this.theme}`]: true,
|
|
28
|
-
}, "aria-pressed": this.active.toString(), disabled: this.disabled }, this.tagTitle && h("p", { key: '
|
|
28
|
+
}, "aria-pressed": this.active.toString(), disabled: this.disabled }, this.tagTitle && h("p", { key: '85387ea3d832c4223058d994fefc61e66b80f1cb', class: "tag-title" }, t(this.tagTitle)), this.count !== null && this.count !== undefined && h("span", { key: 'ba57579100e91d04d5e56da8a504426b45f11863', class: "tag-count" }, this.count), this.showIcon && h("tet-icon", { key: '76c08e7ddd6ec54e301bf3fc12ff5d9a0baad7d9', class: "tag-icon", name: "close-circle", part: "icon-selected" }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "tet-tag"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -890,22 +890,22 @@ export class TetCarousel {
|
|
|
890
890
|
trackTransition = 'none';
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
return (h(Host, { key: '
|
|
893
|
+
return (h(Host, { key: '1fc3deb3e6e9262c20d9efd2abeedbf8563decf4' }, h("div", { key: '41b6db12fd2fb76a80a1d6575bfd1124a94a2934', class: { 'tet-carousel': true, [`${this.theme}`]: true }, ref: (el) => (this.container = el), part: "carousel" }, h("div", { key: '255d5aa266e74f878025e53d3fd8521d66ace586', class: "tet-carousel__container" }, h("div", { key: '687ae940a8e941b0f24f84263606e079fcdcdd7c', class: "tet-carousel__gradient-left", ref: (el) => {
|
|
894
894
|
this.leftGradientRef = el;
|
|
895
|
-
} }), h("div", { key: '
|
|
895
|
+
} }), h("div", { key: '8dcf6c321a78b979916c66ffc633cd1f217c375a', class: "tet-carousel__gradient-right", ref: (el) => {
|
|
896
896
|
this.rightGradientRef = el;
|
|
897
|
-
} }), h("div", { key: '
|
|
897
|
+
} }), h("div", { key: '10ced8c4f5e98d3a6fd8127a010bfd6003865ba0', class: `tet-carousel__track ${showControls ? '' : 'tet-carousel__track--center'}`, ref: (el) => (this.trackElement = el), style: {
|
|
898
898
|
transform: `translate3d(${this.dragOffset}px, 0, 0)`,
|
|
899
899
|
transition: trackTransition,
|
|
900
900
|
willChange: 'transform'
|
|
901
|
-
}, onPointerDown: this.onPointerDown, onPointerUp: this.onPointerUp }, h("div", { key: '
|
|
901
|
+
}, onPointerDown: this.onPointerDown, onPointerUp: this.onPointerUp }, h("div", { key: 'e92fdef0719e7de5cc7103b54966f5af9a677236', class: {
|
|
902
902
|
'tet-carousel__track-content': true,
|
|
903
903
|
'tet-carousel__track-content--nudge': this.isNudgeAnimating
|
|
904
904
|
}, ref: (el) => (this.trackContentElement = el), style: {
|
|
905
905
|
'--tet-carousel-nudge-distance': `${TetCarousel.NUDGE_DISTANCE_PX}px`
|
|
906
|
-
}, onAnimationEnd: this.onNudgeAnimationEnd }, h("slot", { key: '
|
|
906
|
+
}, onAnimationEnd: this.onNudgeAnimationEnd }, h("slot", { key: 'dfa939715794282bf8f23dc5e11f8726853d6d65' })))), !!this.label && h("div", { key: 'f071b398922a60152db92ce0531920a2f53cb7b1', class: "tet-carousel__label" }, this.label), showControls && (h("div", { key: 'e62f01e1fdb4d979f00b3d5766609a147a8ee1c4', class: "tet-carousel__controls" }, showButtons && (h("div", { key: 'ff466189f9a91c7c223945c5e082e6cff612d0f9', class: "tet-carousel__buttons tet-carousel__buttons--mobile", ref: (el) => (this.mobileBackButtonWrapper = el) }, h("tet-button", { key: '13af12bfd4c7fcc7cb414b8f0057513f523a8d13', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handlePrev(), accessibilityLabel: t('components-carousel-previous'), disabled: this.isLeftNavigationDisabled() }))), showDots && (h("div", { key: 'e78cbe6992aec81ccaca814380a554be11b9bb94', class: "tet-carousel__dots" }, Array.from({ length: this.dotCount }).map((_, idx) => (h("button", { type: "button", tabIndex: idx === this.activeDotIndex ? 0 : -1, class: `tet-carousel__dot${idx === this.activeDotIndex ? ' active' : ''}`, key: idx, "aria-label": `${idx === this.activeDotIndex
|
|
907
907
|
? t('components-carousel-indicator-button-active')
|
|
908
|
-
: t('components-carousel-indicator-button')} ${idx + 1}/${this.dotCount}`, "aria-current": idx === this.activeDotIndex ? 'true' : undefined, onPointerDown: (e) => e.stopPropagation(), onKeyDown: (event) => this.handleDotKeyDown(event, idx), onClick: () => this.handleDotClick(idx) }))))), showButtons && (h("div", { key: '
|
|
908
|
+
: t('components-carousel-indicator-button')} ${idx + 1}/${this.dotCount}`, "aria-current": idx === this.activeDotIndex ? 'true' : undefined, onPointerDown: (e) => e.stopPropagation(), onKeyDown: (event) => this.handleDotKeyDown(event, idx), onClick: () => this.handleDotClick(idx) }))))), showButtons && (h("div", { key: '78bcece033f881bf1b74fa5cec0c252f706ae5bf', class: "tet-carousel__buttons" }, h("tet-button", { key: '7edd52dfbf520ffe68b97d073c58ddbd86dd809c', class: "tet-carousel__buttons--desktop", theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconLeft, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handlePrev(), accessibilityLabel: t('components-carousel-previous'), disabled: this.isLeftNavigationDisabled() }), h("tet-button", { key: 'd7daa187520f89d4ffb24348e1408e6658dc4d4a', theme: this.theme, type: "secondary", size: "medium", "icon-name": this.buttonIconRight, "icon-mode": true, onPointerDown: (e) => e.stopPropagation(), onClick: () => this.handleNext(), accessibilityLabel: t('components-carousel-next'), disabled: this.isRightNavigationDisabled() }))))))));
|
|
909
909
|
}
|
|
910
910
|
static get is() { return "tet-carousel"; }
|
|
911
911
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '69140342318871e93c5af7ae735bc5bcf48871a2', class: "icon-wrapper", tabindex: (this.focusable || this.accessibilityLabel) ? 0 : -1 }, h("span", { key: '50b9d8e357da93c531178787f9757ae5c8476eda', 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: '1f30e22daa123f5fb09fa3e5e6c22ada0e5abfb9', class: "loader" }, h("div", { key: '418a872069e33873223afefae0941d4e86a54072', 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: 'e70566c609c168ce6849e92e0acd233ba07a4b5c', style: { width: this.width, height: this.height } }, h("div", { key: '591fb7e0b39cdc2fa415e66a6ecf41416763928f', class: { 'dark-theme': this.darkTheme } }, h("div", { key: '22c17cfdd054de5bde801b07af0dd19d95aad779', 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: '13ae0e053eeada739f10619cbbf4f98eb10c389d', 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: 'b52bd4856e3b00b2f312c144d9efc4f3b177e9b1', viewBox: "0 0 40 40" }, h("clipPath", { key: 'bba9a5c73c41e135c288cfbe4f34e6841219cd5e', id: "clip" }, h("path", { key: 'e51d5c18783abd377adcf3b5d3555fcfbb45d758', 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: '11ecac3df9f973b0603780a477474d9ee2d5654b' }, h("div", { key: '92a728196dee849b2f43e4ab237d5e935405175a', 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: '9876dfb683eac5551d760607e9c3c5c697c57fac' }, h("div", { key: 'f9508bd2394f93ac8de72134926ceccfc8151030', 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: '1c1367b3f17ba7cbe09a009703db9aa75b2b18d5', class: "label-title" }, this.translateTitle ? t(this.labelTitle) : this.labelTitle), this.showIcon && h("tet-icon", { key: '3acc811cc3f9136a95b13e3d9be3489370159f0d', 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: '2f4f6ac6b1b1833d82dde21157ce6520c6aa8c7d', 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: '2847bbb4cda20689ff7314c84ad2e1cd0db0eab4', class: "control-button", onClick: () => this.changeDatepickerView() }, this.getControlButtonDate(), h("tet-icon", { key: 'd80fde6078109ad9eb9bac9a751bd3965d60925d', 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: 'b3656c8199631d9c250d30a3810618488f6a4193' }, h("div", { key: '600d8c7b8c465afec62149ebc707212d0053741d', class: "weekday-header" }, this.days.map((day) => h("div", { class: "day" }, day))), h("div", { key: 'c80a3249c9c9bc613c54a4b6fe0c1b1557c0fcb4', 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: '1d0a9d61b12bea36428970f842ee568579120848', 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: '798ce08920471d6f52d33da79c38bce7575ce16c', 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: '92c942fc6361a7d28b77fc67a2176fb32b34c4a8', class: this.getOverlayClasses(), onClick: this.handleDatepickerClose }, h("div", { key: 'de9b3e6fb1cd6bb816bd40257c39d59a91e7f67e', class: "container", ref: (el) => this.datepickerContainer = el }, h("tet-datepicker-header", { key: 'cadad1987474fd59280983c19fb7c14816dfa990', selectedDate: this.date, internalDate: this.internalDate, locale: this.locale, datepickerView: this.datepickerView }), this.datepickerView === 'month' &&
|
|
104
|
+
h("tet-datepicker-month-view", { key: '1dd2b9a88844de67d35824f75265b0b98c764bce', selectedDate: this.date, internalDate: this.internalDate, rangePickerMode: this.rangePickerMode, rangeDates: this.rangeDates }), this.datepickerView === 'multi-year' &&
|
|
105
|
+
h("tet-datepicker-multi-year-view", { key: '5b28ac53a2cc050fbef71f79d6b86bdd0ad42650', selectedDate: this.date, internalDate: this.internalDate }), this.datepickerView === 'year' &&
|
|
106
|
+
h("tet-datepicker-year-view", { key: '28ae9b16de7f4b1db5457a8ca4de26e43a64acd8', selectedDate: this.date, internalDate: this.internalDate }))));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "tet-datepicker"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|