@tet/tet-components 1.3.146-testing → 1.3.147-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.
Files changed (491) hide show
  1. package/dist/cjs/{address-5271d3aa.js → address-86670c33.js} +1 -1
  2. package/dist/cjs/{assets-e3bb045c.js → assets-44d8d688.js} +1 -1
  3. package/dist/cjs/{async-request-29b32d63.js → async-request-b7023cc7.js} +1 -1
  4. package/dist/cjs/{http-codes-2f72a8b2.js → http-codes-e46d4b01.js} +1 -1
  5. package/dist/cjs/{index-84ede372.js → index-457201e1.js} +1 -1
  6. package/dist/cjs/{index-f559cb2e.js → index-66913c99.js} +25 -37
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/{product-comparison-f784fb1b.js → product-comparison-902a580c.js} +1 -1
  9. package/dist/cjs/{tasks-af99ad61.js → tasks-108d373f.js} +2 -2
  10. package/dist/cjs/{tet-notification.cjs.entry.js → tet-accordion_2.cjs.entry.js} +132 -1
  11. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
  12. package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
  13. package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
  14. package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
  15. package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
  16. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/{tet-autocomplete_2.cjs.entry.js → tet-autocomplete.cjs.entry.js} +1 -66
  18. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +647 -0
  19. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +536 -0
  20. package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +4 -4
  21. package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
  22. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  23. package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
  24. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  25. package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
  26. package/dist/cjs/tet-business-lines.cjs.entry.js +5 -5
  27. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  28. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  29. package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
  30. package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-checkbox.cjs.entry.js +1 -1
  32. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
  33. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  34. package/dist/cjs/tet-colors.cjs.entry.js +5 -5
  35. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +4 -4
  36. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  37. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
  38. package/dist/cjs/tet-components.cjs.js +2 -2
  39. package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
  40. package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
  43. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  46. package/dist/cjs/tet-dropdown_2.cjs.entry.js +1 -1
  47. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  51. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  52. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  54. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  55. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  56. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  57. package/dist/cjs/tet-label.cjs.entry.js +3 -3
  58. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  59. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  60. package/dist/cjs/tet-loader.cjs.entry.js +1 -1
  61. package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
  62. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  63. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  64. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
  65. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +1 -1
  66. package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-radio.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-referral.cjs.entry.js +5 -5
  73. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  75. package/dist/cjs/tet-spinner.cjs.entry.js +71 -0
  76. package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
  77. package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
  78. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  79. package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
  80. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
  82. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
  84. package/dist/cjs/tet-text-list.cjs.entry.js +2 -2
  85. package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
  86. package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
  87. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  88. package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
  89. package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
  90. package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
  91. package/dist/cjs/{theme-wrapper-a5bbadf6.js → theme-wrapper-d753e207.js} +2 -2
  92. package/dist/cjs/{translations-ed68775f.js → translations-ed4a53af.js} +1 -1
  93. package/dist/collection/collection-manifest.json +1 -0
  94. package/dist/collection/components/advanced/cards/tet-b2b-compare-card/test/tet-b2b-compare-card.spec.js +0 -1
  95. package/dist/collection/components/advanced/cards/tet-b2b-compare-card/tet-b2b-compare-card.js +8 -8
  96. package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.css +7 -0
  97. package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.js +31 -7
  98. package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +1 -0
  99. package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +1 -0
  100. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.css +0 -2
  101. package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +24 -4
  102. package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +1 -0
  103. package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.css +15 -5
  104. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.css +4 -2
  105. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +27 -5
  106. package/dist/collection/components/views/tet-b2b-configurator/b2b-configurator.store.js +47 -0
  107. package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/test/tet-b2b-configurator-cart.spec.js +10 -1
  108. package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.css +54 -9
  109. package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.js +106 -8
  110. package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.css +472 -0
  111. package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.js +612 -0
  112. package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +1 -1
  113. package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +1 -1
  114. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  115. package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
  116. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  117. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  118. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  119. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  120. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  121. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  122. package/dist/collection/services/utils/minimum-duration-time.js +14 -0
  123. package/dist/components/index.js +3 -1
  124. package/dist/components/{p-d20591c6.js → p-025898a0.js} +2 -2
  125. package/dist/components/{p-4d7abf55.js → p-06b04108.js} +7 -7
  126. package/dist/components/{p-0da60e27.js → p-098f928f.js} +1 -1
  127. package/dist/components/{p-fec35773.js → p-0b4ce886.js} +3 -3
  128. package/dist/components/{p-6830b44d.js → p-0f3158fd.js} +2 -2
  129. package/dist/components/{p-aca28e71.js → p-14a1ad7c.js} +1 -1
  130. package/dist/components/{p-4d0a0afc.js → p-1b0c0aea.js} +1 -1
  131. package/dist/components/{p-5b46f625.js → p-228ba4f9.js} +10 -10
  132. package/dist/{esm/tet-b2b-compare-card.entry.js → components/p-23115de8.js} +68 -20
  133. package/dist/{esm/tet-b2b-check-out-form.entry.js → components/p-2f2d4140.js} +69 -16
  134. package/dist/components/{p-18778346.js → p-32c3255c.js} +14 -14
  135. package/dist/components/{p-a213c941.js → p-336624db.js} +1 -1
  136. package/dist/components/{p-b2d2b9f2.js → p-3d3f207f.js} +2 -2
  137. package/dist/components/{p-9da9a443.js → p-3f018e97.js} +2 -2
  138. package/dist/components/{p-0d9ded0d.js → p-42d49a8d.js} +3 -3
  139. package/dist/components/{p-52235a3c.js → p-43dea798.js} +3 -3
  140. package/dist/components/{p-db548ad6.js → p-44b155ba.js} +1 -1
  141. package/dist/components/{p-17b6782b.js → p-490802fa.js} +3 -3
  142. package/dist/components/{p-63b1a813.js → p-493ca52e.js} +4 -4
  143. package/dist/components/{p-eb98627a.js → p-4a2be378.js} +1 -1
  144. package/dist/components/{p-bdad9437.js → p-4cfcfa5a.js} +6 -6
  145. package/dist/components/{p-a0d406ca.js → p-4d00761a.js} +1 -1
  146. package/dist/components/{p-e6f6ae5e.js → p-4e9a8b9d.js} +1 -1
  147. package/dist/{esm/tet-business-navigation.entry.js → components/p-4f61f832.js} +35 -8
  148. package/dist/components/{p-37ed3ebb.js → p-599035b8.js} +1 -1
  149. package/dist/components/{p-d00de500.js → p-6e362176.js} +2 -2
  150. package/dist/components/{p-6834e2c1.js → p-6f878964.js} +1 -1
  151. package/dist/components/{p-a34ed479.js → p-70f9a32a.js} +9 -9
  152. package/dist/components/{p-b3266df2.js → p-720cfbf2.js} +7 -7
  153. package/dist/components/p-7529e18a.js +227 -0
  154. package/dist/components/{p-4108736e.js → p-77854406.js} +2 -2
  155. package/dist/components/{p-c606b690.js → p-8a2e0647.js} +3 -3
  156. package/dist/components/{p-8c1b81ba.js → p-8b00261c.js} +1 -1
  157. package/dist/components/{p-0245ca71.js → p-91092b49.js} +2 -2
  158. package/dist/components/{p-6aec415f.js → p-97051b94.js} +2 -2
  159. package/dist/components/{p-e735af9c.js → p-a57fdda9.js} +10 -10
  160. package/dist/components/{p-82036dec.js → p-a83a1d01.js} +1 -1
  161. package/dist/components/{p-547dbd72.js → p-a8f32207.js} +1 -1
  162. package/dist/components/{p-a81e545d.js → p-a92e8daf.js} +1 -1
  163. package/dist/components/{p-c15aec6f.js → p-ac89537a.js} +3 -3
  164. package/dist/components/{p-5c8c2d8d.js → p-b8a43772.js} +1 -1
  165. package/dist/components/{p-28849564.js → p-ba178081.js} +3 -3
  166. package/dist/components/{p-08cb8e8b.js → p-bada8e16.js} +10 -8
  167. package/dist/components/{p-27194279.js → p-bbd53b83.js} +1 -1
  168. package/dist/components/{p-88b42c67.js → p-bd781cf7.js} +1 -1
  169. package/dist/components/{p-d0c6b6c9.js → p-bfc609d4.js} +1 -1
  170. package/dist/components/{p-a394a313.js → p-c6ef3187.js} +1 -1
  171. package/dist/components/{p-144dffdc.js → p-cd24f10f.js} +1 -1
  172. package/dist/components/{p-00c91e96.js → p-cd4a2cb9.js} +2 -2
  173. package/dist/components/{p-fdeaa7ba.js → p-d155ec6d.js} +2 -2
  174. package/dist/components/{p-89f0a85b.js → p-d48604d9.js} +3 -3
  175. package/dist/{esm/tet-business-summary-card.entry.js → components/p-d4ff9edf.js} +66 -14
  176. package/dist/components/{p-c235588b.js → p-d82b3f16.js} +4 -4
  177. package/dist/components/{p-c7c49aad.js → p-dba52917.js} +1 -1
  178. package/dist/components/{p-290a7505.js → p-e34ea4b0.js} +7 -7
  179. package/dist/components/{p-63fff216.js → p-e6c5005f.js} +3 -3
  180. package/dist/components/{p-bd3b2f42.js → p-f8d21686.js} +1 -1
  181. package/dist/components/{p-489ae3a0.js → p-fd3516f1.js} +1 -1
  182. package/dist/components/tet-accordion.js +1 -1
  183. package/dist/components/tet-address-offers-filters-products.js +1 -1
  184. package/dist/components/tet-address-offers-filters.js +1 -1
  185. package/dist/components/tet-address-offers-view.js +25 -25
  186. package/dist/components/tet-address-offers.js +1 -1
  187. package/dist/components/tet-address-search.js +1 -1
  188. package/dist/components/tet-asset-addresses.js +13 -13
  189. package/dist/components/tet-asset-availability-addresses.js +1 -1
  190. package/dist/components/tet-autocomplete-dropdown.js +5 -5
  191. package/dist/components/tet-autocomplete.js +1 -1
  192. package/dist/components/tet-availability-contact-form.js +1 -1
  193. package/dist/components/tet-b2b-check-out-form.js +1 -207
  194. package/dist/components/tet-b2b-compare-card.js +1 -206
  195. package/dist/components/tet-b2b-configurator-cart.js +1 -167
  196. package/dist/components/tet-b2b-configurator.d.ts +11 -0
  197. package/dist/components/tet-b2b-configurator.js +661 -0
  198. package/dist/components/tet-b2b-service-calculator.js +9 -9
  199. package/dist/components/tet-banner-nav.js +3 -3
  200. package/dist/components/tet-bar-graph.js +1 -1
  201. package/dist/components/tet-border-radius.js +2 -2
  202. package/dist/components/tet-business-card.js +1 -1
  203. package/dist/components/tet-business-compare-card.js +3 -3
  204. package/dist/components/tet-business-lines.js +6 -6
  205. package/dist/components/tet-business-navigation.js +1 -103
  206. package/dist/components/tet-business-round-stepper.js +2 -2
  207. package/dist/components/tet-business-summary-card.js +1 -116
  208. package/dist/components/tet-button.js +1 -1
  209. package/dist/components/tet-card-list.js +1 -1
  210. package/dist/components/tet-carousel.js +4 -4
  211. package/dist/components/tet-checkbox.js +1 -1
  212. package/dist/components/tet-cloud-application-form-dialog.js +8 -8
  213. package/dist/components/tet-cloud-configurator.js +11 -11
  214. package/dist/components/tet-colors.js +5 -5
  215. package/dist/components/tet-compare-card-v2.js +10 -10
  216. package/dist/components/tet-compare-card.js +1 -1
  217. package/dist/components/tet-compare-cards-tab.js +16 -16
  218. package/dist/components/tet-compare-cards.js +1 -1
  219. package/dist/components/tet-contact-form.js +9 -9
  220. package/dist/components/tet-contact-info.js +1 -1
  221. package/dist/components/tet-container.js +1 -1
  222. package/dist/components/tet-customer-assets.js +8 -8
  223. package/dist/components/tet-datepicker-header.js +1 -1
  224. package/dist/components/tet-datepicker-month-view.js +1 -1
  225. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  226. package/dist/components/tet-datepicker-year-view.js +1 -1
  227. package/dist/components/tet-datepicker.js +6 -6
  228. package/dist/components/tet-dialog.js +1 -1
  229. package/dist/components/tet-dropdown.js +1 -1
  230. package/dist/components/tet-dynamic-card.js +4 -4
  231. package/dist/components/tet-expandable-input.js +3 -3
  232. package/dist/components/tet-expansion-panel.js +1 -1
  233. package/dist/components/tet-filter.js +4 -4
  234. package/dist/components/tet-font-weight.js +2 -2
  235. package/dist/components/tet-fonts.js +2 -2
  236. package/dist/components/tet-grid.js +2 -2
  237. package/dist/components/tet-icon.js +1 -1
  238. package/dist/components/tet-inline-message.js +2 -2
  239. package/dist/components/tet-input.js +1 -1
  240. package/dist/components/tet-label.js +3 -3
  241. package/dist/components/tet-layout.js +2 -2
  242. package/dist/components/tet-link.js +2 -2
  243. package/dist/components/tet-loader.js +1 -1
  244. package/dist/components/tet-macd-view.js +11 -11
  245. package/dist/components/tet-menu-mobile.js +2 -2
  246. package/dist/components/tet-menu.js +2 -2
  247. package/dist/components/tet-multi-step-dialog.js +5 -5
  248. package/dist/components/tet-navigation-mobile.js +2 -2
  249. package/dist/components/tet-news-card-list.js +4 -4
  250. package/dist/components/tet-notification.js +1 -1
  251. package/dist/components/tet-number-input.js +1 -1
  252. package/dist/components/tet-placeholder.js +1 -1
  253. package/dist/components/tet-price-view.js +1 -1
  254. package/dist/components/tet-radio.js +1 -1
  255. package/dist/components/tet-range-slider.js +1 -1
  256. package/dist/components/tet-referral.js +7 -7
  257. package/dist/components/tet-round-stepper.js +2 -2
  258. package/dist/components/tet-selection-list.js +1 -1
  259. package/dist/components/tet-spacing.js +2 -2
  260. package/dist/components/tet-spinner.js +1 -1
  261. package/dist/components/tet-stepper-input.js +1 -1
  262. package/dist/components/tet-stepper-v2.js +1 -1
  263. package/dist/components/tet-stepper-v3.js +1 -1
  264. package/dist/components/tet-stepper.js +1 -1
  265. package/dist/components/tet-switch.js +1 -1
  266. package/dist/components/tet-tab-content.js +1 -1
  267. package/dist/components/tet-tab-header.js +1 -1
  268. package/dist/components/tet-table.js +3 -3
  269. package/dist/components/tet-tag-group.js +1 -1
  270. package/dist/components/tet-tag.js +1 -1
  271. package/dist/components/tet-text-list.js +1 -1
  272. package/dist/components/tet-textarea.js +1 -1
  273. package/dist/components/tet-thank-you-view-v2.js +5 -5
  274. package/dist/components/tet-thank-you-view-v3.js +5 -5
  275. package/dist/components/tet-thank-you-view.js +4 -4
  276. package/dist/components/tet-tooltip.js +1 -1
  277. package/dist/components/tet-tv-gift-block.js +1 -1
  278. package/dist/components/tet-tv-gift-list.js +2 -2
  279. package/dist/esm/{address-979a9993.js → address-b0117ba0.js} +1 -1
  280. package/dist/esm/{assets-b971f105.js → assets-37a5c8c3.js} +1 -1
  281. package/dist/esm/{async-request-6675e5f5.js → async-request-cf9b4a3e.js} +1 -1
  282. package/dist/esm/{http-codes-7faa9f6e.js → http-codes-81b59da4.js} +1 -1
  283. package/dist/esm/{index-7f1e2a22.js → index-ce62f11b.js} +25 -37
  284. package/dist/esm/{index-1bf36cb9.js → index-d502e34e.js} +1 -1
  285. package/dist/esm/loader.js +3 -3
  286. package/dist/esm/{product-comparison-830e2764.js → product-comparison-14cff1f8.js} +1 -1
  287. package/dist/esm/{tasks-3dfcc330.js → tasks-23eba012.js} +2 -2
  288. package/dist/esm/{tet-notification.entry.js → tet-accordion_2.entry.js} +132 -2
  289. package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
  290. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  291. package/dist/esm/tet-address-offers_4.entry.js +7 -7
  292. package/dist/esm/tet-address-search.entry.js +4 -4
  293. package/dist/esm/tet-asset-addresses.entry.js +3 -3
  294. package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
  295. package/dist/esm/{tet-autocomplete_2.entry.js → tet-autocomplete.entry.js} +2 -66
  296. package/dist/esm/tet-b2b-check-out-form_5.entry.js +639 -0
  297. package/dist/esm/tet-b2b-configurator.entry.js +532 -0
  298. package/dist/esm/tet-b2b-service-calculator.entry.js +4 -4
  299. package/dist/esm/tet-banner-nav.entry.js +3 -3
  300. package/dist/esm/tet-bar-graph.entry.js +1 -1
  301. package/dist/esm/tet-border-radius.entry.js +2 -2
  302. package/dist/esm/tet-business-card.entry.js +1 -1
  303. package/dist/esm/tet-business-compare-card.entry.js +1 -1
  304. package/dist/esm/tet-business-lines.entry.js +5 -5
  305. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  306. package/dist/esm/tet-button.entry.js +1 -1
  307. package/dist/esm/tet-card-list.entry.js +1 -1
  308. package/dist/esm/tet-carousel.entry.js +3 -3
  309. package/dist/esm/tet-checkbox.entry.js +1 -1
  310. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  311. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  312. package/dist/esm/tet-colors.entry.js +5 -5
  313. package/dist/esm/tet-compare-card-v2.entry.js +4 -4
  314. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  315. package/dist/esm/tet-compare-cards_2.entry.js +3 -3
  316. package/dist/esm/tet-components.js +3 -3
  317. package/dist/esm/tet-contact-form.entry.js +5 -5
  318. package/dist/esm/tet-contact-info.entry.js +1 -1
  319. package/dist/esm/tet-container_2.entry.js +1 -1
  320. package/dist/esm/tet-customer-assets.entry.js +3 -3
  321. package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
  322. package/dist/esm/tet-datepicker.entry.js +1 -1
  323. package/dist/esm/tet-dialog.entry.js +3 -3
  324. package/dist/esm/tet-dropdown_2.entry.js +1 -1
  325. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  326. package/dist/esm/tet-expandable-input.entry.js +1 -1
  327. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  328. package/dist/esm/tet-filter.entry.js +1 -1
  329. package/dist/esm/tet-font-weight.entry.js +2 -2
  330. package/dist/esm/tet-fonts.entry.js +2 -2
  331. package/dist/esm/tet-grid.entry.js +2 -2
  332. package/dist/esm/tet-icon.entry.js +2 -2
  333. package/dist/esm/tet-inline-message.entry.js +1 -1
  334. package/dist/esm/tet-input.entry.js +3 -3
  335. package/dist/esm/tet-label.entry.js +3 -3
  336. package/dist/esm/tet-layout.entry.js +2 -2
  337. package/dist/esm/tet-link.entry.js +2 -2
  338. package/dist/esm/tet-loader.entry.js +1 -1
  339. package/dist/esm/tet-macd-view.entry.js +6 -6
  340. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  341. package/dist/esm/tet-menu.entry.js +1 -1
  342. package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
  343. package/dist/esm/tet-navigation-mobile.entry.js +1 -1
  344. package/dist/esm/tet-news-card-list.entry.js +1 -1
  345. package/dist/esm/tet-number-input.entry.js +1 -1
  346. package/dist/esm/tet-placeholder.entry.js +1 -1
  347. package/dist/esm/tet-price-view.entry.js +1 -1
  348. package/dist/esm/tet-radio.entry.js +1 -1
  349. package/dist/esm/tet-range-slider.entry.js +1 -1
  350. package/dist/esm/tet-referral.entry.js +5 -5
  351. package/dist/esm/tet-round-stepper.entry.js +1 -1
  352. package/dist/esm/tet-spacing.entry.js +2 -2
  353. package/dist/esm/tet-spinner.entry.js +67 -0
  354. package/dist/esm/tet-stepper-input.entry.js +3 -3
  355. package/dist/esm/tet-stepper-v2.entry.js +1 -1
  356. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  357. package/dist/esm/tet-stepper.entry.js +1 -1
  358. package/dist/esm/tet-switch.entry.js +1 -1
  359. package/dist/esm/tet-tab-header.entry.js +1 -1
  360. package/dist/esm/tet-table.entry.js +1 -1
  361. package/dist/esm/tet-tag_2.entry.js +3 -3
  362. package/dist/esm/tet-text-list.entry.js +2 -2
  363. package/dist/esm/tet-textarea.entry.js +1 -1
  364. package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
  365. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  366. package/dist/esm/tet-thank-you-view.entry.js +1 -1
  367. package/dist/esm/tet-tv-gift-block.entry.js +1 -1
  368. package/dist/esm/tet-tv-gift-list.entry.js +1 -1
  369. package/dist/esm/{theme-wrapper-6e6b2089.js → theme-wrapper-bf063190.js} +2 -2
  370. package/dist/esm/{translations-eff34607.js → translations-4ce15979.js} +1 -1
  371. package/dist/tet-components/{p-cf7d5c84.js → p-010882b8.js} +1 -1
  372. package/dist/tet-components/{p-1ff6c573.entry.js → p-04765347.entry.js} +1 -1
  373. package/dist/tet-components/{p-e3b987d7.entry.js → p-05591687.entry.js} +1 -1
  374. package/dist/tet-components/{p-597e234a.entry.js → p-077a4872.entry.js} +1 -1
  375. package/dist/tet-components/{p-38c3b247.entry.js → p-0a739d1f.entry.js} +1 -1
  376. package/dist/tet-components/{p-37259e51.entry.js → p-0ae6c1b7.entry.js} +1 -1
  377. package/dist/tet-components/{p-c1c74500.entry.js → p-0aee10de.entry.js} +1 -1
  378. package/dist/tet-components/{p-4838a00a.entry.js → p-0f300f1d.entry.js} +1 -1
  379. package/dist/tet-components/{p-73e8e847.entry.js → p-11752ce4.entry.js} +1 -1
  380. package/dist/tet-components/{p-1460a670.entry.js → p-11a3576a.entry.js} +1 -1
  381. package/dist/tet-components/{p-8b455701.entry.js → p-15fbf2b6.entry.js} +1 -1
  382. package/dist/tet-components/{p-a15886aa.entry.js → p-18eac4d3.entry.js} +1 -1
  383. package/dist/tet-components/{p-4e3c6172.entry.js → p-1a8a60ac.entry.js} +1 -1
  384. package/dist/tet-components/{p-643c2378.entry.js → p-1b7f7d06.entry.js} +1 -1
  385. package/dist/tet-components/p-1d14c865.js +2 -0
  386. package/dist/tet-components/{p-6e8f1b37.entry.js → p-22367e6f.entry.js} +1 -1
  387. package/dist/tet-components/{p-7f6ac0d6.entry.js → p-2adad8f4.entry.js} +1 -1
  388. package/dist/tet-components/{p-de142575.js → p-34a97f00.js} +1 -1
  389. package/dist/tet-components/p-3a00d80a.entry.js +1 -0
  390. package/dist/tet-components/p-3b1c9893.entry.js +1 -0
  391. package/dist/tet-components/p-3b960cde.entry.js +1 -0
  392. package/dist/tet-components/{p-cb7e189e.entry.js → p-40d2ecdd.entry.js} +1 -1
  393. package/dist/tet-components/{p-4efb7ee4.entry.js → p-42bbb1fd.entry.js} +1 -1
  394. package/dist/tet-components/{p-bb6387c6.entry.js → p-439e1a05.entry.js} +1 -1
  395. package/dist/tet-components/{p-27b66648.entry.js → p-43b3c120.entry.js} +1 -1
  396. package/dist/tet-components/{p-1ac2736c.entry.js → p-4a45150f.entry.js} +1 -1
  397. package/dist/tet-components/{p-bc16c07b.js → p-4e747f8a.js} +1 -1
  398. package/dist/tet-components/{p-0121cef5.entry.js → p-4f5bbb05.entry.js} +1 -1
  399. package/dist/tet-components/{p-94c3c4ec.entry.js → p-52676a14.entry.js} +1 -1
  400. package/dist/tet-components/{p-65a928aa.entry.js → p-5281b49f.entry.js} +1 -1
  401. package/dist/tet-components/{p-9c274191.entry.js → p-5555ed28.entry.js} +1 -1
  402. package/dist/tet-components/{p-1ecc7145.entry.js → p-5569fd56.entry.js} +1 -1
  403. package/dist/tet-components/{p-48ed1dbc.entry.js → p-5b37d6df.entry.js} +1 -1
  404. package/dist/tet-components/{p-4fd91299.entry.js → p-5cae618b.entry.js} +1 -1
  405. package/dist/tet-components/{p-6782340f.entry.js → p-5fea2b04.entry.js} +1 -1
  406. package/dist/tet-components/{p-557685b2.entry.js → p-67682546.entry.js} +1 -1
  407. package/dist/tet-components/{p-bdce1210.entry.js → p-689d4564.entry.js} +1 -1
  408. package/dist/tet-components/{p-11e8f3aa.entry.js → p-6abee25a.entry.js} +1 -1
  409. package/dist/tet-components/{p-c82c7f32.entry.js → p-6c792889.entry.js} +1 -1
  410. package/dist/tet-components/{p-7dea8123.entry.js → p-6ca27e1a.entry.js} +1 -1
  411. package/dist/tet-components/{p-8fd47633.entry.js → p-70355190.entry.js} +1 -1
  412. package/dist/tet-components/{p-2a3448bc.entry.js → p-78bbb6e3.entry.js} +1 -1
  413. package/dist/tet-components/{p-decd45f3.entry.js → p-7d17a025.entry.js} +1 -1
  414. package/dist/tet-components/{p-476001d6.entry.js → p-7f98b631.entry.js} +1 -1
  415. package/dist/tet-components/{p-e62d7082.entry.js → p-7ff924cf.entry.js} +1 -1
  416. package/dist/tet-components/{p-3239abed.entry.js → p-8155dda2.entry.js} +1 -1
  417. package/dist/tet-components/{p-f1ee7e86.entry.js → p-82edd1e6.entry.js} +1 -1
  418. package/dist/tet-components/{p-c634602c.entry.js → p-8304cf14.entry.js} +1 -1
  419. package/dist/tet-components/{p-7f00f463.entry.js → p-86737b5a.entry.js} +1 -1
  420. package/dist/tet-components/{p-98d6a381.entry.js → p-89536ef7.entry.js} +1 -1
  421. package/dist/tet-components/{p-6c69e565.entry.js → p-8b8e658d.entry.js} +1 -1
  422. package/dist/tet-components/p-8b9f2ed6.js +1 -0
  423. package/dist/tet-components/{p-9bfcf2cc.entry.js → p-8cb12265.entry.js} +1 -1
  424. package/dist/tet-components/{p-5ef2b795.entry.js → p-92a2d052.entry.js} +1 -1
  425. package/dist/tet-components/{p-1ddb9e3c.entry.js → p-93986d28.entry.js} +1 -1
  426. package/dist/tet-components/{p-e263ecdf.js → p-9506192e.js} +1 -1
  427. package/dist/tet-components/{p-6e7a5d73.entry.js → p-95a6a903.entry.js} +1 -1
  428. package/dist/tet-components/{p-d4603ec3.entry.js → p-9727e33f.entry.js} +1 -1
  429. package/dist/tet-components/{p-469f4991.entry.js → p-9758afd7.entry.js} +1 -1
  430. package/dist/tet-components/{p-79255c00.entry.js → p-98277c90.entry.js} +1 -1
  431. package/dist/tet-components/{p-a9649e33.entry.js → p-99f0818d.entry.js} +1 -1
  432. package/dist/tet-components/{p-910087e6.entry.js → p-a700fd9b.entry.js} +1 -1
  433. package/dist/tet-components/p-a8c59d94.entry.js +1 -0
  434. package/dist/tet-components/{p-77372984.js → p-aba811f3.js} +1 -1
  435. package/dist/tet-components/{p-00695447.entry.js → p-aecc7b6b.entry.js} +1 -1
  436. package/dist/tet-components/{p-b989c3e1.entry.js → p-b1ae50a9.entry.js} +1 -1
  437. package/dist/tet-components/{p-c1294aa0.entry.js → p-b2bb8175.entry.js} +1 -1
  438. package/dist/tet-components/{p-941d8b49.entry.js → p-b3a1dca1.entry.js} +1 -1
  439. package/dist/tet-components/{p-56460d2d.entry.js → p-b719a3d5.entry.js} +1 -1
  440. package/dist/tet-components/{p-b1f31660.entry.js → p-bba3faa1.entry.js} +1 -1
  441. package/dist/tet-components/{p-bd8a0449.entry.js → p-bbf2c3a7.entry.js} +1 -1
  442. package/dist/tet-components/p-bc4a4c7f.entry.js +1 -0
  443. package/dist/tet-components/{p-265ac4ba.entry.js → p-c2566627.entry.js} +1 -1
  444. package/dist/tet-components/{p-f476f61c.entry.js → p-c6e26879.entry.js} +1 -1
  445. package/dist/tet-components/{p-d025efa2.entry.js → p-c773ef18.entry.js} +1 -1
  446. package/dist/tet-components/{p-d123c385.entry.js → p-cb3d6437.entry.js} +1 -1
  447. package/dist/tet-components/{p-57f2ce1a.entry.js → p-cb6a8b58.entry.js} +1 -1
  448. package/dist/tet-components/{p-59db86cf.entry.js → p-ce8db103.entry.js} +1 -1
  449. package/dist/tet-components/{p-3ca29117.entry.js → p-d8372f91.entry.js} +1 -1
  450. package/dist/tet-components/{p-992f7033.entry.js → p-de7cecdc.entry.js} +1 -1
  451. package/dist/tet-components/{p-8c964cca.js → p-e4275fa3.js} +1 -1
  452. package/dist/tet-components/{p-d4d704e4.entry.js → p-e4f006df.entry.js} +1 -1
  453. package/dist/tet-components/{p-31746283.entry.js → p-e73d1919.entry.js} +1 -1
  454. package/dist/tet-components/{p-dcbe09b5.js → p-ec9cfda2.js} +1 -1
  455. package/dist/tet-components/{p-2f029068.entry.js → p-ed23ebf6.entry.js} +1 -1
  456. package/dist/tet-components/{p-eeb72714.entry.js → p-f64d7088.entry.js} +1 -1
  457. package/dist/tet-components/{p-f7b3eab0.entry.js → p-f6e1d42e.entry.js} +1 -1
  458. package/dist/tet-components/{p-837b0ee6.entry.js → p-faaba6b7.entry.js} +1 -1
  459. package/dist/tet-components/p-fad2fe5e.js +1 -0
  460. package/dist/tet-components/{p-5d321447.entry.js → p-ffd0d2f9.entry.js} +1 -1
  461. package/dist/tet-components/tet-components.css +1 -1
  462. package/dist/tet-components/tet-components.esm.js +1 -1
  463. package/dist/types/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.d.ts +4 -2
  464. package/dist/types/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.d.ts +2 -1
  465. package/dist/types/components/simple/structural/tet-accordion/tet-accordion.d.ts +5 -0
  466. package/dist/types/components/views/tet-b2b-configurator/b2b-configurator.store.d.ts +22 -0
  467. package/dist/types/components.d.ts +100 -4
  468. package/dist/types/services/api/interfaces/property.interface.d.ts +2 -2
  469. package/dist/types/services/api/services/b2b-configurator/b2b-configurator.d.ts +4 -4
  470. package/dist/types/services/utils/minimum-duration-time.d.ts +9 -0
  471. package/package.json +1 -1
  472. package/dist/cjs/tet-accordion.cjs.entry.js +0 -136
  473. package/dist/cjs/tet-b2b-check-out-form.cjs.entry.js +0 -164
  474. package/dist/cjs/tet-b2b-compare-card.cjs.entry.js +0 -164
  475. package/dist/cjs/tet-b2b-configurator-cart.cjs.entry.js +0 -129
  476. package/dist/cjs/tet-business-navigation.cjs.entry.js +0 -82
  477. package/dist/cjs/tet-business-summary-card.cjs.entry.js +0 -77
  478. package/dist/esm/tet-accordion.entry.js +0 -132
  479. package/dist/esm/tet-b2b-configurator-cart.entry.js +0 -125
  480. package/dist/tet-components/p-05fc6443.entry.js +0 -1
  481. package/dist/tet-components/p-1ec7f341.js +0 -2
  482. package/dist/tet-components/p-319c29e9.entry.js +0 -1
  483. package/dist/tet-components/p-47618056.entry.js +0 -1
  484. package/dist/tet-components/p-4eb386f5.entry.js +0 -1
  485. package/dist/tet-components/p-62419a1f.entry.js +0 -1
  486. package/dist/tet-components/p-a9499bbb.entry.js +0 -1
  487. package/dist/tet-components/p-b2b384d2.js +0 -1
  488. package/dist/tet-components/p-d0d39e88.entry.js +0 -1
  489. package/dist/tet-components/p-d2919aae.js +0 -1
  490. package/dist/tet-components/p-ff5dba0e.entry.js +0 -1
  491. package/dist/types/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.d.ts +0 -67
