@tet/tet-components 1.4.9-testing → 1.4.10-production
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{address-252a4d62.js → address-ac89cbf7.js} +1 -1
- package/dist/cjs/{assets-b16e97be.js → assets-d8d3b4a0.js} +1 -1
- package/dist/cjs/{async-request-d67fb591.js → async-request-5585e750.js} +1 -1
- package/dist/cjs/{http-codes-633d9222.js → http-codes-910040e7.js} +1 -1
- package/dist/cjs/{index-d4d9f14a.js → index-4daaccaa.js} +19 -11
- package/dist/cjs/{index-1127ff0d.js → index-f89f05b8.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-47292459.js → phone-afd7e7c6.js} +2 -2
- package/dist/cjs/{product-comparison-2e8e7d4c.js → product-comparison-e7afcafb.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +165 -0
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +9 -9
- package/dist/cjs/tet-address-search.cjs.entry.js +7 -7
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +6 -6
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +4 -4
- package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-lines.cjs.entry.js +5 -5
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-button.cjs.entry.js +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
- package/dist/cjs/tet-carousel.cjs.entry.js +10 -10
- package/dist/cjs/tet-checkbox.cjs.entry.js +11 -3
- 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 +4 -4
- 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-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-dropdown_2.cjs.entry.js +3 -3
- 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 +229 -0
- package/dist/cjs/tet-filter.cjs.entry.js +3 -3
- package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
- package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
- package/dist/cjs/tet-grid.cjs.entry.js +2 -2
- package/dist/cjs/tet-icon.cjs.entry.js +3 -3
- package/dist/cjs/tet-inline-message.cjs.entry.js +3 -3
- package/dist/cjs/tet-input.cjs.entry.js +4 -4
- package/dist/cjs/tet-label.cjs.entry.js +5 -5
- package/dist/cjs/tet-layout.cjs.entry.js +2 -2
- package/dist/cjs/tet-link-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-link.cjs.entry.js +2 -2
- package/dist/cjs/tet-loader.cjs.entry.js +2 -2
- package/dist/cjs/tet-macd-view.cjs.entry.js +7 -7
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +2 -2
- package/dist/cjs/tet-menu.cjs.entry.js +2 -2
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +4 -4
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +4 -4
- package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
- package/dist/cjs/{tet-accordion_2.cjs.entry.js → tet-notification.cjs.entry.js} +2 -152
- package/dist/cjs/tet-number-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio.cjs.entry.js +2 -2
- package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/tet-referral.cjs.entry.js +7 -7
- package/dist/cjs/tet-round-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
- package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-input.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +2 -2
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +2 -2
- package/dist/cjs/tet-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-switch.cjs.entry.js +2 -2
- package/dist/cjs/tet-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/tet-table.cjs.entry.js +2 -2
- package/dist/cjs/tet-tag_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-text-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-textarea.cjs.entry.js +14 -5
- 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-ba04df0a.js → theme-wrapper-3f7c73ee.js} +2 -2
- package/dist/cjs/{translations-a3267ac8.js → translations-62fb6b1c.js} +1 -1
- package/dist/collection/assets/icons/icon-map.json +1 -1
- package/dist/collection/assets/icons/tc/tc-bubbles.svg +3 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
- package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
- package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
- package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +2 -1
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +2 -1
- package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js +1 -1
- package/dist/collection/components/advanced/customer/tet-referral/tet-referral.js +2 -2
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
- package/dist/collection/components/advanced/forms/tet-contact-form/tet-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-feedback-form/tet-feedback-form.css +777 -0
- package/dist/collection/components/advanced/forms/tet-feedback-form/tet-feedback-form.js +329 -0
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/tet-tv-gift-block.js +1 -1
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js +2 -2
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.css +17 -0
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +27 -1
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.js +1 -1
- package/dist/collection/components/basic/buttons/tet-switch/tet-switch.js +1 -1
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +7 -7
- package/dist/collection/components/basic/icon/tet-icon.js +1 -1
- package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
- package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
- package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
- package/dist/collection/components/basic/misc/tet-label/tet-label.js +2 -2
- package/dist/collection/components/basic/steppers/tet-round-stepper/tet-round-stepper.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper/tet-stepper.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper-v2/tet-stepper-v2.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.js +1 -1
- package/dist/collection/components/simple/filter/tet-filter/tet-filter.js +2 -2
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
- package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.css +2 -1
- package/dist/collection/components/simple/inputs/tet-input/tet-input.css +2 -1
- package/dist/collection/components/simple/inputs/tet-number-input/tet-number-input.js +2 -2
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.css +3 -1
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +51 -3
- package/dist/collection/components/simple/lists/tet-link-card-list/tet-link-card-list.js +1 -1
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
- package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +2 -1
- package/dist/collection/components/simple/menu/tet-menu/tet-menu.js +1 -1
- package/dist/collection/components/simple/menu/tet-menu-mobile/tet-menu-mobile.js +1 -1
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.css +3 -0
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +32 -5
- 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-inline-message/tet-inline-message.js +2 -2
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
- package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +1 -1
- package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +1 -1
- package/dist/collection/components/views/tet-macd-view/tet-macd-view.js +1 -1
- package/dist/collection/components/views/tet-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/components/assets/icons/icon-map.json +1 -1
- package/dist/components/assets/icons/tc/tc-bubbles.svg +3 -0
- package/dist/components/index.js +3 -1
- package/dist/components/{p-133a5329.js → p-0bc8f271.js} +7 -7
- package/dist/components/{p-4997eb6a.js → p-0c468958.js} +2 -2
- package/dist/components/{p-f81f3b8a.js → p-1790dbb6.js} +2 -2
- package/dist/components/{p-3e7c1149.js → p-19c1818f.js} +10 -10
- package/dist/components/{p-18ea47ca.js → p-1c466832.js} +1 -1
- package/dist/components/{p-d0c701e2.js → p-1c7c39e3.js} +3 -3
- package/dist/components/{p-ee1d939a.js → p-220f3eef.js} +1 -1
- package/dist/components/{p-ccd4e8a3.js → p-2627300f.js} +1 -1
- package/dist/components/{p-01f3f689.js → p-2a1f3779.js} +5 -5
- package/dist/components/{p-aaefac33.js → p-31662bf6.js} +1 -1
- package/dist/components/{p-6cf7bbb6.js → p-323ad3ad.js} +4 -4
- package/dist/components/{p-2468a358.js → p-35228b24.js} +2 -2
- package/dist/components/{p-8b60f0d6.js → p-355a2513.js} +3 -3
- package/dist/components/{p-76f77f88.js → p-365bd14f.js} +2 -2
- package/dist/components/{p-062b9078.js → p-38f60b37.js} +2 -2
- package/dist/components/{p-0fa6d576.js → p-3f08bb9f.js} +2 -2
- package/dist/components/{p-1c2dfe56.js → p-429b72d5.js} +1 -1
- package/dist/components/{p-cc6c2e3f.js → p-4a5ad708.js} +3 -3
- package/dist/components/{p-e54ff1e9.js → p-4c5fdbae.js} +3 -3
- package/dist/components/{p-1a05cff4.js → p-535e5e0f.js} +2 -2
- package/dist/components/{p-21c643fd.js → p-54bd66a7.js} +6 -6
- package/dist/components/{p-224df714.js → p-56f2b572.js} +10 -10
- package/dist/components/{p-9b1f8067.js → p-57f8ba03.js} +3 -3
- package/dist/components/{p-63404e57.js → p-581edb37.js} +1 -1
- package/dist/components/{p-a8f6912f.js → p-652bf1d3.js} +3 -3
- package/dist/components/{p-ae808f30.js → p-66cd9c5e.js} +13 -4
- package/dist/components/{p-afb40afd.js → p-6817045a.js} +5 -5
- package/dist/components/{p-56690079.js → p-84f94c19.js} +5 -5
- package/dist/components/{p-e1639033.js → p-88af3744.js} +1 -1
- package/dist/components/{p-d04f645b.js → p-945a21e9.js} +3 -3
- package/dist/components/{p-8633b584.js → p-977ae11e.js} +4 -4
- package/dist/components/{p-2a0fc928.js → p-a268bed7.js} +4 -4
- package/dist/components/{p-44301cce.js → p-a5cfbf0e.js} +14 -14
- package/dist/components/{p-9adf59c1.js → p-a6866b89.js} +8 -8
- package/dist/components/{p-0a31936f.js → p-b19fd5b3.js} +6 -6
- package/dist/components/{p-7cdac5d6.js → p-b728afb9.js} +10 -10
- package/dist/components/{p-e8649be7.js → p-bcf37b89.js} +2 -2
- package/dist/components/{p-ca74db2c.js → p-bd9f0ad1.js} +2 -2
- package/dist/components/{p-2e20db77.js → p-bf555b5b.js} +7 -7
- package/dist/components/{p-62c19c57.js → p-bfd8f44d.js} +3 -3
- package/dist/components/{p-21e917bf.js → p-c1f5b99f.js} +2 -2
- package/dist/components/{p-73b73702.js → p-c747ef5e.js} +7 -7
- package/dist/components/{p-d54b4e27.js → p-c7971733.js} +5 -5
- package/dist/components/{p-4ab0f603.js → p-c7c47790.js} +1 -1
- package/dist/components/{p-ee3f205f.js → p-c899f7af.js} +1 -1
- package/dist/components/{p-d4e53824.js → p-c9264c04.js} +18 -8
- package/dist/components/{p-b78b4924.js → p-ca4fdcbd.js} +11 -11
- package/dist/components/{p-845ded9d.js → p-cb246127.js} +2 -2
- package/dist/components/{p-d8921683.js → p-cd651081.js} +2 -2
- package/dist/components/p-ce645b64.js +96 -0
- package/dist/components/{p-f7b7d9f6.js → p-d13622ee.js} +4 -4
- package/dist/components/{p-341663ab.js → p-d4192716.js} +1 -1
- package/dist/components/{p-6211f6bc.js → p-d9488717.js} +2 -2
- package/dist/components/{p-9fa32f6e.js → p-dc3626ac.js} +5 -5
- package/dist/components/{p-31a13ae5.js → p-debe311c.js} +3 -3
- package/dist/components/{p-92ed933f.js → p-ea2373bf.js} +2 -2
- package/dist/components/{p-9dcc547a.js → p-f8ac52c6.js} +1 -1
- package/dist/components/{p-a79147be.js → p-fb1c7049.js} +3 -3
- package/dist/components/{p-e701ab2a.js → p-fd4d6614.js} +13 -13
- 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 +26 -26
- 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 +19 -19
- package/dist/components/tet-b2b-service-calculator.js +9 -9
- package/dist/components/tet-banner-nav.js +3 -3
- package/dist/components/tet-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +2 -2
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +5 -5
- package/dist/components/tet-business-lines.js +6 -6
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +2 -2
- package/dist/components/tet-business-summary-card.js +1 -1
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +11 -11
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +8 -8
- package/dist/components/tet-cloud-configurator.js +11 -11
- package/dist/components/tet-colors.js +5 -5
- package/dist/components/tet-compare-card-v2.js +10 -10
- 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-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-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.d.ts +11 -0
- package/dist/components/tet-feedback-form.js +282 -0
- package/dist/components/tet-filter.js +6 -6
- package/dist/components/tet-font-weight.js +2 -2
- package/dist/components/tet-fonts.js +2 -2
- package/dist/components/tet-grid.js +2 -2
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +4 -4
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-label.js +5 -5
- package/dist/components/tet-layout.js +2 -2
- package/dist/components/tet-link-card-list.js +4 -4
- package/dist/components/tet-link.js +2 -2
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +12 -12
- package/dist/components/tet-menu-mobile.js +3 -3
- package/dist/components/tet-menu.js +3 -3
- package/dist/components/tet-multi-step-dialog.js +6 -6
- package/dist/components/tet-navigation-mobile.js +5 -5
- package/dist/components/tet-news-card-list.js +5 -5
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-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 +9 -9
- package/dist/components/tet-round-stepper.js +3 -3
- package/dist/components/tet-selection-list.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 +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-textarea.js +1 -83
- 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-1450f031.js → address-483cfa2e.js} +1 -1
- package/dist/esm/{assets-2c6a61a5.js → assets-d6147258.js} +1 -1
- package/dist/esm/{async-request-99d44c50.js → async-request-21a65bdc.js} +1 -1
- package/dist/esm/{http-codes-53c8d512.js → http-codes-c2e180c8.js} +1 -1
- package/dist/esm/{index-3e01408d.js → index-0c5fef2e.js} +1 -1
- package/dist/esm/{index-a59c9de7.js → index-209dece3.js} +19 -11
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-1c67bd7f.js → phone-4452d476.js} +2 -2
- package/dist/esm/{product-comparison-1937b6e6.js → product-comparison-41b334ab.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +161 -0
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
- package/dist/esm/tet-address-offers-view.entry.js +4 -4
- package/dist/esm/tet-address-offers_4.entry.js +9 -9
- package/dist/esm/tet-address-search.entry.js +7 -7
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
- package/dist/esm/tet-autocomplete.entry.js +1 -1
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +6 -6
- package/dist/esm/tet-b2b-configurator.entry.js +4 -4
- package/dist/esm/tet-b2b-service-calculator.entry.js +4 -4
- package/dist/esm/tet-banner-nav.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +2 -2
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +3 -3
- package/dist/esm/tet-business-lines.entry.js +5 -5
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-button.entry.js +1 -1
- package/dist/esm/tet-card-list.entry.js +5 -5
- package/dist/esm/tet-carousel.entry.js +10 -10
- package/dist/esm/tet-checkbox.entry.js +11 -3
- 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 +4 -4
- 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-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-dropdown_2.entry.js +3 -3
- 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 +225 -0
- package/dist/esm/tet-filter.entry.js +3 -3
- package/dist/esm/tet-font-weight.entry.js +2 -2
- package/dist/esm/tet-fonts.entry.js +2 -2
- package/dist/esm/tet-grid.entry.js +2 -2
- package/dist/esm/tet-icon.entry.js +3 -3
- package/dist/esm/tet-inline-message.entry.js +3 -3
- package/dist/esm/tet-input.entry.js +4 -4
- package/dist/esm/tet-label.entry.js +5 -5
- package/dist/esm/tet-layout.entry.js +2 -2
- package/dist/esm/tet-link-card-list.entry.js +2 -2
- package/dist/esm/tet-link.entry.js +2 -2
- package/dist/esm/tet-loader.entry.js +2 -2
- package/dist/esm/tet-macd-view.entry.js +7 -7
- package/dist/esm/tet-menu-mobile.entry.js +2 -2
- package/dist/esm/tet-menu.entry.js +2 -2
- package/dist/esm/tet-multi-step-dialog.entry.js +4 -4
- package/dist/esm/tet-navigation-mobile.entry.js +4 -4
- package/dist/esm/tet-news-card-list.entry.js +2 -2
- package/dist/esm/{tet-accordion_2.entry.js → tet-notification.entry.js} +3 -152
- package/dist/esm/tet-number-input.entry.js +3 -3
- package/dist/esm/tet-placeholder.entry.js +2 -2
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio.entry.js +2 -2
- package/dist/esm/tet-range-slider.entry.js +8 -8
- package/dist/esm/tet-referral.entry.js +7 -7
- package/dist/esm/tet-round-stepper.entry.js +2 -2
- package/dist/esm/tet-spacing.entry.js +2 -2
- package/dist/esm/tet-spinner.entry.js +4 -4
- package/dist/esm/tet-stepper-input.entry.js +4 -4
- package/dist/esm/tet-stepper-v2.entry.js +2 -2
- package/dist/esm/tet-stepper-v3.entry.js +2 -2
- package/dist/esm/tet-stepper.entry.js +2 -2
- package/dist/esm/tet-switch.entry.js +2 -2
- package/dist/esm/tet-tab-header.entry.js +3 -3
- package/dist/esm/tet-table.entry.js +2 -2
- package/dist/esm/tet-tag_2.entry.js +5 -5
- package/dist/esm/tet-text-list.entry.js +2 -2
- package/dist/esm/tet-textarea.entry.js +14 -5
- 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-4e6b2b05.js → theme-wrapper-58ce8dca.js} +2 -2
- package/dist/esm/{translations-a33e8a2e.js → translations-ff21fc65.js} +1 -1
- package/dist/tet-components/assets/icons/icon-map.json +1 -1
- package/dist/tet-components/assets/icons/tc/tc-bubbles.svg +3 -0
- package/dist/tet-components/{p-2b1e998e.entry.js → p-01dfd324.entry.js} +1 -1
- package/dist/tet-components/{p-fca94c5c.js → p-0449b998.js} +1 -1
- package/dist/tet-components/{p-d92b24f0.entry.js → p-0ca2a56d.entry.js} +1 -1
- package/dist/tet-components/{p-96d79e87.entry.js → p-1648389a.entry.js} +1 -1
- package/dist/tet-components/p-18121aff.entry.js +1 -0
- package/dist/tet-components/{p-dea4fa54.entry.js → p-190345a1.entry.js} +1 -1
- package/dist/tet-components/{p-4d0291a3.entry.js → p-1e0cc45f.entry.js} +1 -1
- package/dist/tet-components/{p-947de891.entry.js → p-1e1923e0.entry.js} +1 -1
- package/dist/tet-components/{p-ad6011e1.entry.js → p-22cbd7b5.entry.js} +1 -1
- package/dist/tet-components/p-251e19de.entry.js +1 -0
- package/dist/tet-components/{p-56618995.entry.js → p-2813884f.entry.js} +1 -1
- package/dist/tet-components/{p-7889d0ae.entry.js → p-29a179e7.entry.js} +1 -1
- package/dist/tet-components/{p-973779bd.entry.js → p-2c539c79.entry.js} +1 -1
- package/dist/tet-components/{p-840db8ad.entry.js → p-2cd1a4f9.entry.js} +1 -1
- package/dist/tet-components/{p-ad4e24c1.entry.js → p-2e1cfe60.entry.js} +1 -1
- package/dist/tet-components/{p-6bfee6d7.entry.js → p-300de460.entry.js} +1 -1
- package/dist/tet-components/{p-b38c1945.entry.js → p-31748907.entry.js} +1 -1
- package/dist/tet-components/{p-db97dcc0.entry.js → p-344a3be8.entry.js} +1 -1
- package/dist/tet-components/{p-4d614cc4.entry.js → p-356c3561.entry.js} +1 -1
- package/dist/tet-components/{p-1e992b39.entry.js → p-3a274e99.entry.js} +1 -1
- package/dist/tet-components/{p-4dbfc05f.entry.js → p-3b82937c.entry.js} +1 -1
- package/dist/tet-components/{p-af1d9a81.js → p-3deb6f3c.js} +1 -1
- package/dist/tet-components/{p-80b930da.entry.js → p-416456d1.entry.js} +1 -1
- package/dist/tet-components/p-42bd6c73.entry.js +1 -0
- package/dist/tet-components/{p-5eefb349.entry.js → p-441349b1.entry.js} +1 -1
- package/dist/tet-components/{p-31e722e9.entry.js → p-446ae6ef.entry.js} +1 -1
- package/dist/tet-components/{p-754c4aad.entry.js → p-451b2a49.entry.js} +1 -1
- package/dist/tet-components/{p-40c084e4.entry.js → p-4c64992e.entry.js} +1 -1
- package/dist/tet-components/{p-13e8a445.entry.js → p-55edf062.entry.js} +1 -1
- package/dist/tet-components/{p-1182034b.js → p-56bfd2a5.js} +1 -1
- package/dist/tet-components/{p-a518f521.entry.js → p-575ebf63.entry.js} +1 -1
- package/dist/tet-components/{p-d42a2844.entry.js → p-595280d6.entry.js} +1 -1
- package/dist/tet-components/p-6251c886.entry.js +1 -0
- package/dist/tet-components/{p-67fc6ef4.entry.js → p-63c1058d.entry.js} +1 -1
- package/dist/tet-components/{p-e85f5e2f.entry.js → p-63cc142d.entry.js} +1 -1
- package/dist/tet-components/{p-980d48ac.entry.js → p-658cb760.entry.js} +1 -1
- package/dist/tet-components/p-6604a21c.entry.js +1 -0
- package/dist/tet-components/{p-cfce3266.entry.js → p-6656ca63.entry.js} +1 -1
- package/dist/tet-components/{p-2c6e5a24.entry.js → p-6774786e.entry.js} +1 -1
- package/dist/tet-components/{p-5d8313d2.entry.js → p-68709390.entry.js} +1 -1
- package/dist/tet-components/{p-03f9e262.js → p-6a185f76.js} +1 -1
- package/dist/tet-components/{p-96f1a83f.entry.js → p-6f476508.entry.js} +1 -1
- package/dist/tet-components/{p-66e858ee.entry.js → p-70d11130.entry.js} +1 -1
- package/dist/tet-components/{p-5f750abb.entry.js → p-7145ca73.entry.js} +1 -1
- package/dist/tet-components/{p-ea211ac8.js → p-77d941d8.js} +1 -1
- package/dist/tet-components/{p-9c106b2e.entry.js → p-7ae725e1.entry.js} +1 -1
- package/dist/tet-components/{p-3174827c.entry.js → p-7b86e14f.entry.js} +1 -1
- package/dist/tet-components/{p-ab705953.entry.js → p-7edc8afa.entry.js} +1 -1
- package/dist/tet-components/{p-ebeda1cc.entry.js → p-7edf0fe4.entry.js} +1 -1
- package/dist/tet-components/{p-d7b41404.entry.js → p-8593d213.entry.js} +1 -1
- package/dist/tet-components/{p-317ba450.entry.js → p-8622e131.entry.js} +1 -1
- package/dist/tet-components/{p-39609fb1.entry.js → p-89c50edc.entry.js} +1 -1
- package/dist/tet-components/{p-b84607f3.entry.js → p-8b53e08c.entry.js} +1 -1
- package/dist/tet-components/{p-67e1a210.entry.js → p-8cda794b.entry.js} +1 -1
- package/dist/tet-components/{p-f99e7577.entry.js → p-8f7629ca.entry.js} +1 -1
- package/dist/tet-components/{p-4b90dabc.js → p-94e9a944.js} +1 -1
- package/dist/tet-components/{p-4d53681e.entry.js → p-96870201.entry.js} +1 -1
- package/dist/tet-components/p-9b5cf49f.js +2 -0
- package/dist/tet-components/{p-3e9322a0.entry.js → p-9daca141.entry.js} +1 -1
- package/dist/tet-components/{p-ed462633.entry.js → p-9dca5c29.entry.js} +1 -1
- package/dist/tet-components/{p-a0bb7090.entry.js → p-9f2b1c8f.entry.js} +1 -1
- package/dist/tet-components/{p-7d2ec154.entry.js → p-a20af775.entry.js} +1 -1
- package/dist/tet-components/{p-e6b214f5.entry.js → p-a41a07f1.entry.js} +1 -1
- package/dist/tet-components/{p-bf159a0e.entry.js → p-a73d3984.entry.js} +1 -1
- package/dist/tet-components/{p-854874fc.entry.js → p-aff1c2c6.entry.js} +1 -1
- package/dist/tet-components/{p-f31c15eb.entry.js → p-b4f7ad9d.entry.js} +1 -1
- package/dist/tet-components/{p-32bd0e18.entry.js → p-b7d43b49.entry.js} +1 -1
- package/dist/tet-components/{p-32901a27.js → p-ba5ebe5a.js} +1 -1
- package/dist/tet-components/{p-77fcc923.entry.js → p-c07c5b84.entry.js} +1 -1
- package/dist/tet-components/{p-236b09e1.entry.js → p-c24c48e4.entry.js} +1 -1
- package/dist/tet-components/{p-fc8f4da5.entry.js → p-c3b99e7a.entry.js} +1 -1
- package/dist/tet-components/{p-d865906c.js → p-c4fc2dd6.js} +1 -1
- package/dist/tet-components/{p-566b16ff.entry.js → p-c887b848.entry.js} +1 -1
- package/dist/tet-components/{p-9ae88a93.entry.js → p-cc1a64a0.entry.js} +1 -1
- package/dist/tet-components/{p-7a73acdc.entry.js → p-ce74a144.entry.js} +1 -1
- package/dist/tet-components/{p-1826442b.entry.js → p-d0b75b9a.entry.js} +1 -1
- package/dist/tet-components/p-d1af931f.entry.js +1 -0
- package/dist/tet-components/{p-e2b4633f.entry.js → p-d4b6b480.entry.js} +1 -1
- package/dist/tet-components/{p-050b9d63.entry.js → p-d8bebee4.entry.js} +1 -1
- package/dist/tet-components/{p-2600468d.js → p-d9a826c2.js} +1 -1
- package/dist/tet-components/{p-f8b49339.entry.js → p-dd6c7252.entry.js} +1 -1
- package/dist/tet-components/{p-2b65a26b.entry.js → p-e0c2f3c7.entry.js} +1 -1
- package/dist/tet-components/{p-4be13d3e.entry.js → p-e2c427f7.entry.js} +1 -1
- package/dist/tet-components/{p-bc95d21f.entry.js → p-e2e74966.entry.js} +1 -1
- package/dist/tet-components/{p-111f80d9.entry.js → p-e437ff51.entry.js} +1 -1
- package/dist/tet-components/{p-aa9aa588.entry.js → p-e4523a6a.entry.js} +1 -1
- package/dist/tet-components/{p-cb38ba75.entry.js → p-e8743c14.entry.js} +1 -1
- package/dist/tet-components/{p-ca98aa2e.entry.js → p-eb1bd839.entry.js} +1 -1
- package/dist/tet-components/{p-ab1e8cc4.entry.js → p-ebfb7964.entry.js} +1 -1
- package/dist/tet-components/{p-e66583a2.entry.js → p-eeb9d7f5.entry.js} +1 -1
- package/dist/tet-components/{p-7b412a8f.entry.js → p-f615c5ec.entry.js} +1 -1
- package/dist/tet-components/{p-2422d833.entry.js → p-f7083c79.entry.js} +1 -1
- package/dist/tet-components/{p-398e81de.entry.js → p-fa11d75e.entry.js} +1 -1
- package/dist/tet-components/tet-components.css +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/forms/tet-feedback-form/tet-feedback-form.d.ts +102 -0
- package/dist/types/components/basic/buttons/tet-checkbox/tet-checkbox.d.ts +2 -0
- package/dist/types/components/simple/inputs/tet-textarea/tet-textarea.d.ts +8 -0
- package/dist/types/components/simple/structural/tet-accordion/tet-accordion.d.ts +4 -0
- package/dist/types/components.d.ts +102 -0
- package/package.json +4 -1
- package/dist/tet-components/p-085ebb93.entry.js +0 -1
- package/dist/tet-components/p-8594f223.entry.js +0 -1
- package/dist/tet-components/p-8b763a4f.entry.js +0 -1
- package/dist/tet-components/p-9d9b2579.entry.js +0 -1
- package/dist/tet-components/p-c2d4b54d.js +0 -2
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { h, Host, forceUpdate } from "@stencil/core";
|
|
2
|
+
import { processTranslations, t } from "../../../../services/translations/index";
|
|
3
|
+
;
|
|
4
|
+
/**
|
|
5
|
+
* A customizable feedback form component with accordion layout.
|
|
6
|
+
*
|
|
7
|
+
* Checkbox option IDs must follow **valid JavaScript identifier** patterns.
|
|
8
|
+
*/
|
|
9
|
+
export class TetFeedbackForm {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.theme = 'light';
|
|
12
|
+
this.language = 'lv';
|
|
13
|
+
this.data = undefined;
|
|
14
|
+
this.expanded = false;
|
|
15
|
+
this.formError = false;
|
|
16
|
+
this.characterCount = 0;
|
|
17
|
+
this.submissionData = {
|
|
18
|
+
helpful: true,
|
|
19
|
+
options: {},
|
|
20
|
+
comment: '',
|
|
21
|
+
};
|
|
22
|
+
this.submitted = false;
|
|
23
|
+
}
|
|
24
|
+
/** The event that is emitted when user submits the form. */
|
|
25
|
+
feedbackSubmitted;
|
|
26
|
+
/** Watches for changes in the language prop to update translations and force component update. */
|
|
27
|
+
onLanguageChange(language) {
|
|
28
|
+
processTranslations('tet-components', language).then(() => forceUpdate(this));
|
|
29
|
+
}
|
|
30
|
+
/** Processes translations and merges data with defaults. */
|
|
31
|
+
async componentWillLoad() {
|
|
32
|
+
await processTranslations('tet-components', this.language);
|
|
33
|
+
forceUpdate(this);
|
|
34
|
+
}
|
|
35
|
+
/** Reference to the tet-accordion element. */
|
|
36
|
+
accordionRef;
|
|
37
|
+
/** Reference to the tet-textarea element. */
|
|
38
|
+
textareaRef;
|
|
39
|
+
/** References to the tet-checkbox elements. */
|
|
40
|
+
checkboxRefs = new Map();
|
|
41
|
+
/** Returns default values as a fallback when not provided in the data prop. */
|
|
42
|
+
getDefaultValues() {
|
|
43
|
+
return {
|
|
44
|
+
label: t('components-feedback-form-label'),
|
|
45
|
+
labelTag: 'h2',
|
|
46
|
+
okButtonLabel: t('components-button-label-yes'),
|
|
47
|
+
okButtonIconName: 'tc-check',
|
|
48
|
+
nokButtonLabel: t('components-button-label-no'),
|
|
49
|
+
nokButtonIconName: 'tc-close',
|
|
50
|
+
formTitle: t('components-feedback-form-title'),
|
|
51
|
+
formDescription: t('components-feedback-form-description'),
|
|
52
|
+
checkboxOptions: [],
|
|
53
|
+
showTextarea: true,
|
|
54
|
+
textareaLabel: t('components-feedback-form-textarea-label'),
|
|
55
|
+
textareaPlaceholder: t('components-feedback-form-textarea-placeholder'),
|
|
56
|
+
textareaMaxLength: 500,
|
|
57
|
+
footerText: t('components-feedback-form-footer-text'),
|
|
58
|
+
footerIconName: 'tc-bubbles',
|
|
59
|
+
submitButtonLabel: t('components-feedback-form-submit-button-label'),
|
|
60
|
+
submitButtonIconName: 'tc-arrow-right',
|
|
61
|
+
thankYouIconName: 'tc-check-circle',
|
|
62
|
+
thankYouTitle: t('components-feedback-form-thank-you-title'),
|
|
63
|
+
thankYouDescription: t('components-feedback-form-thank-you-description'),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/** Returns user-provided data merged with defaults. */
|
|
67
|
+
get mergedData() {
|
|
68
|
+
return {
|
|
69
|
+
...this.getDefaultValues(),
|
|
70
|
+
...this.data,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/** Toggles the accordion state and resets the form error state if it is set. */
|
|
74
|
+
toggleAccordion() {
|
|
75
|
+
if (this.accordionRef) {
|
|
76
|
+
this.accordionRef.toggle();
|
|
77
|
+
if (this.formError) {
|
|
78
|
+
this.setFormError(false);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Handles click on a checkbox list item to update the submission data with the selected options.
|
|
84
|
+
* Resets form error state if it was set.
|
|
85
|
+
*/
|
|
86
|
+
onListItemClick(event, id) {
|
|
87
|
+
const isChecked = !!event.detail.checked;
|
|
88
|
+
if (this.formError) {
|
|
89
|
+
this.setFormError(false);
|
|
90
|
+
}
|
|
91
|
+
if (isChecked) {
|
|
92
|
+
this.submissionData = {
|
|
93
|
+
...this.submissionData,
|
|
94
|
+
options: {
|
|
95
|
+
...this.submissionData.options,
|
|
96
|
+
[id]: true,
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const { [id]: _, ...rest } = this.submissionData.options;
|
|
102
|
+
this.submissionData = {
|
|
103
|
+
...this.submissionData,
|
|
104
|
+
options: rest
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/** Handles input event on the textarea to update the character count and submission data. */
|
|
109
|
+
async onTextInput() {
|
|
110
|
+
if (!this.textareaRef) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const value = await this.textareaRef.getValue();
|
|
114
|
+
this.characterCount = value.length;
|
|
115
|
+
this.submissionData = {
|
|
116
|
+
...this.submissionData,
|
|
117
|
+
comment: value
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Emits the feedbackSubmitted event with the current submission data
|
|
122
|
+
* or sets form error state if the feedback is negative and no options are selected.
|
|
123
|
+
*/
|
|
124
|
+
submitFeedback(helpful) {
|
|
125
|
+
this.submissionData.helpful = helpful;
|
|
126
|
+
if (helpful) {
|
|
127
|
+
this.submissionData.options = {};
|
|
128
|
+
this.submissionData.comment = '';
|
|
129
|
+
}
|
|
130
|
+
else if (!Object.keys(this.submissionData.options).length) {
|
|
131
|
+
this.setFormError(true);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this.feedbackSubmitted.emit(this.submissionData);
|
|
135
|
+
this.submitted = true;
|
|
136
|
+
}
|
|
137
|
+
/** Sets the form error state and updates the checkbox error states. */
|
|
138
|
+
setFormError(value) {
|
|
139
|
+
for (const checkbox of this.checkboxRefs.values()) {
|
|
140
|
+
checkbox.setError(value);
|
|
141
|
+
}
|
|
142
|
+
this.formError = value;
|
|
143
|
+
}
|
|
144
|
+
/** Gets the next heading level (one level deeper). */
|
|
145
|
+
getSubheadingTag() {
|
|
146
|
+
const { labelTag } = this.mergedData;
|
|
147
|
+
const headingMap = {
|
|
148
|
+
'h1': 'h2',
|
|
149
|
+
'h2': 'h3',
|
|
150
|
+
'h3': 'h4',
|
|
151
|
+
'h4': 'h5',
|
|
152
|
+
'h5': 'h6',
|
|
153
|
+
};
|
|
154
|
+
return headingMap[labelTag];
|
|
155
|
+
}
|
|
156
|
+
renderAccordionHeader() {
|
|
157
|
+
const { theme, mergedData, expanded } = this;
|
|
158
|
+
const { label, labelTag, okButtonLabel, nokButtonLabel, okButtonIconName, nokButtonIconName } = mergedData;
|
|
159
|
+
const HeadingTag = labelTag;
|
|
160
|
+
return (h("div", { slot: "header", class: {
|
|
161
|
+
'feedback-form__header': true,
|
|
162
|
+
'feedback-form__header--expanded': expanded
|
|
163
|
+
} }, h(HeadingTag, { class: "feedback-form__title" }, label), h("div", { class: "feedback-form__button-container" }, h("tet-button", { class: "button", iconName: okButtonIconName, iconPosition: 'left', theme: theme, type: "secondary", onClick: () => this.submitFeedback(true), "data-testid": "feedback-ok-button" }, okButtonLabel), h("tet-button", { class: "button", iconName: nokButtonIconName, iconPosition: 'left', theme: theme, type: "secondary", onClick: () => this.toggleAccordion(), "data-testid": "feedback-nok-button" }, nokButtonLabel))));
|
|
164
|
+
}
|
|
165
|
+
renderFormContentHeader() {
|
|
166
|
+
const { theme, mergedData } = this;
|
|
167
|
+
const { formTitle, formDescription } = mergedData;
|
|
168
|
+
const HeadingTag = this.getSubheadingTag();
|
|
169
|
+
return (h("div", { class: "main__header" }, h("div", { class: "main__header--left" }, h(HeadingTag, { id: "form-content-title", class: "title" }, formTitle), h("p", { id: "form-content-description", class: "subtitle" }, formDescription)), h("button", { class: "main__header-close-btn", onClick: () => this.toggleAccordion(), "aria-label": t('components-availability-close'), type: "button", "data-testid": "feedback-close-button" }, h("tet-icon", { theme: theme, class: "icon", name: "tc-close" }))));
|
|
170
|
+
}
|
|
171
|
+
renderFormCheckboxOptions() {
|
|
172
|
+
const { theme, mergedData } = this;
|
|
173
|
+
const { checkboxOptions } = mergedData;
|
|
174
|
+
if (!checkboxOptions.length) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
return (h("ul", { class: "main__option-list" }, checkboxOptions.map(({ id, label }) => (h("li", { key: id, class: { "checkbox-wrapper": true, 'checkbox-wrapper--error': this.formError } }, h("tet-checkbox", { ref: el => {
|
|
178
|
+
if (el)
|
|
179
|
+
this.checkboxRefs.set(id, el);
|
|
180
|
+
}, class: "checkbox", theme: theme, checked: !!this.submissionData?.options?.[id], focusStyleOnContainer: true, onCheck: (event) => this.onListItemClick(event, id) }, label))))));
|
|
181
|
+
}
|
|
182
|
+
renderFormTextArea() {
|
|
183
|
+
const { theme, mergedData } = this;
|
|
184
|
+
const { showTextarea, textareaLabel, textareaPlaceholder, textareaMaxLength } = mergedData;
|
|
185
|
+
if (!showTextarea) {
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
return (h("div", { class: "main__text-input" }, h("tet-textarea", { label: textareaLabel, class: "textarea", theme: theme, value: this.submissionData.comment, onInput: () => this.onTextInput(), ref: el => this.textareaRef = el, placeholder: textareaPlaceholder, maxLength: textareaMaxLength }), h("div", { class: "counter" }, this.characterCount, "/", textareaMaxLength)));
|
|
189
|
+
}
|
|
190
|
+
renderFormFooter() {
|
|
191
|
+
const { theme, mergedData } = this;
|
|
192
|
+
const { footerText, footerIconName } = mergedData;
|
|
193
|
+
const footerTextParts = footerText.split(/\{\{\s*([+0-9][0-9 ]{0,20})\s*\}\}/g);
|
|
194
|
+
const trim = (part) => part.trim();
|
|
195
|
+
const content = footerTextParts.map((part, i) => ((i % 2 === 0) ? part : (h("a", { href: `tel:${trim(part)}`, class: { 'tet-link': true, [theme]: true, 'tet-link--secondary': true } }, trim(part)))));
|
|
196
|
+
return (h("footer", { class: "feedback-form__form--footer" }, h("div", { class: "footer-icon-block" }, h("tet-icon", { theme: theme, class: "footer-icon", name: footerIconName })), h("div", { class: "footer-text" }, content)));
|
|
197
|
+
}
|
|
198
|
+
renderSubmitButton() {
|
|
199
|
+
const { theme, mergedData } = this;
|
|
200
|
+
const { submitButtonLabel, submitButtonIconName } = mergedData;
|
|
201
|
+
return (h("tet-button", { class: "main__submit-button", iconName: submitButtonIconName, theme: theme, type: "primary", onClick: () => this.submitFeedback(false), "data-testid": "feedback-submit-button" }, submitButtonLabel));
|
|
202
|
+
}
|
|
203
|
+
renderAccordionContent() {
|
|
204
|
+
return (h("form", { class: "feedback-form__form", "aria-labelledby": "form-content-title", "aria-describedby": "form-content-description" }, h("div", { class: "feedback-form__form--main" }, this.renderFormContentHeader(), this.renderFormCheckboxOptions(), this.renderFormTextArea(), this.renderSubmitButton()), this.renderFormFooter()));
|
|
205
|
+
}
|
|
206
|
+
renderAccordionComponent() {
|
|
207
|
+
return (h("tet-accordion", { class: "feedback-form__accordion", theme: this.theme, isHeaderInteractive: false, transparentBackground: true, ref: (el) => (this.accordionRef = el), onOpenChanged: (e) => { this.expanded = e.detail; } }, this.renderAccordionHeader(), this.renderAccordionContent()));
|
|
208
|
+
}
|
|
209
|
+
renderThankYouComponent() {
|
|
210
|
+
const { labelTag, thankYouIconName, thankYouTitle, thankYouDescription } = this.mergedData;
|
|
211
|
+
const HeadingTag = labelTag;
|
|
212
|
+
return (h("div", { class: "feedback-form__thank-you", "aria-live": "polite" }, h("tet-icon", { class: "icon", name: thankYouIconName }), h("div", { class: "text-block" }, h(HeadingTag, { class: "title" }, thankYouTitle), h("p", { class: "description" }, thankYouDescription))));
|
|
213
|
+
}
|
|
214
|
+
render() {
|
|
215
|
+
return (h(Host, { key: '6e974c9c8f1ffd16416d89a89bd0beb3949f90a3' }, h("section", { key: 'c8223e88595b2ae02b5146d88841d187d2c812a1', class: "feedback-form" }, this.submitted ? this.renderThankYouComponent() : this.renderAccordionComponent())));
|
|
216
|
+
}
|
|
217
|
+
static get is() { return "tet-feedback-form"; }
|
|
218
|
+
static get encapsulation() { return "shadow"; }
|
|
219
|
+
static get originalStyleUrls() {
|
|
220
|
+
return {
|
|
221
|
+
"$": ["tet-feedback-form.scss"]
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
static get styleUrls() {
|
|
225
|
+
return {
|
|
226
|
+
"$": ["tet-feedback-form.css"]
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
static get properties() {
|
|
230
|
+
return {
|
|
231
|
+
"theme": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "'light' | 'dark'",
|
|
236
|
+
"resolved": "\"dark\" | \"light\"",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "The theme of the component."
|
|
244
|
+
},
|
|
245
|
+
"attribute": "theme",
|
|
246
|
+
"reflect": false,
|
|
247
|
+
"defaultValue": "'light'"
|
|
248
|
+
},
|
|
249
|
+
"language": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "string",
|
|
254
|
+
"resolved": "string",
|
|
255
|
+
"references": {}
|
|
256
|
+
},
|
|
257
|
+
"required": false,
|
|
258
|
+
"optional": false,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": "The translation language."
|
|
262
|
+
},
|
|
263
|
+
"attribute": "language",
|
|
264
|
+
"reflect": false,
|
|
265
|
+
"defaultValue": "'lv'"
|
|
266
|
+
},
|
|
267
|
+
"data": {
|
|
268
|
+
"type": "unknown",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "FeedbackFormData",
|
|
272
|
+
"resolved": "FeedbackFormData",
|
|
273
|
+
"references": {
|
|
274
|
+
"FeedbackFormData": {
|
|
275
|
+
"location": "local",
|
|
276
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/forms/tet-feedback-form/tet-feedback-form.tsx",
|
|
277
|
+
"id": "src/components/advanced/forms/tet-feedback-form/tet-feedback-form.tsx::FeedbackFormData"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": false,
|
|
282
|
+
"optional": true,
|
|
283
|
+
"docs": {
|
|
284
|
+
"tags": [],
|
|
285
|
+
"text": "The data for the component."
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
static get states() {
|
|
291
|
+
return {
|
|
292
|
+
"expanded": {},
|
|
293
|
+
"formError": {},
|
|
294
|
+
"characterCount": {},
|
|
295
|
+
"submissionData": {},
|
|
296
|
+
"submitted": {}
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
static get events() {
|
|
300
|
+
return [{
|
|
301
|
+
"method": "feedbackSubmitted",
|
|
302
|
+
"name": "feedbackSubmitted",
|
|
303
|
+
"bubbles": true,
|
|
304
|
+
"cancelable": true,
|
|
305
|
+
"composed": true,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": "The event that is emitted when user submits the form."
|
|
309
|
+
},
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "FeedbackFormSubmissionData",
|
|
312
|
+
"resolved": "{ helpful: boolean; options: { [id: string]: boolean; }; comment: string; }",
|
|
313
|
+
"references": {
|
|
314
|
+
"FeedbackFormSubmissionData": {
|
|
315
|
+
"location": "local",
|
|
316
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/advanced/forms/tet-feedback-form/tet-feedback-form.tsx",
|
|
317
|
+
"id": "src/components/advanced/forms/tet-feedback-form/tet-feedback-form.tsx::FeedbackFormSubmissionData"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}];
|
|
322
|
+
}
|
|
323
|
+
static get watchers() {
|
|
324
|
+
return [{
|
|
325
|
+
"propName": "language",
|
|
326
|
+
"methodName": "onLanguageChange"
|
|
327
|
+
}];
|
|
328
|
+
}
|
|
329
|
+
}
|
|
@@ -33,7 +33,7 @@ export class TetTvGiftBlock {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '897f23f87a68c2b2af46bf65456a7f11325deab3' }, h("div", { key: 'bd9eda1afd8a194cd7c004413f229926ca33e20d', class: { 'tv-gift': true, [`tv-gift--${this.containerSize}`]: true } }, h("div", { key: '505c15b6c8430fded765a2fe754548e76fb780c1', class: "tv-gift__header" }, h("slot", { key: '00e2e7d1b4e998696175d3d8413b9508d6695117', name: "header" }, this.headerImageSrc && h("img", { key: '4e003772606714723d7646a59c38541dc3592993', class: "tv-gift__header__image", src: this.headerImageSrc }), h("div", { key: 'ee152d23f19056b8f80dcebda2fe8182a7b11c52', class: "tv-gift__header-text" }, this.headerTitle))), h("div", { key: 'ae59e0d2f78391b984c175924e0940c887605b20', class: "tv-gift__content" }, h("slot", { key: '52698a9be6a9daa3c62553668c6fe7105a54c2f3' })), h("div", { key: 'a453548305225ce2629b6ef71a7cf3b20cc1e988', class: "tv-gift__footer" }, h("slot", { key: 'edd958bc67ab30b08e1cb70ac8b1ca29a615fac1', name: "footer" }, h("span", { key: '597f9451fb6ac6a44a92ab7825e043635dc93dfa', class: "tv-gift__footer__title" }, this.footerTitle), h("span", { key: 'df8b6a40e64e1f6038d753ab7a4c1eef0f092b46', class: "tv-gift__footer__text" }, this.footerText))))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "tet-tv-gift-block"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js
CHANGED
|
@@ -36,11 +36,11 @@ export class TetTvGiftList {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '709d8b2605b1bb7011229abbba1551c842b39e0d' }, h("div", { key: '81cf090e004da33e97cce16cd7abdc615749a258', class: {
|
|
40
40
|
'tv-gift-list': true,
|
|
41
41
|
[`tv-gift-list--${this.containerSize}`]: true,
|
|
42
42
|
'tv-gift-list--image-list': Boolean(this.imageSource),
|
|
43
|
-
} }, this.imageSource && (h("div", { key: '
|
|
43
|
+
} }, this.imageSource && (h("div", { key: '7c021e2f2b20b54ccd3b193fd2ae72f6ece17690', class: "tv-gift-list__image__wrapper" }, h("img", { key: '0d27d612194d221b01de9d60a1be94acd12e21c8', class: "tv-gift-list__image", src: this.imageSource }))), h("div", { key: '75a21a5e8aaf8acfc5af2024fcf47ebc4c262226', class: "tv-gift-list__list__wrapper" }, h("span", { key: '314173ac2e7d8e344e84efc3904517b203fcacc4', class: "tv-gift-list__list__header" }, this.header), h("ul", { key: 'f125acb4961ba78988e242cf17b74429f93f39ba', class: "tv-gift-list__list" }, this.list.map(item => (h("li", { class: "tv-gift-list__list__item" }, h("tet-icon", { name: this.listBulletIcon }), item))))))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "tet-tv-gift-list"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -462,6 +462,8 @@
|
|
|
462
462
|
* @prop --checkbox-justify-content: The justify-content style for the checkbox container.
|
|
463
463
|
* @prop --checkbox-alignment: The alignment of the items - checkbox, label.
|
|
464
464
|
* @prop --checkbox-gap: The gap property checkbox container.
|
|
465
|
+
* @prop --checkbox-container-outline-offset: The outline offset for the container on keyboard focus.
|
|
466
|
+
|
|
465
467
|
|
|
466
468
|
* @prop --checkbox-hover-border-color: The border color of the checkbox on hover.
|
|
467
469
|
* @prop --checkbox-hover-background-color: The background color of the checkbox on hover.
|
|
@@ -490,12 +492,14 @@
|
|
|
490
492
|
--checkbox-justify-content: normal;
|
|
491
493
|
--checkbox-alignment: center;
|
|
492
494
|
--checkbox-gap: 0.625rem;
|
|
495
|
+
--checkbox-container-outline-offset: 0.125rem;
|
|
493
496
|
--checkbox-hover-border-color: var(--tc-border-secondary);
|
|
494
497
|
--checkbox-hover-background-color: var(--tc-checkbox-hover);
|
|
495
498
|
--checkbox-checked-hover-background-color: var(--tc-checkbox-active-hover);
|
|
496
499
|
--checkbox-checked-pressed-background-color: var(--tc-checkbox-active-pressed);
|
|
497
500
|
--checkbox-focus-background-color: transparent;
|
|
498
501
|
--checkbox-focus-shadow-color: var(--tc-checkbox-active-focus);
|
|
502
|
+
--checkbox-outline-focus-color: var(--tc-blue-40);
|
|
499
503
|
--checkbox-disabled-border-color: var(--tc-border-quaternary);
|
|
500
504
|
--checkbox-disabled-background-color: var(--tc-checkbox-disabled);
|
|
501
505
|
--checkbox-disabled-checked-background-color: var(--tc-checkbox-active-disabled);
|
|
@@ -517,6 +521,7 @@
|
|
|
517
521
|
--checkbox-checked-pressed-background-color: var(--tc-checkbox-active-pressed-dark);
|
|
518
522
|
--checkbox-focus-background-color: transparent;
|
|
519
523
|
--checkbox-focus-shadow-color: var(--tc-checkbox-active-focus-dark);
|
|
524
|
+
--checkbox-outline-focus-color: var(--tc-blue-40-dark);
|
|
520
525
|
--checkbox-disabled-border-color: var(--tc-border-quaternary-dark);
|
|
521
526
|
--checkbox-disabled-background-color: var(--tc-checkbox-disabled-dark);
|
|
522
527
|
--checkbox-disabled-checked-background-color: var(--tc-checkbox-active-disabled-dark);
|
|
@@ -529,6 +534,9 @@
|
|
|
529
534
|
outline-offset: 0.125rem;
|
|
530
535
|
transition: outline 0s;
|
|
531
536
|
}
|
|
537
|
+
.checkbox.dark .checkbox__html-input:focus-visible ~ .checkbox__input--hide-focus-style, .checkbox.mint .checkbox__html-input:focus-visible ~ .checkbox__input--hide-focus-style {
|
|
538
|
+
outline: none;
|
|
539
|
+
}
|
|
532
540
|
.checkbox.mint {
|
|
533
541
|
--checkbox-checked-background-color: rgb(31, 208, 214);
|
|
534
542
|
--checkbox-hover-background-color: rgba(31, 208, 214, 0.16);
|
|
@@ -548,6 +556,11 @@
|
|
|
548
556
|
color: var(--checkbox-text-color);
|
|
549
557
|
font-size: var(--checkbox-text-size);
|
|
550
558
|
}
|
|
559
|
+
.checkbox__container--focus-style:has(.checkbox__html-input:focus-visible) {
|
|
560
|
+
outline: 0.125rem solid var(--checkbox-outline-focus-color);
|
|
561
|
+
outline-offset: var(--checkbox-container-outline-offset);
|
|
562
|
+
border-radius: 0.125rem;
|
|
563
|
+
}
|
|
551
564
|
.checkbox__container:hover .checkbox__input {
|
|
552
565
|
border-color: var(--checkbox-hover-border-color);
|
|
553
566
|
background-color: var(--checkbox-hover-background-color);
|
|
@@ -590,6 +603,10 @@
|
|
|
590
603
|
outline-offset: 0.125rem;
|
|
591
604
|
transition: outline 0s;
|
|
592
605
|
}
|
|
606
|
+
.checkbox__html-input:focus-visible ~ .checkbox__input--hide-focus-style {
|
|
607
|
+
outline: none;
|
|
608
|
+
border-color: var(--checkbox-border-color);
|
|
609
|
+
}
|
|
593
610
|
.checkbox__html-input:focus-visible ~ .checkbox__input--error {
|
|
594
611
|
border-color: var(--checkbox-error-border-color);
|
|
595
612
|
}
|
|
@@ -14,6 +14,7 @@ export class TetCheckbox {
|
|
|
14
14
|
this.checked = false;
|
|
15
15
|
this.error = false;
|
|
16
16
|
this.indeterminate = false;
|
|
17
|
+
this.focusStyleOnContainer = false;
|
|
17
18
|
}
|
|
18
19
|
/** The HTML input element. */
|
|
19
20
|
inputEl;
|
|
@@ -61,7 +62,14 @@ export class TetCheckbox {
|
|
|
61
62
|
}
|
|
62
63
|
render() {
|
|
63
64
|
const { label, name, checked, value, disabled, error } = this;
|
|
64
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '4994fd34f7d6bd6c8ecd455901af830a3aff2da9' }, h("div", { key: '145d350427b8b39fcb4eec64cc2831bd8a591102', class: { checkbox: true, [`${this.theme}`]: true } }, h("label", { key: '2997be88ae2f9c5e47acd57451319af53d16d03c', class: {
|
|
66
|
+
'checkbox__container': true,
|
|
67
|
+
'checkbox__container--focus-style': this.focusStyleOnContainer,
|
|
68
|
+
}, part: "checkbox-container", htmlFor: "tet-checkbox" }, h("input", { key: '7b5939ba0c313e826c87afdd34ab6fe53a02d771', ref: (el) => (this.inputEl = el), class: "checkbox__html-input", id: "tet-checkbox", type: "checkbox", name: name, value: value, disabled: disabled, checked: checked, onChange: this.handleChange }), h("span", { key: '830ff2dc0d3578358eec875ef82eec88bad5425d', class: {
|
|
69
|
+
'checkbox__input': true,
|
|
70
|
+
'checkbox__input--error': error,
|
|
71
|
+
'checkbox__input--hide-focus-style': this.focusStyleOnContainer,
|
|
72
|
+
} }, h("tet-icon", { key: '9d765bfbec5c97c00d6fa3c4d2292844a2ec3afb', name: "remove", class: "checkbox__icon checkbox__icon--indeterminate indicator" }), h("tet-icon", { key: '20a7ca36f8603038529cec3bcaf5120a0557679a', name: "check", class: "checkbox__icon" })), label ? (h("span", { class: "checkbox__label", innerHTML: label })) : (h("span", { class: "checkbox__label" }, h("slot", null)))))));
|
|
65
73
|
}
|
|
66
74
|
static get is() { return "tet-checkbox"; }
|
|
67
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -218,6 +226,24 @@ export class TetCheckbox {
|
|
|
218
226
|
"attribute": "indeterminate",
|
|
219
227
|
"reflect": true,
|
|
220
228
|
"defaultValue": "false"
|
|
229
|
+
},
|
|
230
|
+
"focusStyleOnContainer": {
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "boolean",
|
|
235
|
+
"resolved": "boolean",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": false,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "Determines whether the focus style is applied to the checkbox or the container."
|
|
243
|
+
},
|
|
244
|
+
"attribute": "focus-style-on-container",
|
|
245
|
+
"reflect": false,
|
|
246
|
+
"defaultValue": "false"
|
|
221
247
|
}
|
|
222
248
|
};
|
|
223
249
|
}
|
|
@@ -49,7 +49,7 @@ export class TetRadio {
|
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
51
|
const { id, disabled, value, checked, name, label, handleInputChange, accessibilityLabel, inputAutofocus } = this;
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '5ce2ebb64805cede6f46fe8f1e11669755e02269' }, h("div", { key: 'acdcfd4aabc23020d21407d2a171fe6c9c003a9f', class: { radio: true, [`radio-${this.theme}-theme`]: true } }, h("label", { key: '09bbc949154be7e9c6c49bde03dc986349b9cf65', class: "radio__container", htmlFor: id }, h("input", { key: '75a9a0a0a2eec79370fe8e890dd32b632020ccfb', class: "radio__html-input", id: id, name: name, type: "radio", value: value, disabled: disabled, checked: checked, onChange: handleInputChange, autofocus: inputAutofocus, ...(accessibilityLabel ? { 'aria-label': accessibilityLabel } : {}), tabindex: this.checked ? '0' : '-1', role: "radio", "aria-checked": this.checked ? 'true' : 'false' }), h("span", { key: 'ee687e1378ebe5f4161a704fe930e879ba619069', class: "radio__input" }), label ? (h("span", { class: "radio__label", innerHTML: label })) : (h("span", { class: "radio__label" }, h("slot", null)))))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "tet-radio"; }
|
|
55
55
|
static get encapsulation() { return "scoped"; }
|
|
@@ -33,7 +33,7 @@ export class TetSwitch {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const { label, name, theme, disabled, checked, accessibilityLabel } = this;
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '28ae0b65de9b35494421f26de6ba070251c513e9' }, h("div", { key: '960e76423a8248c07d1a4e4734dc37ea8c909902', class: { 'switch': true, [`${theme}`]: true } }, h("label", { key: '9d4e2a4aae217a034ac4e0f18fe72e617c6d8c91', class: "switch__container", part: "switch-container", htmlFor: "tet-switch" }, h("input", { key: '628be8bcab2d85054b1baadca3d97bce6af7ad65', class: "switch__html-input", name: name, id: "tet-switch", type: "checkbox", disabled: disabled, checked: checked, onChange: this.handleChange.bind(this), ...(accessibilityLabel ? { "aria-label": accessibilityLabel } : {}) }), h("span", { key: '29221d1549c061f895fa0a766079b587b39ab0c0', class: { "switch__input": true, [this.theme]: true } }, h("span", { key: '7d8fef451f65fdd4029721e02ea3f2a36d7c6730', class: "switch__state" })), label
|
|
37
37
|
? h("span", { class: "switch__label", innerHTML: label })
|
|
38
38
|
: h("span", { class: "switch__label" }, h("slot", null))))));
|
|
39
39
|
}
|
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: '3d707413b1e43dceb5d9dfa3426e104b704d0c4f' }, h("div", { key: 'ca9eeb6d0a4837a34db06a35f9bbc3d891e35f63', 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: '55910073183c867ff37d5af21e69f39b420d3b12' }))));
|
|
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: '47f617655b7afbe1929de6f04fcc0ad9b17aae4b', "data-id-suffix": this.idSuffix }, h("div", { key: 'b71ccfd86728c6088cf44e5751c9951bfb010cb5', 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: 'a7e7099543ff2c2aee1ff7147599f58f53d3ac5f', ref: (slot) => (this.tabContainer = slot) })), h("div", { key: '800e8fc3c243ac5c6979df035c84b68cb51a4363', 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: '086f951b5334e7710fea561343f937a675585b4d' }, h("button", { key: '8a812ee34727e53455e5006ca45d9cedae50b9ab', 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: '4952d4e5fe00ae88d5d115cb72aba8d65c1d3980', class: "tag-title" }, t(this.tagTitle)), this.count !== null && this.count !== undefined && h("span", { key: '0858222d5874927006a5e5e3f8f4d429527e95a5', class: "tag-count" }, this.count), this.showIcon && h("tet-icon", { key: 'ae4fe91de2d2833b2635e3208f9830da61cb7d0b', 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"; }
|
|
@@ -427,23 +427,23 @@ export class TetCarousel {
|
|
|
427
427
|
document.removeEventListener('pointerup', this.onPointerUp);
|
|
428
428
|
}
|
|
429
429
|
render() {
|
|
430
|
-
return (h(Host, { key: '
|
|
430
|
+
return (h(Host, { key: 'ccdb2a82e8f762b784f88fe8fc8411c7f58db6c4' }, h("div", { key: '3518075a77f61caa6b37830c8185f430552fa54c', class: { 'tet-carousel': true, [`${this.theme}`]: true }, ref: (el) => (this.container = el), part: "carousel" }, h("div", { key: '0793973e111c0c94ef35829434c67d48e30fae5e', class: "tet-carousel__container" }, h("div", { key: 'a677bf936f443d3f131b7016a1bedd8db7cf8ef7', class: "tet-carousel__gradient-left", ref: (el) => {
|
|
431
431
|
this.leftGradientRef = el;
|
|
432
|
-
} }), h("div", { key: '
|
|
432
|
+
} }), h("div", { key: '70a30ed0b05f8ed166e470aecae900b249e20ce8', class: "tet-carousel__gradient-right", ref: (el) => {
|
|
433
433
|
this.rightGradientRef = el;
|
|
434
|
-
} }), h("div", { key: '
|
|
434
|
+
} }), h("div", { key: '5fc2677a52b16c824cab54f1df2e866188b2ffe1', class: `tet-carousel__track ${!this._showButtons() && !this._showDots() ? 'tet-carousel__track--center' : ''}`, ref: (el) => (this.trackElement = el), style: {
|
|
435
435
|
transform: `translateX(${this.dragOffset}px)`,
|
|
436
436
|
transition: this.isDragging ? 'none' : `transform ${this.transitionDuration}ms ${this.transitionTiming}`
|
|
437
|
-
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("slot", { key: '
|
|
437
|
+
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("slot", { key: 'f02701f2504108cf7987031e215a55d6c1927fc4' }))), !!this.label && h("div", { key: '76f95a115dc457824566a4fab63a102b55296a2f', class: "tet-carousel__label" }, this.label), (this._showButtons() || this._showDots()) && (h("div", { key: 'd05e1798f83404fabdec0692a31d09ad1bfa32f0', class: "tet-carousel__controls" }, this._showButtons() && (h("div", { key: '53ab7e4c45d1582b00da881a3f69d7a0a9bf221f', class: "tet-carousel__buttons tet-carousel__buttons--mobile" }, h("tet-button", { key: '5b68295b535ffb4d8eec6c029352d0ed533fb56b', class: "tet-carousel__btn", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconLeft, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
438
438
|
if (!this.isDragging)
|
|
439
439
|
this.handlePrev();
|
|
440
|
-
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }))), this._showDots() && (h("div", { key: '
|
|
440
|
+
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }))), this._showDots() && (h("div", { key: '770af8e5ad30fbc098392b4ba6225f4d51a7bd93', 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
441
|
if (!this.isDragging)
|
|
442
442
|
this.handleDotClick(idx);
|
|
443
|
-
}, onClick: () => this.handleDotClick(idx) }))))), this._showButtons() && (h("div", { key: '
|
|
443
|
+
}, onClick: () => this.handleDotClick(idx) }))))), this._showButtons() && (h("div", { key: '5862d85a1ae5b7e85594d848a91f77e0df442c00', class: "tet-carousel__buttons " }, h("tet-button", { key: '92ec06d94bcdf4070197b5a6134e8950a02205af', class: "tet-carousel__buttons--desktop tet-carousel__btn ", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconLeft, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
444
444
|
if (!this.isDragging)
|
|
445
445
|
this.handlePrev();
|
|
446
|
-
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }), h("tet-button", { key: '
|
|
446
|
+
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }), h("tet-button", { key: '4bd7318167e6ff71f465c159e48bc1e545390438', class: "tet-carousel__btn", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconRight, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
447
447
|
if (!this.isDragging)
|
|
448
448
|
this.handleNext();
|
|
449
449
|
}, "aria-label": t('components-carousel-next'), disabled: this.dotCount <= 1 ||
|
|
@@ -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: '08af7fe1ad185044243ba310dff631fc1683d4b0', class: "icon-wrapper", tabindex: (this.focusable || this.accessibilityLabel) ? 0 : -1 }, h("span", { key: 'b869128d153e2e75cabf554394e4eb46c6a5c93c', 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: '59434ea760f5de340ec4fd12b253451ec5fc5533', class: "loader" }, h("div", { key: 'ebf5b5a69db8f8a31921b4d7fa2cb478836aaff3', 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: 'e01223a7679078444091fc6a9cb4446a925edc7e', style: { width: this.width, height: this.height } }, h("div", { key: 'bf0eb67ae8a97f23cd93000400c03b44ae1e05e8', class: { 'dark-theme': this.darkTheme } }, h("div", { key: '3a92b993704bd8893407bd1162d8d49347253054', class: "placeholder", style: { height: this.height } }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "tet-placeholder"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|