@tet/tet-components 1.3.10-testing → 1.3.11-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-41ac19c2.js → address-43798f0e.js} +1 -1
- package/dist/cjs/{assets-0bdcfba7.js → assets-398e0a21.js} +1 -1
- package/dist/cjs/{async-request-42567909.js → async-request-066f73c7.js} +1 -1
- package/dist/cjs/enums-9ea00751.js +7 -0
- package/dist/cjs/{http-codes-bec9330b.js → http-codes-a5ff5305.js} +1 -1
- package/dist/cjs/{index-84ede372.js → index-cac5ef8f.js} +1 -1
- package/dist/cjs/{index-f559cb2e.js → index-d323e22a.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{old-utils-31714a40.js → old-utils-8686e8d2.js} +1 -1
- package/dist/cjs/{phone-96a87ac9.js → phone-49819e50.js} +2 -2
- package/dist/cjs/tet-accordion.cjs.entry.js +8 -8
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +11 -11
- package/dist/cjs/tet-address-search.cjs.entry.js +5 -5
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +4 -4
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +5 -4
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +11 -7
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +4 -4
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-lines.cjs.entry.js +4 -4
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-button.cjs.entry.js +4 -4
- package/dist/cjs/tet-card-list.cjs.entry.js +9 -15
- package/dist/cjs/tet-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +5 -5
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +1 -1
- package/dist/cjs/tet-compare-card_4.cjs.entry.js +33 -13
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +4 -4
- package/dist/cjs/tet-compare-cards.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 +2 -2
- package/dist/cjs/tet-container_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-customer-assets.cjs.entry.js +4 -4
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +6 -6
- package/dist/cjs/tet-datepicker.cjs.entry.js +5 -5
- package/dist/cjs/tet-dialog.cjs.entry.js +5 -5
- package/dist/cjs/tet-expandable-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
- package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
- package/dist/cjs/tet-grid.cjs.entry.js +1 -1
- package/dist/cjs/tet-icon.cjs.entry.js +3 -3
- package/dist/cjs/tet-inline-message.cjs.entry.js +2 -2
- package/dist/cjs/tet-input.cjs.entry.js +41 -7
- package/dist/cjs/tet-label.cjs.entry.js +5 -5
- package/dist/cjs/tet-layout.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 +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 +8 -4
- package/dist/cjs/tet-notification.cjs.entry.js +10 -5
- package/dist/cjs/tet-number-input_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/tet-radio.cjs.entry.js +3 -3
- package/dist/cjs/tet-range-slider_2.cjs.entry.js +11 -11
- package/dist/cjs/tet-referral.cjs.entry.js +4 -4
- package/dist/cjs/tet-round-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +2 -2
- package/dist/cjs/tet-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-table.cjs.entry.js +2 -2
- package/dist/cjs/tet-tag_2.cjs.entry.js +6 -6
- package/dist/cjs/tet-text-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-textarea.cjs.entry.js +2 -2
- package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +4 -4
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +2 -2
- package/dist/cjs/tet-tooltip.cjs.entry.js +1 -1
- 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/{translations-9c00ed63.js → translations-87c7b9eb.js} +1 -1
- package/dist/collection/collection-manifest.json +23 -23
- package/dist/collection/components/advanced/address/tet-address-offers/tet-address-offers.js +1 -1
- 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 +1 -1
- package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.css +18 -1
- package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +8 -3
- package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +4 -3
- package/dist/collection/components/advanced/cards/tet-business-card/tet-business-card.js +2 -2
- 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/test/tet-card-list.spec.js +18 -18
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.css +20 -14
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +25 -13
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +20 -3
- package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.css +4 -2
- package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.js +1 -1
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.js +1 -1
- package/dist/collection/components/advanced/customer/tet-asset-addresses/tet-asset-addresses.js +1 -1
- package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/tet-asset-availability-addresses.js +1 -1
- package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js +1 -1
- package/dist/collection/components/advanced/customer/tet-referral/tet-referral.js +1 -1
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-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/basic/buttons/tet-button/tet-button.css +69 -1
- package/dist/collection/components/basic/buttons/tet-button/tet-button.js +2 -2
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.css +16 -3
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +1 -1
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.css +5 -0
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.js +1 -1
- package/dist/collection/components/basic/buttons/tet-switch/tet-switch.css +10 -0
- 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/buttons/tet-tag-group/tet-tag-group.js +1 -1
- package/dist/collection/components/basic/container/tet-container/tet-container.js +2 -2
- 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-business-round-stepper/tet-business-round-stepper.js +1 -1
- 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/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/test/tet-dropdown.spec.js +35 -31
- package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.css +47 -8
- package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.js +28 -7
- package/dist/collection/components/simple/inputs/tet-expandable-input/tet-expandable-input.js +2 -2
- package/dist/collection/components/simple/inputs/tet-input/tet-input.css +23 -1
- package/dist/collection/components/simple/inputs/tet-input/tet-input.js +55 -4
- package/dist/collection/components/simple/inputs/tet-number-input/tet-number-input.js +1 -1
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.css +10 -0
- 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 +1 -1
- package/dist/collection/components/simple/lists/tet-news-card-list/test/tet-news-card-list.spec.js +15 -10
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.css +19 -6
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +24 -2
- package/dist/collection/components/simple/lists/tet-selection-list/tet-selection-list.js +1 -1
- package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +20 -3
- 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 +7 -4
- 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-bar-graph/tet-bar-graph.js +3 -3
- package/dist/collection/components/simple/tables-and-graphs/tet-table/tet-table.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-cloud-application-form-dialog/tet-cloud-application-form-dialog.js +2 -2
- package/dist/collection/components/simple/text-blocks/tet-dialog/tet-dialog.css +9 -0
- package/dist/collection/components/simple/text-blocks/tet-dialog/tet-dialog.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-inline-message/tet-inline-message.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-notification/test/tet-notification.spec.js +2 -2
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.css +10 -2
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +8 -3
- package/dist/collection/components/views/tet-contact-info/tet-contact-info.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/docs/styling/link/tet-link.css +4 -2
- package/dist/collection/types/enums.js +5 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-83711da3.js → p-0b9566f2.js} +2 -2
- package/dist/components/{p-9cf31ebf.js → p-1184772c.js} +4 -4
- package/dist/components/{p-e72afa08.js → p-13c1bb2a.js} +11 -6
- package/dist/components/{p-43a1c142.js → p-15479dea.js} +4 -4
- package/dist/components/{p-395295dd.js → p-18a74b40.js} +31 -10
- package/dist/components/{p-aa2b32cc.js → p-1939b1fe.js} +3 -3
- package/dist/components/{p-33b10a5d.js → p-1ddc7fc0.js} +4 -4
- package/dist/components/{p-39e60f54.js → p-222c69e5.js} +2 -2
- package/dist/components/{p-161a7704.js → p-2c4d91f9.js} +2 -2
- package/dist/components/{p-dd33387b.js → p-2eada495.js} +3 -3
- package/dist/components/{p-bba0ee80.js → p-3013f989.js} +10 -10
- package/dist/components/{p-f0e7aa54.js → p-31f85a5b.js} +4 -4
- package/dist/components/{p-a4bf9088.js → p-321d99c5.js} +50 -9
- package/dist/components/{p-dd1688ed.js → p-3b445c06.js} +4 -4
- package/dist/components/{p-20ad87ea.js → p-3e282151.js} +5 -5
- package/dist/components/{p-5de04562.js → p-3e5edc95.js} +2 -2
- package/dist/components/{p-bb3e6f2a.js → p-490501d6.js} +3 -3
- package/dist/components/{p-044f4f1b.js → p-4bfb82c5.js} +10 -10
- package/dist/components/{p-28969bcf.js → p-50a42473.js} +3 -3
- package/dist/components/{p-758ad350.js → p-53a1cc9a.js} +1 -1
- package/dist/components/{p-37ed3ebb.js → p-5749376d.js} +1 -1
- package/dist/components/{p-4f9f57a8.js → p-5c694ff8.js} +3 -3
- package/dist/components/{p-6db9b25a.js → p-5cb509f6.js} +3 -3
- package/dist/components/{p-ae1f41ee.js → p-70f08f08.js} +1 -1
- package/dist/components/{p-fac55389.js → p-74ec7e9d.js} +11 -6
- package/dist/components/{p-a6ddf134.js → p-79933eb4.js} +2 -2
- package/dist/components/{p-401d90fd.js → p-7bf456a9.js} +8 -8
- package/dist/components/{p-ca4592d2.js → p-7c2459a6.js} +2 -2
- package/dist/components/{p-57a9e15d.js → p-86bdb57e.js} +18 -17
- package/dist/components/{p-a0d406ca.js → p-8f91eb96.js} +1 -1
- package/dist/components/{p-7ba5a01c.js → p-919f56e1.js} +2 -2
- package/dist/components/{p-90cbcf3c.js → p-91ebfc27.js} +5 -5
- package/dist/components/{p-a63d3582.js → p-a156c1d8.js} +2 -2
- package/dist/components/{p-e66d11d0.js → p-a2450ff0.js} +2 -2
- package/dist/components/{p-40dff839.js → p-ab3f20d7.js} +4 -4
- package/dist/components/{p-82bac3af.js → p-b0ee452d.js} +5 -5
- package/dist/components/{p-810b312b.js → p-b628f292.js} +8 -8
- package/dist/components/{p-df435ffa.js → p-b6970b55.js} +9 -9
- package/dist/components/{p-74ff4f72.js → p-b6f2637b.js} +1 -1
- package/dist/components/{p-470276e6.js → p-c0f64055.js} +1 -1
- package/dist/components/{p-e3fd7e0f.js → p-c3fa02aa.js} +3 -3
- package/dist/components/{p-20533789.js → p-cbcb0630.js} +12 -12
- package/dist/components/{p-72b8586b.js → p-cee445a7.js} +1 -1
- package/dist/components/{p-dc2b8865.js → p-e3798de6.js} +3 -3
- package/dist/components/{p-a694a158.js → p-e43bfbd9.js} +12 -12
- package/dist/components/{p-f88f7112.js → p-f2111a6a.js} +4 -4
- package/dist/components/{p-d51e3de1.js → p-fdadb082.js} +1 -1
- package/dist/components/tet-accordion.js +9 -9
- 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 +8 -8
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-service-calculator.js +8 -8
- package/dist/components/tet-bar-graph.js +4 -4
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +3 -3
- package/dist/components/tet-business-compare-card.js +5 -5
- package/dist/components/tet-business-lines.js +5 -5
- package/dist/components/tet-business-round-stepper.js +3 -3
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +10 -10
- package/dist/components/tet-cloud-configurator.js +11 -11
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +11 -11
- 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 +2 -2
- 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-expandable-input.js +5 -5
- package/dist/components/tet-expansion-panel.js +2 -2
- package/dist/components/tet-font-weight.js +1 -1
- package/dist/components/tet-fonts.js +1 -1
- package/dist/components/tet-grid.js +1 -1
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +3 -3
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-label.js +5 -5
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link.js +2 -2
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +11 -11
- package/dist/components/tet-menu-mobile.js +3 -3
- package/dist/components/tet-menu.js +3 -3
- package/dist/components/tet-multi-step-dialog.js +6 -6
- package/dist/components/tet-navigation-mobile.js +5 -5
- package/dist/components/tet-news-card-list.js +19 -8
- 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-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +6 -6
- package/dist/components/tet-round-stepper.js +3 -3
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v2.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 +2 -2
- package/dist/components/tet-thank-you-view-v2.js +6 -6
- package/dist/components/tet-thank-you-view.js +4 -4
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +2 -2
- package/dist/components/tet-tv-gift-list.js +4 -4
- package/dist/esm/{address-9dfd3c9e.js → address-eaf94935.js} +1 -1
- package/dist/esm/{assets-c074d2b9.js → assets-df265bf2.js} +1 -1
- package/dist/esm/{async-request-754d6810.js → async-request-9af775da.js} +1 -1
- package/dist/esm/enums-42030c3a.js +7 -0
- package/dist/esm/{http-codes-42779195.js → http-codes-a07509c3.js} +1 -1
- package/dist/esm/{index-7f1e2a22.js → index-8ac89426.js} +1 -1
- package/dist/esm/{index-1bf36cb9.js → index-a7cd7688.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{old-utils-7140ef76.js → old-utils-9f0283e1.js} +1 -1
- package/dist/esm/{phone-66ff151d.js → phone-ea9ddef1.js} +2 -2
- package/dist/esm/tet-accordion.entry.js +8 -8
- package/dist/esm/tet-address-offers-view.entry.js +3 -3
- package/dist/esm/tet-address-offers_4.entry.js +11 -11
- package/dist/esm/tet-address-search.entry.js +5 -5
- package/dist/esm/tet-asset-addresses.entry.js +4 -4
- package/dist/esm/tet-autocomplete-dropdown.entry.js +5 -4
- package/dist/esm/tet-autocomplete_2.entry.js +11 -7
- package/dist/esm/tet-b2b-service-calculator.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +4 -4
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-card.entry.js +3 -3
- package/dist/esm/tet-business-compare-card.entry.js +3 -3
- package/dist/esm/tet-business-lines.entry.js +4 -4
- package/dist/esm/tet-business-round-stepper.entry.js +2 -2
- package/dist/esm/tet-button.entry.js +4 -4
- package/dist/esm/tet-card-list.entry.js +9 -15
- package/dist/esm/tet-checkbox.entry.js +3 -3
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +5 -5
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +1 -1
- package/dist/esm/tet-compare-card_4.entry.js +33 -13
- package/dist/esm/tet-compare-cards-tab.entry.js +4 -4
- package/dist/esm/tet-compare-cards.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 +2 -2
- package/dist/esm/tet-container_2.entry.js +4 -4
- package/dist/esm/tet-customer-assets.entry.js +4 -4
- package/dist/esm/tet-datepicker-header_4.entry.js +6 -6
- package/dist/esm/tet-datepicker.entry.js +5 -5
- package/dist/esm/tet-dialog.entry.js +5 -5
- package/dist/esm/tet-expandable-input.entry.js +3 -3
- package/dist/esm/tet-expansion-panel.entry.js +2 -2
- package/dist/esm/tet-font-weight.entry.js +1 -1
- package/dist/esm/tet-fonts.entry.js +1 -1
- package/dist/esm/tet-grid.entry.js +1 -1
- package/dist/esm/tet-icon.entry.js +3 -3
- package/dist/esm/tet-inline-message.entry.js +2 -2
- package/dist/esm/tet-input.entry.js +41 -7
- package/dist/esm/tet-label.entry.js +5 -5
- package/dist/esm/tet-layout.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 +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 +8 -4
- package/dist/esm/tet-notification.entry.js +10 -5
- package/dist/esm/tet-number-input_2.entry.js +5 -5
- package/dist/esm/tet-placeholder.entry.js +2 -2
- package/dist/esm/tet-radio.entry.js +3 -3
- package/dist/esm/tet-range-slider_2.entry.js +11 -11
- package/dist/esm/tet-referral.entry.js +4 -4
- package/dist/esm/tet-round-stepper.entry.js +2 -2
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-stepper-v2.entry.js +2 -2
- package/dist/esm/tet-stepper.entry.js +2 -2
- package/dist/esm/tet-table.entry.js +2 -2
- package/dist/esm/tet-tag_2.entry.js +6 -6
- package/dist/esm/tet-text-list.entry.js +2 -2
- package/dist/esm/tet-textarea.entry.js +2 -2
- package/dist/esm/tet-thank-you-view-v2.entry.js +4 -4
- package/dist/esm/tet-thank-you-view.entry.js +2 -2
- package/dist/esm/tet-tooltip.entry.js +1 -1
- 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/{translations-5c723a5f.js → translations-27779e79.js} +1 -1
- package/dist/tet-components/{p-40f2345c.entry.js → p-01b57c42.entry.js} +1 -1
- package/dist/tet-components/{p-a2f6aad3.entry.js → p-09a4a4d9.entry.js} +1 -1
- package/dist/tet-components/p-0ae7485d.entry.js +1 -0
- package/dist/tet-components/{p-5f1d8522.entry.js → p-114d1662.entry.js} +1 -1
- package/dist/tet-components/{p-ff411417.entry.js → p-144aac33.entry.js} +1 -1
- package/dist/tet-components/{p-7c747e38.entry.js → p-1709b724.entry.js} +1 -1
- package/dist/tet-components/{p-b89b20c1.entry.js → p-1b95545f.entry.js} +1 -1
- package/dist/tet-components/{p-aa7fdcd9.entry.js → p-1d3a41b1.entry.js} +1 -1
- package/dist/tet-components/{p-c29d065a.entry.js → p-1ef83c3e.entry.js} +1 -1
- package/dist/tet-components/{p-00406e92.entry.js → p-259fab25.entry.js} +1 -1
- package/dist/tet-components/{p-2043b691.entry.js → p-28a58203.entry.js} +1 -1
- package/dist/tet-components/{p-f61a75f7.entry.js → p-2a496a51.entry.js} +1 -1
- package/dist/tet-components/{p-df478227.entry.js → p-2bff8db9.entry.js} +1 -1
- package/dist/tet-components/{p-bdb06b94.entry.js → p-2ef4438f.entry.js} +1 -1
- package/dist/tet-components/{p-ca6856a3.js → p-2f34a2cf.js} +1 -1
- package/dist/tet-components/{p-2cccf0e6.entry.js → p-31f2895c.entry.js} +1 -1
- package/dist/tet-components/{p-318f671b.entry.js → p-32e8b8b7.entry.js} +1 -1
- package/dist/tet-components/{p-4976f85e.entry.js → p-33910c2c.entry.js} +1 -1
- package/dist/tet-components/{p-21f9d868.entry.js → p-35854e8b.entry.js} +1 -1
- package/dist/tet-components/{p-21ed105d.entry.js → p-369b4919.entry.js} +1 -1
- package/dist/tet-components/{p-1ae8df7d.js → p-4804ed9c.js} +1 -1
- package/dist/tet-components/{p-13eee7f0.entry.js → p-480f92de.entry.js} +1 -1
- package/dist/tet-components/{p-2d027882.entry.js → p-481ce109.entry.js} +1 -1
- package/dist/tet-components/{p-6c9a2802.entry.js → p-48342b65.entry.js} +1 -1
- package/dist/tet-components/{p-17219f8f.js → p-58915a2d.js} +1 -1
- package/dist/tet-components/{p-4465b469.entry.js → p-5963bf4e.entry.js} +1 -1
- package/dist/tet-components/{p-10629eb6.entry.js → p-5ad89178.entry.js} +1 -1
- package/dist/tet-components/{p-1726216b.entry.js → p-5fdbb8da.entry.js} +1 -1
- package/dist/tet-components/{p-4f1befed.entry.js → p-6088b905.entry.js} +1 -1
- package/dist/tet-components/{p-88880c7c.entry.js → p-60cdc0d5.entry.js} +1 -1
- package/dist/tet-components/{p-e8bfa8c6.entry.js → p-6341cdcd.entry.js} +1 -1
- package/dist/tet-components/p-674b1068.entry.js +1 -0
- package/dist/tet-components/{p-1ec7f341.js → p-67c5dc0a.js} +1 -1
- package/dist/tet-components/{p-81483d35.entry.js → p-68a2f1fc.entry.js} +1 -1
- package/dist/tet-components/{p-4b3c11dd.entry.js → p-6954a600.entry.js} +1 -1
- package/dist/tet-components/{p-4b0322a7.entry.js → p-6e646a3e.entry.js} +1 -1
- package/dist/tet-components/p-762f0237.entry.js +1 -0
- package/dist/tet-components/{p-7735544a.entry.js → p-76ba5637.entry.js} +1 -1
- package/dist/tet-components/{p-39de75af.js → p-81274499.js} +1 -1
- package/dist/tet-components/{p-4ee31a1e.entry.js → p-84d19b3d.entry.js} +1 -1
- package/dist/tet-components/p-880bee49.entry.js +1 -0
- package/dist/tet-components/{p-4ef1eb2f.entry.js → p-896daa27.entry.js} +1 -1
- package/dist/tet-components/{p-2606db0f.entry.js → p-8d903b84.entry.js} +1 -1
- package/dist/tet-components/{p-320d6755.entry.js → p-9f865c00.entry.js} +1 -1
- package/dist/tet-components/{p-e7b35dc9.entry.js → p-a3ede786.entry.js} +1 -1
- package/dist/tet-components/{p-7c9a8ce7.entry.js → p-a638ffa6.entry.js} +1 -1
- package/dist/tet-components/{p-98f4c4a7.entry.js → p-a6713bbb.entry.js} +1 -1
- package/dist/tet-components/{p-6c93428c.entry.js → p-a6b4abf5.entry.js} +1 -1
- package/dist/tet-components/{p-4a491a3c.entry.js → p-a6db1ac9.entry.js} +1 -1
- package/dist/tet-components/{p-bbb57229.entry.js → p-a9a346f2.entry.js} +1 -1
- package/dist/tet-components/{p-0556c8b5.entry.js → p-b1924151.entry.js} +1 -1
- package/dist/tet-components/{p-25d1ad10.entry.js → p-b2079f43.entry.js} +1 -1
- package/dist/tet-components/{p-6a7cf6fe.entry.js → p-b63148be.entry.js} +1 -1
- package/dist/tet-components/{p-ba896842.entry.js → p-ba32b273.entry.js} +1 -1
- package/dist/tet-components/{p-77372984.js → p-baa9231f.js} +1 -1
- package/dist/tet-components/{p-7d20cdcb.entry.js → p-bc92fd44.entry.js} +1 -1
- package/dist/tet-components/{p-4b9d2f1e.js → p-c148e88d.js} +1 -1
- package/dist/tet-components/{p-7123c8cb.js → p-c799155b.js} +1 -1
- package/dist/tet-components/p-c86c5ed9.entry.js +1 -0
- package/dist/tet-components/{p-ddd72b3a.entry.js → p-d0dce052.entry.js} +1 -1
- package/dist/tet-components/{p-f4efefbd.entry.js → p-d26e2e6c.entry.js} +1 -1
- package/dist/tet-components/{p-ce8f7d0b.entry.js → p-d50380bf.entry.js} +1 -1
- package/dist/tet-components/{p-3e4f7e1d.entry.js → p-d74a76a3.entry.js} +1 -1
- package/dist/tet-components/{p-f8b1e881.entry.js → p-d7fe3cc6.entry.js} +1 -1
- package/dist/tet-components/{p-010608e8.js → p-d92c3b28.js} +1 -1
- package/dist/tet-components/p-dda84c25.entry.js +1 -0
- package/dist/tet-components/{p-b27e0094.entry.js → p-dff937d1.entry.js} +1 -1
- package/dist/tet-components/{p-fe3e33b7.entry.js → p-e0c6233a.entry.js} +1 -1
- package/dist/tet-components/{p-74ffe679.entry.js → p-e2544ede.entry.js} +1 -1
- package/dist/tet-components/{p-dbad2c8f.entry.js → p-e41321de.entry.js} +1 -1
- package/dist/tet-components/{p-11c4c681.entry.js → p-e47216fc.entry.js} +1 -1
- package/dist/tet-components/p-e650994f.js +1 -0
- package/dist/tet-components/p-e9f5a9cb.entry.js +1 -0
- package/dist/tet-components/{p-1b745abf.entry.js → p-ec45b752.entry.js} +1 -1
- package/dist/tet-components/p-ec79333e.entry.js +1 -0
- package/dist/tet-components/{p-a82c303b.entry.js → p-ef512ce2.entry.js} +1 -1
- package/dist/tet-components/{p-e3e722f3.entry.js → p-fd7c6d47.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/address/tet-autocomplete/tet-autocomplete.d.ts +2 -0
- package/dist/types/components/advanced/cards/tet-card-list/tet-card-list.d.ts +4 -4
- package/dist/types/components/simple/inputs/tet-dropdown/tet-dropdown.d.ts +2 -0
- package/dist/types/components/simple/inputs/tet-input/tet-input.d.ts +21 -0
- package/dist/types/components/simple/lists/tet-news-card-list/tet-news-card-list.d.ts +4 -0
- package/dist/types/components.d.ts +16 -0
- package/dist/types/types/enums.d.ts +4 -0
- package/package.json +1 -1
- package/dist/tet-components/p-26d8b85b.entry.js +0 -1
- package/dist/tet-components/p-2b127937.entry.js +0 -1
- package/dist/tet-components/p-3490c999.entry.js +0 -1
- package/dist/tet-components/p-8e056907.entry.js +0 -1
- package/dist/tet-components/p-c0a6c379.entry.js +0 -1
- package/dist/tet-components/p-c25a19e7.entry.js +0 -1
- package/dist/tet-components/p-e29ea423.entry.js +0 -1
- package/dist/tet-components/p-fc492042.entry.js +0 -1
|
@@ -58,6 +58,7 @@ export class TetDropdown {
|
|
|
58
58
|
this.disabled = false;
|
|
59
59
|
this.selectedOptionIndexes = [];
|
|
60
60
|
this.isOpen = false;
|
|
61
|
+
this.isKeyboardFocus = false;
|
|
61
62
|
}
|
|
62
63
|
componentWillLoad() {
|
|
63
64
|
this.preselectOption();
|
|
@@ -111,6 +112,7 @@ export class TetDropdown {
|
|
|
111
112
|
return;
|
|
112
113
|
}
|
|
113
114
|
this.isOpen = false;
|
|
115
|
+
this.isKeyboardFocus = false;
|
|
114
116
|
}
|
|
115
117
|
/**
|
|
116
118
|
* Handles the focusout event to close the dropdown menu if focus moves outside the component.
|
|
@@ -127,13 +129,14 @@ export class TetDropdown {
|
|
|
127
129
|
return;
|
|
128
130
|
}
|
|
129
131
|
this.isOpen = false;
|
|
132
|
+
this.isKeyboardFocus = false;
|
|
130
133
|
}
|
|
131
134
|
/**
|
|
132
135
|
* Renders the dropdown toggle button and label.
|
|
133
136
|
*/
|
|
134
137
|
renderButton() {
|
|
135
138
|
const { label, labelLogo, labelLogoGrayscale, labelRight, currentButtonLabel, currentButtonLabelRight, currentButtonLabelRightColor, isOpen, disabled } = this;
|
|
136
|
-
return (h("div", { ref: el => (this.dropdownWrapperElement = el), class: { 'dropdown__wrapper': true, 'disabled': disabled } }, label && h("label", { htmlFor: 'dropdown-button', class: "dropdown__label" }, label), h("button", { id: 'dropdown-button', class: "dropdown__button", "aria-haspopup": "listbox", "aria-controls": 'dropdown-options', "aria-expanded": isOpen, ref: el => (this.dropdownButtonElement = el), onClick: this.handleDropdownToggle(), onKeyDown: this.handleButtonKeydown(), disabled: disabled }, !disabled && labelLogo && h("img", { src: labelLogo, alt: label }), disabled && labelLogoGrayscale && h("img", { src: labelLogoGrayscale, alt: label }), h("span", { class: { 'dropdown__button__selected': true, 'dropdown__button__selected--flex': this.flexLayout } }, currentButtonLabel), labelRight && h("span", { class: "dropdown__button__labelright", style: { 'color': currentButtonLabelRightColor } }, currentButtonLabelRight), h("tet-icon", { class: "dropdown__icon dropdown__chevron-icon", name: isOpen ? 'chevron-up' : 'chevron-down' }))));
|
|
139
|
+
return (h("div", { ref: el => (this.dropdownWrapperElement = el), class: { 'dropdown__wrapper': true, 'disabled': disabled } }, label && h("label", { htmlFor: 'dropdown-button', class: "dropdown__label" }, label), h("div", { class: "dropdown__button-wrapper" }, h("button", { id: 'dropdown-button', class: "dropdown__button", "aria-haspopup": "listbox", "aria-controls": 'dropdown-options', "aria-expanded": isOpen, ref: el => (this.dropdownButtonElement = el), onClick: this.handleDropdownToggle(), onKeyDown: this.handleButtonKeydown(), disabled: disabled }, !disabled && labelLogo && h("img", { src: labelLogo, alt: label }), disabled && labelLogoGrayscale && h("img", { src: labelLogoGrayscale, alt: label }), h("span", { class: { 'dropdown__button__selected': true, 'dropdown__button__selected--flex': this.flexLayout } }, currentButtonLabel), labelRight && h("span", { class: "dropdown__button__labelright", style: { 'color': currentButtonLabelRightColor } }, currentButtonLabelRight), h("tet-icon", { class: "dropdown__icon dropdown__chevron-icon", name: isOpen ? 'chevron-up' : 'chevron-down' })))));
|
|
137
140
|
}
|
|
138
141
|
/**
|
|
139
142
|
* Renders the dropdown options menu.
|
|
@@ -144,7 +147,7 @@ export class TetDropdown {
|
|
|
144
147
|
if (this.flexLayout) {
|
|
145
148
|
mappedOptions = options.map(this.renderFlexOptionItem.bind(this));
|
|
146
149
|
}
|
|
147
|
-
return (h("ul", { id: `dropdown-options`, ref: el => (this.dropdownOptionsElement = el), class: "dropdown__options", role: "listbox", tabindex: "-1", "aria-labelledby": `dropdown-button`, "aria-expanded": isOpen, "aria-multiselectable": allowMultiple }, mappedOptions));
|
|
150
|
+
return (h("ul", { id: `dropdown-options`, ref: el => (this.dropdownOptionsElement = el), class: "dropdown__options", role: "listbox", tabindex: "-1", "aria-labelledby": `dropdown-button`, "aria-expanded": isOpen, "aria-multiselectable": allowMultiple }, h("div", { class: "dropdown__options-wrapper" }, mappedOptions)));
|
|
148
151
|
}
|
|
149
152
|
/**
|
|
150
153
|
* Renders a dropdown option item.
|
|
@@ -191,7 +194,7 @@ export class TetDropdown {
|
|
|
191
194
|
'dropdown__option': true,
|
|
192
195
|
'dropdown__option--multiple': true,
|
|
193
196
|
'dropdown__option--selected': selected
|
|
194
|
-
}, role: "option", tabindex: "0", "aria-checked": selected, "data-value": value, onClick: handleClick, onKeyDown: handleKeyDown }, h("tet-checkbox", { checked: selected, theme: this.theme }), label));
|
|
197
|
+
}, role: "option", tabindex: "0", "aria-checked": selected, "data-value": value, onClick: handleClick, onKeyDown: handleKeyDown }, h("tet-checkbox", { checked: selected, theme: this.theme, tabindex: -1 }), label));
|
|
195
198
|
}
|
|
196
199
|
/**
|
|
197
200
|
* Handles keyboard input for an option item.
|
|
@@ -220,6 +223,12 @@ export class TetDropdown {
|
|
|
220
223
|
this.isOpen = false;
|
|
221
224
|
this.dropdownButtonElement.focus();
|
|
222
225
|
break;
|
|
226
|
+
case 'Tab':
|
|
227
|
+
const targetElement = target;
|
|
228
|
+
if (!targetElement.previousElementSibling && event.shiftKey) {
|
|
229
|
+
this.isKeyboardFocus = true;
|
|
230
|
+
}
|
|
231
|
+
break;
|
|
223
232
|
default:
|
|
224
233
|
break;
|
|
225
234
|
}
|
|
@@ -236,15 +245,26 @@ export class TetDropdown {
|
|
|
236
245
|
event.preventDefault();
|
|
237
246
|
if (!this.isOpen) {
|
|
238
247
|
this.isOpen = true;
|
|
248
|
+
this.isKeyboardFocus = true;
|
|
239
249
|
}
|
|
240
|
-
const { children } = this.dropdownOptionsElement;
|
|
250
|
+
const { children } = this.dropdownOptionsElement.children[0];
|
|
241
251
|
if (children.length == 0) {
|
|
242
252
|
return;
|
|
243
253
|
}
|
|
244
254
|
requestAnimationFrame(() => children[0].focus());
|
|
255
|
+
this.isKeyboardFocus = false;
|
|
245
256
|
break;
|
|
246
257
|
case 'Escape':
|
|
247
258
|
this.isOpen = false;
|
|
259
|
+
this.isKeyboardFocus = false;
|
|
260
|
+
break;
|
|
261
|
+
case 'Tab':
|
|
262
|
+
this.isKeyboardFocus = false;
|
|
263
|
+
break;
|
|
264
|
+
case 'Enter':
|
|
265
|
+
case ' ':
|
|
266
|
+
case 'SpaceBar':
|
|
267
|
+
this.isKeyboardFocus = !this.isKeyboardFocus;
|
|
248
268
|
break;
|
|
249
269
|
default:
|
|
250
270
|
break;
|
|
@@ -338,8 +358,8 @@ export class TetDropdown {
|
|
|
338
358
|
});
|
|
339
359
|
}
|
|
340
360
|
render() {
|
|
341
|
-
const { theme, isOpen } = this;
|
|
342
|
-
return (h(Host, { key: '
|
|
361
|
+
const { theme, isOpen, isKeyboardFocus } = this;
|
|
362
|
+
return (h(Host, { key: '305032965ef0e379b79a0c2990a8975fd18cd35f' }, h("div", { key: '02eea1e67fc3412ea5a8366fb16d59ef2a841be5', class: { 'dropdown': true, 'dropdown--open': isOpen, 'focus-visible': isKeyboardFocus && isOpen, [`${theme}`]: true } }, this.renderButton(), this.renderOptions())));
|
|
343
363
|
}
|
|
344
364
|
static get is() { return "tet-dropdown"; }
|
|
345
365
|
static get encapsulation() { return "shadow"; }
|
|
@@ -598,7 +618,8 @@ export class TetDropdown {
|
|
|
598
618
|
static get states() {
|
|
599
619
|
return {
|
|
600
620
|
"selectedOptionIndexes": {},
|
|
601
|
-
"isOpen": {}
|
|
621
|
+
"isOpen": {},
|
|
622
|
+
"isKeyboardFocus": {}
|
|
602
623
|
};
|
|
603
624
|
}
|
|
604
625
|
static get events() {
|
package/dist/collection/components/simple/inputs/tet-expandable-input/tet-expandable-input.js
CHANGED
|
@@ -222,12 +222,12 @@ export class TetExpandableInput {
|
|
|
222
222
|
return '';
|
|
223
223
|
}
|
|
224
224
|
render() {
|
|
225
|
-
return (h(Host, { key: '
|
|
225
|
+
return (h(Host, { key: '37562d6a8f52f2863511c189d212a64ab3493969' }, h("div", { key: '17884b2b8c0658b09bb7af74cc8df4f723fdefea', class: {
|
|
226
226
|
container: true,
|
|
227
227
|
expanded: this.expanded,
|
|
228
228
|
[this.mode]: true,
|
|
229
229
|
dark: this.darkMode
|
|
230
|
-
} }, h("div", { key: '
|
|
230
|
+
} }, h("div", { key: '76e7f5bc4e7d3b8fe18cc744644b6ee5821462e9', class: "input-wrapper", ref: (element) => (this.inputWrapper = element) }, h("tet-input", { key: '19133005cfbfdaabd0a4b23c3d2466c678fac576', class: "tet-input", label: this.label, "input-class": this.class, "input-placeholder": this.renderInputContent ? this.placeholder : '', "accessibility-label": this.accessibilityLabel, "input-type": this.type, "input-value": this.value, "input-disabled": this.disabled, error: this.error, "icon-left": this.iconLeft, "icon-right": this.renderInputContent ? this.iconRight : '', iconRightClickCallback: this.iconRightClickCallback, theme: this.theme, ref: (inputElement) => (this.inputHtmlElement = inputElement) }), this.closeButton))));
|
|
231
231
|
}
|
|
232
232
|
static get is() { return "tet-expandable-input"; }
|
|
233
233
|
static get encapsulation() { return "shadow"; }
|
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
border: 0.0625rem solid var(--input-border-color);
|
|
809
809
|
color: var(--input-text-color);
|
|
810
810
|
background: var(--input-background-color);
|
|
811
|
-
outline:
|
|
811
|
+
outline: 0.125rem solid transparent;
|
|
812
812
|
font-size: inherit;
|
|
813
813
|
font-family: var(--input-font-family);
|
|
814
814
|
font-weight: 500;
|
|
@@ -846,6 +846,12 @@
|
|
|
846
846
|
.tet-input__base.tet-input__mint-original:not(:disabled):focus, .tet-input__base.tet-input__mint-original:not(:disabled):active {
|
|
847
847
|
outline: none;
|
|
848
848
|
}
|
|
849
|
+
.tet-input__base.tet-input__mint-original.keyboard-focus:focus {
|
|
850
|
+
outline: 0.125rem solid var(--tc-blue-40);
|
|
851
|
+
outline-offset: 0.125rem;
|
|
852
|
+
transition: outline 0s;
|
|
853
|
+
box-shadow: none;
|
|
854
|
+
}
|
|
849
855
|
.tet-input__base[disabled] {
|
|
850
856
|
cursor: not-allowed;
|
|
851
857
|
outline: none;
|
|
@@ -864,6 +870,15 @@
|
|
|
864
870
|
border: 0.0625rem solid var(--input-focus-border-color);
|
|
865
871
|
box-shadow: 0 0 0 0.25rem var(--input-focus-outline-color);
|
|
866
872
|
}
|
|
873
|
+
.tet-input__base.keyboard-focus:focus {
|
|
874
|
+
outline: 0.125rem solid var(--tc-blue-40);
|
|
875
|
+
outline-offset: 0.125rem;
|
|
876
|
+
transition: outline 0s;
|
|
877
|
+
box-shadow: none;
|
|
878
|
+
}
|
|
879
|
+
.tet-input__base.error {
|
|
880
|
+
border-color: var(--input-color-error);
|
|
881
|
+
}
|
|
867
882
|
|
|
868
883
|
.tet-input__label {
|
|
869
884
|
display: block;
|
|
@@ -945,6 +960,13 @@
|
|
|
945
960
|
.icon.clickable {
|
|
946
961
|
cursor: pointer;
|
|
947
962
|
}
|
|
963
|
+
.icon.clickable:focus-visible {
|
|
964
|
+
outline: 0.125rem solid var(--tc-blue-40);
|
|
965
|
+
outline-offset: 0.125rem;
|
|
966
|
+
transition: outline 0s;
|
|
967
|
+
border-radius: 0.125rem;
|
|
968
|
+
outline-offset: 0;
|
|
969
|
+
}
|
|
948
970
|
.icon.icon-left {
|
|
949
971
|
left: var(--input-icon-left-position, 0.75rem);
|
|
950
972
|
}
|
|
@@ -2,6 +2,7 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import { validate } from "../../../../services/validators/index";
|
|
3
3
|
import { t } from "../../../../services/translations/index";
|
|
4
4
|
import { a11yBtnClick } from "../../../../services/utils/a11y";
|
|
5
|
+
import { IconName } from "../../../../types/enums";
|
|
5
6
|
/**
|
|
6
7
|
* The input enables the user to interact with and input content and data.
|
|
7
8
|
* It supports left and right icons with click actions and error state.
|
|
@@ -19,7 +20,7 @@ export class TetInput {
|
|
|
19
20
|
'icon-right': alignment === 'right',
|
|
20
21
|
'clickable': clickable
|
|
21
22
|
};
|
|
22
|
-
return h("tet-icon", { name: iconName, class: classes, onClick: callback, tabIndex:
|
|
23
|
+
return h("tet-icon", { name: iconName, class: classes, onClick: callback, tabIndex: iconName === IconName.Close ? 0 : -1, onKeyDown: a11yBtnClick });
|
|
23
24
|
};
|
|
24
25
|
this.renderErrorMessages = () => {
|
|
25
26
|
return (h("div", { class: "errors" }, this.errorMessages.map((message) => h("p", { class: "tet-input__error-message" }, t(message)))));
|
|
@@ -44,6 +45,8 @@ export class TetInput {
|
|
|
44
45
|
this.autocomplete = 'off';
|
|
45
46
|
this.maxlength = undefined;
|
|
46
47
|
this.inputTabindex = undefined;
|
|
48
|
+
this.isKeyboardFocus = true;
|
|
49
|
+
this.focusVisible = false;
|
|
47
50
|
}
|
|
48
51
|
componentDidLoad() {
|
|
49
52
|
if (!this.manualValidation) {
|
|
@@ -59,6 +62,37 @@ export class TetInput {
|
|
|
59
62
|
async getInputHtmlElement() {
|
|
60
63
|
return this.inputHtmlElement;
|
|
61
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Listen for Tab key event.
|
|
67
|
+
* @param {KeyboardEvent} event
|
|
68
|
+
*/
|
|
69
|
+
onKeyDown(event) {
|
|
70
|
+
if (event.key === 'Tab') {
|
|
71
|
+
this.isKeyboardFocus = true;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Listen for click event and reset Keyboard focus on Input.
|
|
76
|
+
*/
|
|
77
|
+
onMouseDown() {
|
|
78
|
+
this.isKeyboardFocus = false;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Set Keyboard Focus State on Input if Tab key is pressed.
|
|
82
|
+
*/
|
|
83
|
+
addKeyboardFocus() {
|
|
84
|
+
return () => {
|
|
85
|
+
this.focusVisible = this.isKeyboardFocus;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Removes Keyboard Focus State.
|
|
90
|
+
*/
|
|
91
|
+
removeKeyboardFocus() {
|
|
92
|
+
return () => {
|
|
93
|
+
this.focusVisible = false;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
62
96
|
/**
|
|
63
97
|
* Returns the list of validation errors.
|
|
64
98
|
*/
|
|
@@ -82,11 +116,11 @@ export class TetInput {
|
|
|
82
116
|
var _a, _b;
|
|
83
117
|
const propClasses = (_b = (_a = this.class) === null || _a === void 0 ? void 0 : _a.split('w')) !== null && _b !== void 0 ? _b : [];
|
|
84
118
|
// Merges the values defined in the class attribute with the inner classes.
|
|
85
|
-
const inputClasses = Object.assign({ 'tet-input__base': true, [`tet-input__${this.theme}`]: true, 'with-icon--left': !!this.iconLeft, 'with-icon--right': !!this.iconRight, 'error': this.error || this.errorMessages.length > 0 }, propClasses.reduce((accumulator, value) => {
|
|
119
|
+
const inputClasses = Object.assign({ 'tet-input__base': true, [`tet-input__${this.theme}`]: true, 'with-icon--left': !!this.iconLeft, 'with-icon--right': !!this.iconRight, 'error': this.error || this.errorMessages.length > 0, 'keyboard-focus': this.focusVisible }, propClasses.reduce((accumulator, value) => {
|
|
86
120
|
return Object.assign(Object.assign({}, accumulator), { [value]: true });
|
|
87
121
|
}, {}));
|
|
88
122
|
return (h(Host, null, h("label", { class: { [`${this.theme}`]: true } }, this.label &&
|
|
89
|
-
h("span", { class: { 'tet-input__label': true, [`tet-input__${this.theme}`]: true } }, this.label), h("div", { class: { 'input-container': true, [`tet-input__${this.theme}`]: true } }, h("input", Object.assign({ class: inputClasses, placeholder: this.placeholder, type: this.type, value: this.value, ref: (el) => (this.inputHtmlElement = el), disabled: this.disabled, autoComplete: this.autocomplete ? this.autocomplete : 'off', maxlength: this.maxlength, readOnly: this.readonly }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}), (this.inputTabindex ? { "tabindex": this.inputTabindex } : {}))), !!this.iconLeft && this.renderIcon(this.iconLeft, 'left', this.iconLeftClickCallback), !!this.iconRight && this.renderIcon(this.iconRight, 'right', this.iconRightClickCallback), h("slot", null))), this.errorMessages.length > 0 && this.renderErrorMessages()));
|
|
123
|
+
h("span", { class: { 'tet-input__label': true, [`tet-input__${this.theme}`]: true } }, this.label), h("div", { class: { 'input-container': true, [`tet-input__${this.theme}`]: true } }, h("input", Object.assign({ onFocus: this.addKeyboardFocus(), onFocusout: this.removeKeyboardFocus(), class: inputClasses, placeholder: this.placeholder, type: this.type, value: this.value, ref: (el) => (this.inputHtmlElement = el), disabled: this.disabled, autoComplete: this.autocomplete ? this.autocomplete : 'off', maxlength: this.maxlength, readOnly: this.readonly }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}), (this.inputTabindex ? { "tabindex": this.inputTabindex } : {}))), !!this.iconLeft && this.renderIcon(this.iconLeft, 'left', this.iconLeftClickCallback), !!this.iconRight && this.renderIcon(this.iconRight, 'right', this.iconRightClickCallback), h("slot", null))), this.errorMessages.length > 0 && this.renderErrorMessages()));
|
|
90
124
|
}
|
|
91
125
|
static get is() { return "tet-input"; }
|
|
92
126
|
static get encapsulation() { return "scoped"; }
|
|
@@ -444,7 +478,9 @@ export class TetInput {
|
|
|
444
478
|
}
|
|
445
479
|
static get states() {
|
|
446
480
|
return {
|
|
447
|
-
"errorMessages": {}
|
|
481
|
+
"errorMessages": {},
|
|
482
|
+
"isKeyboardFocus": {},
|
|
483
|
+
"focusVisible": {}
|
|
448
484
|
};
|
|
449
485
|
}
|
|
450
486
|
static get methods() {
|
|
@@ -523,4 +559,19 @@ export class TetInput {
|
|
|
523
559
|
}
|
|
524
560
|
};
|
|
525
561
|
}
|
|
562
|
+
static get listeners() {
|
|
563
|
+
return [{
|
|
564
|
+
"name": "keydown",
|
|
565
|
+
"method": "onKeyDown",
|
|
566
|
+
"target": "window",
|
|
567
|
+
"capture": false,
|
|
568
|
+
"passive": false
|
|
569
|
+
}, {
|
|
570
|
+
"name": "click",
|
|
571
|
+
"method": "onMouseDown",
|
|
572
|
+
"target": "window",
|
|
573
|
+
"capture": false,
|
|
574
|
+
"passive": false
|
|
575
|
+
}];
|
|
576
|
+
}
|
|
526
577
|
}
|
|
@@ -220,7 +220,7 @@ export class TetInput {
|
|
|
220
220
|
*/
|
|
221
221
|
render() {
|
|
222
222
|
const { label, helperText, value, disabled, error, completed, isOpen, suffix } = this;
|
|
223
|
-
return (h("div", { key: '
|
|
223
|
+
return (h("div", { key: 'f326524a925c120ecddba15833dc8e4cb8897179', class: { 'number-input': true, 'disabled': disabled, 'error': error, 'completed': completed } }, !!label && (h("label", { key: '7e1c0f9930b5fe8c4d3eecb8fdd705e0d8bc3133', class: "number-input__label", htmlFor: "number-input" }, label)), h("div", { key: 'a2e9136935db0c1277234d0bb2e7143801843189', class: "number-input__input-container", onClick: this.shiftFocus }, h("input", Object.assign({ key: 'fccaeab297ae6cc313dd0bc4759ab53316ab53b4', ref: (htmlInputElement) => (this.inputElement = htmlInputElement), class: { 'number-input__input': true, 'number-input__input--hidden': this.isValueHidden }, disabled: disabled, value: value, type: "number", id: "number-input" }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}))), h("div", { key: 'f3fb264c0e839c20a9e26981d3bd7f552ba3bd3e', ref: (htmlInputElement) => (this.inputElementHidden = htmlInputElement), class: "number-input__input-invisible" }, value), !!suffix && h("div", { key: '55139698a73b5c4ddc56ec20c0bb08bc1f894956', class: "number-input__input-suffix" }, suffix.name), !!this.suffixes && this.suffixes.length > 1 && (h("tet-button", { key: 'd4711796220d3ef02ae655583ad3403f14dd6ac2', type: "ghost", size: "small", ref: (element) => (this.chevronElement = element), class: { 'number-input__cheveron': true }, onClick: this.onChevronClick, "accessibility-label": this.buttonAccessibilityLabel }, !isOpen && h("tet-icon", { key: 'a3cb79dac9ed077f4884e2f46ddec3ce9691372c', name: "chevron-down" }), isOpen && h("tet-icon", { key: '8a319a2b03507f82b89c59829686a92ad0bdb6db', name: "chevron-up" }))), isOpen && (h("div", { key: '857d7c821006472c787e3bdc68c61fe305a1ae65', class: "number-input__dropdown", ref: (htmlDivElement) => (this.dropdownElement = htmlDivElement) }, this.renderDropdownContent()))), !!helperText && h("div", { key: '2ff12b36a98c717107cd80cfab1a91cbf71e0216', class: "number-input__helper-text" }, helperText)));
|
|
224
224
|
}
|
|
225
225
|
static get is() { return "tet-number-input"; }
|
|
226
226
|
static get encapsulation() { return "shadow"; }
|
|
@@ -208,6 +208,11 @@
|
|
|
208
208
|
.range-slider__slider-container::-webkit-scrollbar {
|
|
209
209
|
display: none;
|
|
210
210
|
}
|
|
211
|
+
.range-slider__slider-container:has(.range-slider__slider-wrapper input:focus-visible) ~ .range-slider__tooltip-handle {
|
|
212
|
+
outline: 0.125rem solid var(--tc-blue-40);
|
|
213
|
+
outline-offset: 0.125rem;
|
|
214
|
+
transition: outline 0s;
|
|
215
|
+
}
|
|
211
216
|
.range-slider__slider-wrapper {
|
|
212
217
|
display: flex;
|
|
213
218
|
width: 100%;
|
|
@@ -411,6 +416,11 @@
|
|
|
411
416
|
position: absolute;
|
|
412
417
|
top: calc(var(--slider-track-height) + 3.5rem);
|
|
413
418
|
}
|
|
419
|
+
.range-slider__control:focus-visible {
|
|
420
|
+
outline: 0.125rem solid var(--tc-blue-40);
|
|
421
|
+
outline-offset: 0.125rem;
|
|
422
|
+
transition: outline 0s;
|
|
423
|
+
}
|
|
414
424
|
.range-slider--large .range-slider__control {
|
|
415
425
|
position: static;
|
|
416
426
|
}
|
|
@@ -689,31 +689,31 @@ export class TetRangeSlider {
|
|
|
689
689
|
this.updateProgress();
|
|
690
690
|
}
|
|
691
691
|
render() {
|
|
692
|
-
return (h(Host, { key: '
|
|
692
|
+
return (h(Host, { key: '52af8dbdb55c7e921fa0e2306178a947b5e6304c' }, h("div", { key: '5074471aa06625ae6bf32994539fe4ba141039e4', class: {
|
|
693
693
|
'range-slider': true,
|
|
694
694
|
[`range-slider--${this.containerSize}`]: true,
|
|
695
695
|
[`range-slider--${this.type}`]: true,
|
|
696
696
|
'range-slider--no-controls': !this.withControls,
|
|
697
697
|
'range-slider--no-input': !this.withInput,
|
|
698
698
|
[this.theme]: true,
|
|
699
|
-
} }, h("div", { key: '
|
|
699
|
+
} }, h("div", { key: '3a4dbf9e2658be4ccd1992c42ffacb90ee651342', class: {
|
|
700
700
|
'range-slider__input-container': true,
|
|
701
701
|
'hidden': !this.withInput,
|
|
702
|
-
} }, h("tet-input", Object.assign({ key: '
|
|
702
|
+
} }, h("tet-input", Object.assign({ key: '29704c985a33b309bee79608fd4f0c8f37ec262e', "input-class": "range-slider__input", "input-type": "number", "input-value": this.currentValue, ref: inputEl => (this.inputRef = inputEl), theme: this.theme, onInput: this.onInputChange, onKeyDown: this.onInputKeyDown, accessibilityLabel: this.numberInputAccessibilityLabel }, (this.containerSize !== 'large' ? { inputTabindex: 3 } : {})))), h("div", { key: 'ee85a4424e5447ecabb29fdcd81491070e3d1ef2', class: "range-slider__container" }, h("tet-button", Object.assign({ key: '5a11f5af863989ea5eeb49bb76e02572655035fd', theme: this.theme, iconMode: true, class: {
|
|
703
703
|
'range-slider__control': true,
|
|
704
704
|
'range-slider__control--left': true,
|
|
705
705
|
'hidden': !this.withControls,
|
|
706
|
-
}, clickCallback: this.onControlPreviousClick }, (this.reduceButtonAccessibilityLabel ? { accessibilityLabel: this.reduceButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 2 } : {})), h("tet-icon", { key: '
|
|
706
|
+
}, clickCallback: this.onControlPreviousClick }, (this.reduceButtonAccessibilityLabel ? { accessibilityLabel: this.reduceButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 2 } : {})), h("tet-icon", { key: 'c7be06bc2e9d468fbe9eb07995e6ab346cdd76b4', name: "remove", class: "range-slider__control--icon" })), h("div", { key: 'c827ababceaef92a842b27d26f0a5b8b5bcb4cab', onTouchStart: this.onContainerTouchStart, onTouchEnd: this.onContainerTouchEnd, onMouseDown: this.onContainerMouseDown, onScroll: this.onContainerScroll, ref: sliderContainerEl => (this.sliderContainerRef = sliderContainerEl), class: "range-slider__slider-container", draggable: false }, h("div", { key: '8ce6676b8110a901b356a11487b84cc4ee59d632', class: "range-slider__slider-wrapper" }, h("input", Object.assign({ key: 'ac5053a9ed6b6b2e50e2572a1880c533d43c7f4f', ref: sliderEl => (this.sliderRef = sliderEl), type: "range", min: this.minValue, max: this.maxValue, step: this.step, value: this.defaultValue, list: "steplist", id: "rangeInput", onInput: this.onSliderInput, onChange: this.onSliderChange, onPointerDown: this.onSliderPointerDown, onPointerUp: this.onSliderPointerUp, class: "range-slider__slider" }, (this.sliderInputAccessibilityLabel ? { "aria-label": this.sliderInputAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 1 } : {})))), h("div", { key: 'd7e5ca3d9d1cea51f204a56414e387dba46f5e7b', class: "range-slider__track range-slider__track--background" }), h("div", { key: '2a308ea9fd72080d7b47e003d341c6fc521b1404', ref: progressTrackEl => (this.progressTrackRef = progressTrackEl), class: "range-slider__track range-slider__track--progress" }), h("div", { key: 'ddf626b67e641ef8b30cc7b3e6cf975e2c052694', ref: tickContainerEl => (this.tickContainerRef = tickContainerEl), class: "range-slider__tick-container" }), h("div", { key: 'fe7692bf08ee1d95e473e7d913bea28e0a8cf3fc', ref: dataLabelEl => (this.dataLabelRef = dataLabelEl), class: {
|
|
707
707
|
'range-slider__data-label-container': true,
|
|
708
708
|
'hidden': this.type === 'secondary' && this.containerSize === 'small',
|
|
709
|
-
} })), h("div", { key: '
|
|
709
|
+
} })), h("div", { key: 'b9db111157d714ee9791db18c6882a12c3fbc5f3', class: {
|
|
710
710
|
'range-slider__current-step-container': true,
|
|
711
711
|
'hidden': !this.withCurrentStepCounter,
|
|
712
|
-
} }, h("div", { key: '
|
|
712
|
+
} }, h("div", { key: '4c5b48d5ddffa6b8f544493417a165a3838b4dc8', class: "range-slider__current-step", "aria-live": "polite" }, this.dataSet.indexOf(this.getClosestOverrideDataPoint()) + 1, "/", this.dataPoints.length)), h("div", { key: '53a35748de8014e98c7852bed551ac278784f4f5', ref: toolbarHandleEl => (this.tooltipHandleRef = toolbarHandleEl), class: "range-slider__tooltip-handle" }, h("div", { key: '1277c19ac4e7dcc4a24c592e21fec25026f169b0', class: "range-slider__tooltip translation-none", style: { [`--tooltip-offset`]: `${this.tooltipOffset}rem` }, "aria-live": "polite" }, this.getTooltipValue())), h("tet-button", Object.assign({ key: '8a798655cfc0d467a9034654d2ca3e5a4bb971b8', theme: this.theme, iconMode: true, class: {
|
|
713
713
|
'range-slider__control': true,
|
|
714
714
|
'range-slider__control--right': true,
|
|
715
715
|
'hidden': !this.withControls,
|
|
716
|
-
}, clickCallback: this.onControlNextClick }, (this.addButtonAccessibilityLabel ? { accessibilityLabel: this.addButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 4 } : {})), h("tet-icon", { key: '
|
|
716
|
+
}, clickCallback: this.onControlNextClick }, (this.addButtonAccessibilityLabel ? { accessibilityLabel: this.addButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 4 } : {})), h("tet-icon", { key: '5d80fe8d67dca6ba354fbcf49e1e27441a6406d1', name: "add", class: "range-slider__control--icon" }))))));
|
|
717
717
|
}
|
|
718
718
|
static get is() { return "tet-range-slider"; }
|
|
719
719
|
static get encapsulation() { return "shadow"; }
|
|
@@ -122,7 +122,7 @@ export class TetStepperInput {
|
|
|
122
122
|
*/
|
|
123
123
|
render() {
|
|
124
124
|
const { onMinusClick, value, onPlusClick } = this;
|
|
125
|
-
return (h("div", { key: '
|
|
125
|
+
return (h("div", { key: 'b8baa0962d9e8287741483b9f8aaa7065ea84de8', class: "stepper-input" }, h("button", { key: 'b6e36b43624b60eecddffc4a4c8dcbf48d504195', class: "stepper-input__control", "aria-label": t('components-number-input-decrease'), onKeyDown: this.handleOptionKeydown(onMinusClick) }, h("tet-icon", { key: '6369c3dcf26349ea47613f7fa9c3868aa85cb54f', name: "remove", onClick: onMinusClick })), h("input", Object.assign({ key: 'cb57e8e5a6608a9176e1d20a75e9e38fe74f801d', ref: (htmlInputElement) => (this.inputElement = htmlInputElement), class: "stepper-input__value", value: value, type: "number" }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}))), h("button", { key: '2c05d122dc811fae2d8832a3f7a659b47ce4344d', class: "stepper-input__control", "aria-label": t('components-number-input-increase'), onKeyDown: this.handleOptionKeydown(onPlusClick) }, h("tet-icon", { key: '3a8c08cc7a927d7c86d27d28bccf05be02071e70', name: "add", onClick: onPlusClick }))));
|
|
126
126
|
}
|
|
127
127
|
static get is() { return "tet-stepper-input"; }
|
|
128
128
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class TetTextarea {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
const { value, label, placeholder, disabled, errorMessages, renderErrorMessage } = this;
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'f2fd8ebf50607715fa39ed1ca3082402a0fdf8a7' }, label && (h("label", { key: '36b8206cbd9d0badadb1e9ef95d5c7ba8d0ba537', class: "tet-textarea__label", htmlFor: "textarea" }, label)), h("textarea", { key: 'cdb3ed82a5b2f60c773e610a39869e40a4584ac2', id: "textarea", class: { 'tet-textarea__base': true, 'error': !!errorMessages.length }, placeholder: placeholder, disabled: disabled, autocomplete: "off" }, value !== null && value !== void 0 ? value : ''), !!errorMessages.length && h("div", { key: '30f0890b17c4431ea4322c34aca6f7e33b01f520', class: "error-messages" }, errorMessages.map(renderErrorMessage))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "tet-textarea"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/simple/lists/tet-news-card-list/test/tet-news-card-list.spec.js
CHANGED
|
@@ -36,15 +36,15 @@ describe('tet-news-card-list', () => {
|
|
|
36
36
|
<tet-news-card-list>
|
|
37
37
|
<mock:shadow-root>
|
|
38
38
|
<tet-card-list controlscrollamount="350" initialscrollamount="0" withcontrols="" withoverflowopacity=""
|
|
39
|
-
exportparts="card-list, card-list-container" part="card-list-component"></tet-card-list>
|
|
39
|
+
exportparts="card-list, card-list-container" part="card-list-component" theme="light"></tet-card-list>
|
|
40
40
|
</mock:shadow-root>
|
|
41
41
|
</tet-news-card-list>
|
|
42
42
|
`);
|
|
43
43
|
});
|
|
44
|
-
it('renders items', async () => {
|
|
44
|
+
it('renders a list with items in dark theme', async () => {
|
|
45
45
|
const page = await newSpecPage({
|
|
46
46
|
components: [TetNewsCardList],
|
|
47
|
-
template: () => (h("tet-news-card-list", { items: ITEMS, withScrollbar: false, withMouseDrag: false })),
|
|
47
|
+
template: () => (h("tet-news-card-list", { items: ITEMS, withScrollbar: false, withMouseDrag: false, theme: "dark" })),
|
|
48
48
|
});
|
|
49
49
|
expect(page.root).toEqualHtml(`
|
|
50
50
|
<tet-news-card-list>
|
|
@@ -52,9 +52,14 @@ describe('tet-news-card-list', () => {
|
|
|
52
52
|
<tet-card-list
|
|
53
53
|
controlscrollamount="350"
|
|
54
54
|
initialscrollamount="0"
|
|
55
|
-
withcontrols=""
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
withcontrols=""
|
|
56
|
+
withoverflowopacity=""
|
|
57
|
+
exportparts="card-list, card-list-container"
|
|
58
|
+
part="card-list-component"
|
|
59
|
+
theme="dark"
|
|
60
|
+
>
|
|
61
|
+
<div class="tet-news-card dark" part="card-list-item">
|
|
62
|
+
<a data-index="0" class="tet-news-card__link-container" href="#" target="_blank">
|
|
58
63
|
<div class="tet-news-card__image__container">
|
|
59
64
|
<div class="tet-news-card__image">
|
|
60
65
|
<img alt="Alt text" src="https://picsum.photos/seed/1/700/560">
|
|
@@ -68,8 +73,8 @@ describe('tet-news-card-list', () => {
|
|
|
68
73
|
</div>
|
|
69
74
|
</a>
|
|
70
75
|
</div>
|
|
71
|
-
<div class="tet-news-card" part="card-list-item">
|
|
72
|
-
<a data-index="1" class="tet-news-card__link-container" href="#" target=""
|
|
76
|
+
<div class="tet-news-card dark" part="card-list-item">
|
|
77
|
+
<a data-index="1" class="tet-news-card__link-container" href="#" target="">
|
|
73
78
|
<div class="tet-news-card__image__container">
|
|
74
79
|
<div class="tet-news-card__image" >
|
|
75
80
|
<img alt="" src="https://picsum.photos/seed/2/350/280">
|
|
@@ -83,8 +88,8 @@ describe('tet-news-card-list', () => {
|
|
|
83
88
|
</div>
|
|
84
89
|
</a>
|
|
85
90
|
</div>
|
|
86
|
-
<div class="tet-news-card" part="card-list-item">
|
|
87
|
-
<a data-index="2" class="tet-news-card__link-container" href="#" target=""
|
|
91
|
+
<div class="tet-news-card dark" part="card-list-item">
|
|
92
|
+
<a data-index="2" class="tet-news-card__link-container" href="#" target="">
|
|
88
93
|
<div class="tet-news-card__image__container">
|
|
89
94
|
<div class="tet-news-card__image" >
|
|
90
95
|
<img alt="" src="https://picsum.photos/seed/3/350/280">
|
|
@@ -371,6 +371,11 @@
|
|
|
371
371
|
--news-card-image-width: var(--news-card-width);
|
|
372
372
|
--news-card-image-tablet-width: var(--news-card-tablet-width);
|
|
373
373
|
--news-card-image-mobile-width: var(--news-card-mobile-width);
|
|
374
|
+
--news-card-primary-text-color: var(--tc-text-primary);
|
|
375
|
+
--news-card-date-text-color: var(--tc-text-secondary);
|
|
376
|
+
--news-card-link-text-color: var(--tc-text-secondary);
|
|
377
|
+
--news-card-link-hover-text-color: var(--tc-text-primary);
|
|
378
|
+
--news-card-link-icon-color: var(--tc-icon-secondary);
|
|
374
379
|
}
|
|
375
380
|
|
|
376
381
|
tet-card-list {
|
|
@@ -387,6 +392,13 @@ tet-card-list {
|
|
|
387
392
|
padding: 0;
|
|
388
393
|
width: var(--news-card-width);
|
|
389
394
|
}
|
|
395
|
+
.tet-news-card.dark {
|
|
396
|
+
--news-card-primary-text-color: var(--tc-text-primary-dark);
|
|
397
|
+
--news-card-date-text-color: var(--tc-text-secondary-dark);
|
|
398
|
+
--news-card-link-text-color: var(--tc-text-secondary-dark);
|
|
399
|
+
--news-card-link-hover-text-color: var(--tc-text-primary-dark);
|
|
400
|
+
--news-card-link-icon-color: var(--tc-icon-secondary-dark);
|
|
401
|
+
}
|
|
390
402
|
.tet-news-card__image__container {
|
|
391
403
|
box-sizing: border-box;
|
|
392
404
|
overflow: hidden;
|
|
@@ -419,20 +431,21 @@ tet-card-list {
|
|
|
419
431
|
}
|
|
420
432
|
.tet-news-card__date {
|
|
421
433
|
font: 400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
422
|
-
color:
|
|
434
|
+
color: var(--news-card-date-text-color);
|
|
423
435
|
letter-spacing: -0.005625rem;
|
|
424
436
|
margin-bottom: 0.25rem;
|
|
425
437
|
}
|
|
426
438
|
.tet-news-card__title {
|
|
427
439
|
font: 600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif";
|
|
428
440
|
text-align: left;
|
|
441
|
+
color: var(--news-card-primary-text-color);
|
|
429
442
|
}
|
|
430
443
|
.tet-news-card__divider {
|
|
431
444
|
flex: 1;
|
|
432
445
|
}
|
|
433
446
|
.tet-news-card__link {
|
|
434
447
|
font: 400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
|
|
435
|
-
color:
|
|
448
|
+
color: var(--news-card-link-text-color);
|
|
436
449
|
letter-spacing: -0.01125rem;
|
|
437
450
|
margin-top: 0.75rem;
|
|
438
451
|
display: inline-flex;
|
|
@@ -440,19 +453,19 @@ tet-card-list {
|
|
|
440
453
|
text-decoration-line: none;
|
|
441
454
|
}
|
|
442
455
|
.hover .tet-news-card__link {
|
|
443
|
-
color:
|
|
456
|
+
color: var(--news-card-link-hover-text-color);
|
|
444
457
|
}
|
|
445
458
|
.tet-news-card__link-container {
|
|
459
|
+
font: 400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
|
|
446
460
|
display: flex;
|
|
447
461
|
flex-direction: column;
|
|
448
462
|
text-decoration: none;
|
|
449
|
-
|
|
450
|
-
color: rgb(10, 11, 13);
|
|
463
|
+
color: var(--news-card-primary-text-color);
|
|
451
464
|
height: 100%;
|
|
452
465
|
}
|
|
453
466
|
.tet-news-card__link-icon {
|
|
454
467
|
--icon-size: 1rem;
|
|
455
|
-
--icon-color:
|
|
468
|
+
--icon-color: var(--news-card-link-icon-color);
|
|
456
469
|
margin-left: 0.25rem;
|
|
457
470
|
display: inline-flex;
|
|
458
471
|
align-items: center;
|
|
@@ -37,7 +37,10 @@ export class TetNewsCardList {
|
|
|
37
37
|
*/
|
|
38
38
|
this.renderListCard = (item, index) => {
|
|
39
39
|
var _a;
|
|
40
|
-
return (h("div", { class:
|
|
40
|
+
return (h("div", { class: {
|
|
41
|
+
"tet-news-card": true,
|
|
42
|
+
[this.theme]: true,
|
|
43
|
+
}, part: "card-list-item" }, h("a", { class: "tet-news-card__link-container", "data-index": index, href: item.redirectHref, target: item.redirectNewTab ? '_blank' : '', onMouseOver: this.handleCardMouseOver, onMouseLeave: this.handleCardMouseLeave, onFocus: this.handleCardMouseOver, onBlur: this.handleCardMouseLeave, onClick: item.clickCallback }, h("div", { class: "tet-news-card__image__container" }, h("div", { class: "tet-news-card__image", onMouseDown: this.disableImageEvents }, h("img", { src: item.imageSrc, alt: (_a = item.imageAlt) !== null && _a !== void 0 ? _a : '' }))), item.date && h("span", { class: "tet-news-card__date" }, item.date), h("span", { class: "tet-news-card__title" }, item.title), h("span", { class: "tet-news-card__divider" }), h("div", { class: "tet-news-card__link" }, h("span", { class: "tet-news-card__underline" }, item.redirectText), ' ', h("tet-icon", { class: "tet-news-card__link-icon", name: "chevron-right" })))));
|
|
41
44
|
};
|
|
42
45
|
this.items = [];
|
|
43
46
|
this.withControls = true;
|
|
@@ -48,6 +51,7 @@ export class TetNewsCardList {
|
|
|
48
51
|
this.withScrollbar = true;
|
|
49
52
|
this.withMouseDrag = false;
|
|
50
53
|
this.withVirtualScroll = false;
|
|
54
|
+
this.theme = 'light';
|
|
51
55
|
}
|
|
52
56
|
render() {
|
|
53
57
|
const { withControls, withMouseDrag, withScrollbar, withVirtualScroll, initialScrollAmount, disableScroll, scrollFullWidth, controlScrollAmount, } = this;
|
|
@@ -61,7 +65,7 @@ export class TetNewsCardList {
|
|
|
61
65
|
scrollFullWidth,
|
|
62
66
|
controlScrollAmount,
|
|
63
67
|
};
|
|
64
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '6e98afa7859660a19f542bcc5d1be281b2bc1e41' }, h("tet-card-list", Object.assign({ key: 'b5ce16e93f1d14c011286f956138654b953e84b9', theme: this.theme, part: "card-list-component", exportparts: "card-list, card-list-container", withOverflowOpacity: true }, props), this.items.map((item, index) => this.renderListCard(item, index)))));
|
|
65
69
|
}
|
|
66
70
|
static get is() { return "tet-news-card-list"; }
|
|
67
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -242,6 +246,24 @@ export class TetNewsCardList {
|
|
|
242
246
|
"attribute": "with-virtual-scroll",
|
|
243
247
|
"reflect": false,
|
|
244
248
|
"defaultValue": "false"
|
|
249
|
+
},
|
|
250
|
+
"theme": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "'light' | 'dark'",
|
|
255
|
+
"resolved": "\"dark\" | \"light\"",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "The theme of the news card list."
|
|
263
|
+
},
|
|
264
|
+
"attribute": "theme",
|
|
265
|
+
"reflect": false,
|
|
266
|
+
"defaultValue": "'light'"
|
|
245
267
|
}
|
|
246
268
|
};
|
|
247
269
|
}
|
|
@@ -95,7 +95,7 @@ export class TetSelectionList {
|
|
|
95
95
|
return this.selectedItems;
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h("ul", { key: '
|
|
98
|
+
return (h("ul", { key: '41e58b8fd13f0ac75ac0a61d4d119ad62985b0fe', class: "list", part: "selection-list" }, this.items.map(this.renderListItem)));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "tet-selection-list"; }
|
|
101
101
|
static get encapsulation() { return "shadow"; }
|