@@ -17,10 +17,13 @@ export class TetAvailabilityContactForm {
17
17
  processTranslations('tet-components', language).then(() => forceUpdate(this));
18
18
  }
19
19
  /** Method to open check out form */
20
- /** Method to open check out form */
21
20
  async open() {
22
21
  await this.dialogElement.open();
23
22
  }
23
+ /** Method to close check out form */
24
+ async close() {
25
+ await this.dialogElement.close();
26
+ }
24
27
  /**
25
28
  * Lifecycle method.
26
29
  */
@@ -106,11 +109,11 @@ export class TetAvailabilityContactForm {
106
109
  }
107
110
  render() {
108
111
  const { theme } = this;
109
- return (h("tet-dialog", { key: '625a2ce1c2fea9989928bd28152bc82361c51415', class: "modal-form-card", headerTitle: t('components-b2b-check-out-form-header'), isOpen: true, theme: theme, closeOnOverlayClick: false, footerDisplay: "right", ref: (el) => {
112
+ return (h("tet-dialog", { key: 'afc8685139afa64194e3d2cb25b18d84ff3ad67a', class: "modal-form-card", headerTitle: t('components-b2b-check-out-form-header'), theme: theme, closeOnOverlayClick: false, footerDisplay: "right", ref: (el) => {
110
113
  this.dialogElement = el;
111
- } }, h("div", { key: '7d2835b974036f7ccd96b9023b65ca5b24f52c36', class: { 'modal-form-card-content': true, [`${theme}`]: true } }, h("div", { key: '2a4108f8754926f29b8a95bbee90b3b932bfb765', class: "modal-form-card-content-header" }, h("div", { key: '550a049b61a1a73da0a95abffff491999ae0bf2c', class: "icon-wrapper" }, h("tet-icon", { key: 'ff6f639a24995a781ff69cca5f002c3b9e6769dc', class: "icon", name: "tc-company-1" })), h("span", { key: '7360e74b5031ebb57a38150436464bd2f173b552', class: "modal-form-card-content-header__title" }, t('components-b2b-check-out-form-title')), h("span", { key: '5533826b9de6c733e5e5db6e3b071991ea9836de', class: "modal-form-card-content-header__description" }, t('components-b2b-check-out-form-description'))), h("div", { key: 'ce30106966dab043ed0c413b598cd997847386c1', class: "modal-form-card-content-accordion-wrapper" }, h("slot", { key: '13f88a4745947b4d4080cb0200efce79097693f6', name: 'cart' })), h("form", { key: '31cab120f2affbeb55aa87d7096f2be77b2b2e72', id: "checkOutForm", class: "modal-form-card-form", ref: (ref) => (this.checkOutForm = ref) }, h("div", { key: '373f441cd918c771e5ed69d45d78bb6b0b7e93f4', class: "modal-form-card-input__row" }, this.renderInput('companyRegNr', t('components-b2b-check-out-form-company-registration-number-input-label'), '40000000001'), this.renderInput('companyName', t('components-b2b-check-out-form-company-name-input-label'))), this.renderInput('address', t('components-b2b-check-out-form-address-input-label'), t('components-b2b-check-out-form-address-input-placeholder')), this.renderInput('nameSurname', t('components-b2b-check-out-form-name-input-label')), h("div", { key: '009164222b176cd5dc1ef5979066d3b172a403c8', class: "modal-form-card-input__row" }, this.renderInput('email', t('components-b2b-check-out-form-email-input-label'), 'contact@company.com'), this.renderInput('phoneNr', t('components-b2b-check-out-form-phone-number-input-label'), '123456789', true)), h("tet-checkbox", { key: 'd2dd9e4dda4ef46b7e7fa781433e710c9fff0305', class: "modal-form-card-content-checkbox", label: t('components-check-out-form-privacy-policy'), theme: theme }))), h("div", { key: '6998bb68a9093aa5d651e3c188628b4b2049e2f9', slot: "footer", class: "modal-form-card-footer" }, h("tet-button", { key: '79e85571651f2b9638d61c7b55d6da22a8c0409c', type: "secondary", size: "medium", theme: theme, onClick: () => {
114
+ } }, h("div", { key: 'eff2cd2ed86e20aef326bc30d38895bb277bd5e6', class: { 'modal-form-card-content': true, [`${theme}`]: true } }, h("div", { key: 'f5c323d4ad25b2b69fa63397b01e774f73c5f7e3', class: "modal-form-card-content-header" }, h("div", { key: '70a9baeec70a1ec1412765678fe82973c6728616', class: "icon-wrapper" }, h("tet-icon", { key: 'ba3c5485e259fc0fe399e462cef72aae4ae4b3ea', class: "icon", name: "tc-company-1" })), h("span", { key: '1be3f61365e4619725aa3c2673a2ac724c69dff5', class: "modal-form-card-content-header__title" }, t('components-b2b-check-out-form-title')), h("span", { key: '689ad9e4124e6974f60f9502fca4f1976f54fa7d', class: "modal-form-card-content-header__description" }, t('components-b2b-check-out-form-description'))), h("div", { key: 'bc9acd6b8d3ed737e772c33f261f66b533cef3a0', class: "modal-form-card-content-accordion-wrapper" }, h("slot", { key: '2512b5fdc525049a96e1f8de62408248df261c9f', name: 'cart' })), h("form", { key: '42c51bb0f454b6510f1dba1e82aef3ea1535b4c2', id: "checkOutForm", class: "modal-form-card-form", ref: (ref) => (this.checkOutForm = ref) }, h("div", { key: '4cfcdf10b7e5eba5af9b753373c146f94418944b', class: "modal-form-card-input__row" }, this.renderInput('companyRegNr', t('components-b2b-check-out-form-company-registration-number-input-label'), '40000000001'), this.renderInput('companyName', t('components-b2b-check-out-form-company-name-input-label'))), this.renderInput('address', t('components-b2b-check-out-form-address-input-label'), t('components-b2b-check-out-form-address-input-placeholder')), this.renderInput('nameSurname', t('components-b2b-check-out-form-name-input-label')), h("div", { key: '60788e463001f8f8721b1e72e286808857a20ea8', class: "modal-form-card-input__row" }, this.renderInput('email', t('components-b2b-check-out-form-email-input-label'), 'contact@company.com'), this.renderInput('phoneNr', t('components-b2b-check-out-form-phone-number-input-label'), '123456789', true)), h("tet-checkbox", { key: 'c1d00090ed1e971e91b957467fd543678b3074d8', class: "modal-form-card-content-checkbox", label: t('components-check-out-form-privacy-policy'), theme: theme }))), h("div", { key: '42dce382d71a25e5588b5b0c3caab5d6f9087c03', slot: "footer", class: "modal-form-card-footer" }, h("tet-button", { key: '93f57658be0b1b0a034cb5fb7321954babe72fbb', type: "secondary", size: "medium", theme: theme, onClick: () => {
112
115
  this.dialogElement.close();
113
- } }, t('components-b2b-check-out-form-close-button-label')), h("tet-button", { key: '21446b2cb81d26ac6fcea843af2e4a232913e9d6', type: "primary", size: "medium", theme: theme, onClick: () => this.handleSubmit() }, t('components-b2b-check-out-form-submit-button-label')))));
116
+ } }, t('components-b2b-check-out-form-close-button-label')), h("tet-button", { key: '6a09fbae279bfcc1b5aa9417bd7497e16ff25358', type: "primary", size: "medium", theme: theme, onClick: () => this.handleSubmit() }, t('components-b2b-check-out-form-submit-button-label')))));
114
117
  }
