@tet/tet-components 1.3.157-testing → 1.4.0-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-5271d3aa.js → address-b695d769.js} +1 -1
- package/dist/cjs/{assets-e3bb045c.js → assets-39f8cd2c.js} +1 -1
- package/dist/cjs/{async-request-29b32d63.js → async-request-77d8e0b8.js} +27 -26
- package/dist/cjs/compare-cards-tab-products-filters-10b06fe0.js +100 -0
- package/dist/cjs/{http-codes-2f72a8b2.js → http-codes-38914116.js} +25 -19
- package/dist/cjs/{index-f559cb2e.js → index-28359ea5.js} +1672 -1598
- package/dist/cjs/{index-84ede372.js → index-bf7cfd19.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-d414fe5a.js → phone-ed64bd26.js} +8 -6
- package/dist/cjs/{product-comparison-f784fb1b.js → product-comparison-ae2ccae4.js} +1 -1
- package/dist/cjs/{tasks-af99ad61.js → tasks-57ad40ae.js} +2 -2
- package/dist/cjs/tet-accordion_2.cjs.entry.js +62 -46
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +249 -232
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +43 -35
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +343 -313
- package/dist/cjs/tet-address-search.cjs.entry.js +175 -167
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +106 -95
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +40 -30
- package/dist/cjs/tet-autocomplete.cjs.entry.js +203 -190
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +280 -241
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +396 -378
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +28 -28
- package/dist/cjs/tet-banner-nav.cjs.entry.js +23 -11
- package/dist/cjs/tet-bar-graph.cjs.entry.js +222 -215
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-card.cjs.entry.js +38 -32
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +18 -11
- package/dist/cjs/tet-business-lines.cjs.entry.js +25 -26
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +10 -10
- package/dist/cjs/tet-button.cjs.entry.js +9 -9
- package/dist/cjs/tet-card-list.cjs.entry.js +557 -530
- package/dist/cjs/tet-carousel.cjs.entry.js +180 -184
- package/dist/cjs/tet-checkbox.cjs.entry.js +15 -11
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +30 -4
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +132 -124
- package/dist/cjs/tet-colors.cjs.entry.js +42 -42
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +51 -49
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +29 -28
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +41 -34
- package/dist/cjs/tet-components.cjs.js +3 -3
- package/dist/cjs/tet-contact-form.cjs.entry.js +55 -46
- package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +62 -58
- package/dist/cjs/tet-customer-assets.cjs.entry.js +90 -85
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +202 -187
- package/dist/cjs/tet-datepicker.cjs.entry.js +35 -30
- package/dist/cjs/tet-dialog.cjs.entry.js +41 -35
- package/dist/cjs/tet-dropdown_2.cjs.entry.js +137 -115
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +68 -71
- package/dist/cjs/tet-expandable-input.cjs.entry.js +97 -80
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +17 -19
- package/dist/cjs/tet-filter.cjs.entry.js +26 -11
- 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 +25 -24
- package/dist/cjs/tet-inline-message.cjs.entry.js +7 -7
- package/dist/cjs/tet-input.cjs.entry.js +47 -37
- 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.cjs.entry.js +1 -1
- package/dist/cjs/tet-loader.cjs.entry.js +1 -1
- package/dist/cjs/tet-macd-view.cjs.entry.js +50 -23
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +13 -14
- package/dist/cjs/tet-menu.cjs.entry.js +4 -5
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +86 -72
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +19 -15
- package/dist/cjs/tet-news-card-list.cjs.entry.js +35 -36
- package/dist/cjs/tet-number-input.cjs.entry.js +56 -42
- package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +4 -4
- package/dist/cjs/tet-radio.cjs.entry.js +11 -7
- package/dist/cjs/tet-range-slider.cjs.entry.js +632 -620
- package/dist/cjs/tet-referral.cjs.entry.js +30 -26
- 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-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tet-stepper-input.cjs.entry.js +32 -26
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +28 -29
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +20 -21
- package/dist/cjs/tet-stepper.cjs.entry.js +62 -63
- package/dist/cjs/tet-switch.cjs.entry.js +4 -2
- package/dist/cjs/tet-tab-header.cjs.entry.js +68 -65
- package/dist/cjs/tet-table.cjs.entry.js +132 -138
- package/dist/cjs/tet-tag_2.cjs.entry.js +11 -11
- package/dist/cjs/tet-text-list.cjs.entry.js +12 -4
- package/dist/cjs/tet-textarea.cjs.entry.js +14 -14
- package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +36 -33
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +36 -33
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +52 -46
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +15 -15
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +15 -15
- package/dist/cjs/{theme-wrapper-a5bbadf6.js → theme-wrapper-6ae60d67.js} +2 -2
- package/dist/cjs/{translations-ed68775f.js → translations-2637e1f9.js} +52 -51
- package/dist/cjs/{utils-ac9be2ff.js → utils-1f67c4b7.js} +23 -8
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/advanced/address/tet-address-offers/tet-address-offers.js +108 -101
- package/dist/collection/components/advanced/address/tet-address-offers-filters/address-offers-filters.js +128 -129
- package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +17 -17
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/address-offers-products-filters.js +90 -89
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/tet-address-offers-filters-products.js +33 -19
- package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +171 -163
- package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +203 -206
- package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +39 -29
- package/dist/collection/components/advanced/cards/tet-b2b-compare-card/tet-b2b-compare-card.js +75 -62
- package/dist/collection/components/advanced/cards/tet-business-card/tet-business-card.js +40 -30
- package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +17 -10
- package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.js +38 -32
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +356 -337
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.js +125 -119
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +51 -45
- package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.js +21 -15
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/compare-cards-tab-products-filters.js +89 -88
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.js +25 -22
- package/dist/collection/components/advanced/cards/tet-dynamic-card/tet-dynamic-card.js +67 -70
- package/dist/collection/components/advanced/cards/utils.js +23 -8
- package/dist/collection/components/advanced/customer/tet-asset-addresses/tet-asset-addresses.js +103 -92
- package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/tet-asset-availability-addresses.js +29 -14
- package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js +87 -82
- package/dist/collection/components/advanced/customer/tet-referral/tet-referral.js +24 -19
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +83 -69
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +54 -43
- package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +11 -3
- package/dist/collection/components/advanced/forms/tet-contact-form/tet-contact-form.js +49 -40
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/tet-tv-gift-block.js +14 -13
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js +15 -13
- package/dist/collection/components/basic/buttons/tet-button/tet-button.js +8 -8
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +14 -10
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.js +10 -6
- package/dist/collection/components/basic/buttons/tet-switch/tet-switch.js +3 -1
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +17 -13
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +67 -63
- package/dist/collection/components/basic/buttons/tet-tag-group/tet-tag-group.js +8 -8
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +177 -181
- package/dist/collection/components/basic/icon/tet-icon.js +23 -22
- package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +15 -14
- package/dist/collection/components/basic/steppers/tet-banner-nav/tet-banner-nav.js +20 -8
- package/dist/collection/components/basic/steppers/tet-business-round-stepper/tet-business-round-stepper.js +9 -9
- package/dist/collection/components/basic/steppers/tet-round-stepper/tet-round-stepper.js +4 -0
- package/dist/collection/components/basic/steppers/tet-stepper/tet-stepper.js +61 -62
- package/dist/collection/components/basic/steppers/tet-stepper-v2/tet-stepper-v2.js +27 -28
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.js +19 -20
- package/dist/collection/components/simple/filter/tet-filter/tet-filter.js +25 -10
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +20 -16
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +135 -132
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +20 -17
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +26 -21
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +34 -28
- package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.js +20 -8
- package/dist/collection/components/simple/inputs/tet-expandable-input/tet-expandable-input.js +99 -78
- package/dist/collection/components/simple/inputs/tet-input/tet-input.js +44 -34
- package/dist/collection/components/simple/inputs/tet-number-input/tet-number-input.js +55 -41
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +631 -618
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +29 -23
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +13 -13
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +37 -34
- package/dist/collection/components/simple/lists/tet-selection-list/tet-selection-list.js +61 -57
- package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.js +14 -2
- package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.js +48 -45
- package/dist/collection/components/simple/menu/tet-menu/tet-menu.js +3 -4
- package/dist/collection/components/simple/menu/tet-menu-mobile/tet-menu-mobile.js +15 -12
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +18 -14
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +37 -20
- package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +16 -17
- package/dist/collection/components/simple/tables-and-graphs/tet-bar-graph/tet-bar-graph.js +222 -213
- package/dist/collection/components/simple/tables-and-graphs/tet-table/tet-table.js +132 -136
- package/dist/collection/components/simple/text-blocks/tet-cloud-application-form-dialog/tet-cloud-application-form-dialog.js +27 -1
- package/dist/collection/components/simple/text-blocks/tet-dialog/tet-dialog.js +39 -31
- package/dist/collection/components/simple/text-blocks/tet-inline-message/tet-inline-message.js +6 -6
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +27 -23
- package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +119 -105
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +40 -32
- package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.js +99 -88
- package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.js +392 -373
- package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +25 -25
- package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +21 -22
- package/dist/collection/components/views/tet-cloud-configurator/tet-cloud-configurator.js +130 -120
- package/dist/collection/components/views/tet-macd-view/tet-macd-view.js +42 -13
- package/dist/collection/components/views/tet-price-view/tet-price-view.js +4 -2
- package/dist/collection/components/views/tet-thank-you-view/tet-thank-you-view.js +52 -44
- package/dist/collection/components/views/tet-thank-you-view-v2/tet-thank-you-view-v2.js +34 -29
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.js +34 -29
- package/dist/collection/config/bradcasting.js +1 -2
- package/dist/collection/config/endpoints.js +7 -5
- package/dist/collection/config/forms-portal.js +1 -2
- package/dist/collection/config/landing-pages.js +1 -2
- package/dist/collection/config/mytet-portal.js +1 -2
- package/dist/collection/docs/styling/colors/tet-colors.js +41 -41
- package/dist/collection/services/api/async-request.js +26 -25
- package/dist/collection/services/api/request.js +16 -11
- package/dist/collection/services/api/services/tv/tv-channel-count-parser.js +73 -74
- package/dist/collection/services/translations/translations-manager.js +46 -47
- package/dist/collection/services/translations/translations.js +1 -2
- package/dist/collection/services/translations/translations.store.js +2 -3
- package/dist/collection/services/utils/inertia-scroll.js +203 -191
- package/dist/collection/services/utils/object.js +5 -3
- package/dist/collection/services/validators/validators/e-mail.js +6 -5
- package/dist/collection/services/validators/validators/phone.js +6 -5
- package/dist/collection/services/validators/validators/required.js +2 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-35e72a2b.js → p-01f21691.js} +58 -44
- package/dist/components/{p-cec65d0a.js → p-02c55c0d.js} +121 -116
- package/dist/components/{p-7ddd71bd.js → p-08fbbbf9.js} +3 -3
- package/dist/components/{p-00c91e96.js → p-0e0dcb37.js} +2 -2
- package/dist/components/{p-639c9d1a.js → p-11a7865e.js} +80 -69
- package/dist/components/{p-ca66b4b1.js → p-12649d6e.js} +8 -6
- package/dist/components/{p-03177920.js → p-1278b6e9.js} +181 -173
- package/dist/components/{p-f18e5ae3.js → p-153245c0.js} +28 -23
- package/dist/components/{p-7b3c7bf1.js → p-243407f8.js} +4 -2
- package/dist/components/p-245f534d.js +869 -0
- package/dist/components/{p-856695a3.js → p-2630a661.js} +43 -37
- package/dist/components/{p-3fd7310f.js → p-269298f7.js} +1 -1
- package/dist/components/{p-50f207fd.js → p-27b54fb3.js} +54 -34
- package/dist/components/{p-53ca0a91.js → p-281300b4.js} +39 -23
- package/dist/components/{p-163de6e2.js → p-29df1df5.js} +23 -11
- package/dist/components/{p-42ff76b5.js → p-2c7320b5.js} +22 -18
- package/dist/components/{p-aca28e71.js → p-3444731e.js} +53 -52
- package/dist/components/{p-9a47b95f.js → p-35eefb16.js} +26 -26
- package/dist/components/{p-68f0e894.js → p-36c5e434.js} +10 -10
- package/dist/components/{p-9573f82c.js → p-392981a3.js} +41 -35
- package/dist/components/{p-965cea5b.js → p-39c66558.js} +137 -134
- package/dist/components/{p-9fe57fd0.js → p-3bb2ad44.js} +68 -65
- package/dist/components/{p-a188f09e.js → p-3e04ea5b.js} +11 -7
- package/dist/components/{p-eb54f5b9.js → p-4ae2dab9.js} +21 -18
- package/dist/components/{p-9bf262a8.js → p-52152f5b.js} +33 -27
- package/dist/components/{p-a0d406ca.js → p-549fe76f.js} +117 -72
- package/dist/components/{p-e707e73a.js → p-65770d46.js} +13 -5
- package/dist/components/{p-bb324278.js → p-68024f5b.js} +1 -1
- package/dist/components/{p-4d33055f.js → p-6bfd47c5.js} +117 -107
- package/dist/components/{p-a81e545d.js → p-6e8a8d28.js} +1 -1
- package/dist/components/{p-489ae3a0.js → p-6f4bf94f.js} +27 -26
- package/dist/components/{p-df1fe72c.js → p-754dce81.js} +47 -37
- package/dist/components/{p-5c8c2d8d.js → p-7dd65c3a.js} +1 -1
- package/dist/components/{p-6a2a81d8.js → p-85821f41.js} +104 -94
- package/dist/components/{p-817bee22.js → p-8b4a75b2.js} +12 -12
- package/dist/{esm/http-codes-7faa9f6e.js → components/p-94a1eb7a.js} +66 -59
- package/dist/components/{p-045bec85.js → p-98b10b48.js} +16 -16
- package/dist/components/{p-7790eae2.js → p-99823afc.js} +128 -126
- package/dist/components/{p-b0d6ed2e.js → p-9ee3e98b.js} +25 -24
- package/dist/components/{p-6847eb2d.js → p-a09504f7.js} +62 -63
- package/dist/components/{p-88b42c67.js → p-a15512ce.js} +63 -59
- package/dist/components/{p-6b7e73c0.js → p-bd9b1f18.js} +218 -202
- package/dist/components/{p-881093d4.js → p-bf642eca.js} +206 -194
- package/dist/components/{p-91651432.js → p-bfcce1dd.js} +1 -1
- package/dist/components/{p-21c5cfc4.js → p-c47caf67.js} +64 -53
- package/dist/components/{p-c1876db7.js → p-c7dba63e.js} +36 -21
- package/dist/components/{p-5dc5e13c.js → p-c8fc3c1f.js} +2 -2
- package/dist/components/{p-bd3402f6.js → p-c97d9f10.js} +17 -15
- package/dist/components/p-c996a768.js +169 -0
- package/dist/components/{p-37ed3ebb.js → p-c9d79ad4.js} +190 -135
- package/dist/components/{p-029ff2b3.js → p-d22e1c96.js} +24 -24
- package/dist/components/{p-0088d040.js → p-d7d60ba4.js} +16 -12
- package/dist/components/{p-00e689fb.js → p-d92a53ea.js} +1 -1
- package/dist/components/{p-e04716ac.js → p-da4e6cfb.js} +29 -30
- package/dist/components/{p-cb2daf20.js → p-dcf5c661.js} +25 -16
- package/dist/components/{p-04fe59fc.js → p-dcffa870.js} +50 -47
- package/dist/components/{p-616c71e1.js → p-e4f00545.js} +559 -532
- package/dist/components/{p-530ef38b.js → p-f44eb3d8.js} +4 -4
- package/dist/components/{p-144dffdc.js → p-f7bd56ce.js} +1 -1
- package/dist/components/{p-818742ad.js → p-f8ef72c1.js} +21 -22
- 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 +65 -57
- 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 +116 -105
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +44 -34
- 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 +411 -393
- package/dist/components/tet-b2b-service-calculator.js +33 -33
- package/dist/components/tet-banner-nav.js +23 -11
- package/dist/components/tet-bar-graph.js +222 -215
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +38 -32
- package/dist/components/tet-business-compare-card.js +20 -13
- package/dist/components/tet-business-lines.js +26 -27
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +11 -11
- 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 +181 -185
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +35 -9
- package/dist/components/tet-cloud-configurator.js +140 -132
- package/dist/components/tet-colors.js +42 -42
- package/dist/components/tet-compare-card-v2.js +57 -55
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +40 -39
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +59 -50
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-customer-assets.js +95 -90
- 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 +41 -36
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +71 -74
- package/dist/components/tet-expandable-input.js +99 -82
- package/dist/components/tet-expansion-panel.js +17 -19
- package/dist/components/tet-filter.js +29 -14
- 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 +8 -8
- 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.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +55 -28
- package/dist/components/tet-menu-mobile.js +14 -15
- package/dist/components/tet-menu.js +5 -6
- package/dist/components/tet-multi-step-dialog.js +88 -74
- package/dist/components/tet-navigation-mobile.js +20 -16
- package/dist/components/tet-news-card-list.js +38 -39
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +32 -28
- 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-v3.js +1 -1
- package/dist/components/tet-stepper.js +1 -1
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +134 -140
- 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 +14 -14
- package/dist/components/tet-thank-you-view-v2.js +38 -35
- package/dist/components/tet-thank-you-view-v3.js +38 -35
- package/dist/components/tet-thank-you-view.js +55 -49
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +15 -15
- package/dist/components/tet-tv-gift-list.js +16 -16
- package/dist/esm/{address-979a9993.js → address-1ff7cd1f.js} +1 -1
- package/dist/esm/{assets-b971f105.js → assets-79f78adb.js} +1 -1
- package/dist/esm/{async-request-6675e5f5.js → async-request-ab25480d.js} +27 -26
- package/dist/esm/compare-cards-tab-products-filters-79b7b7c6.js +98 -0
- package/dist/{components/p-6830b44d.js → esm/http-codes-eb08ff6f.js} +65 -60
- package/dist/esm/{index-1bf36cb9.js → index-8ebb7ad1.js} +1 -1
- package/dist/esm/{index-7f1e2a22.js → index-950abbb7.js} +1672 -1598
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-99c2f297.js → phone-4b016684.js} +8 -6
- package/dist/esm/{product-comparison-830e2764.js → product-comparison-286ce057.js} +1 -1
- package/dist/esm/{tasks-3dfcc330.js → tasks-770dc32d.js} +2 -2
- package/dist/esm/tet-accordion_2.entry.js +62 -46
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +250 -233
- package/dist/esm/tet-address-offers-view.entry.js +44 -36
- package/dist/esm/tet-address-offers_4.entry.js +344 -314
- package/dist/esm/tet-address-search.entry.js +176 -168
- package/dist/esm/tet-asset-addresses.entry.js +106 -95
- package/dist/esm/tet-autocomplete-dropdown.entry.js +40 -30
- package/dist/esm/tet-autocomplete.entry.js +204 -191
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +281 -242
- package/dist/esm/tet-b2b-configurator.entry.js +397 -379
- package/dist/esm/tet-b2b-service-calculator.entry.js +29 -29
- package/dist/esm/tet-banner-nav.entry.js +24 -12
- package/dist/esm/tet-bar-graph.entry.js +222 -215
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-card.entry.js +38 -32
- package/dist/esm/tet-business-compare-card.entry.js +18 -11
- package/dist/esm/tet-business-lines.entry.js +26 -27
- package/dist/esm/tet-business-round-stepper.entry.js +10 -10
- package/dist/esm/tet-button.entry.js +9 -9
- package/dist/esm/tet-card-list.entry.js +557 -530
- package/dist/esm/tet-carousel.entry.js +181 -185
- package/dist/esm/tet-checkbox.entry.js +15 -11
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +31 -5
- package/dist/esm/tet-cloud-configurator.entry.js +133 -125
- package/dist/esm/tet-colors.entry.js +42 -42
- package/dist/esm/tet-compare-card-v2.entry.js +51 -49
- package/dist/esm/tet-compare-cards-tab.entry.js +29 -28
- package/dist/esm/tet-compare-cards_2.entry.js +41 -34
- package/dist/esm/tet-components.js +4 -4
- package/dist/esm/tet-contact-form.entry.js +56 -47
- package/dist/esm/tet-contact-info.entry.js +1 -1
- package/dist/esm/tet-container_2.entry.js +63 -59
- package/dist/esm/tet-customer-assets.entry.js +90 -85
- package/dist/esm/tet-datepicker-header_4.entry.js +203 -188
- package/dist/esm/tet-datepicker.entry.js +36 -31
- package/dist/esm/tet-dialog.entry.js +42 -36
- package/dist/esm/tet-dropdown_2.entry.js +137 -115
- package/dist/esm/tet-dynamic-card.entry.js +68 -71
- package/dist/esm/tet-expandable-input.entry.js +97 -80
- package/dist/esm/tet-expansion-panel.entry.js +17 -19
- package/dist/esm/tet-filter.entry.js +26 -11
- 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 +25 -24
- package/dist/esm/tet-inline-message.entry.js +7 -7
- package/dist/esm/tet-input.entry.js +48 -38
- package/dist/esm/tet-label.entry.js +4 -4
- package/dist/esm/tet-layout.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 +51 -24
- package/dist/esm/tet-menu-mobile.entry.js +13 -14
- package/dist/esm/tet-menu.entry.js +4 -5
- package/dist/esm/tet-multi-step-dialog.entry.js +87 -73
- package/dist/esm/tet-navigation-mobile.entry.js +19 -15
- package/dist/esm/tet-news-card-list.entry.js +35 -36
- package/dist/esm/tet-number-input.entry.js +56 -42
- package/dist/esm/tet-placeholder.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +4 -4
- package/dist/esm/tet-radio.entry.js +11 -7
- package/dist/esm/tet-range-slider.entry.js +632 -620
- package/dist/esm/tet-referral.entry.js +31 -27
- package/dist/esm/tet-round-stepper.entry.js +2 -2
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-spinner.entry.js +16 -16
- package/dist/esm/tet-stepper-input.entry.js +33 -27
- package/dist/esm/tet-stepper-v2.entry.js +28 -29
- package/dist/esm/tet-stepper-v3.entry.js +20 -21
- package/dist/esm/tet-stepper.entry.js +62 -63
- package/dist/esm/tet-switch.entry.js +4 -2
- package/dist/esm/tet-tab-header.entry.js +68 -65
- package/dist/esm/tet-table.entry.js +132 -138
- package/dist/esm/tet-tag_2.entry.js +12 -12
- package/dist/esm/tet-text-list.entry.js +12 -4
- package/dist/esm/tet-textarea.entry.js +14 -14
- package/dist/esm/tet-thank-you-view-v2.entry.js +37 -34
- package/dist/esm/tet-thank-you-view-v3.entry.js +37 -34
- package/dist/esm/tet-thank-you-view.entry.js +52 -46
- package/dist/esm/tet-tv-gift-block.entry.js +15 -15
- package/dist/esm/tet-tv-gift-list.entry.js +15 -15
- package/dist/esm/{theme-wrapper-6e6b2089.js → theme-wrapper-f83deed6.js} +2 -2
- package/dist/esm/{translations-eff34607.js → translations-baabae60.js} +53 -52
- package/dist/esm/{typecheck-31fd6c02.js → typecheck-4abf0258.js} +1 -1
- package/dist/esm/{utils-f8f08058.js → utils-c110a4b1.js} +23 -8
- package/dist/tet-components/{p-c7dbb16f.entry.js → p-0847a214.entry.js} +1 -1
- package/dist/tet-components/p-086f464e.entry.js +1 -0
- package/dist/tet-components/{p-eed2b508.entry.js → p-0ecbcf94.entry.js} +1 -1
- package/dist/tet-components/p-1215e5c0.entry.js +1 -0
- package/dist/tet-components/p-12649d6e.js +1 -0
- package/dist/tet-components/p-15cd7158.entry.js +1 -0
- package/dist/tet-components/p-203651e5.entry.js +1 -0
- package/dist/tet-components/p-20a93866.entry.js +1 -0
- package/dist/tet-components/p-25c9957d.js +1 -0
- package/dist/tet-components/p-29268caf.entry.js +1 -0
- package/dist/tet-components/{p-8f545d45.entry.js → p-29b1a959.entry.js} +1 -1
- package/dist/tet-components/p-2a0bbc16.js +1 -0
- package/dist/tet-components/p-2a346803.entry.js +1 -0
- package/dist/tet-components/p-300dcb5e.entry.js +1 -0
- package/dist/tet-components/{p-1a89919e.entry.js → p-30677f37.entry.js} +1 -1
- package/dist/tet-components/p-30f27049.entry.js +1 -0
- package/dist/tet-components/p-316f0d93.entry.js +1 -0
- package/dist/tet-components/{p-66dd0ede.entry.js → p-39153b16.entry.js} +1 -1
- package/dist/tet-components/p-3b5c1dfc.entry.js +1 -0
- package/dist/tet-components/p-3f630a8d.entry.js +1 -0
- package/dist/tet-components/p-446f550d.entry.js +1 -0
- package/dist/tet-components/{p-a07cada6.entry.js → p-44827a7f.entry.js} +1 -1
- package/dist/tet-components/p-47f100fa.entry.js +1 -0
- package/dist/tet-components/{p-9b027102.entry.js → p-4b4626ec.entry.js} +1 -1
- package/dist/tet-components/p-4e4095c1.js +1 -0
- package/dist/tet-components/{p-46e5b573.entry.js → p-50479341.entry.js} +1 -1
- package/dist/tet-components/p-536dd157.entry.js +1 -0
- package/dist/tet-components/{p-ecff869b.entry.js → p-56b8b4ec.entry.js} +1 -1
- package/dist/tet-components/p-56d32115.entry.js +1 -0
- package/dist/tet-components/p-5d2f0c13.entry.js +1 -0
- package/dist/tet-components/p-618e8591.entry.js +1 -0
- package/dist/tet-components/p-63a909de.entry.js +1 -0
- package/dist/tet-components/p-63b83c11.entry.js +1 -0
- package/dist/tet-components/p-641f4ab5.entry.js +1 -0
- package/dist/tet-components/p-6d468c83.entry.js +1 -0
- package/dist/tet-components/{p-e263ecdf.js → p-6d681c43.js} +1 -1
- package/dist/tet-components/p-72082f3b.entry.js +1 -0
- package/dist/tet-components/{p-7a04bcd7.entry.js → p-739d3344.entry.js} +1 -1
- package/dist/tet-components/p-77d8a2a5.entry.js +1 -0
- package/dist/tet-components/p-77dea317.entry.js +1 -0
- package/dist/tet-components/p-78eb86ff.entry.js +1 -0
- package/dist/tet-components/p-7b91c3d4.entry.js +1 -0
- package/dist/tet-components/{p-f9a1fbb2.entry.js → p-7f520852.entry.js} +1 -1
- package/dist/tet-components/p-8254455b.entry.js +1 -0
- package/dist/tet-components/p-87be3264.entry.js +1 -0
- package/dist/tet-components/{p-918e4e84.entry.js → p-87f36453.entry.js} +1 -1
- package/dist/tet-components/p-88c9ef00.entry.js +1 -0
- package/dist/tet-components/{p-de142575.js → p-88f7bb98.js} +1 -1
- package/dist/tet-components/p-89ae73f2.entry.js +1 -0
- package/dist/tet-components/p-8aecb130.entry.js +1 -0
- package/dist/tet-components/{p-77372984.js → p-90205e46.js} +1 -1
- package/dist/tet-components/p-9081ba98.entry.js +1 -0
- package/dist/tet-components/{p-b680d126.entry.js → p-90ef663e.entry.js} +1 -1
- package/dist/tet-components/p-93e2d958.entry.js +1 -0
- package/dist/tet-components/p-9464cc18.entry.js +1 -0
- package/dist/tet-components/{p-bb9f1a6f.entry.js → p-988b6712.entry.js} +1 -1
- package/dist/tet-components/p-98f93bec.entry.js +1 -0
- package/dist/tet-components/p-9a2b6ee2.js +1 -0
- package/dist/tet-components/{p-8c964cca.js → p-9af9c5e3.js} +2 -2
- package/dist/tet-components/p-9c188d1b.entry.js +1 -0
- package/dist/tet-components/p-a263681d.entry.js +1 -0
- package/dist/tet-components/{p-8b405467.entry.js → p-a43badd1.entry.js} +1 -1
- package/dist/tet-components/{p-775aa778.entry.js → p-a77b7388.entry.js} +1 -1
- package/dist/tet-components/p-ad14115e.entry.js +1 -0
- package/dist/tet-components/{p-36d2a380.entry.js → p-af82e64e.entry.js} +1 -1
- package/dist/tet-components/p-b47e0d55.entry.js +1 -0
- package/dist/tet-components/p-b4b92f9b.js +2 -0
- package/dist/tet-components/p-b9359fea.entry.js +1 -0
- package/dist/tet-components/p-ba494985.entry.js +1 -0
- package/dist/tet-components/p-bda2a644.entry.js +1 -0
- package/dist/tet-components/{p-bc16c07b.js → p-c2a00b6a.js} +1 -1
- package/dist/tet-components/p-c3d9064d.entry.js +1 -0
- package/dist/tet-components/{p-a9ed4e2b.entry.js → p-c61ef9e0.entry.js} +1 -1
- package/dist/tet-components/p-c6818401.entry.js +1 -0
- package/dist/tet-components/{p-ed67bd52.entry.js → p-c7830c8a.entry.js} +1 -1
- package/dist/tet-components/p-c7e4365a.entry.js +1 -0
- package/dist/tet-components/{p-9f1a810e.entry.js → p-c88cdf25.entry.js} +1 -1
- package/dist/tet-components/p-c9cdf98c.js +1 -0
- package/dist/tet-components/p-cba8d001.js +1 -0
- package/dist/tet-components/p-ce271068.entry.js +1 -0
- package/dist/tet-components/p-d55c2f9e.entry.js +1 -0
- package/dist/tet-components/p-db090557.entry.js +1 -0
- package/dist/tet-components/p-df542648.entry.js +1 -0
- package/dist/tet-components/p-e11eb73d.entry.js +1 -0
- package/dist/tet-components/{p-49122f6a.entry.js → p-e6fea049.entry.js} +1 -1
- package/dist/tet-components/p-e87226cb.entry.js +1 -0
- package/dist/tet-components/{p-b2b384d2.js → p-ec1c990e.js} +1 -1
- package/dist/tet-components/p-ec892e18.entry.js +1 -0
- package/dist/tet-components/p-ede893e6.entry.js +1 -0
- package/dist/tet-components/p-eefc4f3d.entry.js +1 -0
- package/dist/tet-components/{p-44d068ac.entry.js → p-efa6f09b.entry.js} +1 -1
- package/dist/tet-components/p-f6f98ea9.entry.js +1 -0
- package/dist/tet-components/{p-5c86ad42.entry.js → p-fca864a8.entry.js} +1 -1
- package/dist/tet-components/{p-f023f124.entry.js → p-ffd1a0d9.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/address/tet-autocomplete/tet-autocomplete.d.ts +3 -2
- package/dist/types/components.d.ts +0 -8
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +6 -12
- package/dist/cjs/compare-cards-tab-products-filters-58410792.js +0 -99
- package/dist/collection/components/advanced/address/tet-address-offers-filters/address-offers-filters.spec.js +0 -105
- package/dist/collection/components/advanced/address/tet-address-offers-filters/test/tet-address-offers-filters.spec.js +0 -23
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/test/tet-address-offers-filters-products.spec.js +0 -23
- package/dist/collection/components/advanced/address/tet-autocomplete/test/tet-autocomplete.spec.js +0 -110
- package/dist/collection/components/advanced/cards/tet-b2b-compare-card/test/tet-b2b-compare-card.spec.js +0 -86
- package/dist/collection/components/advanced/cards/tet-card-list/test/tet-card-list.spec.js +0 -69
- package/dist/collection/components/advanced/cards/tet-compare-card/test/tet-compare-card.spec.js +0 -292
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/test/tet-compare-card-v2.spec.js +0 -40
- package/dist/collection/components/advanced/cards/tet-compare-cards/test/tet-compare-cards.spec.js +0 -65
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/test/tet-compare-cards-tab.spec.js +0 -399
- package/dist/collection/components/advanced/customer/tet-asset-addresses/test/tet-asset-addresses.spec.js +0 -30
- package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/test/tet-asset-availability-addresses.spec.js +0 -30
- package/dist/collection/components/advanced/customer/tet-referral/test/tet-referral.spec.js +0 -85
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/test/tet-multi-step-dialog.spec.js +0 -53
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/test/tet-availability-contact-form.spec.js +0 -35
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/test/tet-tv-gift-block.spec.js +0 -61
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/test/tet-tv-gift-list.spec.js +0 -55
- package/dist/collection/components/basic/buttons/tet-button/test/tet-button.spec.js +0 -131
- package/dist/collection/components/basic/buttons/tet-checkbox/test/tet-checkbox.spec.js +0 -28
- package/dist/collection/components/basic/buttons/tet-radio/test/tet-radio.spec.js +0 -26
- package/dist/collection/components/basic/buttons/tet-switch/test/tet-switch.spec.js +0 -27
- package/dist/collection/components/basic/buttons/tet-tabs/test/tet-tab-content.spec.js +0 -35
- package/dist/collection/components/basic/buttons/tet-tabs/test/tet-tab-header.spec.js +0 -42
- package/dist/collection/components/basic/buttons/tet-tag/test/tet-tag.spec.js +0 -76
- package/dist/collection/components/basic/buttons/tet-tag-group/test/tet-tag-group.spec.js +0 -92
- package/dist/collection/components/basic/carousel/tet-carousel/test/tet-carousel.spec.js +0 -63
- package/dist/collection/components/basic/container/tet-container/test/tet-container.spec.js +0 -50
- package/dist/collection/components/basic/loaders/tet-loader/test/tet-loader.spec.js +0 -19
- package/dist/collection/components/basic/loaders/tet-placeholder/test/tet-placeholder.spec.js +0 -19
- package/dist/collection/components/basic/loaders/tet-spinner/test/tet-spinner.spec.js +0 -52
- package/dist/collection/components/basic/steppers/tet-business-round-stepper/test/tet-business-round-stepper.spec.js +0 -82
- package/dist/collection/components/basic/steppers/tet-round-stepper/test/tet-round-stepper.spec.js +0 -78
- package/dist/collection/components/basic/steppers/tet-stepper/test/tet-stepper.spec.js +0 -110
- package/dist/collection/components/basic/steppers/tet-stepper-v2/test/tet-stepper-v2.spec.js +0 -136
- package/dist/collection/components/basic/steppers/tet-stepper-v3/test/tet-stepper-v3.spec.js +0 -135
- package/dist/collection/components/simple/inputs/tet-dropdown/test/tet-dropdown.spec.js +0 -122
- package/dist/collection/components/simple/inputs/tet-input/test/tet-input.spec.js +0 -110
- package/dist/collection/components/simple/inputs/tet-range-slider/test/tet-range-slider.spec.js +0 -145
- package/dist/collection/components/simple/lists/tet-news-card-list/test/tet-news-card-list.spec.js +0 -111
- package/dist/collection/components/simple/lists/tet-selection-list/test/tet-selection-list.spec.js +0 -64
- package/dist/collection/components/simple/lists/tet-text-list/test/tet-text-list.spec.js +0 -171
- package/dist/collection/components/simple/menu/tet-menu/test/tet-menu.spec.js +0 -231
- package/dist/collection/components/simple/menu/tet-menu-mobile/test/tet-menu-mobile.spec.js +0 -87
- package/dist/collection/components/simple/menu/tet-navigation-mobile/test/tet-navigation-mobile.spec.js +0 -81
- package/dist/collection/components/simple/structural/tet-accordion/test/tet-accordion.spec.js +0 -108
- package/dist/collection/components/simple/structural/tet-expansion-panel/test/tet-expansion-panel.spec.js +0 -42
- package/dist/collection/components/simple/tables-and-graphs/tet-bar-graph/test/tet-bar-graph.spec.js +0 -85
- package/dist/collection/components/simple/tables-and-graphs/tet-table/test/tet-table.spec.js +0 -360
- package/dist/collection/components/simple/text-blocks/tet-dialog/test/tet-dialog.spec.js +0 -84
- package/dist/collection/components/simple/text-blocks/tet-inline-message/test/tet-inline-message.spec.js +0 -22
- package/dist/collection/components/simple/text-blocks/tet-notification/test/tet-notification.spec.js +0 -88
- package/dist/collection/components/simple/text-blocks/tet-tooltip/test/tet-tooltip.spec.js +0 -79
- package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/test/tet-b2b-configurator-cart.spec.js +0 -50
- package/dist/collection/components/views/tet-b2b-configurator/test/tet-b2b-configurator.spec.js +0 -136
- package/dist/collection/components/views/tet-business-lines/test/tet-business-lines.spec.js +0 -23
- package/dist/collection/components/views/tet-contact-info/test/tet-contact-info.spec.js +0 -44
- package/dist/collection/components/views/tet-macd-view/test/tet-macd-view.spec.js +0 -498
- package/dist/collection/components/views/tet-price-view/test/tet-price-view.spec.js +0 -98
- package/dist/collection/components/views/tet-thank-you-view/test/tet-thank-you-view.spec.js +0 -275
- package/dist/collection/components/views/tet-thank-you-view-v2/test/tet-thank-you-view-v2.spec.js +0 -175
- package/dist/collection/components/views/tet-thank-you-view-v3/test/tet-thank-you-view-v3.spec.js +0 -175
- package/dist/collection/services/api/async-request.spec.js +0 -37
- package/dist/collection/services/api/request.spec.js +0 -32
- package/dist/collection/services/api/services/address.spec.js +0 -39
- package/dist/collection/services/api/services/catalog/product-comparison.spec.js +0 -22
- package/dist/collection/services/api/services/components/component-data.spec.js +0 -20
- package/dist/collection/services/api/services/customer/assets.spec.js +0 -25
- package/dist/collection/services/api/services/customer/query.spec.js +0 -25
- package/dist/collection/services/api/services/macd/macd.spec.js +0 -91
- package/dist/collection/services/api/services/operations/operations.spec.js +0 -19
- package/dist/collection/services/api/services/tasks.spec.js +0 -25
- package/dist/collection/services/api/services/translations.spec.js +0 -20
- package/dist/collection/services/products/product-codes.spec.js +0 -11
- package/dist/collection/services/translations/translations.spec.js +0 -30
- package/dist/collection/services/url/build-url-params.spec.js +0 -11
- package/dist/collection/services/url/url.spec.js +0 -16
- package/dist/collection/services/utils/array.spec.js +0 -10
- package/dist/collection/services/utils/debounce.spec.js +0 -19
- package/dist/collection/services/utils/execute-until.spec.js +0 -10
- package/dist/collection/services/utils/inertia-scroll.spec.js +0 -56
- package/dist/collection/services/utils/isFocusableElementOrChild.spec.js +0 -67
- package/dist/collection/services/utils/object.spec.js +0 -84
- package/dist/collection/services/utils/price.spec.js +0 -18
- package/dist/collection/services/utils/random.spec.js +0 -10
- package/dist/collection/services/utils/reactive.spec.js +0 -15
- package/dist/collection/services/utils/size.spec.js +0 -13
- package/dist/collection/services/utils/string.spec.js +0 -9
- package/dist/collection/services/utils/throttle.spec.js +0 -32
- package/dist/collection/services/utils/typecheck.spec.js +0 -49
- package/dist/collection/services/validators/validator-group.spec.js +0 -30
- package/dist/collection/services/validators/validators/e-mail.spec.js +0 -20
- package/dist/collection/services/validators/validators/phone.spec.js +0 -23
- package/dist/collection/services/validators/validators/required.spec.js +0 -16
- package/dist/components/p-8e19c5da.js +0 -857
- package/dist/components/p-e34bf267.js +0 -170
- package/dist/esm/compare-cards-tab-products-filters-f0fa0712.js +0 -97
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/tet-components/p-021268b7.entry.js +0 -1
- package/dist/tet-components/p-02e548d5.entry.js +0 -1
- package/dist/tet-components/p-06bf08a4.entry.js +0 -1
- package/dist/tet-components/p-0738afc0.entry.js +0 -1
- package/dist/tet-components/p-1b797a96.entry.js +0 -1
- package/dist/tet-components/p-1be23b32.entry.js +0 -1
- package/dist/tet-components/p-1e840eca.entry.js +0 -1
- package/dist/tet-components/p-1ec7f341.js +0 -2
- package/dist/tet-components/p-2e870f4d.entry.js +0 -1
- package/dist/tet-components/p-2f029068.entry.js +0 -1
- package/dist/tet-components/p-34ed0dd7.entry.js +0 -1
- package/dist/tet-components/p-3604bf21.entry.js +0 -1
- package/dist/tet-components/p-3d2dc872.entry.js +0 -1
- package/dist/tet-components/p-48bd3f87.entry.js +0 -1
- package/dist/tet-components/p-4e3c6172.entry.js +0 -1
- package/dist/tet-components/p-4e917b52.entry.js +0 -1
- package/dist/tet-components/p-511680d5.entry.js +0 -1
- package/dist/tet-components/p-5d920c98.entry.js +0 -1
- package/dist/tet-components/p-618134c3.entry.js +0 -1
- package/dist/tet-components/p-695cdc78.entry.js +0 -1
- package/dist/tet-components/p-6a5eca28.js +0 -1
- package/dist/tet-components/p-71cbde0c.entry.js +0 -1
- package/dist/tet-components/p-7751035d.entry.js +0 -1
- package/dist/tet-components/p-78014763.entry.js +0 -1
- package/dist/tet-components/p-78a0c398.entry.js +0 -1
- package/dist/tet-components/p-79255c00.entry.js +0 -1
- package/dist/tet-components/p-805c9ef3.entry.js +0 -1
- package/dist/tet-components/p-88885ba1.entry.js +0 -1
- package/dist/tet-components/p-8a6831bc.entry.js +0 -1
- package/dist/tet-components/p-8c7c6590.entry.js +0 -1
- package/dist/tet-components/p-8c89d1f5.entry.js +0 -1
- package/dist/tet-components/p-8d644f8b.entry.js +0 -1
- package/dist/tet-components/p-9102c6d9.entry.js +0 -1
- package/dist/tet-components/p-977ea27a.entry.js +0 -1
- package/dist/tet-components/p-9a5b8dbc.entry.js +0 -1
- package/dist/tet-components/p-a15d2b6a.entry.js +0 -1
- package/dist/tet-components/p-a549f1dd.entry.js +0 -1
- package/dist/tet-components/p-a8030923.entry.js +0 -1
- package/dist/tet-components/p-aff1e911.entry.js +0 -1
- package/dist/tet-components/p-b0112dde.entry.js +0 -1
- package/dist/tet-components/p-b14b8531.entry.js +0 -1
- package/dist/tet-components/p-bc2e65ab.entry.js +0 -1
- package/dist/tet-components/p-bfa02c13.entry.js +0 -1
- package/dist/tet-components/p-c4a95bbe.entry.js +0 -1
- package/dist/tet-components/p-c4ed060b.entry.js +0 -1
- package/dist/tet-components/p-ca66b4b1.js +0 -1
- package/dist/tet-components/p-cf7d5c84.js +0 -1
- package/dist/tet-components/p-d0d6a340.js +0 -1
- package/dist/tet-components/p-d2919aae.js +0 -1
- package/dist/tet-components/p-d795f9c3.entry.js +0 -1
- package/dist/tet-components/p-dc12dee9.entry.js +0 -1
- package/dist/tet-components/p-dcbe09b5.js +0 -1
- package/dist/tet-components/p-de040767.entry.js +0 -1
- package/dist/tet-components/p-de4c32ee.entry.js +0 -1
- package/dist/tet-components/p-e423fe76.entry.js +0 -1
- package/dist/tet-components/p-e69056de.entry.js +0 -1
- package/dist/tet-components/p-e86164ef.entry.js +0 -1
- package/dist/tet-components/p-eb66d7b2.js +0 -1
- package/dist/tet-components/p-ecbfde88.entry.js +0 -1
- package/dist/tet-components/p-ed4b8bbe.entry.js +0 -1
- package/dist/tet-components/p-eed7244f.entry.js +0 -1
- package/dist/tet-components/p-f48500fd.entry.js +0 -1
- package/dist/tet-components/p-fab4ab39.entry.js +0 -1
- package/dist/tet-components/p-fd4131ad.entry.js +0 -1
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h,
|
|
2
|
-
import { p as processTranslations, t as translate } from './translations-
|
|
3
|
-
import { R as RequiredValidator, P as PhoneNumberValidator } from './phone-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement, H as Host } from './index-950abbb7.js';
|
|
2
|
+
import { p as processTranslations, t as translate } from './translations-baabae60.js';
|
|
3
|
+
import { R as RequiredValidator, P as PhoneNumberValidator } from './phone-4b016684.js';
|
|
4
4
|
import { a as a11yBtnClick } from './a11y-9b4d9fd4.js';
|
|
5
|
-
import './typecheck-
|
|
6
|
-
import './http-codes-
|
|
5
|
+
import './typecheck-4abf0258.js';
|
|
6
|
+
import './http-codes-eb08ff6f.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The email validator class.
|
|
10
10
|
*/
|
|
11
11
|
class EMailAddressValidator {
|
|
12
|
+
errorMessage;
|
|
13
|
+
/**
|
|
14
|
+
* The regex for the email validation.
|
|
15
|
+
*/
|
|
16
|
+
emailAddressRegex = '^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$';
|
|
12
17
|
/**
|
|
13
18
|
* Constructor.
|
|
14
19
|
*
|
|
@@ -16,10 +21,6 @@ class EMailAddressValidator {
|
|
|
16
21
|
*/
|
|
17
22
|
constructor(errorMessage) {
|
|
18
23
|
this.errorMessage = errorMessage;
|
|
19
|
-
/**
|
|
20
|
-
* The regex for the email validation.
|
|
21
|
-
*/
|
|
22
|
-
this.emailAddressRegex = '^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$';
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Returns validation error message.
|
|
@@ -33,7 +34,7 @@ class EMailAddressValidator {
|
|
|
33
34
|
* @param value
|
|
34
35
|
*/
|
|
35
36
|
validate(value) {
|
|
36
|
-
const validateValue = value
|
|
37
|
+
const validateValue = value?.trim();
|
|
37
38
|
// A generic email address must meet pattern with @ and dot.
|
|
38
39
|
return RegExp(this.emailAddressRegex).test(validateValue);
|
|
39
40
|
}
|
|
@@ -49,6 +50,14 @@ const TetAvailabilityContactForm = class {
|
|
|
49
50
|
this.language = 'lv';
|
|
50
51
|
this.theme = undefined;
|
|
51
52
|
}
|
|
53
|
+
/** Form element of component */
|
|
54
|
+
checkOutForm;
|
|
55
|
+
/** The application 'tet-dialog' element. */
|
|
56
|
+
dialogElement;
|
|
57
|
+
/** The extra field slot element. */
|
|
58
|
+
extraFieldsSlotElement;
|
|
59
|
+
/** Event emit when form filled successfully */
|
|
60
|
+
submitCheckOutForm;
|
|
52
61
|
/**
|
|
53
62
|
* The watch to update translations.
|
|
54
63
|
* @param language
|
|
@@ -117,7 +126,7 @@ const TetAvailabilityContactForm = class {
|
|
|
117
126
|
* @private
|
|
118
127
|
*/
|
|
119
128
|
renderInput(id, label, placeholder, isPhoneNr) {
|
|
120
|
-
return (h("tet-input",
|
|
129
|
+
return (h("tet-input", { id: id, class: "modal-form-card__input", theme: this.theme, label: `${label} *`, placeholder: placeholder || label, ...(isPhoneNr && { isPhoneNumber: true }), validators: this.getValidators(label, isPhoneNr) }));
|
|
121
130
|
}
|
|
122
131
|
/** Validates all input fields and returns whether all of them are valid or not. */
|
|
123
132
|
async validateInputFields() {
|
|
@@ -143,9 +152,9 @@ const TetAvailabilityContactForm = class {
|
|
|
143
152
|
let emitValue = {};
|
|
144
153
|
inputElements.forEach((item) => {
|
|
145
154
|
const value = item.querySelector('input').value;
|
|
146
|
-
emitValue =
|
|
155
|
+
emitValue = { ...emitValue, [item.id]: value };
|
|
147
156
|
});
|
|
148
|
-
this.submitCheckOutForm.emit(
|
|
157
|
+
this.submitCheckOutForm.emit({ ...emitValue, ...this.extraFieldsSubmissionData });
|
|
149
158
|
}
|
|
150
159
|
/** Returns the slotted `extra-fields` input elements with a provided id attribute. */
|
|
151
160
|
get extraFieldsElements() {
|
|
@@ -199,66 +208,6 @@ const TetB2bCompareCard = class {
|
|
|
199
208
|
registerInstance(this, hostRef);
|
|
200
209
|
this.countChange = createEvent(this, "countChange", 7);
|
|
201
210
|
this.selectedChange = createEvent(this, "selectedChange", 7);
|
|
202
|
-
/** @private The suffix for the price displayed - "€/mēn."). */
|
|
203
|
-
this.priceSuffix = '€/mēn.';
|
|
204
|
-
/**
|
|
205
|
-
* @private Initializes localCount based on options.counterOptions.defaultValue or defaults to 1.
|
|
206
|
-
*/
|
|
207
|
-
this.initCount = () => {
|
|
208
|
-
var _a, _b, _c;
|
|
209
|
-
this.localCount = (_c = (_a = this.count) !== null && _a !== void 0 ? _a : (_b = this.options.counterOptions) === null || _b === void 0 ? void 0 : _b.defaultValue) !== null && _c !== void 0 ? _c : 1;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* @private Updates localCount and emits the countChange event.
|
|
213
|
-
* @param newCount - The new count value to be emitted.
|
|
214
|
-
*/
|
|
215
|
-
this.updateCountAndEmit = (newCount) => {
|
|
216
|
-
if (typeof newCount === 'number') {
|
|
217
|
-
this.localCount = newCount;
|
|
218
|
-
}
|
|
219
|
-
this.countChange.emit({ cardId: this.options.id, count: newCount });
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* @private Handles the card click event, setting localIsSelected to true and emitting selectedChange.
|
|
223
|
-
*/
|
|
224
|
-
this.handleSelect = (e) => {
|
|
225
|
-
const isLinkOrDescendant = e.target.closest('a');
|
|
226
|
-
if (isLinkOrDescendant) {
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
if (!this.localIsSelected) {
|
|
230
|
-
this.localIsSelected = true;
|
|
231
|
-
this.selectedChange.emit(true);
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
/**
|
|
235
|
-
* @private Handles the value change event from the nested tet-stepper-input component.
|
|
236
|
-
* @param detail - The event containing the new quantity value.
|
|
237
|
-
*/
|
|
238
|
-
this.handleCounterValueChange = ({ detail }) => {
|
|
239
|
-
if (this.added) {
|
|
240
|
-
this.updateCountAndEmit(detail);
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
this.localCount = detail;
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* @private Handles the "Add to Basket" action, stops event propagation, and emits the new count.
|
|
248
|
-
* @param e - The DOM event.
|
|
249
|
-
*/
|
|
250
|
-
this.handleAdd = (e) => {
|
|
251
|
-
e.stopPropagation();
|
|
252
|
-
this.updateCountAndEmit(this.localCount);
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* @private Handles the "Remove from Basket" action, stops event propagation, and emits a null count.
|
|
256
|
-
* @param e - The DOM event.
|
|
257
|
-
*/
|
|
258
|
-
this.handleRemove = (e) => {
|
|
259
|
-
e.stopPropagation();
|
|
260
|
-
this.updateCountAndEmit(null);
|
|
261
|
-
};
|
|
262
211
|
this.localCount = 0;
|
|
263
212
|
this.localIsSelected = false;
|
|
264
213
|
this.isTablet = false;
|
|
@@ -267,6 +216,11 @@ const TetB2bCompareCard = class {
|
|
|
267
216
|
this.count = undefined;
|
|
268
217
|
this.isSelected = false;
|
|
269
218
|
}
|
|
219
|
+
/** @private Tracks changes in the component's host element size to manage responsive state. */
|
|
220
|
+
resizeObserver;
|
|
221
|
+
/** @private The suffix for the price displayed - "€/mēn."). */
|
|
222
|
+
priceSuffix = '€/mēn.';
|
|
223
|
+
get hostElement() { return getElement(this); }
|
|
270
224
|
/**
|
|
271
225
|
* @private Signals whether the item is currently considered "added" to the cart.
|
|
272
226
|
* Derived from the external 'count' prop being a defined number.
|
|
@@ -295,6 +249,16 @@ const TetB2bCompareCard = class {
|
|
|
295
249
|
this.localIsSelected = newSelected;
|
|
296
250
|
}
|
|
297
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* Emitted when the user changes the quantity counter value and submits; or on card close event.
|
|
254
|
+
* @event
|
|
255
|
+
*/
|
|
256
|
+
countChange;
|
|
257
|
+
/**
|
|
258
|
+
* Emitted when the card is clicked to change its selected state
|
|
259
|
+
* @event
|
|
260
|
+
*/
|
|
261
|
+
selectedChange;
|
|
298
262
|
componentWillLoad() {
|
|
299
263
|
this.initCount();
|
|
300
264
|
processTranslations('tet-components', 'lv').then(() => forceUpdate(this));
|
|
@@ -313,15 +277,72 @@ const TetB2bCompareCard = class {
|
|
|
313
277
|
this.resizeObserver.disconnect();
|
|
314
278
|
}
|
|
315
279
|
}
|
|
280
|
+
/**
|
|
281
|
+
* @private Initializes localCount based on options.counterOptions.defaultValue or defaults to 1.
|
|
282
|
+
*/
|
|
283
|
+
initCount = () => {
|
|
284
|
+
this.localCount = this.count ?? this.options.counterOptions?.defaultValue ?? 1;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* @private Updates localCount and emits the countChange event.
|
|
288
|
+
* @param newCount - The new count value to be emitted.
|
|
289
|
+
*/
|
|
290
|
+
updateCountAndEmit = (newCount) => {
|
|
291
|
+
if (typeof newCount === 'number') {
|
|
292
|
+
this.localCount = newCount;
|
|
293
|
+
}
|
|
294
|
+
this.countChange.emit({ cardId: this.options.id, count: newCount });
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* @private Handles the card click event, setting localIsSelected to true and emitting selectedChange.
|
|
298
|
+
*/
|
|
299
|
+
handleSelect = (e) => {
|
|
300
|
+
const isLinkOrDescendant = e.target.closest('a');
|
|
301
|
+
if (isLinkOrDescendant) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (!this.localIsSelected) {
|
|
305
|
+
this.localIsSelected = true;
|
|
306
|
+
this.selectedChange.emit(true);
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* @private Handles the value change event from the nested tet-stepper-input component.
|
|
311
|
+
* @param detail - The event containing the new quantity value.
|
|
312
|
+
*/
|
|
313
|
+
handleCounterValueChange = ({ detail }) => {
|
|
314
|
+
if (this.added) {
|
|
315
|
+
this.updateCountAndEmit(detail);
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
this.localCount = detail;
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* @private Handles the "Add to Basket" action, stops event propagation, and emits the new count.
|
|
323
|
+
* @param e - The DOM event.
|
|
324
|
+
*/
|
|
325
|
+
handleAdd = (e) => {
|
|
326
|
+
e.stopPropagation();
|
|
327
|
+
this.updateCountAndEmit(this.localCount);
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* @private Handles the "Remove from Basket" action, stops event propagation, and emits a null count.
|
|
331
|
+
* @param e - The DOM event.
|
|
332
|
+
*/
|
|
333
|
+
handleRemove = (e) => {
|
|
334
|
+
e.stopPropagation();
|
|
335
|
+
this.updateCountAndEmit(null);
|
|
336
|
+
};
|
|
316
337
|
render() {
|
|
317
338
|
const { localIsSelected, localCount, options, priceSuffix } = this;
|
|
318
339
|
const { title, subtitle, isBestChoice, price, discountPrice, benefits, contract } = options;
|
|
319
|
-
const currentPrice = discountPrice
|
|
340
|
+
const currentPrice = discountPrice ?? price;
|
|
320
341
|
const currentTotal = (localCount * currentPrice).toFixed(2);
|
|
321
342
|
const oldTotal = (localCount * price).toFixed(2);
|
|
322
343
|
const detailsId = `details-${options.id}`;
|
|
323
344
|
const titleId = `title-${options.id}`;
|
|
324
|
-
return (h(Host, { key: 'fb55819189417025a6ff7b17d927e82c0884bdab' }, h("div", { key: '01f724dcd984957286c3f4bbcd648c5a6cf5ac2d', class: { card__wrapper: isBestChoice } }, isBestChoice && (h("div", { key: 'bbfe753f9cda625a3722f92037dcfed2f71d69fd', class: { 'card__badge': true, 'card__badge--is-tablet': this.isTablet } }, translate('components-b2b-configurator-best-choice'))), h("div",
|
|
345
|
+
return (h(Host, { key: 'fb55819189417025a6ff7b17d927e82c0884bdab' }, h("div", { key: '01f724dcd984957286c3f4bbcd648c5a6cf5ac2d', class: { card__wrapper: isBestChoice } }, isBestChoice && (h("div", { key: 'bbfe753f9cda625a3722f92037dcfed2f71d69fd', class: { 'card__badge': true, 'card__badge--is-tablet': this.isTablet } }, translate('components-b2b-configurator-best-choice'))), h("div", { key: 'aa3ccc968da6e0c1c4d02dc707fa1fbb812f900a', class: { 'card': true, [`${this.theme}`]: true, 'card--selected': !!this.count || localIsSelected }, onClick: this.handleSelect, onKeyDown: a11yBtnClick, tabindex: 0, role: "button", "aria-expanded": localIsSelected, ...(localIsSelected ? { 'aria-controls': detailsId } : {}), "aria-labelledby": titleId }, h("section", { key: '7476d69d4f4420e2e7b7cefcdcf6bebac2f25a4b', class: { 'offer': true, 'offer--is-tablet': this.isTablet } }, h("div", { key: '5f87e22fad55417f0e24146452ee8f32c97c0bc7', class: "offer__header" }, h("div", { key: 'e43787318e1614bc0e77e3a0ef2623a9cf719763', class: { 'offer__top-info': true, 'offer__top-info--is-tablet': this.isTablet } }, h("h3", { key: '4e2b8e30f85bc06d7a6d5b3e4daec545371b78d2', id: titleId, class: { 'offer__title': true, 'offer__title--is-tablet': this.isTablet } }, title), h("div", { key: 'ee30c90972ee615bed5305de0b2a00ac1f2f987c', class: { 'offer__price': true, 'offer__price--is-tablet': this.isTablet } }, currentPrice.toFixed(2), h("span", { key: '852bcb2b6c1481c60bb5cced1a7f4aff1ab76004', class: { 'offer__price-suffix': true, 'offer__price-suffix--is-tablet': this.isTablet } }, ' ', h("span", { key: 'c3f227c198a670cb44e44427d202c52d13b8f9e6' }, priceSuffix)))), h("p", { key: 'd0baae9f2c3b1296540e0284556ec41c86364817', class: { 'offer__subtitle': true, 'offer__subtitle--is-tablet': this.isTablet } }, subtitle)), h("hr", { key: '5046b8ca91442bdcfa0b06ec384bbb8d3daff0e4', class: "divider divider--slim" }), h("tet-text-list", { key: 'e60899203c82d30f8936fa0643a961aaeb27663f', class: "offer__benefits", withIcon: true, listIcon: "tc-check", theme: this.theme }, benefits.map((benefit) => (h("span", null, benefit)))), contract && (h("div", { key: '69442b31d59e499906cf4962b4f3fc50df8ddb4c', class: "offer__contract-link" }, h("a", { key: 'd82dba7210d1af5493e3ac0bfd4a6d12a2865edc', class: { 'tet-link': true, [`${this.theme}`]: true }, href: contract, target: "_blank", rel: "noopener noreferrer" }, translate('components-b2b-configurator-contract-link-label'), h("span", { key: '974ef9b2a17ffe3335122d3ef0dd52c00f9d37ea', class: "sr-only" }, translate('components-a11y-open-link-in-new-window')))))), localIsSelected && [
|
|
325
346
|
h("hr", { key: '0c8262c7071b3d29b60c3b0585f4267995a6ebc9', class: "divider" }),
|
|
326
347
|
h("section", { key: '1b769a5109c6f3fd630db105815df20d61549476', id: detailsId, role: "region", "aria-labelledby": titleId, class: { 'details': true, 'details--is-tablet': this.isTablet } }, h("div", { key: 'f1d0f98651555a8ea20df42a59748db9531592a6', class: { 'details__price-block': true, 'details__price-block--is-tablet': this.isTablet } }, h("span", { key: '49bf16ce3e1d17ea945c09c55bacdcbb0ba625ca' }, translate('components-b2b-configurator-monthly-payment')), h("div", { key: '771f52eb3c4753ffe032d0a9987abc9d610acddd', class: "details__total", "aria-live": "polite" }, h("div", { key: '923e856154fb08a2d1fd2caae03e0dcc997296d4', class: "details__total--current" }, currentTotal, " ", priceSuffix), discountPrice != null && discountPrice < price && (h("div", { key: 'd09b58c1a939f5afb1c0534cd860fe016144e7e8', class: "details__total--original" }, oldTotal, " ", priceSuffix)))), h("hr", { key: '9287063fddec7add9799ca5aefd87af1ae67a145', class: "divider" }), h("div", { key: '2b62b079963f57098fff47e0974eb9a71e17c7c1', class: { 'details__actions': true, 'details__actions--is-tablet': this.isTablet } }, h("div", { key: 'c32ee4619ac0081ad2c26a5297a519ac2909e5a2', class: "details__quantity-control" }, options.counterOptions && [
|
|
327
348
|
h("span", { key: '4be740f29a8ae2549282bb1374ff66ee2e1d0be6', id: `qty-label-${options.id}`, class: "details__quantity-label" }, translate(options.counterOptions.label)),
|
|
@@ -334,7 +355,6 @@ const TetB2bCompareCard = class {
|
|
|
334
355
|
: translate('components-b2b-configurator-add-to-basket'))))
|
|
335
356
|
]))));
|
|
336
357
|
}
|
|
337
|
-
get hostElement() { return getElement(this); }
|
|
338
358
|
static get watchers() { return {
|
|
339
359
|
"count": ["syncCount"],
|
|
340
360
|
"isSelected": ["syncSelected"]
|
|
@@ -348,94 +368,6 @@ const TetB2bConfiguratorCartStyle0 = tetB2bConfiguratorCartCss;
|
|
|
348
368
|
const TetB2bConfiguratorCart = class {
|
|
349
369
|
constructor(hostRef) {
|
|
350
370
|
registerInstance(this, hostRef);
|
|
351
|
-
/** @private The suffix for the price displayed - "€/mēn."). */
|
|
352
|
-
this.priceSuffix = '€/mēn.';
|
|
353
|
-
this.addStickyClassConditionally = () => {
|
|
354
|
-
if (this.context === 'checkout') {
|
|
355
|
-
return;
|
|
356
|
-
}
|
|
357
|
-
const rect = this.hostElement.getBoundingClientRect();
|
|
358
|
-
const { bottom, top } = rect;
|
|
359
|
-
const isTopVisible = top < window.innerHeight && top;
|
|
360
|
-
const isBottomVisible = bottom < window.innerHeight && bottom;
|
|
361
|
-
if (isTopVisible && !isBottomVisible && !this.isDesktopResolution) {
|
|
362
|
-
this.cartEl.classList.add('cart--sticky');
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
this.cartEl.classList.remove('cart--sticky');
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
/**
|
|
369
|
-
* Updates `primarySlotFilled` or `secondarySlotFilled` based on assigned slot elements.
|
|
370
|
-
* @param e The slotchange event.
|
|
371
|
-
*/
|
|
372
|
-
this.handleSlotChanged = (e) => {
|
|
373
|
-
const slot = e.target;
|
|
374
|
-
const slotName = slot.name;
|
|
375
|
-
if (slotName === 'primary') {
|
|
376
|
-
this.primarySlotFilled = slot.assignedElements().length !== 0;
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
this.secondarySlotFilled = slot.assignedElements().length !== 0;
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
/**
|
|
383
|
-
* Handler for all accordion open state changes.
|
|
384
|
-
* Uses element reference checking to correctly distinguish between nested components (lower events bubble up).
|
|
385
|
-
* @param e The CustomEvent containing the new open state.
|
|
386
|
-
*/
|
|
387
|
-
this.handleAccordionChanged = (e) => {
|
|
388
|
-
const targetEl = e.target;
|
|
389
|
-
const isOpen = e.detail;
|
|
390
|
-
if (targetEl === this.accordionEl) {
|
|
391
|
-
this.isAccordionOpen = e.detail;
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
if (targetEl === this.primaryBlockEl) {
|
|
395
|
-
this.isPrimaryBlockOpen = isOpen;
|
|
396
|
-
return;
|
|
397
|
-
}
|
|
398
|
-
if (targetEl === this.secondaryBlockEl) {
|
|
399
|
-
this.isSecondaryBlockOpen = isOpen;
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
/** Renders the empty cart content placeholder. */
|
|
404
|
-
this.renderEmptyContent = () => {
|
|
405
|
-
return (h("div", { class: "empty-cart" }, h("tet-icon", { class: "empty-cart__icon", name: "tc-empty", theme: this.theme }), h("div", { class: "empty-cart__title" }, translate('components-b2b-cart-empty-title')), h("div", { class: "empty-cart__description" }, translate('components-b2b-cart-empty-description'))));
|
|
406
|
-
};
|
|
407
|
-
/** Renders the two inner service accordions based on slot content. */
|
|
408
|
-
this.renderContent = () => {
|
|
409
|
-
const blocks = [
|
|
410
|
-
{ name: translate('components-b2b-cart-primary-service-title'), type: 'primary' },
|
|
411
|
-
{ name: translate('components-b2b-cart-secondary-service-title'), type: 'secondary' }
|
|
412
|
-
];
|
|
413
|
-
const content = blocks.map((block) => {
|
|
414
|
-
const isPrimary = block.type === 'primary';
|
|
415
|
-
const blockOpen = isPrimary ? this.isPrimaryBlockOpen : this.isSecondaryBlockOpen;
|
|
416
|
-
const slotFilled = isPrimary ? this.primarySlotFilled : this.secondarySlotFilled;
|
|
417
|
-
const amount = isPrimary ? this.data.primaryAmount : this.data.secondaryAmount;
|
|
418
|
-
const count = isPrimary ? this.data.primaryCount : this.data.secondaryCount;
|
|
419
|
-
const countValue = count % 10 === 1 && count !== 11
|
|
420
|
-
? translate('components-b2b-cart-service-singular')
|
|
421
|
-
: translate('components-b2b-cart-service-plural');
|
|
422
|
-
const refCallback = (el) => {
|
|
423
|
-
if (block.type === 'primary') {
|
|
424
|
-
this.primaryBlockEl = el;
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
this.secondaryBlockEl = el;
|
|
428
|
-
}
|
|
429
|
-
};
|
|
430
|
-
return (h("div", { hidden: !slotFilled, class: "block__wrapper" }, h("tet-accordion", { ref: refCallback, key: block.type, class: "block", isOpen: blockOpen, header: block.name, theme: this.theme, transparentBackground: true }, h("div", { slot: "header", class: "block__header" }, h("div", { class: "block__header-row" }, h("div", null, block.name), h("div", { class: "block__header-amount" }, `${amount} ${this.priceSuffix}`)), h("div", { class: "block__header-row" }, h("div", { class: "block__header-details" }, `${count} ${countValue}`), h("div", { class: "block__header-indicator" }, blockOpen ? translate('components-b2b-cart-accordion-less') : translate('components-b2b-cart-accordion-more'), h("tet-icon", { class: "block__header-icon", name: `chevron-${blockOpen ? 'up' : 'down'}`, theme: this.theme })))), h("slot", { onSlotchange: this.handleSlotChanged, name: block.type }))));
|
|
431
|
-
});
|
|
432
|
-
return content;
|
|
433
|
-
};
|
|
434
|
-
/** Renders the cart summary, including notifications and financial details. */
|
|
435
|
-
this.renderSummary = () => {
|
|
436
|
-
const { summarySavings, summaryAmount, hasPrimaryNotification, hasSecondaryNotification } = this.data;
|
|
437
|
-
return (h("div", { class: { 'summary': true, 'summary--closed': !this.isAccordionOpen } }, hasPrimaryNotification && (h("tet-notification", { class: "summary__notification", type: "warning", headerTitle: translate('components-b2b-cart-primary-notification-title'), content: translate('components-b2b-cart-primary-notification-description'), allowClose: false, theme: this.theme, icon: null })), hasSecondaryNotification && (h("tet-notification", { class: "summary__notification", type: "neutral", headerTitle: translate('components-b2b-cart-secondary-notification-title'), content: translate('components-b2b-cart-secondary-notification-description'), allowClose: false, theme: this.theme })), this.isAccordionOpen && (h("div", { class: "summary__savings" }, h("div", null, translate('components-b2b-cart-savings-title')), h("span", { class: "summary__savings-amount" }, " ", `${summarySavings} ${this.priceSuffix}`))), h("div", { class: "summary__monthly-payment" }, translate('components-b2b-cart-monthly-payment-title'), h("div", { class: "summary__monthly-price" }, h("div", null, `${summaryAmount} ${this.priceSuffix}`), h("span", { class: "summary__monthly-price-disclosure" }, ' ', translate('components-b2b-cart-monthly-payment-disclosure'), ' '))), this.isAccordionOpen && h("slot", { name: "cta" })));
|
|
438
|
-
};
|
|
439
371
|
this.theme = 'light';
|
|
440
372
|
this.data = undefined;
|
|
441
373
|
this.isCartEmpty = true;
|
|
@@ -447,6 +379,19 @@ const TetB2bConfiguratorCart = class {
|
|
|
447
379
|
this.primarySlotFilled = false;
|
|
448
380
|
this.secondarySlotFilled = false;
|
|
449
381
|
}
|
|
382
|
+
get hostElement() { return getElement(this); }
|
|
383
|
+
/** @private The suffix for the price displayed - "€/mēn."). */
|
|
384
|
+
priceSuffix = '€/mēn.';
|
|
385
|
+
/** @private Reference to cart element*/
|
|
386
|
+
cartEl;
|
|
387
|
+
/** @private Reference to outer accordion element*/
|
|
388
|
+
accordionEl;
|
|
389
|
+
/** @private Reference to 1st inner accordion element*/
|
|
390
|
+
primaryBlockEl;
|
|
391
|
+
/** @private Reference to 2nd inner accordion element*/
|
|
392
|
+
secondaryBlockEl;
|
|
393
|
+
/** An intersection observer for checking if cart is currently sticky to bottom. */
|
|
394
|
+
cartObserver;
|
|
450
395
|
/**
|
|
451
396
|
* Imperatively opens the main accordion when transitioning to desktop in 'edit' context.
|
|
452
397
|
* Adds/removes sticky class on `isDesktopResolution` prop change
|
|
@@ -497,6 +442,92 @@ const TetB2bConfiguratorCart = class {
|
|
|
497
442
|
state == 'open' ? this.secondaryBlockEl.open() : this.secondaryBlockEl.close();
|
|
498
443
|
}
|
|
499
444
|
}
|
|
445
|
+
addStickyClassConditionally = () => {
|
|
446
|
+
if (this.context === 'checkout') {
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
const rect = this.hostElement.getBoundingClientRect();
|
|
450
|
+
const { bottom, top } = rect;
|
|
451
|
+
const isTopVisible = top < window.innerHeight && top;
|
|
452
|
+
const isBottomVisible = bottom < window.innerHeight && bottom;
|
|
453
|
+
if (isTopVisible && !isBottomVisible && !this.isDesktopResolution) {
|
|
454
|
+
this.cartEl.classList.add('cart--sticky');
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
this.cartEl.classList.remove('cart--sticky');
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* Updates `primarySlotFilled` or `secondarySlotFilled` based on assigned slot elements.
|
|
462
|
+
* @param e The slotchange event.
|
|
463
|
+
*/
|
|
464
|
+
handleSlotChanged = (e) => {
|
|
465
|
+
const slot = e.target;
|
|
466
|
+
const slotName = slot.name;
|
|
467
|
+
if (slotName === 'primary') {
|
|
468
|
+
this.primarySlotFilled = slot.assignedElements().length !== 0;
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
this.secondarySlotFilled = slot.assignedElements().length !== 0;
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Handler for all accordion open state changes.
|
|
476
|
+
* Uses element reference checking to correctly distinguish between nested components (lower events bubble up).
|
|
477
|
+
* @param e The CustomEvent containing the new open state.
|
|
478
|
+
*/
|
|
479
|
+
handleAccordionChanged = (e) => {
|
|
480
|
+
const targetEl = e.target;
|
|
481
|
+
const isOpen = e.detail;
|
|
482
|
+
if (targetEl === this.accordionEl) {
|
|
483
|
+
this.isAccordionOpen = e.detail;
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
if (targetEl === this.primaryBlockEl) {
|
|
487
|
+
this.isPrimaryBlockOpen = isOpen;
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
if (targetEl === this.secondaryBlockEl) {
|
|
491
|
+
this.isSecondaryBlockOpen = isOpen;
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
/** Renders the empty cart content placeholder. */
|
|
496
|
+
renderEmptyContent = () => {
|
|
497
|
+
return (h("div", { class: "empty-cart" }, h("tet-icon", { class: "empty-cart__icon", name: "tc-empty", theme: this.theme }), h("div", { class: "empty-cart__title" }, translate('components-b2b-cart-empty-title')), h("div", { class: "empty-cart__description" }, translate('components-b2b-cart-empty-description'))));
|
|
498
|
+
};
|
|
499
|
+
/** Renders the two inner service accordions based on slot content. */
|
|
500
|
+
renderContent = () => {
|
|
501
|
+
const blocks = [
|
|
502
|
+
{ name: translate('components-b2b-cart-primary-service-title'), type: 'primary' },
|
|
503
|
+
{ name: translate('components-b2b-cart-secondary-service-title'), type: 'secondary' }
|
|
504
|
+
];
|
|
505
|
+
const content = blocks.map((block) => {
|
|
506
|
+
const isPrimary = block.type === 'primary';
|
|
507
|
+
const blockOpen = isPrimary ? this.isPrimaryBlockOpen : this.isSecondaryBlockOpen;
|
|
508
|
+
const slotFilled = isPrimary ? this.primarySlotFilled : this.secondarySlotFilled;
|
|
509
|
+
const amount = isPrimary ? this.data.primaryAmount : this.data.secondaryAmount;
|
|
510
|
+
const count = isPrimary ? this.data.primaryCount : this.data.secondaryCount;
|
|
511
|
+
const countValue = count % 10 === 1 && count !== 11
|
|
512
|
+
? translate('components-b2b-cart-service-singular')
|
|
513
|
+
: translate('components-b2b-cart-service-plural');
|
|
514
|
+
const refCallback = (el) => {
|
|
515
|
+
if (block.type === 'primary') {
|
|
516
|
+
this.primaryBlockEl = el;
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
this.secondaryBlockEl = el;
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
return (h("div", { hidden: !slotFilled, class: "block__wrapper" }, h("tet-accordion", { ref: refCallback, key: block.type, class: "block", isOpen: blockOpen, header: block.name, theme: this.theme, transparentBackground: true }, h("div", { slot: "header", class: "block__header" }, h("div", { class: "block__header-row" }, h("div", null, block.name), h("div", { class: "block__header-amount" }, `${amount} ${this.priceSuffix}`)), h("div", { class: "block__header-row" }, h("div", { class: "block__header-details" }, `${count} ${countValue}`), h("div", { class: "block__header-indicator" }, blockOpen ? translate('components-b2b-cart-accordion-less') : translate('components-b2b-cart-accordion-more'), h("tet-icon", { class: "block__header-icon", name: `chevron-${blockOpen ? 'up' : 'down'}`, theme: this.theme })))), h("slot", { onSlotchange: this.handleSlotChanged, name: block.type }))));
|
|
523
|
+
});
|
|
524
|
+
return content;
|
|
525
|
+
};
|
|
526
|
+
/** Renders the cart summary, including notifications and financial details. */
|
|
527
|
+
renderSummary = () => {
|
|
528
|
+
const { summarySavings, summaryAmount, hasPrimaryNotification, hasSecondaryNotification } = this.data;
|
|
529
|
+
return (h("div", { class: { 'summary': true, 'summary--closed': !this.isAccordionOpen } }, hasPrimaryNotification && (h("tet-notification", { class: "summary__notification", type: "warning", headerTitle: translate('components-b2b-cart-primary-notification-title'), content: translate('components-b2b-cart-primary-notification-description'), allowClose: false, theme: this.theme, icon: null })), hasSecondaryNotification && (h("tet-notification", { class: "summary__notification", type: "neutral", headerTitle: translate('components-b2b-cart-secondary-notification-title'), content: translate('components-b2b-cart-secondary-notification-description'), allowClose: false, theme: this.theme })), this.isAccordionOpen && (h("div", { class: "summary__savings" }, h("div", null, translate('components-b2b-cart-savings-title')), h("span", { class: "summary__savings-amount" }, " ", `${summarySavings} ${this.priceSuffix}`))), h("div", { class: "summary__monthly-payment" }, translate('components-b2b-cart-monthly-payment-title'), h("div", { class: "summary__monthly-price" }, h("div", null, `${summaryAmount} ${this.priceSuffix}`), h("span", { class: "summary__monthly-price-disclosure" }, ' ', translate('components-b2b-cart-monthly-payment-disclosure'), ' '))), this.isAccordionOpen && h("slot", { name: "cta" })));
|
|
530
|
+
};
|
|
500
531
|
render() {
|
|
501
532
|
const cartTitle = translate('components-b2b-cart-title');
|
|
502
533
|
const isEditMode = this.context === 'edit';
|
|
@@ -509,7 +540,6 @@ const TetB2bConfiguratorCart = class {
|
|
|
509
540
|
'cart__accordion--closed': !this.isAccordionOpen
|
|
510
541
|
}, isOpen: this.isAccordionOpen, onOpenChanged: this.handleAccordionChanged, header: cartTitle, theme: this.theme, transparentBackground: true, indicatorDirection: this.isDesktopResolution || isCheckoutMode ? 'down' : 'up' }, h("div", { key: '2593ac6fded70db5e0356d4eac9be05ec30b3d25', class: `cart__title--${this.context}` }, cartTitle), h("div", { key: 'd01c8e52bbe63de3aad45c9795907ec8f753914d', class: { cart__content: true, [`cart__content--${this.context}`]: true } }, this.isCartEmpty ? this.renderEmptyContent() : [this.renderContent()])), showSummary && this.renderSummary())));
|
|
511
542
|
}
|
|
512
|
-
get hostElement() { return getElement(this); }
|
|
513
543
|
static get watchers() { return {
|
|
514
544
|
"isDesktopResolution": ["openAccordionOnResolutionChange"],
|
|
515
545
|
"isCartEmpty": ["checkStickyClassOnCartEmptyChange"]
|
|
@@ -524,66 +554,69 @@ const TetBusinessNavigation = class {
|
|
|
524
554
|
constructor(hostRef) {
|
|
525
555
|
registerInstance(this, hostRef);
|
|
526
556
|
this.menuClickEvent = createEvent(this, "menu-click-event", 7);
|
|
527
|
-
/**
|
|
528
|
-
* Initialises the mouse drag.
|
|
529
|
-
* @param {MouseEvent} event Current mouse event.
|
|
530
|
-
*/
|
|
531
|
-
this.onContainerMouseDown = (event) => {
|
|
532
|
-
this.isPointerDown = true;
|
|
533
|
-
this.positions = {
|
|
534
|
-
scrollLeft: this.navigationContainer.scrollLeft,
|
|
535
|
-
mouseX: event.clientX
|
|
536
|
-
};
|
|
537
|
-
this.navigationContainer.addEventListener('mousemove', this.onContainerMouseMove);
|
|
538
|
-
this.navigationContainer.addEventListener('mouseup', this.onContainerMouseUp);
|
|
539
|
-
this.navigationContainer.addEventListener('mouseleave', this.onContainerMouseUp);
|
|
540
|
-
};
|
|
541
|
-
/**
|
|
542
|
-
* Scrolls the `navigationContainer` on mouse drag.
|
|
543
|
-
* @param {MouseEvent} e Current mouse event.
|
|
544
|
-
*/
|
|
545
|
-
this.onContainerMouseMove = (e) => {
|
|
546
|
-
e.preventDefault();
|
|
547
|
-
const mouseButton = e.buttons;
|
|
548
|
-
this.isPointerDown = mouseButton === 1;
|
|
549
|
-
if (!this.isPointerDown) {
|
|
550
|
-
this.onContainerMouseUp();
|
|
551
|
-
return;
|
|
552
|
-
}
|
|
553
|
-
const deltaX = e.clientX - this.positions.mouseX;
|
|
554
|
-
this.navigationContainer.scrollTo(this.positions.scrollLeft - deltaX, 0);
|
|
555
|
-
};
|
|
556
|
-
/**
|
|
557
|
-
* Removes mouse drag events.
|
|
558
|
-
*/
|
|
559
|
-
this.onContainerMouseUp = () => {
|
|
560
|
-
this.isPointerDown = false;
|
|
561
|
-
this.navigationContainer.removeEventListener('mousemove', this.onContainerMouseMove);
|
|
562
|
-
this.navigationContainer.removeEventListener('mouseup', this.onContainerMouseUp);
|
|
563
|
-
this.navigationContainer.removeEventListener('mouseleave', this.onContainerMouseUp);
|
|
564
|
-
};
|
|
565
|
-
/** Render menu item */
|
|
566
|
-
this.renderMenuItem = (menuItem) => {
|
|
567
|
-
const { id, icon, name } = menuItem;
|
|
568
|
-
return (h("button", { key: id, class: { 'business-navigation-item': true, 'selected': this.selectedItemId === id }, onClick: () => this.selectMenuItem(id) }, icon && h("tet-icon", { class: "business-navigation-item__icon", name: icon }), h("span", { class: "business-navigation-item__title" }, name)));
|
|
569
|
-
};
|
|
570
557
|
this.menuItems = undefined;
|
|
571
558
|
this.theme = 'light';
|
|
572
559
|
this.selectedItemId = undefined;
|
|
573
560
|
this.positions = { scrollLeft: 0, mouseX: 0 };
|
|
574
561
|
}
|
|
562
|
+
navigationContainer;
|
|
563
|
+
isPointerDown;
|
|
564
|
+
/** Event emitter for menu item click passing menu id */
|
|
565
|
+
menuClickEvent;
|
|
575
566
|
/** Method to run on menu item selection */
|
|
576
567
|
async selectMenuItem(id) {
|
|
577
568
|
this.selectedItemId = id;
|
|
578
569
|
this.menuClickEvent.emit({ id });
|
|
579
570
|
}
|
|
580
571
|
componentWillLoad() {
|
|
581
|
-
var _a;
|
|
582
572
|
if (!this.menuItems || this.menuItems.length === 0) {
|
|
583
573
|
return;
|
|
584
574
|
}
|
|
585
|
-
this.selectedItemId =
|
|
575
|
+
this.selectedItemId = this.menuItems.find((item) => item.selected === true)?.id || this.menuItems[0].id;
|
|
586
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* Initialises the mouse drag.
|
|
579
|
+
* @param {MouseEvent} event Current mouse event.
|
|
580
|
+
*/
|
|
581
|
+
onContainerMouseDown = (event) => {
|
|
582
|
+
this.isPointerDown = true;
|
|
583
|
+
this.positions = {
|
|
584
|
+
scrollLeft: this.navigationContainer.scrollLeft,
|
|
585
|
+
mouseX: event.clientX
|
|
586
|
+
};
|
|
587
|
+
this.navigationContainer.addEventListener('mousemove', this.onContainerMouseMove);
|
|
588
|
+
this.navigationContainer.addEventListener('mouseup', this.onContainerMouseUp);
|
|
589
|
+
this.navigationContainer.addEventListener('mouseleave', this.onContainerMouseUp);
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Scrolls the `navigationContainer` on mouse drag.
|
|
593
|
+
* @param {MouseEvent} e Current mouse event.
|
|
594
|
+
*/
|
|
595
|
+
onContainerMouseMove = (e) => {
|
|
596
|
+
e.preventDefault();
|
|
597
|
+
const mouseButton = e.buttons;
|
|
598
|
+
this.isPointerDown = mouseButton === 1;
|
|
599
|
+
if (!this.isPointerDown) {
|
|
600
|
+
this.onContainerMouseUp();
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
const deltaX = e.clientX - this.positions.mouseX;
|
|
604
|
+
this.navigationContainer.scrollTo(this.positions.scrollLeft - deltaX, 0);
|
|
605
|
+
};
|
|
606
|
+
/**
|
|
607
|
+
* Removes mouse drag events.
|
|
608
|
+
*/
|
|
609
|
+
onContainerMouseUp = () => {
|
|
610
|
+
this.isPointerDown = false;
|
|
611
|
+
this.navigationContainer.removeEventListener('mousemove', this.onContainerMouseMove);
|
|
612
|
+
this.navigationContainer.removeEventListener('mouseup', this.onContainerMouseUp);
|
|
613
|
+
this.navigationContainer.removeEventListener('mouseleave', this.onContainerMouseUp);
|
|
614
|
+
};
|
|
615
|
+
/** Render menu item */
|
|
616
|
+
renderMenuItem = (menuItem) => {
|
|
617
|
+
const { id, icon, name } = menuItem;
|
|
618
|
+
return (h("button", { key: id, class: { 'business-navigation-item': true, 'selected': this.selectedItemId === id }, onClick: () => this.selectMenuItem(id) }, icon && h("tet-icon", { class: "business-navigation-item__icon", name: icon }), h("span", { class: "business-navigation-item__title" }, name)));
|
|
619
|
+
};
|
|
587
620
|
/** Render Functional Component*/
|
|
588
621
|
render() {
|
|
589
622
|
const { menuItems, theme } = this;
|
|
@@ -601,38 +634,6 @@ const TetBusinessSummaryCardComponent = class {
|
|
|
601
634
|
this.editButtonClick = createEvent(this, "editButtonClick", 7);
|
|
602
635
|
this.deleteButtonClick = createEvent(this, "deleteButtonClick", 7);
|
|
603
636
|
this.amountChange = createEvent(this, "amountChange", 7);
|
|
604
|
-
/** Function to render stepper label if provided */
|
|
605
|
-
this.renderLabel = (withValue) => {
|
|
606
|
-
const { stepperLabel, value } = this;
|
|
607
|
-
if (!stepperLabel) {
|
|
608
|
-
return;
|
|
609
|
-
}
|
|
610
|
-
if (withValue) {
|
|
611
|
-
return (h("span", { class: "contract-term" }, stepperLabel, ": ", value));
|
|
612
|
-
}
|
|
613
|
-
else {
|
|
614
|
-
return h("span", { class: "stepper-label" }, stepperLabel);
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
/** Render stepper if necessary */
|
|
618
|
-
this.renderStepper = () => {
|
|
619
|
-
const { withStepper, theme, value, minValue, maxValue } = this;
|
|
620
|
-
if (!withStepper) {
|
|
621
|
-
return;
|
|
622
|
-
}
|
|
623
|
-
return (h("div", { class: "stepper-wrapper" }, this.renderLabel(false), h("tet-stepper-input", { class: "business-summary-card__stepper", theme: theme, value: value, step: 1, min: minValue, max: maxValue, onInputValueChanged: (e) => {
|
|
624
|
-
this.value = e.detail;
|
|
625
|
-
this.amountChange.emit(e.detail);
|
|
626
|
-
} })));
|
|
627
|
-
};
|
|
628
|
-
/** Render Edit or Delete Icon Button */
|
|
629
|
-
this.renderIconButton = (type) => {
|
|
630
|
-
const buttonType = type === 'tc-edit-box' ? 'edit' : 'delete';
|
|
631
|
-
const buttonClickEvent = (e) => {
|
|
632
|
-
type === 'tc-edit-box' ? this.editButtonClick.emit(e) : this.deleteButtonClick.emit(e);
|
|
633
|
-
};
|
|
634
|
-
return (h("button", { class: "icon-button", onClick: (e) => buttonClickEvent(e), onKeyDown: a11yBtnClick }, h("tet-icon", { class: buttonType, name: type, focusable: false })));
|
|
635
|
-
};
|
|
636
637
|
this.productName = undefined;
|
|
637
638
|
this.price = undefined;
|
|
638
639
|
this.productDescription = undefined;
|
|
@@ -648,9 +649,47 @@ const TetBusinessSummaryCardComponent = class {
|
|
|
648
649
|
this.context = 'edit';
|
|
649
650
|
this.language = 'lv';
|
|
650
651
|
}
|
|
652
|
+
/** Emit event when Edit button clicked */
|
|
653
|
+
editButtonClick;
|
|
654
|
+
/** Emit event when Delete button clicked */
|
|
655
|
+
deleteButtonClick;
|
|
656
|
+
/** Emit event when amount of products changed */
|
|
657
|
+
amountChange;
|
|
651
658
|
async componentWillLoad() {
|
|
652
659
|
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
653
660
|
}
|
|
661
|
+
/** Function to render stepper label if provided */
|
|
662
|
+
renderLabel = (withValue) => {
|
|
663
|
+
const { stepperLabel, value } = this;
|
|
664
|
+
if (!stepperLabel) {
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
if (withValue) {
|
|
668
|
+
return (h("span", { class: "contract-term" }, stepperLabel, ": ", value));
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
return h("span", { class: "stepper-label" }, stepperLabel);
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
/** Render stepper if necessary */
|
|
675
|
+
renderStepper = () => {
|
|
676
|
+
const { withStepper, theme, value, minValue, maxValue } = this;
|
|
677
|
+
if (!withStepper) {
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
return (h("div", { class: "stepper-wrapper" }, this.renderLabel(false), h("tet-stepper-input", { class: "business-summary-card__stepper", theme: theme, value: value, step: 1, min: minValue, max: maxValue, onInputValueChanged: (e) => {
|
|
681
|
+
this.value = e.detail;
|
|
682
|
+
this.amountChange.emit(e.detail);
|
|
683
|
+
} })));
|
|
684
|
+
};
|
|
685
|
+
/** Render Edit or Delete Icon Button */
|
|
686
|
+
renderIconButton = (type) => {
|
|
687
|
+
const buttonType = type === 'tc-edit-box' ? 'edit' : 'delete';
|
|
688
|
+
const buttonClickEvent = (e) => {
|
|
689
|
+
type === 'tc-edit-box' ? this.editButtonClick.emit(e) : this.deleteButtonClick.emit(e);
|
|
690
|
+
};
|
|
691
|
+
return (h("button", { class: "icon-button", onClick: (e) => buttonClickEvent(e), onKeyDown: a11yBtnClick }, h("tet-icon", { class: buttonType, name: type, focusable: false })));
|
|
692
|
+
};
|
|
654
693
|
/** Return functional Component */
|
|
655
694
|
render() {
|
|
656
695
|
const { productName, price, productDescription, discountPrice, currency, contractTerm, theme } = this;
|