@tet/tet-components 1.4.36-testing → 1.4.37-staging
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{address-656e77f6.js → address-f852270f.js} +1 -1
- package/dist/cjs/{assets-f64f0e16.js → assets-b9d36649.js} +1 -1
- package/dist/cjs/{async-request-fcf33aba.js → async-request-4517f566.js} +1 -1
- package/dist/cjs/{http-codes-40da1e61.js → http-codes-062f76cf.js} +1 -1
- package/dist/cjs/{index-4b423f33.js → index-19a7608f.js} +1 -1
- package/dist/cjs/{index-3242ff3f.js → index-faec4c52.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-055efd07.js → phone-d6be0dd2.js} +2 -2
- package/dist/cjs/{product-comparison-88a89820.js → product-comparison-aa80a77c.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-autocomplete.cjs.entry.js +9 -3
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +26 -14
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +3 -3
- 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 +1 -1
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-lines.cjs.entry.js +4 -4
- 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 +1 -1
- package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +1 -1
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +1 -1
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
- package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- package/dist/cjs/tet-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 +1 -1
- package/dist/cjs/tet-feedback-form.cjs.entry.js +5 -5
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +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 +1 -1
- package/dist/cjs/tet-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-label.cjs.entry.js +3 -3
- package/dist/cjs/tet-layout.cjs.entry.js +1 -1
- package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +1 -1
- package/dist/cjs/tet-loader.cjs.entry.js +1 -1
- package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +95 -36
- package/dist/cjs/tet-menu.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-notification.cjs.entry.js +1 -1
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio.cjs.entry.js +1 -1
- package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/tet-referral.cjs.entry.js +5 -5
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-badge.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-support-search.cjs.entry.js +32 -5
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-text.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
- package/dist/cjs/{theme-wrapper-66880718.js → theme-wrapper-46514846.js} +2 -2
- package/dist/cjs/{translations-03c9de64.js → translations-89a0ec3d.js} +1 -1
- package/dist/collection/assets/icons/icon-map.json +1 -1
- package/dist/collection/assets/icons/tc/tc-add-money.svg +7 -0
- package/dist/collection/assets/icons/tc/tc-edit-services.svg +5 -0
- package/dist/collection/assets/icons/tc/tc-touch.svg +3 -0
- package/dist/collection/assets/icons/tc/tc-transfer.svg +4 -0
- package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +22 -2
- package/dist/collection/components/advanced/forms/tet-feedback-form/tet-feedback-form.js +2 -2
- package/dist/collection/components/advanced/search/tet-support-search/tet-support-search.js +68 -5
- package/dist/collection/components/basic/icon/tet-icon.js +2 -2
- package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.js +59 -11
- package/dist/collection/components/simple/menu/tet-menu-mobile/tet-menu-mobile.css +84 -57
- package/dist/collection/components/simple/menu/tet-menu-mobile/tet-menu-mobile.js +116 -37
- package/dist/components/assets/icons/icon-map.json +1 -1
- package/dist/components/assets/icons/tc/tc-add-money.svg +7 -0
- package/dist/components/assets/icons/tc/tc-edit-services.svg +5 -0
- package/dist/components/assets/icons/tc/tc-touch.svg +3 -0
- package/dist/components/assets/icons/tc/tc-transfer.svg +4 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-7620ce21.js → p-04c58dbe.js} +1 -1
- package/dist/components/{p-250eb091.js → p-0c8da52b.js} +3 -3
- package/dist/components/{p-b79e0d77.js → p-1311df4b.js} +9 -9
- package/dist/components/{p-4ff94d2c.js → p-20914b9b.js} +2 -2
- package/dist/components/{p-89c93c64.js → p-21ab51e2.js} +1 -1
- package/dist/components/{p-0d8e93da.js → p-22670792.js} +1 -1
- package/dist/components/{p-52fcf7aa.js → p-22855c3a.js} +1 -1
- package/dist/components/{p-0e06a7a7.js → p-2489f187.js} +7 -7
- package/dist/components/{p-f76fad86.js → p-26ffcb52.js} +1 -1
- package/dist/components/{p-e9bf0228.js → p-31cf0ad6.js} +1 -1
- package/dist/components/{p-4e0e2b59.js → p-34105e2f.js} +1 -1
- package/dist/components/{p-4468c9e9.js → p-3493f65f.js} +1 -1
- package/dist/components/{p-b58090e2.js → p-4d2081b4.js} +6 -6
- package/dist/components/{p-e1e52894.js → p-4ee5a941.js} +3 -3
- package/dist/components/{p-13c2091d.js → p-4fa66fac.js} +7 -7
- package/dist/components/{p-c527c604.js → p-54322f2e.js} +14 -14
- package/dist/components/{p-595baac6.js → p-5a4b3c1c.js} +1 -1
- package/dist/components/{p-73a547c8.js → p-5e44c4a5.js} +3 -3
- package/dist/components/{p-d41f8f87.js → p-615a6a34.js} +2 -2
- package/dist/components/{p-4a4f4abf.js → p-6a8d1cf0.js} +2 -2
- package/dist/components/{p-b453369c.js → p-6ecba6d0.js} +1 -1
- package/dist/components/{p-d96c9c10.js → p-7ce25ffc.js} +11 -5
- package/dist/components/{p-c7f5caaa.js → p-7ec11235.js} +4 -4
- package/dist/components/{p-4061b379.js → p-802f129d.js} +5 -5
- package/dist/components/{p-924b430a.js → p-8253275b.js} +1 -1
- package/dist/components/{p-c6c5425e.js → p-8b5b8f91.js} +1 -1
- package/dist/components/{p-1dc3b03c.js → p-8edc753f.js} +3 -3
- package/dist/components/{p-9c321f66.js → p-9029be76.js} +7 -7
- package/dist/components/{p-ca8df28e.js → p-91d107e3.js} +3 -3
- package/dist/components/{p-d69376b7.js → p-91ea147f.js} +2 -2
- package/dist/components/{p-f1380f68.js → p-91f361f9.js} +3 -3
- package/dist/components/{p-b0040cc1.js → p-986dc245.js} +2 -2
- package/dist/components/{p-b66ed473.js → p-a6c84feb.js} +10 -10
- package/dist/components/{p-0138c33f.js → p-a74c5064.js} +6 -6
- package/dist/components/{p-dd3541f5.js → p-a9c8d424.js} +1 -1
- package/dist/components/{p-25b93e8f.js → p-aa122c92.js} +1 -1
- package/dist/components/{p-869958e9.js → p-accb4127.js} +2 -2
- package/dist/components/{p-19a63760.js → p-adeb1eb9.js} +1 -1
- package/dist/components/{p-61968c62.js → p-b0ba5619.js} +2 -2
- package/dist/components/{p-ee54db57.js → p-b656e6b1.js} +1 -1
- package/dist/components/{p-44201f97.js → p-b6841a9b.js} +1 -1
- package/dist/components/{p-6c2f67ce.js → p-b8478dd2.js} +6 -6
- package/dist/components/{p-848ec723.js → p-c282325f.js} +1 -1
- package/dist/components/{p-eca7dc6f.js → p-c9655695.js} +2 -2
- package/dist/components/{p-d32eca66.js → p-c9b50fd7.js} +2 -2
- package/dist/components/{p-548501b5.js → p-caddcfad.js} +1 -1
- package/dist/components/{p-715aabc1.js → p-ce671072.js} +10 -10
- package/dist/components/{p-ea70eb16.js → p-cf299700.js} +2 -2
- package/dist/components/{p-b3f6c2ea.js → p-d3204531.js} +3 -3
- package/dist/components/{p-6cd63078.js → p-d88b803c.js} +1 -1
- package/dist/components/{p-c6354c8f.js → p-e5081c96.js} +29 -15
- package/dist/components/{p-c615bc41.js → p-e7dbbcdd.js} +1 -1
- package/dist/components/{p-1ffee60d.js → p-ef799871.js} +2 -2
- package/dist/components/{p-86aaf990.js → p-f49d18e0.js} +3 -3
- package/dist/components/{p-2985a16c.js → p-f4fe36c6.js} +5 -5
- package/dist/components/{p-ce823477.js → p-f8ed7265.js} +2 -2
- package/dist/components/{p-58991856.js → p-fc106744.js} +1 -1
- package/dist/components/{p-43ec1361.js → p-fed6dc49.js} +2 -2
- package/dist/components/{p-26afe09a.js → p-ff099c34.js} +7 -7
- 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 +24 -24
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-asset-addresses.js +13 -13
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +5 -5
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-check-out-form.js +1 -1
- package/dist/components/tet-b2b-compare-card.js +1 -1
- package/dist/components/tet-b2b-configurator-cart.js +1 -1
- package/dist/components/tet-b2b-configurator.js +20 -20
- package/dist/components/tet-b2b-service-calculator.js +8 -8
- 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 +1 -1
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +3 -3
- package/dist/components/tet-business-lines.js +5 -5
- 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 +4 -4
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +8 -8
- package/dist/components/tet-cloud-configurator.js +12 -12
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.js +9 -9
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +16 -16
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +9 -9
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-counter.js +1 -1
- package/dist/components/tet-customer-assets.js +9 -9
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +6 -6
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +8 -8
- package/dist/components/tet-divider.js +7 -7
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +4 -4
- package/dist/components/tet-expandable-input.js +3 -3
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-feedback-form.js +9 -9
- package/dist/components/tet-filter.js +4 -4
- package/dist/components/tet-floating-block.js +3 -3
- 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 +1 -1
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-label.js +3 -3
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link-card-list.js +3 -3
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +10 -10
- package/dist/components/tet-menu-mobile.js +99 -37
- package/dist/components/tet-menu.js +2 -2
- package/dist/components/tet-multi-step-dialog.js +5 -5
- package/dist/components/tet-navigation-mobile.js +2 -2
- package/dist/components/tet-news-card-list.js +4 -4
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-position.js +7 -7
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +6 -6
- package/dist/components/tet-round-stepper.js +2 -2
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-badge.js +1 -1
- package/dist/components/tet-snicker-card-group.js +1 -1
- package/dist/components/tet-snicker-card.js +11 -11
- 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-v3.js +1 -1
- package/dist/components/tet-stepper.js +1 -1
- package/dist/components/tet-support-search.js +40 -11
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +3 -3
- package/dist/components/tet-tag-group.js +1 -1
- package/dist/components/tet-tag.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/components/tet-text.js +7 -7
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v2.js +5 -5
- package/dist/components/tet-thank-you-view-v3.js +5 -5
- package/dist/components/tet-thank-you-view.js +4 -4
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +1 -1
- package/dist/components/tet-tv-gift-list.js +2 -2
- package/dist/esm/{address-1e0810e7.js → address-20e2d850.js} +1 -1
- package/dist/esm/{assets-e1349520.js → assets-894007df.js} +1 -1
- package/dist/esm/{async-request-4c945e13.js → async-request-ae1056de.js} +1 -1
- package/dist/esm/{http-codes-1927ea00.js → http-codes-cf0086d4.js} +1 -1
- package/dist/esm/{index-412df137.js → index-e3209c56.js} +1 -1
- package/dist/esm/{index-aac31bd2.js → index-e933a7d2.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-1a920c5c.js → phone-62660137.js} +2 -2
- package/dist/esm/{product-comparison-dd90c721.js → product-comparison-cb8955f6.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +1 -1
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
- package/dist/esm/tet-address-offers-view.entry.js +3 -3
- package/dist/esm/tet-address-offers_4.entry.js +7 -7
- package/dist/esm/tet-address-search.entry.js +4 -4
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
- package/dist/esm/tet-autocomplete.entry.js +9 -3
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +26 -14
- package/dist/esm/tet-b2b-configurator.entry.js +4 -4
- package/dist/esm/tet-b2b-service-calculator.entry.js +3 -3
- 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 +1 -1
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +1 -1
- package/dist/esm/tet-business-lines.entry.js +4 -4
- 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 +1 -1
- package/dist/esm/tet-carousel.entry.js +3 -3
- package/dist/esm/tet-checkbox_3.entry.js +1 -1
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +1 -1
- package/dist/esm/tet-compare-card-v2.entry.js +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +3 -3
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-contact-form.entry.js +5 -5
- package/dist/esm/tet-contact-info.entry.js +1 -1
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-counter.entry.js +1 -1
- package/dist/esm/tet-customer-assets.entry.js +3 -3
- package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
- package/dist/esm/tet-datepicker.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +3 -3
- package/dist/esm/tet-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- package/dist/esm/tet-dynamic-card.entry.js +1 -1
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +1 -1
- package/dist/esm/tet-feedback-form.entry.js +5 -5
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-floating-block.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +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 +1 -1
- package/dist/esm/tet-input.entry.js +3 -3
- package/dist/esm/tet-label.entry.js +3 -3
- package/dist/esm/tet-layout.entry.js +1 -1
- package/dist/esm/tet-link-card-list.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +1 -1
- package/dist/esm/tet-loader.entry.js +1 -1
- package/dist/esm/tet-macd-view.entry.js +6 -6
- package/dist/esm/tet-menu-mobile.entry.js +95 -36
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
- package/dist/esm/tet-navigation-mobile.entry.js +1 -1
- package/dist/esm/tet-news-card-list.entry.js +1 -1
- package/dist/esm/tet-notification.entry.js +1 -1
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-placeholder.entry.js +1 -1
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio.entry.js +1 -1
- package/dist/esm/tet-range-slider.entry.js +1 -1
- package/dist/esm/tet-referral.entry.js +5 -5
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-snicker-card-badge.entry.js +1 -1
- package/dist/esm/tet-snicker-card-group.entry.js +1 -1
- package/dist/esm/tet-snicker-card.entry.js +3 -3
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-spinner.entry.js +1 -1
- package/dist/esm/tet-stepper-input.entry.js +3 -3
- package/dist/esm/tet-stepper-v2.entry.js +1 -1
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-stepper.entry.js +1 -1
- package/dist/esm/tet-support-search.entry.js +32 -5
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-tab-header.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +3 -3
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-text.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +1 -1
- package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/tet-thank-you-view.entry.js +1 -1
- package/dist/esm/tet-tv-gift-block.entry.js +1 -1
- package/dist/esm/tet-tv-gift-list.entry.js +1 -1
- package/dist/esm/{theme-wrapper-72d0b9da.js → theme-wrapper-cf4d7d54.js} +2 -2
- package/dist/esm/{translations-4712c45f.js → translations-e60db8fd.js} +1 -1
- package/dist/tet-components/assets/icons/icon-map.json +1 -1
- package/dist/tet-components/assets/icons/tc/tc-add-money.svg +7 -0
- package/dist/tet-components/assets/icons/tc/tc-edit-services.svg +5 -0
- package/dist/tet-components/assets/icons/tc/tc-touch.svg +3 -0
- package/dist/tet-components/assets/icons/tc/tc-transfer.svg +4 -0
- package/dist/tet-components/{p-a5bbadd5.entry.js → p-04d050f5.entry.js} +1 -1
- package/dist/tet-components/{p-3e7e1106.entry.js → p-0781e892.entry.js} +1 -1
- package/dist/tet-components/{p-5391d594.entry.js → p-0bf60061.entry.js} +1 -1
- package/dist/tet-components/{p-7a3c1254.entry.js → p-127b2895.entry.js} +1 -1
- package/dist/tet-components/{p-b7393577.entry.js → p-134b5155.entry.js} +1 -1
- package/dist/tet-components/{p-068ab35d.entry.js → p-145baad0.entry.js} +1 -1
- package/dist/tet-components/{p-2a43ccef.entry.js → p-14c15a69.entry.js} +1 -1
- package/dist/tet-components/{p-e481116c.entry.js → p-16d7c0d2.entry.js} +1 -1
- package/dist/tet-components/{p-85a4823a.entry.js → p-1a4422ad.entry.js} +1 -1
- package/dist/tet-components/{p-903c4587.entry.js → p-1a84bfc6.entry.js} +1 -1
- package/dist/tet-components/{p-747e5e19.entry.js → p-20ade008.entry.js} +1 -1
- package/dist/tet-components/{p-be3a10d0.entry.js → p-24df18b9.entry.js} +1 -1
- package/dist/tet-components/{p-f6916bfc.entry.js → p-265701de.entry.js} +1 -1
- package/dist/tet-components/{p-1881f6e6.entry.js → p-26a2f5fd.entry.js} +1 -1
- package/dist/tet-components/{p-e9883cd3.entry.js → p-2ad8cd81.entry.js} +1 -1
- package/dist/tet-components/{p-b365e697.entry.js → p-2c315c23.entry.js} +1 -1
- package/dist/tet-components/{p-ccfa9f31.entry.js → p-2c891567.entry.js} +1 -1
- package/dist/tet-components/{p-d8518d4b.js → p-2dbe670c.js} +1 -1
- package/dist/tet-components/{p-d6aa828a.entry.js → p-2e5e5716.entry.js} +1 -1
- package/dist/tet-components/{p-46f6a051.entry.js → p-2f25de81.entry.js} +1 -1
- package/dist/tet-components/{p-724189c2.entry.js → p-31be2161.entry.js} +1 -1
- package/dist/tet-components/{p-7056a120.entry.js → p-31d0b400.entry.js} +1 -1
- package/dist/tet-components/{p-c1b70e23.entry.js → p-3369cf8a.entry.js} +1 -1
- package/dist/tet-components/{p-8dad0d3e.entry.js → p-39636425.entry.js} +1 -1
- package/dist/tet-components/p-3ac0e0d8.entry.js +1 -0
- package/dist/tet-components/{p-778c46a6.js → p-3ac57578.js} +1 -1
- package/dist/tet-components/{p-94322144.entry.js → p-40d20508.entry.js} +1 -1
- package/dist/tet-components/{p-f81b3bb0.js → p-4213c1d1.js} +1 -1
- package/dist/tet-components/{p-7d64d525.entry.js → p-4589ba47.entry.js} +1 -1
- package/dist/tet-components/{p-dd66f595.entry.js → p-4a9e5be5.entry.js} +1 -1
- package/dist/tet-components/{p-aff47d36.entry.js → p-510806be.entry.js} +1 -1
- package/dist/tet-components/{p-1ddfaaa0.entry.js → p-53e83f83.entry.js} +1 -1
- package/dist/tet-components/{p-122f3d3c.entry.js → p-548d7cc1.entry.js} +1 -1
- package/dist/tet-components/{p-8915cdcf.entry.js → p-5558eb1c.entry.js} +1 -1
- package/dist/tet-components/{p-71018cb8.entry.js → p-581b1f01.entry.js} +1 -1
- package/dist/tet-components/{p-ce850061.entry.js → p-589e8e4b.entry.js} +1 -1
- package/dist/tet-components/{p-5845a3dc.entry.js → p-59007fe7.entry.js} +1 -1
- package/dist/tet-components/{p-83f43fdd.js → p-5abb3bea.js} +1 -1
- package/dist/tet-components/{p-3e3ecc08.entry.js → p-5d638022.entry.js} +1 -1
- package/dist/tet-components/{p-b0c62997.entry.js → p-5e8bd119.entry.js} +1 -1
- package/dist/tet-components/{p-cde8057a.entry.js → p-60abca86.entry.js} +1 -1
- package/dist/tet-components/{p-2ee91947.entry.js → p-61de58e7.entry.js} +1 -1
- package/dist/tet-components/{p-8bfd498e.entry.js → p-63f6def9.entry.js} +1 -1
- package/dist/tet-components/p-660bdc27.js +1 -0
- package/dist/tet-components/{p-ee15fbb6.entry.js → p-699ecd12.entry.js} +1 -1
- package/dist/tet-components/p-69b8a89f.entry.js +1 -0
- package/dist/tet-components/{p-63427787.entry.js → p-6ec21c58.entry.js} +1 -1
- package/dist/tet-components/{p-76526271.entry.js → p-6fb8c506.entry.js} +1 -1
- package/dist/tet-components/{p-c858f416.entry.js → p-6fe562e3.entry.js} +1 -1
- package/dist/tet-components/{p-c380ea54.entry.js → p-71064d29.entry.js} +1 -1
- package/dist/tet-components/{p-32691e85.entry.js → p-71bdb301.entry.js} +1 -1
- package/dist/tet-components/{p-0ebbf5ef.js → p-726651bc.js} +1 -1
- package/dist/tet-components/p-7330a0a8.entry.js +1 -0
- package/dist/tet-components/{p-46975ec4.entry.js → p-73c190a2.entry.js} +1 -1
- package/dist/tet-components/{p-a093603e.entry.js → p-771dd791.entry.js} +1 -1
- package/dist/tet-components/{p-ab13d33d.entry.js → p-79911ddf.entry.js} +1 -1
- package/dist/tet-components/{p-8c0ac70a.entry.js → p-7a094aaa.entry.js} +1 -1
- package/dist/tet-components/p-7a2eaf03.entry.js +1 -0
- package/dist/tet-components/{p-920c54d8.entry.js → p-863c1c55.entry.js} +1 -1
- package/dist/tet-components/{p-10e72480.entry.js → p-8b93b91f.entry.js} +1 -1
- package/dist/tet-components/{p-e0fc34c9.entry.js → p-8d399a39.entry.js} +1 -1
- package/dist/tet-components/{p-3e1e9943.entry.js → p-9020245b.entry.js} +1 -1
- package/dist/tet-components/{p-ed061701.entry.js → p-9114f39c.entry.js} +1 -1
- package/dist/tet-components/{p-1308389c.entry.js → p-9303f044.entry.js} +1 -1
- package/dist/tet-components/{p-0e6f4848.entry.js → p-938c44a3.entry.js} +1 -1
- package/dist/tet-components/{p-77eaa70d.entry.js → p-94ef0a7b.entry.js} +1 -1
- package/dist/tet-components/{p-8a363e18.entry.js → p-992da373.entry.js} +1 -1
- package/dist/tet-components/{p-f16514db.entry.js → p-9bd457d2.entry.js} +1 -1
- package/dist/tet-components/{p-da0fc55d.entry.js → p-9c263933.entry.js} +1 -1
- package/dist/tet-components/{p-87221449.entry.js → p-9f921c87.entry.js} +1 -1
- package/dist/tet-components/{p-a8051a99.js → p-a476fd02.js} +1 -1
- package/dist/tet-components/{p-20bb8b10.entry.js → p-a58dc2dd.entry.js} +1 -1
- package/dist/tet-components/{p-14c2b68d.entry.js → p-adcfcac9.entry.js} +1 -1
- package/dist/tet-components/{p-f68450a4.entry.js → p-b22de340.entry.js} +1 -1
- package/dist/tet-components/{p-7544dfd7.js → p-b39df477.js} +1 -1
- package/dist/tet-components/{p-9c837569.entry.js → p-b4b90473.entry.js} +1 -1
- package/dist/tet-components/{p-24862e1d.entry.js → p-b4d5a1ec.entry.js} +1 -1
- package/dist/tet-components/{p-eaaaeafe.entry.js → p-b72b9466.entry.js} +1 -1
- package/dist/tet-components/{p-8d2269b5.entry.js → p-b9209f91.entry.js} +1 -1
- package/dist/tet-components/{p-1fd2adaf.js → p-b92dff8a.js} +1 -1
- package/dist/tet-components/{p-1db8895a.entry.js → p-bb947f1a.entry.js} +1 -1
- package/dist/tet-components/{p-7ffb8e4f.entry.js → p-bca076c8.entry.js} +1 -1
- package/dist/tet-components/{p-28c54fff.entry.js → p-bd2e52e7.entry.js} +1 -1
- package/dist/tet-components/{p-4fb3f48b.entry.js → p-bdc6c9fb.entry.js} +1 -1
- package/dist/tet-components/{p-5262ee39.entry.js → p-c25335f3.entry.js} +1 -1
- package/dist/tet-components/{p-b34e86ef.entry.js → p-c9583427.entry.js} +1 -1
- package/dist/tet-components/{p-0c6b6730.js → p-c9ddf890.js} +1 -1
- package/dist/tet-components/{p-503fa549.entry.js → p-ca78ea7c.entry.js} +1 -1
- package/dist/tet-components/{p-c455736d.entry.js → p-ce1d5bd4.entry.js} +1 -1
- package/dist/tet-components/{p-13b8d342.entry.js → p-cf0df09b.entry.js} +1 -1
- package/dist/tet-components/{p-970336de.entry.js → p-d0726a9d.entry.js} +1 -1
- package/dist/tet-components/{p-3ab161b4.entry.js → p-d12eef25.entry.js} +1 -1
- package/dist/tet-components/{p-39796998.entry.js → p-d3db997e.entry.js} +1 -1
- package/dist/tet-components/{p-eaaf3ccf.entry.js → p-d8875b9f.entry.js} +1 -1
- package/dist/tet-components/{p-a64e3e96.entry.js → p-e74416dc.entry.js} +1 -1
- package/dist/tet-components/{p-c9f21fde.entry.js → p-ec5b1040.entry.js} +1 -1
- package/dist/tet-components/{p-4eb981d1.entry.js → p-f48572c8.entry.js} +1 -1
- package/dist/tet-components/{p-1f169e55.entry.js → p-f743f892.entry.js} +1 -1
- package/dist/tet-components/{p-b87db05c.entry.js → p-fa34e438.entry.js} +1 -1
- package/dist/tet-components/{p-09dd8219.entry.js → p-fb434c23.entry.js} +1 -1
- package/dist/tet-components/{p-c4de9e32.entry.js → p-ff5b0f63.entry.js} +1 -1
- package/dist/tet-components/{p-aa54c6ab.entry.js → p-ffc57ff3.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/address/tet-autocomplete/tet-autocomplete.d.ts +2 -0
- package/dist/types/components/advanced/search/tet-support-search/tet-support-search.d.ts +11 -1
- package/dist/types/components/simple/menu/tet-business-navigation/tet-business-navigation.d.ts +6 -0
- package/dist/types/components/simple/menu/tet-menu-mobile/tet-menu-mobile.d.ts +10 -2
- package/dist/types/components.d.ts +48 -3
- package/package.json +1 -1
- package/dist/tet-components/p-32ece6e1.entry.js +0 -1
- package/dist/tet-components/p-74c1f044.entry.js +0 -1
- package/dist/tet-components/p-bf378dfd.entry.js +0 -1
- package/dist/tet-components/p-c8c0f6d3.entry.js +0 -1
- package/dist/tet-components/p-f81d95ae.js +0 -1
package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.js
CHANGED
|
@@ -6,6 +6,8 @@ export class TetBusinessNavigation {
|
|
|
6
6
|
this.menuItems = undefined;
|
|
7
7
|
this.theme = 'light';
|
|
8
8
|
this.expandable = false;
|
|
9
|
+
this.singleOpenMenu = true;
|
|
10
|
+
this.emitOnSelectedClick = false;
|
|
9
11
|
this.language = 'lv';
|
|
10
12
|
this.selectedItemId = undefined;
|
|
11
13
|
this.mainMenuItemId = undefined;
|
|
@@ -32,8 +34,15 @@ export class TetBusinessNavigation {
|
|
|
32
34
|
this.selectedItemId = id;
|
|
33
35
|
this.mainMenuItemId = mainMenuId || id;
|
|
34
36
|
localStorage.setItem('selectedSublevelId', JSON.stringify(mainMenuId ? id : ''));
|
|
35
|
-
this.menuClickEvent.emit({ id });
|
|
36
37
|
}
|
|
38
|
+
/** Handles menu item click behavior and emits click events. */
|
|
39
|
+
onMenuItemClick = async (id, mainMenuId) => {
|
|
40
|
+
const wasSelected = this.selectedItemId === id;
|
|
41
|
+
await this.selectMenuItem(id, mainMenuId);
|
|
42
|
+
if (!wasSelected || this.emitOnSelectedClick) {
|
|
43
|
+
this.menuClickEvent.emit({ id });
|
|
44
|
+
}
|
|
45
|
+
};
|
|
37
46
|
/** Sets the initial selected and open state for the navigation menu based on selected main or sublevel items. */
|
|
38
47
|
handleNavInitialState() {
|
|
39
48
|
this.mainMenuItemId = this.menuItems[0].id;
|
|
@@ -112,14 +121,17 @@ export class TetBusinessNavigation {
|
|
|
112
121
|
this.expanded = !this.expanded;
|
|
113
122
|
};
|
|
114
123
|
/** Open and close sublevel menu items. */
|
|
115
|
-
toggleSublevels = (id) => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
124
|
+
toggleSublevels = async (id) => {
|
|
125
|
+
await this.onMenuItemClick(id);
|
|
126
|
+
const isOpen = this.openedMenuIds.has(id);
|
|
127
|
+
if (this.singleOpenMenu) {
|
|
128
|
+
this.openedMenuIds = isOpen ? new Set() : new Set([id]);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
const newSet = new Set(this.openedMenuIds);
|
|
132
|
+
isOpen ? newSet.delete(id) : newSet.add(id);
|
|
133
|
+
this.openedMenuIds = newSet;
|
|
119
134
|
}
|
|
120
|
-
const newSet = new Set(this.openedMenuIds);
|
|
121
|
-
newSet.has(id) ? newSet.delete(id) : newSet.add(id);
|
|
122
|
-
this.openedMenuIds = newSet;
|
|
123
135
|
localStorage.setItem('selectedSublevelId', JSON.stringify(''));
|
|
124
136
|
};
|
|
125
137
|
/** Render second menu level */
|
|
@@ -127,7 +139,7 @@ export class TetBusinessNavigation {
|
|
|
127
139
|
if (!this.openedMenuIds.has(id)) {
|
|
128
140
|
return null;
|
|
129
141
|
}
|
|
130
|
-
const renderSublevelItem = sublevels.map((item) => (h("button", { class: { 'business-navigation-item': true, 'sublevel': true, 'selected': this.selectedItemId === item.id }, key: item.id, onClick: () => this.
|
|
142
|
+
const renderSublevelItem = sublevels.map((item) => (h("button", { class: { 'business-navigation-item': true, 'sublevel': true, 'selected': this.selectedItemId === item.id }, key: item.id, onClick: () => this.onMenuItemClick(item.id, id) }, h("span", { class: { 'business-navigation-item__title': true, 'sublevel': true } }, item.name))));
|
|
131
143
|
return h("div", { class: "business-navigation-item-sublevel" }, renderSublevelItem);
|
|
132
144
|
};
|
|
133
145
|
/** Render menu item */
|
|
@@ -135,7 +147,7 @@ export class TetBusinessNavigation {
|
|
|
135
147
|
const { id, icon, name, sublevels } = menuItem;
|
|
136
148
|
const { expanded, openedMenuIds } = this;
|
|
137
149
|
const withSublevels = expanded && sublevels && sublevels.length > 0;
|
|
138
|
-
return (h("div", { class: "business-navigation-item__wrapper" }, h("button", { key: id, class: { 'business-navigation-item': true, 'selected': this.selectedItemId === id }, onClick: () => (withSublevels ? this.toggleSublevels(id) : this.
|
|
150
|
+
return (h("div", { class: "business-navigation-item__wrapper" }, h("button", { key: id, class: { 'business-navigation-item': true, 'selected': this.selectedItemId === id }, onClick: () => (withSublevels ? this.toggleSublevels(id) : this.onMenuItemClick(id)), "aria-label": name }, icon && h("tet-icon", { class: "business-navigation-item__icon", name: icon }), !this.expandable || expanded ? (h("span", { class: "business-navigation-item__title" }, name)) : (h("tet-tooltip", { class: "business-navigation-item__tooltip", position: TooltipPosition.RIGHT, theme: this.theme }, name)), withSublevels && (h("tet-icon", { class: { 'business-navigation-item__chevron': true, 'sublevelOpened': openedMenuIds.has(id) }, name: openedMenuIds.has(id) ? 'chevron-up' : 'chevron-down' }))), withSublevels && this.renderSublevelItems(sublevels, id)));
|
|
139
151
|
};
|
|
140
152
|
/** Render button to expand and minimize the menu container. */
|
|
141
153
|
renderExpandButton = () => {
|
|
@@ -147,7 +159,7 @@ export class TetBusinessNavigation {
|
|
|
147
159
|
/** Render Functional Component*/
|
|
148
160
|
render() {
|
|
149
161
|
const { menuItems, theme, expandable } = this;
|
|
150
|
-
return (h("div", { key: '
|
|
162
|
+
return (h("div", { key: 'c0deb0698440cb860b679b18497a116355d74acb', class: { 'business-navigation': true, [`${theme}`]: true, 'expandable': expandable, 'closed': !this.expanded }, role: "group", onMouseDown: this.onContainerMouseDown, ref: (ref) => (this.navigationContainer = ref) }, this.renderExpandButton(), expandable && h("hr", { key: '5c0ea277dbde5a6d38ba139214f09308d1f1a7c1', class: "business-navigation-divider" }), menuItems && menuItems.map(this.renderMenuItem)));
|
|
151
163
|
}
|
|
152
164
|
static get is() { return "tet-business-navigation"; }
|
|
153
165
|
static get encapsulation() { return "shadow"; }
|
|
@@ -224,6 +236,42 @@ export class TetBusinessNavigation {
|
|
|
224
236
|
"reflect": false,
|
|
225
237
|
"defaultValue": "false"
|
|
226
238
|
},
|
|
239
|
+
"singleOpenMenu": {
|
|
240
|
+
"type": "boolean",
|
|
241
|
+
"mutable": false,
|
|
242
|
+
"complexType": {
|
|
243
|
+
"original": "boolean",
|
|
244
|
+
"resolved": "boolean",
|
|
245
|
+
"references": {}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": "When `expandable` is true, only one menu can be open at a time."
|
|
252
|
+
},
|
|
253
|
+
"attribute": "single-open-menu",
|
|
254
|
+
"reflect": false,
|
|
255
|
+
"defaultValue": "true"
|
|
256
|
+
},
|
|
257
|
+
"emitOnSelectedClick": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "boolean",
|
|
262
|
+
"resolved": "boolean",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": false,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "When true, emits `menu-click-event` even if the clicked menu item is already selected."
|
|
270
|
+
},
|
|
271
|
+
"attribute": "emit-on-selected-click",
|
|
272
|
+
"reflect": false,
|
|
273
|
+
"defaultValue": "false"
|
|
274
|
+
},
|
|
227
275
|
"language": {
|
|
228
276
|
"type": "string",
|
|
229
277
|
"mutable": false,
|
|
@@ -379,8 +379,7 @@
|
|
|
379
379
|
* @prop --menu-link-border-radius: The border-radius of the menu elements.
|
|
380
380
|
* @prop --menu-text-color: The text color of the menu elements.
|
|
381
381
|
* @prop --menu-item-theme-bg: The background color of the menu.
|
|
382
|
-
* @prop --menu-
|
|
383
|
-
* @prop --menu-third-level-text-color-active: The text color of the third level menu element when active.
|
|
382
|
+
* @prop --menu-text-color-active: The text color of the menu element when active.
|
|
384
383
|
* @prop --menu-border-bottom: The styling of the menu bottom border.
|
|
385
384
|
* @prop --menu-link-active-background-color: The background color of the menu element link when active.
|
|
386
385
|
* @prop --menu-link-hover-background-color: The background color of the menu element link on hover.
|
|
@@ -391,14 +390,14 @@
|
|
|
391
390
|
--menu-list-expanded-margin-bottom: 1rem;
|
|
392
391
|
--menu-list-expanded-margin-top: 0.375rem;
|
|
393
392
|
--menu-dropdown-animation-speed: 0.2s;
|
|
394
|
-
--menu-link-border-radius: 0.
|
|
393
|
+
--menu-link-border-radius: 0.375rem;
|
|
395
394
|
--menu-text-color: var(--tc-text-primary);
|
|
396
395
|
--menu-item-theme-bg: var(--tc-layer-primary);
|
|
397
|
-
--menu-
|
|
398
|
-
--menu-third-level-text-color-active: var(--tc-blue-40);
|
|
396
|
+
--menu-text-color-active: var(--tc-text-tertiary);
|
|
399
397
|
--menu-border-bottom: 0.03125rem solid var(--tc-border-quaternary);
|
|
400
398
|
--menu-link-active-background-color: var(--tc-menu-item-active);
|
|
401
399
|
--menu-link-hover-background-color: var(--tc-menu-item-hover);
|
|
400
|
+
--menu-link-pressed-background-color: var(--tc-menu-item-pressed);
|
|
402
401
|
--menu-item-theme-hover-bg: var(--tc-menu-item-hover);
|
|
403
402
|
--menu-focus-outline-color: var(--tc-blue-40);
|
|
404
403
|
--menu-badge-background: var(--tc-yellow-20);
|
|
@@ -480,12 +479,12 @@
|
|
|
480
479
|
.menu--dark {
|
|
481
480
|
--menu-text-color: var(--tc-text-primary-dark);
|
|
482
481
|
--menu-item-theme-bg: var(--tc-layer-primary-dark);
|
|
483
|
-
--menu-
|
|
484
|
-
--menu-third-level-text-color-active: var(--tc-blue-40-dark);
|
|
482
|
+
--menu-text-color-active: var(--tc-text-tertiary-dark);
|
|
485
483
|
--menu-border-bottom: 0.03125rem solid var(--tc-border-quaternary-dark);
|
|
486
484
|
--menu-highlited-item-background-color: var(--tc-layer-primary-dark);
|
|
487
485
|
--menu-link-active-background-color: var(--tc-menu-item-active-dark);
|
|
488
486
|
--menu-link-hover-background-color: var(--tc-menu-item-hover-dark);
|
|
487
|
+
--menu-link-pressed-background-color: var(--tc-menu-item-pressed-dark);
|
|
489
488
|
--menu-item-theme-hover-bg: var(--tc-menu-item-hover-dark);
|
|
490
489
|
--menu-focus-outline-color: var(--tc-blue-40-dark);
|
|
491
490
|
--menu-badge-background: var(--tc-grey-40-dark);
|
|
@@ -554,24 +553,35 @@
|
|
|
554
553
|
.menu--expanded, .menu--hide-border {
|
|
555
554
|
border-bottom-color: transparent;
|
|
556
555
|
}
|
|
557
|
-
.menu a
|
|
556
|
+
.menu a,
|
|
557
|
+
.menu button {
|
|
558
558
|
color: var(--menu-text-color);
|
|
559
559
|
text-decoration: none;
|
|
560
|
+
cursor: pointer;
|
|
561
|
+
text-align: left;
|
|
562
|
+
}
|
|
563
|
+
.menu a:hover,
|
|
564
|
+
.menu button:hover {
|
|
565
|
+
background-color: var(--menu-link-hover-background-color);
|
|
566
|
+
}
|
|
567
|
+
.menu a:active,
|
|
568
|
+
.menu button:active {
|
|
569
|
+
background-color: var(--menu-link-pressed-background-color);
|
|
560
570
|
}
|
|
561
571
|
.menu__first-level {
|
|
562
572
|
font: 500 1.125rem/1.75rem "Inter", "Gilroy, Arial, sans-serif";
|
|
563
573
|
align-items: center;
|
|
564
574
|
display: flex;
|
|
575
|
+
width: 100%;
|
|
565
576
|
flex-direction: row;
|
|
566
577
|
padding: 0.5rem 1rem;
|
|
567
578
|
border: 0.125rem solid transparent;
|
|
568
579
|
background-color: var(--menu-item-theme-bg);
|
|
569
|
-
border-radius:
|
|
580
|
+
border-radius: var(--menu-link-border-radius);
|
|
570
581
|
}
|
|
571
582
|
.menu__first-level-themed {
|
|
572
583
|
position: relative;
|
|
573
584
|
isolation: isolate;
|
|
574
|
-
color: var(--menu-text-color);
|
|
575
585
|
background-image: linear-gradient(var(--menu-item-theme-bg)), var(--menu-item-theme-gradient);
|
|
576
586
|
background-origin: border-box;
|
|
577
587
|
background-clip: padding-box, border-box;
|
|
@@ -592,14 +602,30 @@
|
|
|
592
602
|
--icon-size: 1.25rem;
|
|
593
603
|
display: flex;
|
|
594
604
|
align-self: center;
|
|
595
|
-
padding-right: 0.
|
|
605
|
+
padding-right: 0.5rem;
|
|
606
|
+
}
|
|
607
|
+
.menu--expanded .menu__first-level {
|
|
608
|
+
color: var(--menu-text-color-active);
|
|
609
|
+
text-decoration-line: underline;
|
|
610
|
+
text-decoration-style: solid;
|
|
611
|
+
text-decoration-skip-ink: none;
|
|
612
|
+
text-decoration-thickness: auto;
|
|
613
|
+
text-underline-offset: auto;
|
|
614
|
+
text-underline-position: from-font;
|
|
596
615
|
}
|
|
597
616
|
.menu--active .menu__first-level {
|
|
598
|
-
color: var(--menu-
|
|
617
|
+
color: var(--menu-text-color-active);
|
|
599
618
|
background-color: var(--menu-item-theme-active-bg);
|
|
619
|
+
text-decoration-line: underline;
|
|
620
|
+
text-decoration-style: solid;
|
|
621
|
+
text-decoration-skip-ink: none;
|
|
622
|
+
text-decoration-thickness: auto;
|
|
623
|
+
text-underline-offset: auto;
|
|
624
|
+
text-underline-position: from-font;
|
|
600
625
|
}
|
|
601
626
|
.menu--active .menu__first-level-themed {
|
|
602
627
|
color: var(--menu-text-color);
|
|
628
|
+
text-decoration: none;
|
|
603
629
|
border-color: var(--menu-item-theme-active-bg);
|
|
604
630
|
background-image: linear-gradient(var(--menu-item-theme-active-bg), var(--menu-item-theme-active-bg));
|
|
605
631
|
background-size: 100% 100%;
|
|
@@ -610,13 +636,12 @@
|
|
|
610
636
|
outline: 0.125rem solid var(--tc-blue-40);
|
|
611
637
|
outline-offset: 0.125rem;
|
|
612
638
|
transition: outline 0s;
|
|
613
|
-
border-radius: 0.25rem;
|
|
614
639
|
outline-offset: -0.125rem;
|
|
615
640
|
}
|
|
616
641
|
.menu__chevron {
|
|
617
642
|
--icon-size: 1.25rem;
|
|
618
|
-
justify-self: end;
|
|
619
643
|
margin-left: auto;
|
|
644
|
+
padding-left: 0.75rem;
|
|
620
645
|
}
|
|
621
646
|
.menu__dropdown {
|
|
622
647
|
overflow: hidden;
|
|
@@ -637,66 +662,67 @@
|
|
|
637
662
|
}
|
|
638
663
|
.menu__dropdown__list li {
|
|
639
664
|
list-style: none;
|
|
640
|
-
padding:
|
|
665
|
+
padding: 0.0625rem;
|
|
641
666
|
border-radius: var(--menu-link-border-radius);
|
|
642
667
|
}
|
|
643
|
-
.menu__dropdown__list .sublist a
|
|
668
|
+
.menu__dropdown__list .sublist a,
|
|
669
|
+
.menu__dropdown__list .sublist button {
|
|
644
670
|
padding: 0.75rem 1rem 0.75rem 3rem;
|
|
645
671
|
}
|
|
646
|
-
.menu__dropdown a
|
|
672
|
+
.menu__dropdown a,
|
|
673
|
+
.menu__dropdown button {
|
|
647
674
|
padding: 0.625rem 1rem 0.625rem 1.75rem;
|
|
648
675
|
display: flex;
|
|
676
|
+
border: 0;
|
|
649
677
|
border-radius: var(--menu-link-border-radius);
|
|
650
|
-
}
|
|
651
|
-
.menu__dropdown a:hover {
|
|
652
|
-
background-color: var(--menu-item-theme-hover-bg);
|
|
653
|
-
}
|
|
654
|
-
.menu__dropdown a.menu__second-level {
|
|
655
|
-
font: 500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
|
|
656
|
-
}
|
|
657
|
-
.menu__dropdown a.menu__second-level:has(span) {
|
|
658
|
-
display: inline-block;
|
|
659
678
|
width: 100%;
|
|
679
|
+
background-color: unset;
|
|
680
|
+
font: 500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
|
|
660
681
|
}
|
|
661
|
-
.menu__dropdown a
|
|
662
|
-
|
|
663
|
-
}
|
|
664
|
-
.menu__dropdown a.menu__second-level:focus-visible {
|
|
682
|
+
.menu__dropdown a:focus-visible,
|
|
683
|
+
.menu__dropdown button:focus-visible {
|
|
665
684
|
outline: 0.125rem solid var(--tc-blue-40);
|
|
666
685
|
outline-offset: -0.125rem;
|
|
667
686
|
transition: outline 0s;
|
|
668
687
|
outline-color: var(--menu-focus-outline-color);
|
|
669
688
|
}
|
|
670
|
-
.menu__dropdown a.
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
689
|
+
.menu__dropdown a.menu__second-level.menu--expanded,
|
|
690
|
+
.menu__dropdown button.menu__second-level.menu--expanded {
|
|
691
|
+
color: var(--menu-text-color-active);
|
|
692
|
+
text-decoration-line: underline;
|
|
693
|
+
text-decoration-style: solid;
|
|
694
|
+
text-decoration-skip-ink: none;
|
|
695
|
+
text-decoration-thickness: auto;
|
|
696
|
+
text-underline-offset: auto;
|
|
697
|
+
text-underline-position: from-font;
|
|
698
|
+
}
|
|
699
|
+
.menu__dropdown a.menu--active,
|
|
700
|
+
.menu__dropdown button.menu--active {
|
|
701
|
+
background-color: var(--menu-item-theme-active-bg);
|
|
676
702
|
}
|
|
677
|
-
.menu__dropdown a.
|
|
678
|
-
|
|
703
|
+
.menu__dropdown a.menu--active.menu__second-level, .menu__dropdown a.menu--active.menu__third-level,
|
|
704
|
+
.menu__dropdown button.menu--active.menu__second-level,
|
|
705
|
+
.menu__dropdown button.menu--active.menu__third-level {
|
|
706
|
+
background-color: var(--menu-link-active-background-color);
|
|
679
707
|
}
|
|
680
|
-
.menu__dropdown a.
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
transition: outline 0s;
|
|
684
|
-
outline-color: var(--menu-focus-outline-color);
|
|
708
|
+
.menu__dropdown a.menu--active.menu__second-level.menu--expandable:hover,
|
|
709
|
+
.menu__dropdown button.menu--active.menu__second-level.menu--expandable:hover {
|
|
710
|
+
background-color: var(--menu-link-hover-background-color);
|
|
685
711
|
}
|
|
686
|
-
.menu__dropdown a.menu--active
|
|
687
|
-
|
|
712
|
+
.menu__dropdown a.menu--active.menu__second-level.menu--expandable:active,
|
|
713
|
+
.menu__dropdown button.menu--active.menu__second-level.menu--expandable:active {
|
|
714
|
+
background-color: var(--menu-link-pressed-background-color);
|
|
688
715
|
}
|
|
689
|
-
.menu__dropdown a.menu--active.
|
|
690
|
-
|
|
716
|
+
.menu__dropdown a.menu--active.menu--expandable,
|
|
717
|
+
.menu__dropdown button.menu--active.menu--expandable {
|
|
691
718
|
background-color: unset;
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
background-color: var(--menu-item-theme-hover-bg);
|
|
719
|
+
color: var(--menu-text-color-active);
|
|
720
|
+
text-decoration-line: underline;
|
|
721
|
+
text-decoration-style: solid;
|
|
722
|
+
text-decoration-skip-ink: none;
|
|
723
|
+
text-decoration-thickness: auto;
|
|
724
|
+
text-underline-offset: auto;
|
|
725
|
+
text-underline-position: from-font;
|
|
700
726
|
}
|
|
701
727
|
|
|
702
728
|
.badge {
|
|
@@ -704,8 +730,9 @@
|
|
|
704
730
|
color: var(--menu-text-color);
|
|
705
731
|
background-color: var(--menu-badge-background);
|
|
706
732
|
margin-left: 0.25rem;
|
|
707
|
-
|
|
708
|
-
|
|
733
|
+
vertical-align: middle;
|
|
734
|
+
position: relative;
|
|
735
|
+
top: -0.0625em;
|
|
709
736
|
padding: 0.125rem 0.375rem;
|
|
710
737
|
border-radius: 0.25rem;
|
|
711
738
|
}
|
|
@@ -7,28 +7,67 @@ export class TetMenuMobile {
|
|
|
7
7
|
this.isActive = false;
|
|
8
8
|
this.firstLevelTitle = '';
|
|
9
9
|
this.firstLevelLink = '';
|
|
10
|
-
this.firstLevelId =
|
|
10
|
+
this.firstLevelId = undefined;
|
|
11
11
|
this.subLevels = [];
|
|
12
12
|
this.darkMode = false;
|
|
13
13
|
this.highlightTheme = undefined;
|
|
14
14
|
this.showAnimation = false;
|
|
15
15
|
this.firstLevelIcon = '';
|
|
16
16
|
this.hideBottomBorder = false;
|
|
17
|
+
this.openActiveMenu = false;
|
|
17
18
|
this.isExpanded = false;
|
|
18
19
|
this.hasDropdownContent = false;
|
|
19
20
|
this.subMenuState = [];
|
|
20
21
|
}
|
|
22
|
+
rootMenuId = 'tet-menu-mobile-root-dropdown';
|
|
21
23
|
/**
|
|
22
24
|
* The root element of the component.
|
|
23
25
|
*/
|
|
24
26
|
rootElement;
|
|
27
|
+
getOpenSubMenusByActiveItems(items) {
|
|
28
|
+
const openKeys = new Set();
|
|
29
|
+
const walk = (levelItems) => {
|
|
30
|
+
let hasActiveInCurrentBranch = false;
|
|
31
|
+
levelItems.forEach(item => {
|
|
32
|
+
const childItems = item.subLevels || [];
|
|
33
|
+
const hasActiveChild = childItems.length ? walk(childItems) : false;
|
|
34
|
+
const isActiveBranch = Boolean(item.active) || hasActiveChild;
|
|
35
|
+
if (childItems.length && isActiveBranch) {
|
|
36
|
+
openKeys.add(item.title);
|
|
37
|
+
}
|
|
38
|
+
if (isActiveBranch) {
|
|
39
|
+
hasActiveInCurrentBranch = true;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return hasActiveInCurrentBranch;
|
|
43
|
+
};
|
|
44
|
+
walk(items);
|
|
45
|
+
return Array.from(openKeys);
|
|
46
|
+
}
|
|
47
|
+
syncExpandedStateWithActiveState(isActive) {
|
|
48
|
+
if (!this.openActiveMenu) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (!isActive) {
|
|
52
|
+
this.isExpanded = false;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (this.hasDropdownContent) {
|
|
56
|
+
this.isExpanded = true;
|
|
57
|
+
this.subMenuState = this.getOpenSubMenusByActiveItems(this.subLevels);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
onIsActiveChange(newIsActive) {
|
|
61
|
+
this.syncExpandedStateWithActiveState(newIsActive);
|
|
62
|
+
}
|
|
25
63
|
/**
|
|
26
64
|
* Lifecycle method.
|
|
27
65
|
*/
|
|
28
66
|
componentWillLoad() {
|
|
29
|
-
const hasListStartSlot = Boolean(this.rootElement
|
|
30
|
-
const hasListEndSlot = Boolean(this.rootElement
|
|
67
|
+
const hasListStartSlot = Boolean(this.rootElement?.querySelector('[slot="list-start"]'));
|
|
68
|
+
const hasListEndSlot = Boolean(this.rootElement?.querySelector('[slot="list-end"]'));
|
|
31
69
|
this.hasDropdownContent = hasListStartSlot || hasListEndSlot || Boolean(this.subLevels.length);
|
|
70
|
+
this.syncExpandedStateWithActiveState(this.isActive);
|
|
32
71
|
}
|
|
33
72
|
/**
|
|
34
73
|
* Method trigering on the first level element click.
|
|
@@ -55,19 +94,28 @@ export class TetMenuMobile {
|
|
|
55
94
|
*/
|
|
56
95
|
renderFirstLevel() {
|
|
57
96
|
const { firstLevelTitle, firstLevelLink, firstLevelId } = this;
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
if (canBeClicked) {
|
|
61
|
-
href = firstLevelLink;
|
|
62
|
-
}
|
|
97
|
+
const hasNavigationLink = !this.hasDropdownContent && !!firstLevelLink;
|
|
98
|
+
const isToggleButton = this.hasDropdownContent;
|
|
63
99
|
const isThemed = !!this.highlightTheme;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
100
|
+
const useSecondaryType = isThemed
|
|
101
|
+
? (this.isExpanded && !this.isActive)
|
|
102
|
+
: (this.isExpanded || this.isActive);
|
|
103
|
+
const firstLevelContent = [
|
|
104
|
+
this.firstLevelIcon && (h("tet-icon", { class: "menu__first-level-icon", name: this.firstLevelIcon, theme: this.darkMode ? 'dark' : 'light', type: useSecondaryType ? 'secondary' : 'primary' })),
|
|
105
|
+
h("span", null, firstLevelTitle),
|
|
106
|
+
this.renderChevron(),
|
|
107
|
+
];
|
|
108
|
+
const firstLevelClass = {
|
|
109
|
+
'menu__first-level': true,
|
|
110
|
+
'tet-font__label--l': true,
|
|
111
|
+
'menu__first-level-themed': !!this.highlightTheme,
|
|
112
|
+
'show-animation': this.showAnimation,
|
|
113
|
+
...(this.highlightTheme && { [`theme-${this.highlightTheme}`]: true }),
|
|
114
|
+
};
|
|
115
|
+
if (isToggleButton) {
|
|
116
|
+
return (h("button", { id: firstLevelId, type: "button", "aria-controls": this.rootMenuId, "aria-expanded": this.isExpanded.toString(), class: firstLevelClass, onClick: this.firstLevelClick }, firstLevelContent));
|
|
117
|
+
}
|
|
118
|
+
return (h("a", { id: firstLevelId, href: hasNavigationLink ? firstLevelLink : undefined, class: firstLevelClass, onClick: this.firstLevelClick }, firstLevelContent));
|
|
71
119
|
}
|
|
72
120
|
/**
|
|
73
121
|
* Renders the dropdown of the menu.
|
|
@@ -79,48 +127,56 @@ export class TetMenuMobile {
|
|
|
79
127
|
}
|
|
80
128
|
let renderedSubLevels = null;
|
|
81
129
|
if (subLevels.length) {
|
|
82
|
-
renderedSubLevels = subLevels.map(subLevel => this.renderSubItem(subLevel));
|
|
130
|
+
renderedSubLevels = subLevels.map((subLevel, index) => this.renderSubItem(subLevel, false, index));
|
|
83
131
|
}
|
|
84
|
-
return (h("div", { class: "menu__dropdown" }, h("ul", { class: "menu__dropdown__list" }, h("slot", { name: "list-start" }), renderedSubLevels, h("slot", { name: "list-end" }))));
|
|
132
|
+
return (h("div", { class: "menu__dropdown" }, h("ul", { class: "menu__dropdown__list", id: this.rootMenuId }, h("slot", { name: "list-start" }), renderedSubLevels, h("slot", { name: "list-end" }))));
|
|
85
133
|
}
|
|
86
134
|
/**
|
|
87
135
|
* Renders the sub level item of the menu.
|
|
88
136
|
* @param subLevel
|
|
89
137
|
*/
|
|
90
|
-
renderSubItem(subLevel, isSubLevel = false) {
|
|
91
|
-
const subMenuItems = subLevel.subLevels?.map(_subLevel => {
|
|
92
|
-
return this.renderSubItem(_subLevel, true);
|
|
138
|
+
renderSubItem(subLevel, isSubLevel = false, secondLevelIndex) {
|
|
139
|
+
const subMenuItems = subLevel.subLevels?.map((_subLevel, index) => {
|
|
140
|
+
return this.renderSubItem(_subLevel, true, index);
|
|
93
141
|
});
|
|
94
|
-
let href = 'javascript:void(0)';
|
|
95
142
|
const canBeClicked = !!subMenuItems?.length;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
143
|
+
const hasNavigationLink = !canBeClicked;
|
|
144
|
+
const subMenuId = !isSubLevel && canBeClicked ? `tet-menu-mobile-submenu-${secondLevelIndex}` : undefined;
|
|
145
|
+
const useSecondaryType = !!subLevel.active || this.subMenuState.includes(subLevel.title);
|
|
146
|
+
const subItemClass = {
|
|
147
|
+
'menu--active': !!subLevel.active,
|
|
148
|
+
'menu__second-level': !isSubLevel,
|
|
149
|
+
'menu__third-level': isSubLevel,
|
|
150
|
+
'menu--expandable': canBeClicked,
|
|
151
|
+
'menu--expanded': this.subMenuState.includes(subLevel.title),
|
|
152
|
+
};
|
|
153
|
+
const subItemContent = [
|
|
154
|
+
subLevel.badge ? (h("div", null, subLevel.title, h("span", { class: "badge" }, subLevel.badge))) : (subLevel.title),
|
|
155
|
+
!!canBeClicked && this.renderSubChevron(subLevel.title, useSecondaryType),
|
|
156
|
+
];
|
|
157
|
+
return (h("li", null, canBeClicked ? (h("button", { id: subLevel.id, type: "button", "aria-controls": subMenuId, "aria-expanded": this.subMenuState.includes(subLevel.title).toString(), class: subItemClass, onClick: () => this.secondLevelClick(subLevel.title, canBeClicked), inert: !this.isExpanded }, subItemContent)) : (h("a", { id: subLevel.id, href: hasNavigationLink ? subLevel.link : undefined, class: subItemClass, onClick: () => this.secondLevelClick(subLevel.title, canBeClicked), inert: !this.isExpanded }, subItemContent)), !!this.subMenuState.includes(subLevel.title) && h("ul", { class: "sublist", id: subMenuId }, subMenuItems)));
|
|
105
158
|
}
|
|
106
159
|
/**
|
|
107
160
|
* Renders the chevron icon if the menu has content.
|
|
108
161
|
*/
|
|
109
162
|
renderChevron() {
|
|
110
163
|
const isThemed = !!this.highlightTheme;
|
|
164
|
+
const useSecondaryType = isThemed
|
|
165
|
+
? (this.isExpanded && !this.isActive)
|
|
166
|
+
: (this.isExpanded || this.isActive);
|
|
111
167
|
if (!this.hasDropdownContent) {
|
|
112
168
|
return null;
|
|
113
169
|
}
|
|
114
|
-
return (h("tet-icon", { class: "menu__chevron", name: this.isExpanded ? "chevron-up" : "chevron-down", theme: this.darkMode ? "dark" : "light", type:
|
|
170
|
+
return (h("tet-icon", { class: "menu__chevron", name: this.isExpanded ? "chevron-up" : "chevron-down", theme: this.darkMode ? "dark" : "light", type: useSecondaryType ? 'secondary' : 'primary' }));
|
|
115
171
|
}
|
|
116
172
|
/**
|
|
117
173
|
* Renders the chevron icon if the menu has content.
|
|
118
174
|
*/
|
|
119
|
-
renderSubChevron(key) {
|
|
120
|
-
return (h("tet-icon", { class: "menu__chevron", name: this.subMenuState.includes(key) ? "chevron-up" : "chevron-down", theme: this.darkMode ? "dark" : "light" }));
|
|
175
|
+
renderSubChevron(key, useSecondaryType = false) {
|
|
176
|
+
return (h("tet-icon", { class: "menu__chevron", name: this.subMenuState.includes(key) ? "chevron-up" : "chevron-down", theme: this.darkMode ? "dark" : "light", type: useSecondaryType ? "secondary" : "primary" }));
|
|
121
177
|
}
|
|
122
178
|
render() {
|
|
123
|
-
return (h(Host, { key: '
|
|
179
|
+
return (h(Host, { key: '259013548a8c3ce223f46676671f52af59b38457' }, h("div", { key: '3a036b3a3eeb1beb9f920fd3c6e7e8dae0cb111b', class: {
|
|
124
180
|
'menu': true,
|
|
125
181
|
'menu--expanded': this.isExpanded,
|
|
126
182
|
'menu--active': this.isActive,
|
|
@@ -205,14 +261,13 @@ export class TetMenuMobile {
|
|
|
205
261
|
"references": {}
|
|
206
262
|
},
|
|
207
263
|
"required": false,
|
|
208
|
-
"optional":
|
|
264
|
+
"optional": true,
|
|
209
265
|
"docs": {
|
|
210
266
|
"tags": [],
|
|
211
267
|
"text": "The id of the first menu level."
|
|
212
268
|
},
|
|
213
269
|
"attribute": "first-level-id",
|
|
214
|
-
"reflect": false
|
|
215
|
-
"defaultValue": "null"
|
|
270
|
+
"reflect": false
|
|
216
271
|
},
|
|
217
272
|
"subLevels": {
|
|
218
273
|
"type": "unknown",
|
|
@@ -330,6 +385,24 @@ export class TetMenuMobile {
|
|
|
330
385
|
"attribute": "hide-bottom-border",
|
|
331
386
|
"reflect": false,
|
|
332
387
|
"defaultValue": "false"
|
|
388
|
+
},
|
|
389
|
+
"openActiveMenu": {
|
|
390
|
+
"type": "boolean",
|
|
391
|
+
"mutable": false,
|
|
392
|
+
"complexType": {
|
|
393
|
+
"original": "boolean",
|
|
394
|
+
"resolved": "boolean",
|
|
395
|
+
"references": {}
|
|
396
|
+
},
|
|
397
|
+
"required": false,
|
|
398
|
+
"optional": false,
|
|
399
|
+
"docs": {
|
|
400
|
+
"tags": [],
|
|
401
|
+
"text": "When enabled, expands the active root menu on load and opens its active expandable sub-menus."
|
|
402
|
+
},
|
|
403
|
+
"attribute": "open-active-menu",
|
|
404
|
+
"reflect": false,
|
|
405
|
+
"defaultValue": "false"
|
|
333
406
|
}
|
|
334
407
|
};
|
|
335
408
|
}
|
|
@@ -341,4 +414,10 @@ export class TetMenuMobile {
|
|
|
341
414
|
};
|
|
342
415
|
}
|
|
343
416
|
static get elementRef() { return "rootElement"; }
|
|
417
|
+
static get watchers() {
|
|
418
|
+
return [{
|
|
419
|
+
"propName": "isActive",
|
|
420
|
+
"methodName": "onIsActiveChange"
|
|
421
|
+
}];
|
|
422
|
+
}
|
|
344
423
|
}
|