115
118
  static get is() { return "tet-b2b-check-out-form"; }
116
119
  static get encapsulation() { return "shadow"; }
@@ -199,6 +202,23 @@ export class TetAvailabilityContactForm {
199
202
  "text": "Method to open check out form",
200
203
  "tags": []
201
204
  }
205
+ },
206
+ "close": {
207
+ "complexType": {
208
+ "signature": "() => Promise<void>",
209
+ "parameters": [],
210
+ "references": {
211
+ "Promise": {
212
+ "location": "global",
213
+ "id": "global::Promise"
214
+ }
215
+ },
216
+ "return": "Promise<void>"
217
+ },
218
+ "docs": {
219
+ "text": "Method to close check out form",
220
+ "tags": []
221
+ }
202
222
  }
203
223
  };
204
224
  }
@@ -7113,6 +7113,7 @@
7113
7113
  --tc-text-black-permanent-dark: var(--tc-grey-minus-10-dark);
7114
7114
  --tc-text-blue-grey-dark: var(--tc-grey-50-dark);
7115
7115
  --tc-text-link-dark: var(--tc-blue-40-dark);
7116
+ --tc-text-inverse-primary-dark: var(--tc-grey-minus-10-dark);
7116
7117
  --tc-background-primary-dark: var(--tc-grey-00-dark);
