@tet/tet-components 1.3.157-testing → 1.4.0-production
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{address-5271d3aa.js → address-ac89cbf7.js} +1 -1
- package/dist/cjs/{assets-e3bb045c.js → assets-d8d3b4a0.js} +1 -1
- package/dist/cjs/{async-request-29b32d63.js → async-request-5585e750.js} +27 -26
- package/dist/cjs/compare-cards-tab-products-filters-10b06fe0.js +100 -0
- package/dist/cjs/{http-codes-2f72a8b2.js → http-codes-910040e7.js} +25 -19
- package/dist/cjs/{index-f559cb2e.js → index-4daaccaa.js} +1672 -1598
- package/dist/cjs/{index-84ede372.js → index-f89f05b8.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-e7afcafb.js} +1 -1
- package/dist/cjs/{tasks-af99ad61.js → tasks-807b08d3.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-3f7c73ee.js} +2 -2
- package/dist/cjs/{translations-ed68775f.js → translations-62fb6b1c.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-045bec85.js → p-03f68fa0.js} +16 -16
- package/dist/components/{p-4d33055f.js → p-04a30e22.js} +117 -107
- package/dist/components/{p-5dc5e13c.js → p-065e8f8b.js} +2 -2
- package/dist/components/{p-f18e5ae3.js → p-06650222.js} +28 -23
- package/dist/components/{p-ca66b4b1.js → p-12649d6e.js} +8 -6
- package/dist/components/{p-856695a3.js → p-13bb64a3.js} +43 -37
- package/dist/components/{p-489ae3a0.js → p-1c466832.js} +27 -26
- package/dist/components/{p-639c9d1a.js → p-1cccc456.js} +80 -69
- package/dist/components/{p-bb324278.js → p-220f3eef.js} +1 -1
- package/dist/components/{p-df1fe72c.js → p-2426d691.js} +47 -37
- package/dist/components/{p-04fe59fc.js → p-25756e4c.js} +50 -47
- package/dist/components/{p-aca28e71.js → p-2627300f.js} +53 -52
- package/dist/components/{p-144dffdc.js → p-31662bf6.js} +1 -1
- package/dist/components/{p-6b7e73c0.js → p-33725ec2.js} +218 -202
- package/dist/components/{p-9a47b95f.js → p-3a80e93a.js} +26 -26
- package/dist/components/p-3daf3627.js +869 -0
- package/dist/components/{p-cec65d0a.js → p-405417ba.js} +121 -116
- package/dist/components/{p-530ef38b.js → p-429b72d5.js} +4 -4
- package/dist/components/{p-9573f82c.js → p-496e41f5.js} +41 -35
- package/dist/components/{p-a188f09e.js → p-57c53319.js} +11 -7
- package/dist/components/{p-a81e545d.js → p-581edb37.js} +1 -1
- package/dist/components/{p-3fd7310f.js → p-5d56e6e5.js} +1 -1
- package/dist/components/{p-7ddd71bd.js → p-5e206e34.js} +3 -3
- package/dist/components/{p-965cea5b.js → p-5fd443f5.js} +137 -134
- package/dist/components/{p-6847eb2d.js → p-64ca3cec.js} +62 -63
- package/dist/components/{p-0088d040.js → p-7530ef19.js} +16 -12
- package/dist/components/{p-eb54f5b9.js → p-78a44de3.js} +21 -18
- package/dist/components/{p-7b3c7bf1.js → p-7beec5f2.js} +4 -2
- package/dist/components/{p-c1876db7.js → p-7dff5fe9.js} +36 -21
- package/dist/components/{p-68f0e894.js → p-7e8270ec.js} +10 -10
- package/dist/components/{p-bd3402f6.js → p-7fb96f10.js} +17 -15
- package/dist/components/{p-35e72a2b.js → p-8101b09a.js} +58 -44
- package/dist/components/{p-37ed3ebb.js → p-88af3744.js} +190 -135
- package/dist/components/{p-42ff76b5.js → p-8db05f15.js} +22 -18
- package/dist/components/{p-881093d4.js → p-9372e619.js} +206 -194
- package/dist/components/{p-9fe57fd0.js → p-962b13ba.js} +68 -65
- package/dist/components/{p-b0d6ed2e.js → p-a9b1c410.js} +25 -24
- package/dist/components/{p-029ff2b3.js → p-b3001877.js} +24 -24
- package/dist/components/{p-00e689fb.js → p-ba709868.js} +1 -1
- package/dist/components/{p-50f207fd.js → p-bc84eb7d.js} +54 -34
- package/dist/components/{p-91651432.js → p-bfcce1dd.js} +1 -1
- package/dist/{esm/http-codes-7faa9f6e.js → components/p-c1f5b99f.js} +66 -59
- package/dist/components/{p-e707e73a.js → p-c217775d.js} +13 -5
- package/dist/components/{p-cb2daf20.js → p-c62a7fa3.js} +25 -16
- package/dist/components/{p-88b42c67.js → p-c7c47790.js} +63 -59
- package/dist/components/{p-00c91e96.js → p-c8b44baa.js} +2 -2
- package/dist/components/{p-6a2a81d8.js → p-c956b246.js} +104 -94
- package/dist/components/{p-53ca0a91.js → p-d3939d35.js} +39 -23
- package/dist/components/{p-5c8c2d8d.js → p-d4192716.js} +1 -1
- package/dist/components/{p-163de6e2.js → p-d73512b2.js} +23 -11
- package/dist/components/{p-e04716ac.js → p-dfee3bd7.js} +29 -30
- package/dist/components/{p-9bf262a8.js → p-e474903b.js} +33 -27
- package/dist/components/p-ea401595.js +169 -0
- package/dist/components/{p-03177920.js → p-ecf59431.js} +181 -173
- package/dist/components/{p-818742ad.js → p-ee3bdb7a.js} +21 -22
- package/dist/components/{p-817bee22.js → p-f05feebd.js} +12 -12
- package/dist/components/{p-21c5cfc4.js → p-f7be6960.js} +64 -53
- package/dist/components/{p-616c71e1.js → p-f82069f3.js} +559 -532
- package/dist/components/{p-a0d406ca.js → p-f8ac52c6.js} +117 -72
- package/dist/components/{p-7790eae2.js → p-f97fa8ff.js} +128 -126
- 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-483cfa2e.js} +1 -1
- package/dist/esm/{assets-b971f105.js → assets-d6147258.js} +1 -1
- package/dist/esm/{async-request-6675e5f5.js → async-request-21a65bdc.js} +27 -26
- package/dist/esm/compare-cards-tab-products-filters-79b7b7c6.js +98 -0
- package/dist/{components/p-6830b44d.js → esm/http-codes-c2e180c8.js} +65 -60
- package/dist/esm/{index-1bf36cb9.js → index-0c5fef2e.js} +1 -1
- package/dist/esm/{index-7f1e2a22.js → index-209dece3.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-41b334ab.js} +1 -1
- package/dist/esm/{tasks-3dfcc330.js → tasks-24b9f88e.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-58ce8dca.js} +2 -2
- package/dist/esm/{translations-eff34607.js → translations-ff21fc65.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-eed2b508.entry.js → p-02441a57.entry.js} +1 -1
- package/dist/tet-components/p-032b5507.js +1 -0
- package/dist/tet-components/{p-de142575.js → p-0449b998.js} +1 -1
- package/dist/tet-components/{p-b680d126.entry.js → p-072fd38b.entry.js} +1 -1
- package/dist/tet-components/p-078fae30.entry.js +1 -0
- package/dist/tet-components/p-087903b8.entry.js +1 -0
- package/dist/tet-components/p-09da9cdb.entry.js +1 -0
- package/dist/tet-components/p-0bd28e46.entry.js +1 -0
- package/dist/tet-components/p-12649d6e.js +1 -0
- package/dist/tet-components/{p-44d068ac.entry.js → p-172f5d46.entry.js} +1 -1
- package/dist/tet-components/p-19d71252.entry.js +1 -0
- package/dist/tet-components/p-1c34c35d.entry.js +1 -0
- package/dist/tet-components/{p-9b027102.entry.js → p-1e637cab.entry.js} +1 -1
- package/dist/tet-components/p-216be909.entry.js +1 -0
- package/dist/tet-components/p-2204320b.entry.js +1 -0
- package/dist/tet-components/p-25c9957d.js +1 -0
- package/dist/tet-components/p-274d6839.entry.js +1 -0
- package/dist/tet-components/p-278ad754.entry.js +1 -0
- package/dist/tet-components/p-2813884f.entry.js +1 -0
- package/dist/tet-components/p-290cc145.entry.js +1 -0
- package/dist/tet-components/p-29a179e7.entry.js +1 -0
- package/dist/tet-components/{p-1a89919e.entry.js → p-2b11b9eb.entry.js} +1 -1
- package/dist/tet-components/p-30fed7c2.entry.js +1 -0
- package/dist/tet-components/{p-5c86ad42.entry.js → p-3176cf46.entry.js} +1 -1
- package/dist/tet-components/{p-46e5b573.entry.js → p-3d60accc.entry.js} +1 -1
- package/dist/tet-components/{p-e263ecdf.js → p-3deb6f3c.js} +1 -1
- package/dist/tet-components/p-41cdb7f9.entry.js +1 -0
- package/dist/tet-components/p-446ae6ef.entry.js +1 -0
- package/dist/tet-components/{p-f9a1fbb2.entry.js → p-451b2a49.entry.js} +1 -1
- package/dist/tet-components/{p-f023f124.entry.js → p-47233208.entry.js} +1 -1
- package/dist/tet-components/p-4c10844d.entry.js +1 -0
- package/dist/tet-components/p-4ecb9094.entry.js +1 -0
- package/dist/tet-components/{p-36d2a380.entry.js → p-4fd6c1ae.entry.js} +1 -1
- package/dist/tet-components/{p-49122f6a.entry.js → p-510150b8.entry.js} +1 -1
- package/dist/tet-components/{p-bc16c07b.js → p-56bfd2a5.js} +1 -1
- package/dist/tet-components/p-585739ce.entry.js +1 -0
- package/dist/tet-components/{p-918e4e84.entry.js → p-5cf65beb.entry.js} +1 -1
- package/dist/tet-components/{p-66dd0ede.entry.js → p-6278a886.entry.js} +1 -1
- package/dist/tet-components/p-646bddab.entry.js +1 -0
- package/dist/tet-components/p-683c2419.entry.js +1 -0
- package/dist/tet-components/{p-8b405467.entry.js → p-68709390.entry.js} +1 -1
- package/dist/tet-components/{p-c7dbb16f.entry.js → p-6910d35c.entry.js} +1 -1
- package/dist/tet-components/p-696f83db.entry.js +1 -0
- package/dist/tet-components/p-6a185f76.js +1 -0
- package/dist/tet-components/p-6ccea165.entry.js +1 -0
- package/dist/tet-components/p-6e166c83.entry.js +1 -0
- package/dist/tet-components/{p-775aa778.entry.js → p-70941fcd.entry.js} +1 -1
- package/dist/tet-components/p-7145ca73.entry.js +1 -0
- package/dist/tet-components/{p-8c964cca.js → p-77d941d8.js} +2 -2
- package/dist/tet-components/{p-a9ed4e2b.entry.js → p-7ae725e1.entry.js} +1 -1
- package/dist/tet-components/p-8148edc9.entry.js +1 -0
- package/dist/tet-components/p-8622e131.entry.js +1 -0
- package/dist/tet-components/p-8907f459.entry.js +1 -0
- package/dist/tet-components/p-8f7629ca.entry.js +1 -0
- package/dist/tet-components/p-94e9a944.js +1 -0
- package/dist/tet-components/p-97c743ab.entry.js +1 -0
- package/dist/tet-components/p-9a2b6ee2.js +1 -0
- package/dist/tet-components/p-9b5cf49f.js +2 -0
- package/dist/tet-components/{p-ed67bd52.entry.js → p-9becad06.entry.js} +1 -1
- package/dist/tet-components/p-9eb8d93b.entry.js +1 -0
- package/dist/tet-components/p-a8091c62.entry.js +1 -0
- package/dist/tet-components/p-a8e16d54.entry.js +1 -0
- package/dist/tet-components/p-ae2e1d5c.entry.js +1 -0
- package/dist/tet-components/{p-ecff869b.entry.js → p-b3598dc1.entry.js} +1 -1
- package/dist/tet-components/p-ba803b83.entry.js +1 -0
- package/dist/tet-components/p-bda674b0.entry.js +1 -0
- package/dist/tet-components/{p-8f545d45.entry.js → p-c07c5b84.entry.js} +1 -1
- package/dist/tet-components/p-c14f1445.entry.js +1 -0
- package/dist/tet-components/{p-9f1a810e.entry.js → p-c24c48e4.entry.js} +1 -1
- package/dist/tet-components/{p-bb9f1a6f.entry.js → p-c3f486bc.entry.js} +1 -1
- package/dist/tet-components/{p-77372984.js → p-c4fc2dd6.js} +1 -1
- package/dist/tet-components/p-c5bc017a.entry.js +1 -0
- package/dist/tet-components/p-c6d7c2b4.entry.js +1 -0
- package/dist/tet-components/p-c9cdf98c.js +1 -0
- package/dist/tet-components/p-cca96c58.entry.js +1 -0
- package/dist/tet-components/p-d4b6b480.entry.js +1 -0
- package/dist/tet-components/p-d5cc4a81.entry.js +1 -0
- package/dist/tet-components/p-d8bebee4.entry.js +1 -0
- package/dist/tet-components/p-d9a826c2.js +1 -0
- package/dist/tet-components/p-dd49b83c.entry.js +1 -0
- package/dist/tet-components/p-dd6c7252.entry.js +1 -0
- package/dist/tet-components/p-ea3ae824.entry.js +1 -0
- package/dist/tet-components/p-eba077c3.entry.js +1 -0
- package/dist/tet-components/p-ebc29130.entry.js +1 -0
- package/dist/tet-components/p-ed09dcf0.entry.js +1 -0
- package/dist/tet-components/p-ed46a069.entry.js +1 -0
- package/dist/tet-components/p-eda15c93.entry.js +1 -0
- package/dist/tet-components/{p-a07cada6.entry.js → p-eeb9d7f5.entry.js} +1 -1
- package/dist/tet-components/p-f262aa6f.entry.js +1 -0
- package/dist/tet-components/p-f6d5af93.entry.js +1 -0
- package/dist/tet-components/p-f704e170.entry.js +1 -0
- package/dist/tet-components/p-f86ab4d3.entry.js +1 -0
- package/dist/tet-components/p-fcaa909d.entry.js +1 -0
- package/dist/tet-components/p-fd1d7955.entry.js +1 -0
- 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-7a04bcd7.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-b2b384d2.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
package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js
CHANGED
|
@@ -6,31 +6,6 @@ import { FULL_SERVICE_UNIT_PRICE_EUROS, REMOTE_SERVICE_UNIT_PRICE_EUROS, FULL_SE
|
|
|
6
6
|
*/
|
|
7
7
|
export class TetB2bServiceCalculator {
|
|
8
8
|
constructor() {
|
|
9
|
-
this.calculateServiceUnitTotalPrice = (unitCount) => {
|
|
10
|
-
let price;
|
|
11
|
-
if (this.withItAdmin) {
|
|
12
|
-
price = FULL_SERVICE_WITH_IT_ADMIN_UNIT_PRICE_EUROS;
|
|
13
|
-
}
|
|
14
|
-
else if (this.withInPersonServiceSupport) {
|
|
15
|
-
price = FULL_SERVICE_UNIT_PRICE_EUROS;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
price = REMOTE_SERVICE_UNIT_PRICE_EUROS;
|
|
19
|
-
}
|
|
20
|
-
return unitCount * price;
|
|
21
|
-
};
|
|
22
|
-
this.handleWithItAdminValueChange = ({ detail }) => {
|
|
23
|
-
if (detail.checked) {
|
|
24
|
-
this.withInPersonServiceSupport = true;
|
|
25
|
-
}
|
|
26
|
-
this.withItAdmin = detail.checked;
|
|
27
|
-
};
|
|
28
|
-
this.handleInPersonServiceSupportValueChange = ({ detail }) => {
|
|
29
|
-
if (!detail.checked) {
|
|
30
|
-
this.withItAdmin = false;
|
|
31
|
-
}
|
|
32
|
-
this.withInPersonServiceSupport = detail.checked;
|
|
33
|
-
};
|
|
34
9
|
this.language = 'lv';
|
|
35
10
|
this.totalPrice = 0;
|
|
36
11
|
this.withItAdmin = false;
|
|
@@ -50,6 +25,31 @@ export class TetB2bServiceCalculator {
|
|
|
50
25
|
componentDidLoad() {
|
|
51
26
|
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
52
27
|
}
|
|
28
|
+
calculateServiceUnitTotalPrice = (unitCount) => {
|
|
29
|
+
let price;
|
|
30
|
+
if (this.withItAdmin) {
|
|
31
|
+
price = FULL_SERVICE_WITH_IT_ADMIN_UNIT_PRICE_EUROS;
|
|
32
|
+
}
|
|
33
|
+
else if (this.withInPersonServiceSupport) {
|
|
34
|
+
price = FULL_SERVICE_UNIT_PRICE_EUROS;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
price = REMOTE_SERVICE_UNIT_PRICE_EUROS;
|
|
38
|
+
}
|
|
39
|
+
return unitCount * price;
|
|
40
|
+
};
|
|
41
|
+
handleWithItAdminValueChange = ({ detail }) => {
|
|
42
|
+
if (detail.checked) {
|
|
43
|
+
this.withInPersonServiceSupport = true;
|
|
44
|
+
}
|
|
45
|
+
this.withItAdmin = detail.checked;
|
|
46
|
+
};
|
|
47
|
+
handleInPersonServiceSupportValueChange = ({ detail }) => {
|
|
48
|
+
if (!detail.checked) {
|
|
49
|
+
this.withItAdmin = false;
|
|
50
|
+
}
|
|
51
|
+
this.withInPersonServiceSupport = detail.checked;
|
|
52
|
+
};
|
|
53
53
|
render() {
|
|
54
54
|
return (h("section", { key: '60fafc2fba61052efe197138c26a62de044a1274', class: "container" }, h("div", { key: 'fc05c180f3e223c8d6f64819435268cb524267aa', class: "title-block" }, t('components-b2b-calculator-title')), h("div", { key: '29a7d8e18876f0847ee18ba9a9953e8f1c1191f5', class: "calculator-block" }, h("p", { key: 'dd0e5b877a1736545c597b0c5f8988f426f6237f', class: "slider-title" }, t('components-b2b-calculator-computer-count')), h("tet-range-slider", { key: '920ad471488bb8bf857f591a52e40854a82ebfad', class: "slider", size: "large", type: "primary", defaultValue: 75, maxValue: 100, withControls: false, withInput: false, dataPoints: [1, 20, 40, 60, 80, 100], displayDataPoints: [1, 20, 40, 60, 80, 100], lockToDataPoint: false }), h("div", { key: 'bd23c4adfb284c4878c78cb2f7b30da395d08cad', class: "control-container" }, h("div", { key: '268d66e7ecfa4e1dcb46d4d4e1902c9fb7e396ab', class: "control" }, h("tet-checkbox", { key: 'a6135c271dce622b647a1aa2c1c7e64916e9742e', class: "it-admin-checkbox", checked: this.withItAdmin, onCheck: this.handleWithItAdminValueChange }, t('components-b2b-calculator-it-admin-checkbox-label'))), h("div", { key: '5342b2489543a8ea96445904450d049c84818a8e', class: "control" }, h("tet-switch", { key: '1390fb492c1b021295b7f59e321ba135972398f4', class: "in-person-support-switch", checked: this.withInPersonServiceSupport, onCheck: this.handleInPersonServiceSupportValueChange }, t('components-b2b-calculator-in-person-support-switch-label')))), h("div", { key: '80d1534c9410f61c2891ad86a026025eb3ac0b6c', class: "monthly-payment-block" }, h("p", { key: 'ee48aeb873b308320a5c548772669d7807ab8ded', class: "title" }, t('components-b2b-calculator-potential-monthly-payment')), h("p", { key: 'd03f9e14f80c7dd33db7c6685a714aa33137bbbd' }, h("span", { key: '279633ea53692be5b6e5f9fe250575f131231369', class: "price" }, this.totalPrice), h("span", { key: 'e8ead6f10a1f7ad6336b6952922d37f3009327ba', class: "currency" }, t('components-euro-per-month')))))));
|
|
55
55
|
}
|
|
@@ -7,26 +7,6 @@ import { processTranslations, t } from "../../../services/translations/index";
|
|
|
7
7
|
*/
|
|
8
8
|
export class TetBusinessLines {
|
|
9
9
|
constructor() {
|
|
10
|
-
this.translate = (property) => {
|
|
11
|
-
var _a;
|
|
12
|
-
return (_a = property === null || property === void 0 ? void 0 : property[this.language]) !== null && _a !== void 0 ? _a : '';
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Renders the title and full address for the component.
|
|
16
|
-
*/
|
|
17
|
-
this.renderHeadings = () => {
|
|
18
|
-
var _a;
|
|
19
|
-
return (h("div", { class: "headings" }, h("h2", { class: "title" }, t('components-business-lines-title')), h("p", { class: "full-address" }, (_a = this.address) === null || _a === void 0 ? void 0 : _a.fullAddress)));
|
|
20
|
-
};
|
|
21
|
-
this.handleBusinessLineSelection = ({ url }) => {
|
|
22
|
-
if (!this.translate(url)) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
window.open(this.translate(url));
|
|
26
|
-
};
|
|
27
|
-
this.renderBusinessLineItem = (businessLine) => {
|
|
28
|
-
return (h("div", { class: "business-line-item", onClick: () => this.handleBusinessLineSelection(businessLine) }, h("div", { class: "name-container" }, h("tet-icon", { name: businessLine.iconName }), this.translate(businessLine.name)), h("tet-icon", { class: "chevron-icon", name: "chevron-right" })));
|
|
29
|
-
};
|
|
30
10
|
this.language = 'lv';
|
|
31
11
|
this.addressKey = undefined;
|
|
32
12
|
this.showHeadings = true;
|
|
@@ -36,6 +16,8 @@ export class TetBusinessLines {
|
|
|
36
16
|
onLanguageChange(language) {
|
|
37
17
|
processTranslations('tet-components', language).then(() => forceUpdate(this));
|
|
38
18
|
}
|
|
19
|
+
/** The event that is emitted when business line is selected. */
|
|
20
|
+
businessLineSelected;
|
|
39
21
|
async onAddressKeyChange() {
|
|
40
22
|
searchAddressByKey(String(this.addressKey)).then((response) => this.address = response);
|
|
41
23
|
}
|
|
@@ -44,9 +26,26 @@ export class TetBusinessLines {
|
|
|
44
26
|
businessLines().then((response) => this.businessLines = response);
|
|
45
27
|
searchAddressByKey(String(this.addressKey)).then((response) => this.address = response);
|
|
46
28
|
}
|
|
29
|
+
translate = (property) => {
|
|
30
|
+
return property?.[this.language] ?? '';
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Renders the title and full address for the component.
|
|
34
|
+
*/
|
|
35
|
+
renderHeadings = () => {
|
|
36
|
+
return (h("div", { class: "headings" }, h("h2", { class: "title" }, t('components-business-lines-title')), h("p", { class: "full-address" }, this.address?.fullAddress)));
|
|
37
|
+
};
|
|
38
|
+
handleBusinessLineSelection = ({ url }) => {
|
|
39
|
+
if (!this.translate(url)) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
window.open(this.translate(url));
|
|
43
|
+
};
|
|
44
|
+
renderBusinessLineItem = (businessLine) => {
|
|
45
|
+
return (h("div", { class: "business-line-item", onClick: () => this.handleBusinessLineSelection(businessLine) }, h("div", { class: "name-container" }, h("tet-icon", { name: businessLine.iconName }), this.translate(businessLine.name)), h("tet-icon", { class: "chevron-icon", name: "chevron-right" })));
|
|
46
|
+
};
|
|
47
47
|
render() {
|
|
48
|
-
|
|
49
|
-
return (h("div", { key: '97d449a59b86105e2470fffedf30d04d7805000d', class: "container" }, this.showHeadings && this.renderHeadings(), h("div", { key: '9ecbea6151d74f7dcae9d7ce86d57bb61ca5359d', class: "business-line-wrapper" }, (_a = this.businessLines) === null || _a === void 0 ? void 0 : _a.map(this.renderBusinessLineItem))));
|
|
48
|
+
return (h("div", { key: '97d449a59b86105e2470fffedf30d04d7805000d', class: "container" }, this.showHeadings && this.renderHeadings(), h("div", { key: '9ecbea6151d74f7dcae9d7ce86d57bb61ca5359d', class: "business-line-wrapper" }, this.businessLines?.map(this.renderBusinessLineItem))));
|
|
50
49
|
}
|
|
51
50
|
static get is() { return "tet-business-lines"; }
|
|
52
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,106 +7,6 @@ import { processTranslations, t } from "../../../services/translations/index";
|
|
|
7
7
|
import { CloudFieldGroup } from "./enums/CloudFieldGroup";
|
|
8
8
|
export class TetCloudConfigurator {
|
|
9
9
|
constructor() {
|
|
10
|
-
/** An intersection observer for checking if the `footerRef` is in viewport. */
|
|
11
|
-
this.footerObserver = new IntersectionObserver(([entry]) => {
|
|
12
|
-
this.isFloatingSummary = entry.intersectionRatio === 0;
|
|
13
|
-
});
|
|
14
|
-
/** The field configuration object to be fetched from the metastore. */
|
|
15
|
-
this.fields = null;
|
|
16
|
-
/** Handles the form tab changes
|
|
17
|
-
* @param event A custom event from the `tet-tab-header` component.
|
|
18
|
-
*/
|
|
19
|
-
this.onTabSelected = (event) => {
|
|
20
|
-
this.selectedTab = event.detail.new;
|
|
21
|
-
};
|
|
22
|
-
/** Handles the `expandable-list` state change. */
|
|
23
|
-
this.onExpandableListToggle = () => {
|
|
24
|
-
this.isListExpanded = !this.isListExpanded;
|
|
25
|
-
};
|
|
26
|
-
/** Handles the change of the summary period between hourly and monthly pricing.
|
|
27
|
-
* @param event A custom event from the `tet-radio` component.
|
|
28
|
-
*/
|
|
29
|
-
this.onSummaryPeriodChange = (event) => {
|
|
30
|
-
this.selectedPeriod = event.detail.value;
|
|
31
|
-
};
|
|
32
|
-
/** Handles the change of the ddos protection checkbox.
|
|
33
|
-
* @param event A custom event from the `tet-checkbox` component.
|
|
34
|
-
*/
|
|
35
|
-
this.onDdosProtectionEnabledCheck = (event) => {
|
|
36
|
-
const { checked } = event.detail;
|
|
37
|
-
this.formValues['ddos_protection_enabled'].value = checked ? 1 : 0;
|
|
38
|
-
this.setDefaultValue('bandwidth_capacity');
|
|
39
|
-
this.setDefaultValue('ddos_protection_bandwidth');
|
|
40
|
-
this.formValues = Object.assign({}, this.formValues);
|
|
41
|
-
};
|
|
42
|
-
/** Handles the value changes of all number inputs
|
|
43
|
-
* @param value The input value supplied by the `inputValueChanged` emmiters.
|
|
44
|
-
* @param fieldKey The `key` value from the @see CloudConfiguratorField object.
|
|
45
|
-
*/
|
|
46
|
-
this.onNumberValueChanged = (detail, fieldKey) => {
|
|
47
|
-
var _a;
|
|
48
|
-
const { min } = this.fields[fieldKey];
|
|
49
|
-
const formValue = this.formValues[fieldKey];
|
|
50
|
-
let currentValue = detail.value;
|
|
51
|
-
if (!detail.suffix) {
|
|
52
|
-
detail.suffix = getDefaultSuffix(fieldKey);
|
|
53
|
-
}
|
|
54
|
-
if (((_a = formValue === null || formValue === void 0 ? void 0 : formValue.suffix) === null || _a === void 0 ? void 0 : _a.value) !== detail.suffix.value) {
|
|
55
|
-
if (detail.suffix.value === 0) {
|
|
56
|
-
currentValue = 0;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
currentValue = min;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const prices = this.getPrices(fieldKey, currentValue, detail.suffix);
|
|
63
|
-
this.formValues[fieldKey] = Object.assign(Object.assign(Object.assign({}, formValue), { value: currentValue, suffix: detail.suffix }), prices);
|
|
64
|
-
this.formValues = Object.assign({}, this.formValues);
|
|
65
|
-
};
|
|
66
|
-
this.onFormSubmit = () => {
|
|
67
|
-
var _a;
|
|
68
|
-
const orderedFormValues = getOrderedFormValues(this.formValues);
|
|
69
|
-
const isDdosEnabled = (_a = this.formValues['ddos_protection_enabled']) === null || _a === void 0 ? void 0 : _a.value;
|
|
70
|
-
if (isDdosEnabled) {
|
|
71
|
-
delete orderedFormValues['bandwidth_capacity'];
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
delete orderedFormValues['ddos_protection_bandwidth'];
|
|
75
|
-
}
|
|
76
|
-
const data = { formValues: orderedFormValues, totals: this.getTotals() };
|
|
77
|
-
this.cloudCalculatorSubmit.emit(data);
|
|
78
|
-
};
|
|
79
|
-
/** Fetches the field configuration and the translations for the component. */
|
|
80
|
-
this.fetchData = async () => {
|
|
81
|
-
const promises = await Promise.all([cloudConfigurator(), processTranslations('cloud-calculator', this.language)]);
|
|
82
|
-
this.fields = promises[0];
|
|
83
|
-
this.isLoading = false;
|
|
84
|
-
};
|
|
85
|
-
/** Sets the default `formValues` for all `fields` keys. */
|
|
86
|
-
this.setDefaultValues = () => {
|
|
87
|
-
for (const fieldKey of Object.keys(this.fields)) {
|
|
88
|
-
this.setDefaultValue(fieldKey);
|
|
89
|
-
}
|
|
90
|
-
const orderedFormValues = getOrderedFormValues(this.formValues);
|
|
91
|
-
this.formValues = Object.assign({}, orderedFormValues);
|
|
92
|
-
const inputs = this.root.shadowRoot.querySelectorAll('tet-number-input');
|
|
93
|
-
inputs.forEach((input) => input.resetSuffix());
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Sets the default `formValue` for the `fieldKey` depending on the current `selectedTab` value.
|
|
97
|
-
* @param fieldKey The `key` value from the @see CloudConfiguratorField object.
|
|
98
|
-
*/
|
|
99
|
-
this.setDefaultValue = (fieldKey) => {
|
|
100
|
-
const field = this.fields[fieldKey];
|
|
101
|
-
const defaultValue = field.default[this.selectedTab] || field.min;
|
|
102
|
-
const defaultSuffix = getDefaultSuffix(field.key);
|
|
103
|
-
const prices = this.getPrices(field.key, defaultValue, defaultSuffix);
|
|
104
|
-
this.formValues[field.key] = Object.assign(Object.assign({ key: field.key, value: defaultValue, title: field.name['lv'], groupKey: field.group, groupName: t(groupKeyTranslationMap[field.group]) }, prices), { suffix: getDefaultSuffix(field.key) });
|
|
105
|
-
};
|
|
106
|
-
this.renderTitle = () => {
|
|
107
|
-
const subtitleKey = `components-cloud-configurator-${this.selectedTab}-subtitle`;
|
|
108
|
-
return (h(Fragment, null, h("p", { class: "content__subtitle" }, t(subtitleKey))));
|
|
109
|
-
};
|
|
110
10
|
this.language = 'lv';
|
|
111
11
|
this.containerSelector = '';
|
|
112
12
|
this.theme = 'light';
|
|
@@ -121,6 +21,18 @@ export class TetCloudConfigurator {
|
|
|
121
21
|
this.isListExpanded = false;
|
|
122
22
|
this.parentElement = undefined;
|
|
123
23
|
}
|
|
24
|
+
/** The root element of the component. */
|
|
25
|
+
root;
|
|
26
|
+
/** An intersection observer for checking if the `headerRef` is currently positioned as sticky. */
|
|
27
|
+
headerObserver;
|
|
28
|
+
/** An intersection observer for checking if the `footerRef` is in viewport. */
|
|
29
|
+
footerObserver = new IntersectionObserver(([entry]) => {
|
|
30
|
+
this.isFloatingSummary = entry.intersectionRatio === 0;
|
|
31
|
+
});
|
|
32
|
+
/** The field configuration object to be fetched from the metastore. */
|
|
33
|
+
fields = null;
|
|
34
|
+
/** The submit event of the form. */
|
|
35
|
+
cloudCalculatorSubmit;
|
|
124
36
|
async componentWillLoad() {
|
|
125
37
|
if (this.containerSelector) {
|
|
126
38
|
this.parentElement = document.querySelector(this.containerSelector);
|
|
@@ -166,6 +78,107 @@ export class TetCloudConfigurator {
|
|
|
166
78
|
await processTranslations('cloud-calculator', language);
|
|
167
79
|
forceUpdate(this);
|
|
168
80
|
}
|
|
81
|
+
/** Handles the form tab changes
|
|
82
|
+
* @param event A custom event from the `tet-tab-header` component.
|
|
83
|
+
*/
|
|
84
|
+
onTabSelected = (event) => {
|
|
85
|
+
this.selectedTab = event.detail.new;
|
|
86
|
+
};
|
|
87
|
+
/** Handles the `expandable-list` state change. */
|
|
88
|
+
onExpandableListToggle = () => {
|
|
89
|
+
this.isListExpanded = !this.isListExpanded;
|
|
90
|
+
};
|
|
91
|
+
/** Handles the change of the summary period between hourly and monthly pricing.
|
|
92
|
+
* @param event A custom event from the `tet-radio` component.
|
|
93
|
+
*/
|
|
94
|
+
onSummaryPeriodChange = (event) => {
|
|
95
|
+
this.selectedPeriod = event.detail.value;
|
|
96
|
+
};
|
|
97
|
+
/** Handles the change of the ddos protection checkbox.
|
|
98
|
+
* @param event A custom event from the `tet-checkbox` component.
|
|
99
|
+
*/
|
|
100
|
+
onDdosProtectionEnabledCheck = (event) => {
|
|
101
|
+
const { checked } = event.detail;
|
|
102
|
+
this.formValues['ddos_protection_enabled'].value = checked ? 1 : 0;
|
|
103
|
+
this.setDefaultValue('bandwidth_capacity');
|
|
104
|
+
this.setDefaultValue('ddos_protection_bandwidth');
|
|
105
|
+
this.formValues = { ...this.formValues };
|
|
106
|
+
};
|
|
107
|
+
/** Handles the value changes of all number inputs
|
|
108
|
+
* @param value The input value supplied by the `inputValueChanged` emmiters.
|
|
109
|
+
* @param fieldKey The `key` value from the @see CloudConfiguratorField object.
|
|
110
|
+
*/
|
|
111
|
+
onNumberValueChanged = (detail, fieldKey) => {
|
|
112
|
+
const { min } = this.fields[fieldKey];
|
|
113
|
+
const formValue = this.formValues[fieldKey];
|
|
114
|
+
let currentValue = detail.value;
|
|
115
|
+
if (!detail.suffix) {
|
|
116
|
+
detail.suffix = getDefaultSuffix(fieldKey);
|
|
117
|
+
}
|
|
118
|
+
if (formValue?.suffix?.value !== detail.suffix.value) {
|
|
119
|
+
if (detail.suffix.value === 0) {
|
|
120
|
+
currentValue = 0;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
currentValue = min;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
const prices = this.getPrices(fieldKey, currentValue, detail.suffix);
|
|
127
|
+
this.formValues[fieldKey] = {
|
|
128
|
+
...formValue,
|
|
129
|
+
value: currentValue,
|
|
130
|
+
suffix: detail.suffix,
|
|
131
|
+
...prices
|
|
132
|
+
};
|
|
133
|
+
this.formValues = { ...this.formValues };
|
|
134
|
+
};
|
|
135
|
+
onFormSubmit = () => {
|
|
136
|
+
const orderedFormValues = getOrderedFormValues(this.formValues);
|
|
137
|
+
const isDdosEnabled = this.formValues['ddos_protection_enabled']?.value;
|
|
138
|
+
if (isDdosEnabled) {
|
|
139
|
+
delete orderedFormValues['bandwidth_capacity'];
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
delete orderedFormValues['ddos_protection_bandwidth'];
|
|
143
|
+
}
|
|
144
|
+
const data = { formValues: orderedFormValues, totals: this.getTotals() };
|
|
145
|
+
this.cloudCalculatorSubmit.emit(data);
|
|
146
|
+
};
|
|
147
|
+
/** Fetches the field configuration and the translations for the component. */
|
|
148
|
+
fetchData = async () => {
|
|
149
|
+
const promises = await Promise.all([cloudConfigurator(), processTranslations('cloud-calculator', this.language)]);
|
|
150
|
+
this.fields = promises[0];
|
|
151
|
+
this.isLoading = false;
|
|
152
|
+
};
|
|
153
|
+
/** Sets the default `formValues` for all `fields` keys. */
|
|
154
|
+
setDefaultValues = () => {
|
|
155
|
+
for (const fieldKey of Object.keys(this.fields)) {
|
|
156
|
+
this.setDefaultValue(fieldKey);
|
|
157
|
+
}
|
|
158
|
+
const orderedFormValues = getOrderedFormValues(this.formValues);
|
|
159
|
+
this.formValues = { ...orderedFormValues };
|
|
160
|
+
const inputs = this.root.shadowRoot.querySelectorAll('tet-number-input');
|
|
161
|
+
inputs.forEach((input) => input.resetSuffix());
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Sets the default `formValue` for the `fieldKey` depending on the current `selectedTab` value.
|
|
165
|
+
* @param fieldKey The `key` value from the @see CloudConfiguratorField object.
|
|
166
|
+
*/
|
|
167
|
+
setDefaultValue = (fieldKey) => {
|
|
168
|
+
const field = this.fields[fieldKey];
|
|
169
|
+
const defaultValue = field.default[this.selectedTab] || field.min;
|
|
170
|
+
const defaultSuffix = getDefaultSuffix(field.key);
|
|
171
|
+
const prices = this.getPrices(field.key, defaultValue, defaultSuffix);
|
|
172
|
+
this.formValues[field.key] = {
|
|
173
|
+
key: field.key,
|
|
174
|
+
value: defaultValue,
|
|
175
|
+
title: field.name['lv'],
|
|
176
|
+
groupKey: field.group,
|
|
177
|
+
groupName: t(groupKeyTranslationMap[field.group]),
|
|
178
|
+
...prices,
|
|
179
|
+
suffix: getDefaultSuffix(field.key)
|
|
180
|
+
};
|
|
181
|
+
};
|
|
169
182
|
/**
|
|
170
183
|
* Gets a collection of `key` values from `fields` object containing the `group`.
|
|
171
184
|
* @param fieldGroup The `group` value from the @see CloudConfiguratorField object.
|
|
@@ -177,8 +190,7 @@ export class TetCloudConfigurator {
|
|
|
177
190
|
}
|
|
178
191
|
/** Gets the total calculated sum of selected values */
|
|
179
192
|
getTotals() {
|
|
180
|
-
|
|
181
|
-
const isDdosEnabled = !!((_a = this.formValues['ddos_protection_enabled']) === null || _a === void 0 ? void 0 : _a.value);
|
|
193
|
+
const isDdosEnabled = !!this.formValues['ddos_protection_enabled']?.value;
|
|
182
194
|
const totals = { hourly: 0, monthly: 0 };
|
|
183
195
|
for (const formValue of Object.values(this.formValues)) {
|
|
184
196
|
if (formValue.key === 'bandwidth_capacity' && isDdosEnabled) {
|
|
@@ -201,7 +213,7 @@ export class TetCloudConfigurator {
|
|
|
201
213
|
getPrices(fieldKey, value, suffix) {
|
|
202
214
|
const { priceHourly, priceMonthly } = this.fields[fieldKey];
|
|
203
215
|
let multiplier = 1;
|
|
204
|
-
if (suffix
|
|
216
|
+
if (suffix?.value) {
|
|
205
217
|
multiplier = suffix.value;
|
|
206
218
|
}
|
|
207
219
|
if (fieldKey === 'bandwidth_ip') {
|
|
@@ -219,13 +231,12 @@ export class TetCloudConfigurator {
|
|
|
219
231
|
* @param fieldKey The `key` value from the @see CloudConfiguratorField object.
|
|
220
232
|
*/
|
|
221
233
|
getMinValue(fieldKey) {
|
|
222
|
-
var _a;
|
|
223
234
|
const field = this.fields[fieldKey];
|
|
224
235
|
const formValue = this.formValues[fieldKey];
|
|
225
236
|
if (!field) {
|
|
226
237
|
return null;
|
|
227
238
|
}
|
|
228
|
-
if (
|
|
239
|
+
if (formValue?.suffix?.value === 0) {
|
|
229
240
|
return 0;
|
|
230
241
|
}
|
|
231
242
|
return field.min;
|
|
@@ -268,17 +279,20 @@ export class TetCloudConfigurator {
|
|
|
268
279
|
}
|
|
269
280
|
return field.description[this.language];
|
|
270
281
|
}
|
|
282
|
+
renderTitle = () => {
|
|
283
|
+
const subtitleKey = `components-cloud-configurator-${this.selectedTab}-subtitle`;
|
|
284
|
+
return (h(Fragment, null, h("p", { class: "content__subtitle" }, t(subtitleKey))));
|
|
285
|
+
};
|
|
271
286
|
/**
|
|
272
287
|
* Renders the number input using the `fields` configuration and the `formValues` objects.
|
|
273
288
|
* @param fieldKey The `key` value from the @see CloudConfiguratorField object.
|
|
274
289
|
* @param options An object containing additional display conditions not suppied by the `fields` configuration.
|
|
275
290
|
*/
|
|
276
291
|
renderNumberInput(fieldKey, options) {
|
|
277
|
-
|
|
278
|
-
if ((options === null || options === void 0 ? void 0 : options.hidden) === true) {
|
|
292
|
+
if (options?.hidden === true) {
|
|
279
293
|
return null;
|
|
280
294
|
}
|
|
281
|
-
return (h("div", { class: "form__input" }, h("tet-number-input", { min: this.getMinValue(fieldKey), max: this.getMaxValue(fieldKey), label: this.getLabel(fieldKey), "accessibility-label": this.getHelperText(fieldKey), "button-accessibility-label": getSuffixOptionTitle(fieldKey), helperText: this.getHelperText(fieldKey), value:
|
|
295
|
+
return (h("div", { class: "form__input" }, h("tet-number-input", { min: this.getMinValue(fieldKey), max: this.getMaxValue(fieldKey), label: this.getLabel(fieldKey), "accessibility-label": this.getHelperText(fieldKey), "button-accessibility-label": getSuffixOptionTitle(fieldKey), helperText: this.getHelperText(fieldKey), value: this.formValues[fieldKey]?.value, disabled: options?.disabled, suffixes: getSuffixes(fieldKey), onInputValueChanged: (event) => this.onNumberValueChanged(event.detail, fieldKey), selectOnFocus: this.selectOnFocus, theme: this.theme })));
|
|
282
296
|
}
|
|
283
297
|
/**
|
|
284
298
|
* Renders a row for the expandable list using the `fields` configuration and the `formValues` objects.
|
|
@@ -286,9 +300,8 @@ export class TetCloudConfigurator {
|
|
|
286
300
|
* @param options An object containing additional display conditions not suppied by the `fields` configuration.
|
|
287
301
|
*/
|
|
288
302
|
renderExpandableItem(fieldKey) {
|
|
289
|
-
var _a;
|
|
290
303
|
const field = this.fields[fieldKey];
|
|
291
|
-
return (h("div", { class: "expandable-item" }, h("div", { class: "expandable-item__description" }, h("div", { class: "expandable-item__title" }, field.name[this.language]), h("div", { class: "expandable-item__helper" }, field.description[this.language])), h("tet-stepper-input", { min: this.getMinValue(fieldKey), max: this.getMaxValue(fieldKey), step: 1, value:
|
|
304
|
+
return (h("div", { class: "expandable-item" }, h("div", { class: "expandable-item__description" }, h("div", { class: "expandable-item__title" }, field.name[this.language]), h("div", { class: "expandable-item__helper" }, field.description[this.language])), h("tet-stepper-input", { min: this.getMinValue(fieldKey), max: this.getMaxValue(fieldKey), step: 1, value: this.formValues[fieldKey]?.value, onInputValueChanged: (event) => this.onNumberValueChanged({ value: event.detail }, fieldKey), selectOnFocus: this.selectOnFocus, "accessibility-label": field.name[this.language], theme: this.theme })));
|
|
292
305
|
}
|
|
293
306
|
/** Renders the table for the `summary` part. */
|
|
294
307
|
renderSummaryTable() {
|
|
@@ -306,7 +319,6 @@ export class TetCloudConfigurator {
|
|
|
306
319
|
* @param suffix Display suffix value, if empty determined by the value stored in `formValues`.
|
|
307
320
|
*/
|
|
308
321
|
renderSummaryRow(groupKey, fieldFilter, suffix) {
|
|
309
|
-
var _a, _b;
|
|
310
322
|
let fieldKeys;
|
|
311
323
|
let titleTranslationKey = groupKeyTranslationMap[groupKey];
|
|
312
324
|
if (!fieldFilter) {
|
|
@@ -317,7 +329,7 @@ export class TetCloudConfigurator {
|
|
|
317
329
|
}
|
|
318
330
|
if (groupKey === CloudFieldGroup.BANDWIDTH) {
|
|
319
331
|
fieldKeys = fieldKeys.filter((fieldKey) => fieldKey !== 'ddos_protection_enabled');
|
|
320
|
-
if (
|
|
332
|
+
if (this.formValues['ddos_protection_enabled']?.value) {
|
|
321
333
|
fieldKeys = fieldKeys.filter((fieldKey) => fieldKey !== 'bandwidth_capacity');
|
|
322
334
|
titleTranslationKey = 'components-cloud-configurator-group-bandwidth-ddos';
|
|
323
335
|
}
|
|
@@ -341,8 +353,8 @@ export class TetCloudConfigurator {
|
|
|
341
353
|
cells.push(h("div", { class: "summary-table__header" }));
|
|
342
354
|
}
|
|
343
355
|
const displayName = this.getLabel(fieldKey);
|
|
344
|
-
const displaySuffix = suffix ||
|
|
345
|
-
cells.push(h("div", { class: "summary-table__label" }, !!displayName && h("span", null, `${displayName},`), h("span", null, `${formValue
|
|
356
|
+
const displaySuffix = suffix || formValue.suffix?.name;
|
|
357
|
+
cells.push(h("div", { class: "summary-table__label" }, !!displayName && h("span", null, `${displayName},`), h("span", null, `${formValue?.value}${displaySuffix}`)));
|
|
346
358
|
const isMonthly = this.selectedPeriod === CloudSummaryPeriod.MONTHLY;
|
|
347
359
|
const price = formValue[this.selectedPeriod] || 0;
|
|
348
360
|
const valueSuffix = isMonthly
|
|
@@ -367,7 +379,6 @@ export class TetCloudConfigurator {
|
|
|
367
379
|
const msLicenseKeys = this.getFieldKeysByGroup(CloudFieldGroup.MS_LICENSE);
|
|
368
380
|
const formValues = Object.values(this.formValues);
|
|
369
381
|
const summaryCount = formValues.reduce((total, current) => {
|
|
370
|
-
var _a;
|
|
371
382
|
if (cpuKeys.includes(current.key)) {
|
|
372
383
|
total.cpu += current.value;
|
|
373
384
|
}
|
|
@@ -375,7 +386,7 @@ export class TetCloudConfigurator {
|
|
|
375
386
|
total.ram += current.value;
|
|
376
387
|
}
|
|
377
388
|
else if (storageKeys.includes(current.key)) {
|
|
378
|
-
const multiplier =
|
|
389
|
+
const multiplier = current.suffix?.value || 1;
|
|
379
390
|
total.storage += current.value * multiplier;
|
|
380
391
|
}
|
|
381
392
|
return total;
|
|
@@ -400,17 +411,16 @@ export class TetCloudConfigurator {
|
|
|
400
411
|
return (h(Host, null, h("div", { class: "cloud-configurator" }, h("div", { class: "content" }, h("div", { class: "content__title" }, h("tet-placeholder", { width: "90%", height: "1.75rem", darkTheme: this.theme === 'dark' })), h("div", { class: "content__subtitle" }, h("tet-placeholder", { width: "100%", height: "1rem", darkTheme: this.theme === 'dark' })), h("div", { class: "form", part: "form" }, h("div", { class: "form__group" }, h("div", { class: "form__group-label" }, h("tet-placeholder", { width: "10rem", height: "1rem", darkTheme: this.theme === 'dark' })), h("div", { class: "form__input" }, h("tet-placeholder", { width: "100%", height: "2.875rem", darkTheme: this.theme === 'dark' })), h("div", { class: "form__input" }, h("tet-placeholder", { width: "100%", height: "2.875rem", darkTheme: this.theme === 'dark' }))), h("div", { class: "form__group" }, h("div", { class: "form__group-label" }, h("tet-placeholder", { width: "10rem", height: "1rem", darkTheme: this.theme === 'dark' })), h("div", { class: "form__input" }, h("tet-placeholder", { width: "100%", height: "2.875rem", darkTheme: this.theme === 'dark' })), h("div", { class: "form__input" })))), h("div", { class: "header", part: "header" }, h("div", { class: "inner-wrapper" }, h("tet-placeholder", { width: "25.5rem", height: "2.875rem", darkTheme: this.theme === 'dark' }))))));
|
|
401
412
|
}
|
|
402
413
|
render() {
|
|
403
|
-
var _a, _b, _c, _d;
|
|
404
414
|
if (this.isLoading) {
|
|
405
415
|
return this.renderPlaceholder();
|
|
406
416
|
}
|
|
407
417
|
processTranslations('cloud-configurator', this.language);
|
|
408
418
|
return (h(Host, null, h("div", { class: { 'cloud-configurator': true, [this.theme]: !!this.theme } }, h("div", { class: { header: true, [this.theme]: !!this.theme }, part: "header", ref: (el) => (this.headerRef = el) }, h("div", { class: "inner-wrapper" }, h("tet-tab-header", { class: "header__segment-switch", segmented: true, position: "center", defaultTab: "small", theme: this.theme, onTabSelected: this.onTabSelected }, h("button", { "data-name": CloudTabName.SMALL }, h("p", null, t('components-cloud-configurator-type-small'))), h("button", { "data-name": CloudTabName.AVERAGE }, h("p", null, t('components-cloud-configurator-type-average'))), h("button", { "data-name": CloudTabName.LARGE }, h("p", null, t('components-cloud-configurator-type-large'))), h("button", { "data-name": CloudTabName.INDIVIDUAL }, h("p", null, t('components-cloud-configurator-type-custom')))))), h("div", { class: "content", part: "content" }, this.renderTitle(), h("div", { class: "form", part: "form" }, h("div", { class: "form__group" }, h("h3", { class: "form__group-label" }, t('components-cloud-configurator-group-vcpu')), this.renderNumberInput('v_cpu_standard'), this.renderNumberInput('v_cpu_performance')), h("div", { class: "form__group" }, h("h3", { class: "form__group-label" }, t('components-cloud-configurator-group-vram')), this.renderNumberInput('v_ram'), h("div", { class: "form__input" })), h("div", { class: "form__group" }, h("h3", { class: "form__group-label" }, t('components-cloud-configurator-group-storage')), this.renderNumberInput('storage_bronze'), this.renderNumberInput('storage_silver'), this.renderNumberInput('storage_gold'), this.renderNumberInput('storage_platinum')), h("div", { class: "form__group" }, h("h3", { class: "form__group-label" }, t('components-cloud-configurator-group-extra-storage')), this.renderNumberInput('storage_backup'), this.renderNumberInput('storage_object')), h("div", { class: "form__group" }, h("h3", { class: "form__group-label" }, t('components-cloud-configurator-group-license')), this.renderNumberInput('license_windows'), this.renderNumberInput('license_veeam')), h("div", { class: "form__group" }, h("h3", { class: "form__group-label" }, t('components-cloud-configurator-group-ms-license')), h("div", { class: { 'expandable-list': true, 'expanded': this.isListExpanded } }, this.renderExpandableItem('sql_server_standard_core'), this.renderExpandableItem('win_rds'), this.renderExpandableItem('win_server_standard_core'), this.renderExpandableItem('win_server_dc_core'), this.renderExpandableItem('sql_server_standard'), this.renderExpandableItem('office_standard'), this.renderExpandableItem('office_professional_plus'), this.renderExpandableItem('cis_suite_standard_core'), this.renderExpandableItem('project_standard'), this.renderExpandableItem('sharepoint_server'), h("div", { class: "expandable-list__toggle-row" }, this.isListExpanded && (h(Fragment, null, h("button", { class: "expandable-list__toggle", onClick: this.onExpandableListToggle, tabIndex: 0 }, t('components-cloud-configurator-ms-license-collapse'), ' ', h("tet-icon", { name: "chevron-up", theme: this.theme })), h("div", { innerHTML: t('components-cloud-configurator-ms-license-full-list') }))), !this.isListExpanded && (h("button", { class: "expandable-list__toggle", onClick: this.onExpandableListToggle, tabIndex: 0 }, t('components-cloud-configurator-ms-license-expand'), ' ', h("tet-icon", { name: "chevron-down", theme: this.theme })))))), h("div", { class: "form__group" }, h("h3", { class: "form__group-label" }, t('components-cloud-configurator-group-bandwidth')), this.renderNumberInput('bandwidth_ip'), this.renderNumberInput('bandwidth_router'), this.renderNumberInput('bandwidth_capacity', {
|
|
409
419
|
disabled: true,
|
|
410
|
-
hidden: Boolean(
|
|
420
|
+
hidden: Boolean(this.formValues['ddos_protection_enabled']?.value)
|
|
411
421
|
}), this.renderNumberInput('ddos_protection_bandwidth', {
|
|
412
|
-
hidden: !Boolean(
|
|
413
|
-
}), h("div", { class: "form__input" }), h("div", { class: "form__checkbox" }, h("tet-checkbox", { label: this.getLabel('ddos_protection_enabled'), value:
|
|
422
|
+
hidden: !Boolean(this.formValues['ddos_protection_enabled']?.value)
|
|
423
|
+
}), h("div", { class: "form__input" }), h("div", { class: "form__checkbox" }, h("tet-checkbox", { label: this.getLabel('ddos_protection_enabled'), value: this.formValues['ddos_protection_enabled']?.value, checked: !!this.formValues['ddos_protection_enabled']?.value, onCheck: this.onDdosProtectionEnabledCheck, theme: this.theme }), h("p", { class: "form__checkbox-helper" }, this.getHelperText('ddos_protection_enabled'))))), h("div", { class: "summary", part: "summary" }, h("h2", { class: "summary__title" }, t('components-cloud-configurator-group-summary')), h("div", { class: "summary__toggle", role: "radiogroup" }, h("tet-radio", { name: "summary-period", value: CloudSummaryPeriod.MONTHLY, checked: this.selectedPeriod === CloudSummaryPeriod.MONTHLY, label: t('components-cloud-configurator-summary-period-monthly'), theme: this.theme, onCheck: this.onSummaryPeriodChange }), h("tet-radio", { name: "summary-period", value: CloudSummaryPeriod.HOURLY, checked: this.selectedPeriod === CloudSummaryPeriod.HOURLY, label: t('components-cloud-configurator-summary-period-hourly'), theme: this.theme, onCheck: this.onSummaryPeriodChange })), this.renderSummaryTable())), h("div", { class: { 'floating-summary': true, 'floating-summary--is-pinned': this.isFloatingSummary }, part: "floating-summary" }, this.renderFloatingSummary()), h("div", { part: "footer", class: "footer", ref: (el) => (this.footerRef = el) }, h("tet-button", { class: "footer__button", size: "large", type: "primary", theme: this.theme, onClick: this.onFormSubmit }, t('components-cloud-configurator-submit'))))));
|
|
414
424
|
}
|
|
415
425
|
static get is() { return "tet-cloud-configurator"; }
|
|
416
426
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,10 +10,6 @@ import { forceUpdate, h, Host } from "@stencil/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class TetMacdView {
|
|
12
12
|
constructor() {
|
|
13
|
-
/**
|
|
14
|
-
* Current MACD order types.
|
|
15
|
-
*/
|
|
16
|
-
this.currentMacdOrderTypes = [];
|
|
17
13
|
this.language = 'lv';
|
|
18
14
|
this.theme = Theme.LIGHT;
|
|
19
15
|
this.showErrorNotification = false;
|
|
@@ -32,11 +28,31 @@ export class TetMacdView {
|
|
|
32
28
|
this.ceaseFn = undefined;
|
|
33
29
|
this.modifyFn = undefined;
|
|
34
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* The reference to Modal Dialog.
|
|
33
|
+
*/
|
|
34
|
+
modalDialogEl;
|
|
35
|
+
/**
|
|
36
|
+
* The title of Modal Dialog.
|
|
37
|
+
*/
|
|
38
|
+
modalTitle;
|
|
39
|
+
/**
|
|
40
|
+
* The content of Modal Dialog.
|
|
41
|
+
*/
|
|
42
|
+
modalContent;
|
|
43
|
+
/**
|
|
44
|
+
* The Communication redirect url.
|
|
45
|
+
*/
|
|
46
|
+
communicationRedirectUrl;
|
|
47
|
+
/**
|
|
48
|
+
* Current MACD order types.
|
|
49
|
+
*/
|
|
50
|
+
currentMacdOrderTypes = [];
|
|
35
51
|
onLanguageChange(language) {
|
|
36
52
|
processTranslations('macd', language).then(() => forceUpdate(this));
|
|
37
53
|
}
|
|
38
54
|
async setAccessToken(accessToken) {
|
|
39
|
-
if (
|
|
55
|
+
if (accessToken?.length > 0) {
|
|
40
56
|
this.showLoader = true;
|
|
41
57
|
await this.loadMacdOrderTypes();
|
|
42
58
|
}
|
|
@@ -46,6 +62,22 @@ export class TetMacdView {
|
|
|
46
62
|
this.currentMacdOrderTypes = [...macdOrderTypes];
|
|
47
63
|
}
|
|
48
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* The event is emitted when the user click on MACD order type.
|
|
67
|
+
*/
|
|
68
|
+
selectedMacdOrderType;
|
|
69
|
+
/**
|
|
70
|
+
* The event is emitted when the user click on "Communicate" CTA.
|
|
71
|
+
*/
|
|
72
|
+
openCommunication;
|
|
73
|
+
/**
|
|
74
|
+
* The event is emitted when there are issues loading data from backend.
|
|
75
|
+
*/
|
|
76
|
+
errorLoading;
|
|
77
|
+
/**
|
|
78
|
+
* The event is emitted when User clicks on Modal Dialog action buttons.
|
|
79
|
+
*/
|
|
80
|
+
communicationDialogResponse;
|
|
49
81
|
async componentWillLoad() {
|
|
50
82
|
processTranslations('macd', this.language).then(() => forceUpdate(this));
|
|
51
83
|
if (this.hasMacdOrderTypes(this.macdOrderTypes)) {
|
|
@@ -54,8 +86,7 @@ export class TetMacdView {
|
|
|
54
86
|
}
|
|
55
87
|
}
|
|
56
88
|
async componentDidLoad() {
|
|
57
|
-
|
|
58
|
-
if (((_a = this.accessToken) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
89
|
+
if (this.accessToken?.length > 0) {
|
|
59
90
|
this.showLoader = true;
|
|
60
91
|
await this.loadMacdOrderTypes();
|
|
61
92
|
}
|
|
@@ -65,7 +96,7 @@ export class TetMacdView {
|
|
|
65
96
|
* optional can pass arg with macdOrderTypes that will be checked instead.
|
|
66
97
|
*/
|
|
67
98
|
hasMacdOrderTypes(macdOrderTypes) {
|
|
68
|
-
const arrayToCheck = macdOrderTypes
|
|
99
|
+
const arrayToCheck = macdOrderTypes ?? this.currentMacdOrderTypes;
|
|
69
100
|
return Array.isArray(arrayToCheck) && arrayToCheck.length > 0;
|
|
70
101
|
}
|
|
71
102
|
/**
|
|
@@ -219,12 +250,10 @@ export class TetMacdView {
|
|
|
219
250
|
* Renders Modal Dialog.
|
|
220
251
|
*/
|
|
221
252
|
renderDialog() {
|
|
222
|
-
|
|
223
|
-
const
|
|
224
|
-
const modalContent = (_b = (this.modalContent && this.modalContent.length > 0 && t(this.modalContent))) !== null && _b !== void 0 ? _b : undefined;
|
|
253
|
+
const modalTitle = (this.modalTitle && this.modalTitle.length > 0 && t(this.modalTitle)) ?? undefined;
|
|
254
|
+
const modalContent = (this.modalContent && this.modalContent.length > 0 && t(this.modalContent)) ?? undefined;
|
|
225
255
|
const submitFn = () => {
|
|
226
|
-
|
|
227
|
-
const redirectUrl = (_a = (this.communicationRedirectUrl && this.communicationRedirectUrl.length > 0 && t(this.communicationRedirectUrl))) !== null && _a !== void 0 ? _a : undefined;
|
|
256
|
+
const redirectUrl = (this.communicationRedirectUrl && this.communicationRedirectUrl.length > 0 && t(this.communicationRedirectUrl)) ?? undefined;
|
|
228
257
|
this.modalDialogEl.close();
|
|
229
258
|
this.communicationDialogResponse.emit({
|
|
230
259
|
choice: 'redirect-to-communication',
|
|
@@ -150,6 +150,8 @@ export class TetPriceView {
|
|
|
150
150
|
this.footerTextType = 'regular';
|
|
151
151
|
this.staticColors = true;
|
|
152
152
|
}
|
|
153
|
+
/** Host element */
|
|
154
|
+
hostElement;
|
|
153
155
|
render() {
|
|
154
156
|
const mainClasses = {
|
|
155
157
|
[this.theme]: true,
|
|
@@ -196,8 +198,8 @@ export class TetPriceView {
|
|
|
196
198
|
gap: COMPONENT_SIZES[this.size].gap,
|
|
197
199
|
}
|
|
198
200
|
};
|
|
199
|
-
const isCentsPrice =
|
|
200
|
-
return (h(Host, { key: '8e05f557e9b657da2c397f03ea0ccce84f5b938c' }, h("div", { key: 'ecb7c516269d213504dd668140d982dde3e634c3', class: mainClasses, style: styles.container }, h("div", { key: '529f75a1ea9e0ddb8a1f3a920988a9b848d6dd6c', class: "price-view__body" },
|
|
201
|
+
const isCentsPrice = this?.centsPrice && this?.centsPrice.length > 0;
|
|
202
|
+
return (h(Host, { key: '8e05f557e9b657da2c397f03ea0ccce84f5b938c' }, h("div", { key: 'ecb7c516269d213504dd668140d982dde3e634c3', class: mainClasses, style: styles.container }, h("div", { key: '529f75a1ea9e0ddb8a1f3a920988a9b848d6dd6c', class: "price-view__body" }, this?.headingText && (h("h3", { key: '0c3595779d5150a791b95762911e87bd108e7f06', class: "price-view__heading", style: styles.heading }, this.headingText)), h("div", { key: 'be33a2b4025fbb8a7a5c8bc6c078e62ed098ec95', class: "price-view__price", style: { fontFamily: this.font, gap: styles.price.gap } }, h("span", { key: 'c3726df516671ef511e9be1641250495dd5885e1', class: "price-view__euro", style: styles.euro }, this.euroPrice, !isMonthly && !isCentsPrice ? '€' : ''), h("div", { key: '7e07be30ba9c735debb4eff37d26d1bfa683960e', class: "price-view__cents-container" }, h("span", { key: '21425123b6d56f0e947ba50b0b8e3397972a4c09', class: "price-view__cents", style: styles.cents }, this?.centsPrice), this.priceType && (h("span", { key: '614e5634e902c22b3ace04150b4e1a52db76547a', class: "price-view__type", style: styles.priceType }, isMonthly ? '€/mēn.' : '', !isMonthly && isCentsPrice ? 'EUR' : '')))), this?.footerText && (h("p", { key: '93e7551ef0ae1c7cb63c029e4ebfb37d63a87d60', class: "price-view__footer", style: styles.footer }, this.footerText))))));
|
|
201
203
|
}
|
|
202
204
|
static get is() { return "tet-price-view"; }
|
|
203
205
|
static get encapsulation() { return "shadow"; }
|