7117
7118
  --tc-background-secondary-dark: var(--tc-grey-10-dark);
7118
7119
  --tc-background-tertiary-dark: var(--tc-grey-20-dark);
@@ -111,9 +111,9 @@
111
111
  display: flex;
112
112
  flex-direction: column;
113
113
  max-width: 20.5rem;
114
- width: max-content;
114
+ width: 100%;
115
115
  }
116
- @media screen and (max-width: 48rem) {
116
+ @media screen and (max-width: 63.9375rem) {
117
117
  .business-navigation {
118
118
  flex-direction: row;
119
119
  gap: 0.5rem;
@@ -145,7 +145,7 @@
145
145
  --tet-business-navigation-item-hover-background-color: var(--tc-menu-item-hover-dark);
146
146
  --tet-business-navigation-item-active-background-color: var(--tc-menu-item-pressed-dark);
147
147
  --tet-business-navigation-item-selected-background-color: var(--tc-layer-inverse-primary-dark);
148
- --tet-business-navigation-item-selected-item-color: var(--tc-text-inverse-primary-);
148
+ --tet-business-navigation-item-selected-item-color: var(--tc-text-inverse-primary-dark);
149
149
  --tet-business-navigation-item-selected-icon-color: var(--tc-layer-primary-dark);
150
150
  --tet-business-navigation-label-color: var(--tc-text-primary-dark);
151
151
  }
@@ -167,7 +167,17 @@
167
167
  background-color: var(--tet-business-navigation-item-background-color);
168
168
  cursor: pointer;
169
169
  }
170
- @media screen and (max-width: 48rem) {
170
+ @media screen and (max-width: 63.9375rem) {
171
+ .business-navigation-item:first-child {
172
+ margin-left: 1.5rem;
173
+ }
174
+ }
175
+ @media screen and (max-width: 63.9375rem) {
176
+ .business-navigation-item:last-child {
177
+ margin-right: 1.5rem;
178
+ }
179
+ }
180
+ @media screen and (max-width: 63.9375rem) {
171
181
  .business-navigation-item {
172
182
  display: inline-flex;
173
183
  padding: 0.375rem 0.75rem;
@@ -187,7 +197,7 @@
187
197
  --icon-size: 1.5rem;
188
198
  --icon-color: var(--tet-business-navigation-label-color);
189
199
  }
190
- @media screen and (max-width: 48rem) {
200
+ @media screen and (max-width: 63.9375rem) {
191
201
  .business-navigation-item__icon {
192
202
  --icon-size: 1.25rem;
193
203
  }
@@ -359,6 +359,8 @@
359
359
  * @prop --accordion-text-color: The color of the text.
360
360
  * @prop --accordion-border-bottom-width: The width of the bottom border of the accordion.
361
361
  * @prop --accordion-border-color: The color of the bottom border.
362
+ * @prop --accordion-header-font: Font of accordion header in tablet and larger resolutions
363
+ * @prop --accordion-header-mobile-font: Font of accordion header in mobile resolution
362
364
  */
363
365
  --accordion-animation-duration: 0.2s;
364
366
  --accordion-header-padding: 1.5rem 0;
@@ -371,6 +373,7 @@
371
373
  --accordion-break-point: 64rem;
372
374
  --accordion-outer-border: none;
373
375
  --accordion-header-font: 500 1.5rem/1.75rem Gilroy, Gilroy, Arial, sans-serif;
376
+ --accordion-header-mobile-font: 500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;
374
377
  --accordion-header-display: flex;
375
378
  }
376
379
 
@@ -403,11 +406,10 @@
403
406
  padding-bottom: var(--accordion-border-bottom-width);
404
407
  }
405
408
  .tet-accordion__header {
406
- font: 500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
409
+ font: var(--accordion-header-mobile-font);
407
410
  padding: var(--accordion-header-mobile-padding);
408
411
  cursor: pointer;
409
412
  display: var(--accordion-header-display);
410
- line-height: 1.5rem;
411
413
  width: 100%;
412
414
  border-radius: 0.125rem;
413
415
  }
@@ -31,6 +31,7 @@ export class TetAccordion {
31
31
  this.header = '';
32
32
  this.headerImageSrc = '';
33
33
  this.headerImageAlt = '';
34
+ this.indicatorDirection = 'down';
34
35
  this.withBorder = false;
35
36
  this.withAutoScroll = false;
36
37
  this.breakpoint = 'tablet';
@@ -108,21 +109,21 @@ export class TetAccordion {
108
109
  }
109
110
  }
110
111
  render() {
111
- return (h(Host, { key: '93af25b751c375647eb3673e7aab363b1bd7c972' }, h("div", { key: '782024544ebac81f5bd31eb6a500e53de1cafffa', class: {
112
+ return (h(Host, { key: 'ae49c29cf618a2c6fb2f639120ba55265e8777b3' }, h("div", { key: '1cbb0732250f9c0c66d43470092e43544ab021d3', class: {
112
113
  'tet-accordion': true,
113
114
  'tet-accordion--border': this.withBorder,
114
115
  [`${this.theme}-theme`]: true,
115
116
  [`tet-accordion--breakpoint-${this.breakpoint}`]: true,
116
117
  'transparent-bg': this.transparentBackground,
117
- } }, h("div", { key: '0451dbea3ef15894ac95bec86d96f013fd54a05c', class: { "tet-accordion__header": true, [this.theme]: true }, onClick: this.toggleOpenState, onKeyDown: this.toggleAccessibilityOpenState, tabIndex: 0 }, h("slot", { key: '6771b3db92f1530c2f781a938c7fff1bc171bdd5', name: "header" }, this.headerImageSrc && this.headerImageSrc !== '' && (h("img", { key: '305cbdcfa5d367be95940d3573e0a8613fe39d98', src: this.headerImageSrc, alt: this.headerImageAlt ? this.headerImageAlt : undefined, class: "tet-accordion__header-image" })), this.renderHeading(), h("tet-icon", { key: '52fdf914f99ac4975585063b18089de9bd55ca43', name: "chevron-down", class: {
118
+ } }, h("div", { key: '26c3058f903024a807a81c28ccd19c5ec20b6417', class: { "tet-accordion__header": true, [this.theme]: true }, onClick: this.toggleOpenState, onKeyDown: this.toggleAccessibilityOpenState, tabIndex: 0 }, h("slot", { key: 'f2a50389bbdde83c7a35222ac2354ac4d83c2371', name: "header" }, this.headerImageSrc && this.headerImageSrc !== '' && (h("img", { key: 'e91c42af9b23dc4d274a1748a1289ec3658f551b', src: this.headerImageSrc, alt: this.headerImageAlt ? this.headerImageAlt : undefined, class: "tet-accordion__header-image" })), this.renderHeading(), h("tet-icon", { key: 'ab1041abee91e902f3c878b9b26330d49adf30cb', name: `chevron-${this.indicatorDirection}`, class: {
118
119
  'tet-accordion__icon': true,
119
120
  'open': this.isOpen
120
- } }))), h("div", { key: '3c51960b4c4eadda218eb02eb0deb09edd5f97c9', ref: (element) => (this.contentWrapperElement = element), class: {
121
+ } }))), h("div", { key: '3add22727ab604975ef74d9b6277357664c651ad', ref: (element) => (this.contentWrapperElement = element), class: {
121
122
  'tet-accordion__content-wrapper': true,
122
123
  'visible': this.isOpen
123
- }, inert: !this.isOpen }, h("div", { key: 'dca02521e71fc5769b14c48e76758f2359121917', ref: (element) => (this.contentElement = element), class: {
124
+ }, inert: !this.isOpen }, h("div", { key: 'fd54ea034bd15207b58d7f67f07c58bc30b1bcbe', ref: (element) => (this.contentElement = element), class: {
124
125
  'tet-accordion__content': true
125
- } }, h("slot", { key: '9d400fbffaaea4a08b8d6da791267bf600542fa0' }))))));
126
+ } }, h("slot", { key: 'a8d9afde6505201a8f223c09fbbfdadb233d36ed' }))))));
126
127
  }
127
128
  static get is() { return "tet-accordion"; }
128
129
  static get encapsulation() { return "shadow"; }
@@ -228,6 +229,27 @@ export class TetAccordion {
228
229
  "reflect": false,
229
230
  "defaultValue": "''"
230
231
  },
232
+ "indicatorDirection": {
233
+ "type": "string",
234
+ "mutable": false,
235
+ "complexType": {
236
+ "original": "'up' | 'down'",
237
+ "resolved": "\"down\" | \"up\"",
238
+ "references": {}
239
+ },
240
+ "required": false,
241
+ "optional": false,
242
+ "docs": {
243
+ "tags": [{
244
+ "name": "default",
245
+ "text": "'down'"
246
+ }],
247
+ "text": "The direction of indicator icon"
248
+ },
249
+ "attribute": "indicator-direction",
250
+ "reflect": false,
251
+ "defaultValue": "'down'"
252
+ },
231
253
  "withBorder": {
232
254
  "type": "boolean",
233
255
  "mutable": false,
@@ -0,0 +1,47 @@
1
+ import { createStore } from "@stencil/store";
2
+ const { state, set, get } = createStore({
3
+ data: [],
4
+ cart: new Map(),
5
+ productDetails: new Map()
6
+ });
7
+ const initData = (data) => {
8
+ set('data', data);
9
+ const productDetails = new Map();
10
+ for (const category of data) {
11
+ for (const product of category.products) {
12
+ const { type: categoryType, name: categoryName, id: categoryId } = category;
13
+ const { name: { lv: name }, description: { lv: description }, amount, b2bConfiguratorProduct } = product;
14
+ productDetails.set(product.productCode, {
15
+ name,
16
+ description,
17
+ amount,
18
+ discountAmount: b2bConfiguratorProduct.discountAmount,
19
+ categoryType,
20
+ categoryName,
21
+ categoryId,
22
+ b2bConfiguratorProduct
23
+ });
24
+ }
25
+ }
26
+ set('productDetails', productDetails);
27
+ };
28
+ const addToCart = (product, count) => {
29
+ if (count < 0) {
30
+ return;
31
+ }
32
+ const newCart = new Map(state.cart);
33
+ newCart.set(product, count);
34
+ set('cart', newCart);
35
+ };
36
+ const removeFromCart = (product) => {
37
+ const newCart = new Map(state.cart);
38
+ newCart.delete(product);
39
+ set('cart', newCart);
40
+ };
41
+ const resetCart = () => {
42
+ set('cart', new Map());
43
+ };
44
+ const getCart = () => {
45
+ return Object.fromEntries(get('cart'));
46
+ };
47
+ export { state as b2bState, initData, addToCart, removeFromCart, resetCart, getCart };
@@ -1,6 +1,15 @@
1
1
  import { newSpecPage } from "@stencil/core/testing";
2
2
  import { TetB2bConfiguratorCart } from "../tet-b2b-configurator-cart";
3
3
  describe('tet-b2b-configurator-cart', () => {
4
+ beforeEach(() => {
5
+ const mockIntersectionObserver = jest.fn();
6
+ mockIntersectionObserver.mockReturnValue({
7
+ observe: () => null,
8
+ unobserve: () => null,
9
+ disconnect: () => null
10
+ });
11
+ global.IntersectionObserver = mockIntersectionObserver;
12
+ });
4
13
  it('renders', async () => {
5
14
  const page = await newSpecPage({
6
15
  components: [TetB2bConfiguratorCart],
@@ -16,7 +25,7 @@ describe('tet-b2b-configurator-cart', () => {
16
25
  isopen=""
17
26
  theme="light"
18
27
  transparentbackground=""
19
- withborder=""
28
+ indicatordirection="down"
20
29
  >
21
30
  <div class="cart__title--edit">
22
31
  components-b2b-cart-title
@@ -117,11 +117,13 @@
117
117
  --b2b-cart-block-details-color: var(--tc-layer-tertiary);
118
118
  --b2b-cart-summary-accent-color: var(--tc-yellow-20);
119
119
  --elevation-six-layer-1-color: rgba(12, 12, 14, 0.06);
120
+ --b2b-cart-sticky-box-shadow: 0 0 4px 0 rgba(12, 12, 14, 0.04), 0 -10px 15px 0 rgba(12, 12, 14, 0.12);
120
121
  }
121
122
  .light.checkout {
122
123
  --b2b-cart-background-color: var(--tc-layer-secondary);
123
124
  --b2b-cart-block-color: var(--tc-layer-tertiary);
124
125
  --b2b-cart-block-details-color: var(--tc-layer-quaternary);
126
+ --b2b-cart-box-shadow: none;
125
127
  }
126
128
 
127
129
  .dark {
@@ -134,11 +136,13 @@
134
136
  --b2b-cart-block-details-color: var(--tc-layer-tertiary-dark);
135
137
  --b2b-cart-summary-accent-color: var(--tc-grey-20-dark);
136
138
  --elevation-six-layer-1-color: rgba(12, 12, 14, 0.20);
139
+ --b2b-cart-sticky-box-shadow: 0 0 4px 0 rgba(12, 12, 14, 0.2), 0 -10px 15px 0 rgba(12, 12, 14, 0.33);
137
140
  }
138
141
  .dark.checkout {
139
142
  --b2b-cart-background-color: var(--tc-layer-secondary-dark);
140
143
  --b2b-cart-block-color: var(--tc-layer-tertiary-dark);
141
144
  --b2b-cart-block-details-color: var(--tc-layer-quaternary-dark);
145
+ --b2b-cart-box-shadow: none;
142
146
  }
143
147
 
144
148
  .cart {
@@ -151,17 +155,39 @@
151
155
  background: var(--b2b-cart-background-color);
152
156
  box-shadow: var(--b2b-cart-box-shadow);
153
157
  }
158
+ .cart--sticky {
159
+ --b2b-cart-box-shadow: var(--b2b-cart-sticky-box-shadow);
160
+ border-radius: 1rem 1rem 0 0;
161
+ }
154
162
  .cart__accordion {
155
163
  --accordion-border-radius: 1rem 1rem 0 0;
156
- --accordion-header-padding: 1rem;
164
+ --accordion-header-padding: 1rem 1.5rem;
157
165
  --accordion-header-mobile-padding: 1rem;
158
166
  --accordion-header-font: 600 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;
159
167
  }
160
- @media all and (min-width: 90rem) {
168
+ @media screen and (min-width: 48rem) {
169
+ .cart__accordion--closed {
170
+ --accordion-header-padding: 1rem 1.5rem 0.5rem 1.5rem;
171
+ }
172
+ }
173
+ @media screen and (min-width: 64rem) {
161
174
  .cart__accordion--edit {
162
175
  --accordion-header-display: none;
163
176
  }
164
177
  }
178
+ .cart__accordion--checkout {
179
+ --accordion-header-padding: 1rem;
180
+ }
181
+ @media screen and (min-width: 48rem) {
182
+ .cart__accordion--checkout {
183
+ --accordion-header-padding: 1rem 1.5rem;
184
+ }
185
+ }
186
+ @media screen and (min-width: 64rem) {
187
+ .cart__accordion--checkout {
188
+ --accordion-header-padding: 1.5rem;
189
+ }
190
+ }
165
191
  .cart__accordion--rounded {
166
192
  --accordion-border-radius: 1rem;
167
193
  }
@@ -171,7 +197,7 @@
171
197
  .cart__title--edit {
172
198
  display: none;
173
199
  }
174
- @media all and (min-width: 90rem) {
200
+ @media screen and (min-width: 64rem) {
175
201
  .cart__title--edit {
176
202
  display: block;
177
203
  padding: 1.5rem 1.5rem 1rem 1.5rem;
@@ -205,7 +231,7 @@
205
231
  border: 0.0625rem solid var(--b2b-cart-border-color);
206
232
  background-color: var(--b2b-cart-block-color);
207
233
  }
208
- @media all and (min-width: 48rem) {
234
+ @media screen and (min-width: 48rem) {
209
235
  .block {
210
236
  --accordion-header-padding: 1rem;
211
237
  --accordion-header-mobile-padding: 1rem;
@@ -232,15 +258,19 @@
232
258
  border-radius: 1.375rem;
233
259
  }
234
260
  .block__header-indicator {
261
+ display: flex;
262
+ gap: 0.25rem;
263
+ align-items: center;
235
264
  font: 400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
236
265
  }
237
- @media all and (min-width: 48rem) {
266
+ @media screen and (min-width: 48rem) {
238
267
  .block__header-indicator {
239
268
  font: 400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
240
269
  }
241
270
  }
242
271
  .block__header-icon {
243
272
  --icon-size: 1.25rem;
273
+ --icon-container-display: flex;
244
274
  }
245
275
 
246
276
  .empty-cart {
@@ -254,6 +284,7 @@
254
284
  }
255
285
  .empty-cart__title {
256
286
  font: 500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
287
+ text-align: center;
257
288
  }
258
289
  .empty-cart__description {
259
290
  color: var(--b2b-cart-text-color-secondary);
@@ -267,13 +298,24 @@
267
298
  border-color: var(--b2b-cart-border-color);
268
299
  border-top-style: solid;
269
300
  border-top-width: 0.0625rem;
270
- box-shadow: 0 -6px 12px 0 var(--elevation-six-layer-1-color);
271
301
  }
272
- @media all and (min-width: 48rem) {
302
+ @media screen and (min-width: 48rem) {
273
303
  .summary {
274
304
  padding: 1rem 1.5rem 1.5rem;
275
305
  }
276
306
  }
307
+ @media screen and (min-width: 64rem) {
308
+ .summary {
309
+ box-shadow: 0 -6px 12px 0 var(--elevation-six-layer-1-color);
310
+ }
311
+ }
312
+ @media screen and (min-width: 48rem) {
313
+ .summary--closed {
314
+ padding: 0 1.5rem 1rem 1.5rem;
315
+ border: none;
316
+ box-shadow: none;
317
+ }
318
+ }
277
319
  .summary__notification {
278
320
  margin-bottom: 1rem;
279
321
  }
@@ -297,17 +339,20 @@
297
339
  gap: 0.5rem;
298
340
  font: 500 1.125rem/1.75rem "Inter", "Gilroy, Arial, sans-serif";
299
341
  }
300
- @media all and (min-width: 48rem) {
342
+ @media screen and (min-width: 48rem) {
301
343
  .summary__monthly-payment {
302
344
  margin-bottom: 1.5rem;
303
345
  }
304
346
  }
305
- @media all and (min-width: 90rem) {
347
+ @media screen and (min-width: 64rem) {
306
348
  .summary__monthly-payment {
307
349
  margin-bottom: 1rem;
308
350
  font: 500 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif";
309
351
  }
310
352
  }
353
+ .summary__monthly-payment:last-child {
354
+ margin-bottom: 0;
355
+ }
311
356
  .summary__monthly-price {
312
357
  display: flex;
313
358
  flex-direction: column;
@@ -4,6 +4,21 @@ export class TetB2bConfiguratorCart {
4
4
  constructor() {
5
5
  /** @private The suffix for the price displayed - "€/mēn."). */
6
6
  this.priceSuffix = '€/mēn.';
7
+ this.addStickyClassConditionally = () => {
8
+ if (this.context === 'checkout') {
9
+ return;
10
+ }
11
+ const rect = this.hostElement.getBoundingClientRect();
12
+ const { bottom, top } = rect;
13
+ const isTopVisible = top < window.innerHeight && top;
14
+ const isBottomVisible = bottom < window.innerHeight && bottom;
15
+ if (isTopVisible && !isBottomVisible && !this.isDesktopResolution) {
16
+ this.cartEl.classList.add('cart--sticky');
17
+ }
18
+ else {
19
+ this.cartEl.classList.remove('cart--sticky');
20
+ }
21
+ };
7
22
  /**
8
23
  * Updates `primarySlotFilled` or `secondarySlotFilled` based on assigned slot elements.
9
24
  * @param e The slotchange event.
@@ -66,48 +81,87 @@ export class TetB2bConfiguratorCart {
66
81
  this.secondaryBlockEl = el;
67
82
  }
68
83
  };
69
- return (h("div", { hidden: !slotFilled, class: "block__wrapper" }, h("tet-accordion", { ref: refCallback, key: block.type, class: "block", isOpen: isPrimary ? this.isPrimaryBlockOpen : this.isSecondaryBlockOpen, header: block.name, theme: this.theme, transparentBackground: true }, h("div", { slot: "header", class: "block__header" }, h("div", { class: "block__header-row" }, block.name, " ", h("span", { 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 ? t('components-b2b-cart-accordion-less') : t('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 }))));
84
+ 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" }, block.name, " ", h("span", { 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 ? t('components-b2b-cart-accordion-less') : t('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 }))));
70
85
  });
71
86
  return content;
72
87
  };
73
88
  /** Renders the cart summary, including notifications and financial details. */
74
89
  this.renderSummary = () => {
75
90
  const { summarySavings, summaryAmount, hasPrimaryNotification, hasSecondaryNotification } = this.data;
76
- return (h("div", { class: "summary" }, hasPrimaryNotification && (h("tet-notification", { class: "summary__notification", type: "warning", headerTitle: t('components-b2b-cart-primary-notification-title'), content: t('components-b2b-cart-primary-notification-description'), allowClose: false, theme: this.theme, icon: null })), hasSecondaryNotification && (h("tet-notification", { class: "summary__notification", type: "neutral", headerTitle: t('components-b2b-cart-secondary-notification-title'), content: t('components-b2b-cart-secondary-notification-description'), allowClose: false, theme: this.theme })), this.isAccordionOpen && (h("div", { class: "summary__savings" }, t('components-b2b-cart-savings-title'), h("span", { class: "summary__savings-amount" }, " ", `${summarySavings} ${this.priceSuffix}`))), h("div", { class: "summary__monthly-payment" }, t('components-b2b-cart-monthly-payment-title'), h("div", { class: "summary__monthly-price" }, `${summaryAmount} ${this.priceSuffix}`, h("span", { class: "summary__monthly-price-disclosure" }, ' ', t('components-b2b-cart-monthly-payment-disclosure'), ' '))), h("slot", { name: "cta" })));
91
+ return (h("div", { class: { 'summary': true, 'summary--closed': !this.isAccordionOpen } }, hasPrimaryNotification && (h("tet-notification", { class: "summary__notification", type: "warning", headerTitle: t('components-b2b-cart-primary-notification-title'), content: t('components-b2b-cart-primary-notification-description'), allowClose: false, theme: this.theme, icon: null })), hasSecondaryNotification && (h("tet-notification", { class: "summary__notification", type: "neutral", headerTitle: t('components-b2b-cart-secondary-notification-title'), content: t('components-b2b-cart-secondary-notification-description'), allowClose: false, theme: this.theme })), this.isAccordionOpen && (h("div", { class: "summary__savings" }, t('components-b2b-cart-savings-title'), h("span", { class: "summary__savings-amount" }, " ", `${summarySavings} ${this.priceSuffix}`))), h("div", { class: "summary__monthly-payment" }, t('components-b2b-cart-monthly-payment-title'), h("div", { class: "summary__monthly-price" }, `${summaryAmount} ${this.priceSuffix}`, h("span", { class: "summary__monthly-price-disclosure" }, ' ', t('components-b2b-cart-monthly-payment-disclosure'), ' '))), this.isAccordionOpen && h("slot", { name: "cta" })));
77
92
  };
78
93
  this.theme = 'light';
79
94
  this.data = undefined;
80
95
  this.isCartEmpty = true;
81
96
  this.context = 'edit';
82
97
  this.isDesktopResolution = true;
83
- this.isAccordionOpen = this.context === 'edit';
84
- this.isPrimaryBlockOpen = true;
85
- this.isSecondaryBlockOpen = true;
98
+ this.isAccordionOpen = this.isDesktopResolution && this.context === 'edit';
99
+ this.isPrimaryBlockOpen = this.isDesktopResolution;
100
+ this.isSecondaryBlockOpen = this.isDesktopResolution;
86
101
  this.primarySlotFilled = false;
87
102
  this.secondarySlotFilled = false;
88
103
  }
89
104
  /**
90
105
  * Imperatively opens the main accordion when transitioning to desktop in 'edit' context.
106
+ * Adds/removes sticky class on `isDesktopResolution` prop change
91
107
  * @param isDesktop The new resolution state.
92
108
  */
93
109
  openAccordionOnResolutionChange(isDesktop) {
94
110
  if (isDesktop && this.accordionEl && this.context === 'edit') {
95
111
  this.accordionEl.open();
96
112
  }
113
+ this.addStickyClassConditionally();
114
+ }
115
+ /**
116
+ * Adds/removes sticky class on `isCartEmpty` prop change
117
+ */
118
+ checkStickyClassOnCartEmptyChange() {
119
+ this.addStickyClassConditionally();
97
120
  }
98
121
  componentWillLoad() {
99
122
  processTranslations('tet-components', 'lv').then(() => forceUpdate(this));
100
123
  }
124
+ /**
125
+ * Initiates observer to check when cart sticks to bottom
126
+ */
127
+ async componentDidLoad() {
128
+ this.cartObserver = new IntersectionObserver(this.addStickyClassConditionally, {
129
+ rootMargin: `0px 0px 0px 0px`,
130
+ root: document,
131
+ threshold: 1
132
+ });
133
+ this.cartObserver.observe(this.hostElement);
134
+ }
135
+ /** Clean up listeners/observers */
136
+ disconnectedCallback() {
137
+ if (this.cartObserver) {
138
+ this.cartObserver.disconnect();
139
+ }
140
+ }
141
+ /**
142
+ * Changes block accordion state to open|close
143
+ * @param category
144
+ * @param state
145
+ */
146
+ async changeBlockState(category, state) {
147
+ if (category === 'primary' && this.primaryBlockEl) {
148
+ state == 'open' ? this.primaryBlockEl.open() : this.primaryBlockEl.close();
149
+ }
150
+ else if (category === 'secondary' && this.secondaryBlockEl) {
151
+ state == 'open' ? this.secondaryBlockEl.open() : this.secondaryBlockEl.close();
152
+ }
153
+ }
101
154
  render() {
102
155
  const cartTitle = t('components-b2b-cart-title');
103
156
  const isEditMode = this.context === 'edit';
104
157
  const isCheckoutMode = this.context === 'checkout';
105
158
  const showSummary = !this.isCartEmpty && (isEditMode || (isCheckoutMode && this.isAccordionOpen));
106
- return (h(Host, { key: '93e2d13d305c2d6ddfec3105ed0775ae3c057d92' }, h("div", { key: '563e968522292ef43b859361647545bbc375e30a', class: { cart: true, [`${this.theme}`]: true, [`${this.context}`]: true } }, h("tet-accordion", { key: 'dabb165e6dcffcbc3258929c559010ad9c8ac1d9', ref: (el) => (this.accordionEl = el), class: {
159
+ return (h(Host, { key: 'a333bbd252bd1a19b305719b1a3492e8784f9dfa' }, h("div", { key: '590c1d0f2cb7b087157d9c2b6062ad8b6cfec802', ref: (el) => (this.cartEl = el), class: { cart: true, [`${this.theme}`]: true, [`${this.context}`]: true } }, h("tet-accordion", { key: 'b05385da27e63518ace873ebcfb33b30ca2a68d4', ref: (el) => (this.accordionEl = el), class: {
107
160
  'cart__accordion': true,
108
161
  [`cart__accordion--${this.context}`]: true,
109
- 'cart__accordion--rounded': this.isCartEmpty || (isCheckoutMode && !this.isAccordionOpen)
110
- }, isOpen: this.isAccordionOpen, onOpenChanged: this.handleAccordionChanged, header: cartTitle, withBorder: true, theme: this.theme, transparentBackground: true }, h("div", { key: '10fd1d316bea9ae9e1251f8605e18759cdf77c4f', class: `cart__title--${this.context}` }, cartTitle), h("div", { key: '1df2c1b5dc98399bd194f4782ad0ec22074eb2a4', class: "cart__content" }, this.isCartEmpty ? this.renderEmptyContent() : [this.renderContent()])), showSummary && this.renderSummary())));
162
+ 'cart__accordion--rounded': this.isCartEmpty || (isCheckoutMode && !this.isAccordionOpen),
163
+ 'cart__accordion--closed': !this.isAccordionOpen
164
+ }, isOpen: this.isAccordionOpen, onOpenChanged: this.handleAccordionChanged, header: cartTitle, theme: this.theme, transparentBackground: true, indicatorDirection: this.isDesktopResolution || isCheckoutMode ? 'down' : 'up' }, h("div", { key: 'a11c1ad7cd5b45f66af099d63378a50015733861', class: `cart__title--${this.context}` }, cartTitle), h("div", { key: '1155f8d5386e55e82e1c46e4179266c6f7e28c3e', class: "cart__content" }, this.isCartEmpty ? this.renderEmptyContent() : [this.renderContent()])), showSummary && this.renderSummary())));
111
165
  }
112
166
  static get is() { return "tet-b2b-configurator-cart"; }
113
167
  static get encapsulation() { return "shadow"; }
@@ -230,10 +284,54 @@ export class TetB2bConfiguratorCart {
230
284
  "secondarySlotFilled": {}
231
285
  };
232
286
  }
287
+ static get methods() {
288
+ return {
289
+ "changeBlockState": {
290
+ "complexType": {
291
+ "signature": "(category: CategoryType, state: 'open' | 'close') => Promise<void>",
292
+ "parameters": [{
293
+ "name": "category",
294
+ "type": "\"primary\" | \"secondary\"",
295
+ "docs": ""
296
+ }, {
297
+ "name": "state",
298
+ "type": "\"open\" | \"close\"",
299
+ "docs": ""
300
+ }],
301
+ "references": {
302
+ "Promise": {
303
+ "location": "global",
304
+ "id": "global::Promise"
305
+ },
306
+ "CategoryType": {
307
+ "location": "import",
308
+ "path": "@services/api/services/b2b-configurator/b2b-configurator",
309
+ "id": "src/services/api/services/b2b-configurator/b2b-configurator.ts::CategoryType"
310
+ }
311
+ },
312
+ "return": "Promise<void>"
313
+ },
314
+ "docs": {
315
+ "text": "Changes block accordion state to open|close",
316
+ "tags": [{
317
+ "name": "param",
318
+ "text": "category"
319
+ }, {
320
+ "name": "param",
321
+ "text": "state"
322
+ }]
323
+ }
324
+ }
325
+ };
326
+ }
327
+ static get elementRef() { return "hostElement"; }
233
328
  static get watchers() {
234
329
  return [{
235
330
  "propName": "isDesktopResolution",
236
331
  "methodName": "openAccordionOnResolutionChange"
332
+ }, {
333
+ "propName": "isCartEmpty",
334
+ "methodName": "checkStickyClassOnCartEmptyChange"
237
335
  }];
238
336
  }
239
337
  }