@tet/tet-components 1.3.46-testing → 1.3.47-testing

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 (157) hide show
  1. package/dist/cjs/index-f559cb2e.js +8 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/tet-accordion.cjs.entry.js +6 -6
  4. package/dist/cjs/tet-address-offers-view.cjs.entry.js +1 -1
  5. package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +1 -1
  6. package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
  7. package/dist/cjs/tet-business-lines.cjs.entry.js +1 -1
  8. package/dist/cjs/tet-colors.cjs.entry.js +3 -3
  9. package/dist/cjs/tet-components.cjs.js +1 -1
  10. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +5 -5
  11. package/dist/cjs/tet-datepicker.cjs.entry.js +4 -4
  12. package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
  13. package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
  14. package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
  15. package/dist/cjs/tet-grid.cjs.entry.js +1 -1
  16. package/dist/cjs/tet-layout.cjs.entry.js +1 -1
  17. package/dist/cjs/tet-link.cjs.entry.js +1 -1
  18. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +3 -3
  19. package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
  20. package/dist/cjs/tet-notification.cjs.entry.js +1 -1
  21. package/dist/cjs/tet-number-input_2.cjs.entry.js +1 -1
  22. package/dist/cjs/tet-range-slider_2.cjs.entry.js +7 -7
  23. package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
  24. package/dist/cjs/tet-stepper-v3.cjs.entry.js +42 -0
  25. package/dist/cjs/tet-textarea.cjs.entry.js +2 -2
  26. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +92 -0
  27. package/dist/cjs/tet-tooltip.cjs.entry.js +1 -1
  28. package/dist/collection/collection-manifest.json +2 -0
  29. package/dist/collection/components/basic/steppers/tet-stepper-v3/test/tet-stepper-v3.spec.js +135 -0
  30. package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.css +486 -0
  31. package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.js +89 -0
  32. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
  33. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
  34. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
  35. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
  36. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
  37. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
  38. package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
  39. package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
  40. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
  41. package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
  42. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
  43. package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
  44. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
  45. package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
  46. package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
  47. package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +1 -1
  48. package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +1 -1
  49. package/dist/collection/components/views/tet-thank-you-view-v3/test/tet-thank-you-view-v3.spec.js +175 -0
  50. package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.css +469 -0
  51. package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.js +357 -0
  52. package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
  53. package/dist/collection/docs/styling/colors/tet-colors.js +3 -3
  54. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  55. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  56. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  57. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  58. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  59. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  60. package/dist/components/index.js +4 -0
  61. package/dist/components/{p-6d2030bc.js → p-08f20a97.js} +1 -1
  62. package/dist/components/{p-bd462b2b.js → p-3c2b7a19.js} +7 -7
  63. package/dist/components/{p-f621eb12.js → p-64a1709d.js} +1 -1
  64. package/dist/components/{p-ef2c876b.js → p-87f69802.js} +1 -1
  65. package/dist/components/{p-7ffb7b91.js → p-9541b087.js} +2 -2
  66. package/dist/components/p-96c5b413.js +62 -0
  67. package/dist/components/{p-df47c3c2.js → p-cac98727.js} +1 -1
  68. package/dist/components/{p-0e5c2c19.js → p-d066a1fd.js} +1 -1
  69. package/dist/components/{p-4837068d.js → p-f143c1b6.js} +1 -1
  70. package/dist/components/tet-accordion.js +6 -6
  71. package/dist/components/tet-address-offers-view.js +1 -1
  72. package/dist/components/tet-b2b-service-calculator.js +2 -2
  73. package/dist/components/tet-border-radius.js +1 -1
  74. package/dist/components/tet-business-lines.js +1 -1
  75. package/dist/components/tet-cloud-configurator.js +1 -1
  76. package/dist/components/tet-colors.js +3 -3
  77. package/dist/components/tet-datepicker-header.js +1 -1
  78. package/dist/components/tet-datepicker-month-view.js +1 -1
  79. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  80. package/dist/components/tet-datepicker-year-view.js +1 -1
  81. package/dist/components/tet-datepicker.js +8 -8
  82. package/dist/components/tet-expansion-panel.js +1 -1
  83. package/dist/components/tet-font-weight.js +1 -1
  84. package/dist/components/tet-fonts.js +1 -1
  85. package/dist/components/tet-grid.js +1 -1
  86. package/dist/components/tet-layout.js +1 -1
  87. package/dist/components/tet-link.js +1 -1
  88. package/dist/components/tet-macd-view.js +1 -1
  89. package/dist/components/tet-navigation-mobile.js +3 -3
  90. package/dist/components/tet-news-card-list.js +1 -1
  91. package/dist/components/tet-notification.js +1 -1
  92. package/dist/components/tet-range-slider.js +1 -1
  93. package/dist/components/tet-referral.js +1 -1
  94. package/dist/components/tet-spacing.js +1 -1
  95. package/dist/components/tet-stepper-input.js +1 -1
  96. package/dist/components/tet-stepper-v3.d.ts +11 -0
  97. package/dist/components/tet-stepper-v3.js +6 -0
  98. package/dist/components/tet-table.js +1 -1
  99. package/dist/components/tet-textarea.js +2 -2
  100. package/dist/components/tet-thank-you-view-v3.d.ts +11 -0
  101. package/dist/components/tet-thank-you-view-v3.js +137 -0
  102. package/dist/components/tet-tooltip.js +1 -1
  103. package/dist/esm/index-7f1e2a22.js +8 -0
  104. package/dist/esm/loader.js +1 -1
  105. package/dist/esm/tet-accordion.entry.js +6 -6
  106. package/dist/esm/tet-address-offers-view.entry.js +1 -1
  107. package/dist/esm/tet-b2b-service-calculator.entry.js +1 -1
  108. package/dist/esm/tet-border-radius.entry.js +1 -1
  109. package/dist/esm/tet-business-lines.entry.js +1 -1
  110. package/dist/esm/tet-colors.entry.js +3 -3
  111. package/dist/esm/tet-components.js +1 -1
  112. package/dist/esm/tet-datepicker-header_4.entry.js +5 -5
  113. package/dist/esm/tet-datepicker.entry.js +4 -4
  114. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  115. package/dist/esm/tet-font-weight.entry.js +1 -1
  116. package/dist/esm/tet-fonts.entry.js +1 -1
  117. package/dist/esm/tet-grid.entry.js +1 -1
  118. package/dist/esm/tet-layout.entry.js +1 -1
  119. package/dist/esm/tet-link.entry.js +1 -1
  120. package/dist/esm/tet-navigation-mobile.entry.js +3 -3
  121. package/dist/esm/tet-news-card-list.entry.js +1 -1
  122. package/dist/esm/tet-notification.entry.js +1 -1
  123. package/dist/esm/tet-number-input_2.entry.js +1 -1
  124. package/dist/esm/tet-range-slider_2.entry.js +7 -7
  125. package/dist/esm/tet-spacing.entry.js +1 -1
  126. package/dist/esm/tet-stepper-v3.entry.js +38 -0
  127. package/dist/esm/tet-textarea.entry.js +2 -2
  128. package/dist/esm/tet-thank-you-view-v3.entry.js +88 -0
  129. package/dist/esm/tet-tooltip.entry.js +1 -1
  130. package/dist/tet-components/{p-b119d561.entry.js → p-0b54af69.entry.js} +1 -1
  131. package/dist/tet-components/{p-56ba2009.entry.js → p-12b577dc.entry.js} +1 -1
  132. package/dist/tet-components/{p-0a750c4f.entry.js → p-14398114.entry.js} +1 -1
  133. package/dist/tet-components/{p-bf3e7f72.entry.js → p-1878753a.entry.js} +1 -1
  134. package/dist/tet-components/{p-17b4104b.entry.js → p-390dae53.entry.js} +1 -1
  135. package/dist/tet-components/{p-d8851106.entry.js → p-3f047cc1.entry.js} +1 -1
  136. package/dist/tet-components/{p-29b4d2a1.entry.js → p-4025d8b9.entry.js} +1 -1
  137. package/dist/tet-components/{p-c34b6de0.entry.js → p-4f8a1bac.entry.js} +1 -1
  138. package/dist/tet-components/{p-8971f30a.entry.js → p-51b9e9b1.entry.js} +1 -1
  139. package/dist/tet-components/{p-2c4ff0e0.entry.js → p-535aa0e6.entry.js} +1 -1
  140. package/dist/tet-components/{p-7b7b84bc.entry.js → p-77d077a2.entry.js} +1 -1
  141. package/dist/tet-components/{p-6282db79.entry.js → p-829ea121.entry.js} +1 -1
  142. package/dist/tet-components/{p-075a2c0d.entry.js → p-85746897.entry.js} +1 -1
  143. package/dist/tet-components/p-884fb1ef.entry.js +1 -0
  144. package/dist/tet-components/{p-061c267a.entry.js → p-8f01d952.entry.js} +1 -1
  145. package/dist/tet-components/{p-adc24a53.entry.js → p-948edd76.entry.js} +1 -1
  146. package/dist/tet-components/{p-84b9ec15.entry.js → p-95636edc.entry.js} +1 -1
  147. package/dist/tet-components/{p-b4e98d75.entry.js → p-aeac34db.entry.js} +1 -1
  148. package/dist/tet-components/{p-5f74e092.entry.js → p-b35358e8.entry.js} +1 -1
  149. package/dist/tet-components/p-b6b9d41a.entry.js +1 -0
  150. package/dist/tet-components/{p-d5556174.entry.js → p-d119d84a.entry.js} +1 -1
  151. package/dist/tet-components/{p-6e4be4a3.entry.js → p-d13cc8cb.entry.js} +1 -1
  152. package/dist/tet-components/{p-1479c97e.entry.js → p-deb15b17.entry.js} +1 -1
  153. package/dist/tet-components/{p-f46011ad.entry.js → p-faa94705.entry.js} +1 -1
  154. package/dist/tet-components/tet-components.esm.js +1 -1
  155. package/dist/types/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.d.ts +22 -0
  156. package/dist/types/components.d.ts +185 -0
  157. package/package.json +1 -1
@@ -747,31 +747,31 @@ export class TetRangeSlider {
747
747
  this.updateProgress();
748
748
  }
749
749
  render() {
750
- return (h(Host, { key: '40d5bac2a2edc5e21bfea9078189df1a9d924779' }, h("div", { key: '85bbcd7fc16fa3ced276b1b8fcaaa1c996ec83d3', class: {
750
+ return (h(Host, { key: '76cadf4c30e046936d1103a8ec3be587301fa2e5' }, h("div", { key: '14a5b23d881f9eea91d36dac4033ae716ec74b95', class: {
751
751
  'range-slider': true,
752
752
  [`range-slider--${this.containerSize}`]: true,
753
753
  [`range-slider--${this.type}`]: true,
754
754
  'range-slider--no-controls': !this.withControls,
755
755
  'range-slider--no-input': !this.withInput,
756
756
  [this.theme]: true,
757
- } }, h("div", { key: 'f367ab40fc73fe420f5c6d9dd39b6ed4ba83c9e4', class: {
757
+ } }, h("div", { key: '3deb90476beaba909352d3e373261d445987161c', class: {
758
758
  'range-slider__input-container': true,
759
759
  'hidden': !this.withInput,
760
- } }, h("tet-input", Object.assign({ key: '81bff2d45e9788cc43d3943c4e5e5af58ece1418', "input-class": "range-slider__input", "input-type": "number", "input-value": this.currentValue, ref: inputEl => (this.inputRef = inputEl), theme: this.theme, onInput: this.onInputChange, onKeyDown: (event) => this.onInputKeyDown(event, true), accessibilityLabel: this.numberInputAccessibilityLabel }, (this.containerSize !== 'large' ? { inputTabindex: 3 } : {})))), h("div", { key: 'dc248bece909a8c60c9369a5c02710c19739771e', class: "range-slider__container" }, h("tet-button", Object.assign({ key: '5f52d74c30c1aacf25ceca9adf2576539f1d2f9a', theme: this.theme, iconMode: true, class: {
760
+ } }, h("tet-input", Object.assign({ key: '71b554750afb371a9b9d6d4301d70e9903b81b71', "input-class": "range-slider__input", "input-type": "number", "input-value": this.currentValue, ref: inputEl => (this.inputRef = inputEl), theme: this.theme, onInput: this.onInputChange, onKeyDown: (event) => this.onInputKeyDown(event, true), accessibilityLabel: this.numberInputAccessibilityLabel }, (this.containerSize !== 'large' ? { inputTabindex: 3 } : {})))), h("div", { key: '940c744414295ecbe9395e51d193ec234929e4bc', class: "range-slider__container" }, h("tet-button", Object.assign({ key: '41d4a79a194a643b57a7fafe267ea1fd6bc85659', theme: this.theme, iconMode: true, class: {
761
761
  'range-slider__control': true,
762
762
  'range-slider__control--left': true,
763
763
  'hidden': !this.withControls,
764
- }, clickCallback: this.onControlPreviousClick }, (this.reduceButtonAccessibilityLabel ? { accessibilityLabel: this.reduceButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 2 } : {})), h("tet-icon", { key: '5b37183063a25de34acad0d17ffd691ad2b56e29', name: "remove", class: "range-slider__control--icon" })), h("div", { key: '6be4b469d69587f17c401aa64491c94562479566', onTouchStart: this.onContainerTouchStart, onTouchEnd: this.onContainerTouchEnd, onMouseDown: this.onContainerMouseDown, onScroll: this.onContainerScroll, ref: sliderContainerEl => (this.sliderContainerRef = sliderContainerEl), class: "range-slider__slider-container", draggable: false }, h("div", { key: '02898b552f0d33b0eb26561d3fa7b5059ea21615', class: "range-slider__slider-wrapper" }, h("input", Object.assign({ key: '19641b9cc8e0e8080b8cc72b71f7bfd479d69f78', ref: sliderEl => (this.sliderRef = sliderEl), type: "range", min: this.minValue, max: this.maxValue, step: this.step, value: this.defaultValue, list: "steplist", id: "rangeInput", onInput: this.onSliderInput, onChange: this.onSliderChange, onPointerDown: this.onSliderPointerDown, onPointerUp: this.onSliderPointerUp, onKeyDown: this.onInputKeyDown, class: "range-slider__slider" }, (this.sliderInputAccessibilityLabel ? { "aria-label": this.sliderInputAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 1 } : {})))), h("div", { key: '68189c42742aac7c0da40c7dd78169b30236d5fc', class: "range-slider__track range-slider__track--background" }), h("div", { key: 'db1d944cb587fb9e3b25d8feff9c006040a8fcb8', ref: progressTrackEl => (this.progressTrackRef = progressTrackEl), class: "range-slider__track range-slider__track--progress" }), h("div", { key: '53b661cc8295b8c08add52f8c0f73be041c3af40', ref: tickContainerEl => (this.tickContainerRef = tickContainerEl), class: "range-slider__tick-container" }), h("div", { key: '556517fc1a060d7364d065484a249a66b680de09', ref: dataLabelEl => (this.dataLabelRef = dataLabelEl), class: {
764
+ }, clickCallback: this.onControlPreviousClick }, (this.reduceButtonAccessibilityLabel ? { accessibilityLabel: this.reduceButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 2 } : {})), h("tet-icon", { key: '9fb67d645785bf8e19216ef6cfb7f25d3cdd2b05', name: "remove", class: "range-slider__control--icon" })), h("div", { key: '7bd9584baf224e8b32643c01f9482405ccdd0b73', onTouchStart: this.onContainerTouchStart, onTouchEnd: this.onContainerTouchEnd, onMouseDown: this.onContainerMouseDown, onScroll: this.onContainerScroll, ref: sliderContainerEl => (this.sliderContainerRef = sliderContainerEl), class: "range-slider__slider-container", draggable: false }, h("div", { key: '58594cf3c4c7faefdd7e1fd60fc16e85b4165860', class: "range-slider__slider-wrapper" }, h("input", Object.assign({ key: 'b91c6f5c4be9d49ab30021478d9d08aade4429ae', ref: sliderEl => (this.sliderRef = sliderEl), type: "range", min: this.minValue, max: this.maxValue, step: this.step, value: this.defaultValue, list: "steplist", id: "rangeInput", onInput: this.onSliderInput, onChange: this.onSliderChange, onPointerDown: this.onSliderPointerDown, onPointerUp: this.onSliderPointerUp, onKeyDown: this.onInputKeyDown, class: "range-slider__slider" }, (this.sliderInputAccessibilityLabel ? { "aria-label": this.sliderInputAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 1 } : {})))), h("div", { key: '6569ccb69b5db541bb0f59e5c26d9892b7b7bf1f', class: "range-slider__track range-slider__track--background" }), h("div", { key: 'ac951e15df9660b44f23c2a3ac6140074bfee08f', ref: progressTrackEl => (this.progressTrackRef = progressTrackEl), class: "range-slider__track range-slider__track--progress" }), h("div", { key: '110050353c13290324668064cecfc57745aedb9b', ref: tickContainerEl => (this.tickContainerRef = tickContainerEl), class: "range-slider__tick-container" }), h("div", { key: '6852068928121c4b4c4fec2cc55c574b4654eb06', ref: dataLabelEl => (this.dataLabelRef = dataLabelEl), class: {
765
765
  'range-slider__data-label-container': true,
766
766
  'hidden': this.type === 'secondary' && this.containerSize === 'small',
767
- } })), h("div", { key: '29ca9411beb351bb133c08d8380a9787b8cc421b', class: {
767
+ } })), h("div", { key: 'a5d78efeeb02a3e168f56bd6d5e5f42e5719a703', class: {
768
768
  'range-slider__current-step-container': true,
769
769
  'hidden': !this.withCurrentStepCounter,
770
- } }, h("div", { key: '571823123eafeda4a30de58fc12b706972a454a2', class: "range-slider__current-step", "aria-live": "polite" }, this.dataSet.indexOf(this.getClosestOverrideDataPoint()) + 1, "/", this.dataPoints.length)), h("div", { key: 'f33f2621104bf4ea7f8ed6c753892ef6211ef2b6', ref: toolbarHandleEl => (this.tooltipHandleRef = toolbarHandleEl), class: "range-slider__tooltip-handle" }, h("div", { key: '60bde733268c730b940be50f507565ac4ecb642d', class: "range-slider__tooltip translation-none", style: { [`--tooltip-offset`]: `${this.tooltipOffset}rem` }, "aria-live": "polite" }, this.getTooltipValue())), h("tet-button", Object.assign({ key: '63e3f16c1715d0fdd18aae37de5481e416cab8d5', theme: this.theme, iconMode: true, class: {
770
+ } }, h("div", { key: '054dc3008e90133e00edbdca4c98bdcb55a7db1f', class: "range-slider__current-step", "aria-live": "polite" }, this.dataSet.indexOf(this.getClosestOverrideDataPoint()) + 1, "/", this.dataPoints.length)), h("div", { key: '0c305adacd23d17ca2323848d05874cdaebc7f17', ref: toolbarHandleEl => (this.tooltipHandleRef = toolbarHandleEl), class: "range-slider__tooltip-handle" }, h("div", { key: '93d40d8b94c508a176bdcead35f72662a4ac6ca0', class: "range-slider__tooltip translation-none", style: { [`--tooltip-offset`]: `${this.tooltipOffset}rem` }, "aria-live": "polite" }, this.getTooltipValue())), h("tet-button", Object.assign({ key: '5fad29d0e1df28073d1e6e05b4a2fc085721f46d', theme: this.theme, iconMode: true, class: {
771
771
  'range-slider__control': true,
772
772
  'range-slider__control--right': true,
773
773
  'hidden': !this.withControls,
774
- }, clickCallback: this.onControlNextClick }, (this.addButtonAccessibilityLabel ? { accessibilityLabel: this.addButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 4 } : {})), h("tet-icon", { key: 'b981e749c91150f944d022701310e2a64fb3f3b9', name: "add", class: "range-slider__control--icon" }))))));
774
+ }, clickCallback: this.onControlNextClick }, (this.addButtonAccessibilityLabel ? { accessibilityLabel: this.addButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 4 } : {})), h("tet-icon", { key: '623fa80cff859e6b95284a1e3bd3077e54a78805', name: "add", class: "range-slider__control--icon" }))))));
775
775
  }
776
776
  static get is() { return "tet-range-slider"; }
777
777
  static get encapsulation() { return "shadow"; }
@@ -121,7 +121,7 @@ export class TetStepperInput {
121
121
  */
122
122
  render() {
123
123
  const { onMinusClick, value, onPlusClick } = this;
124
- return (h("div", { key: '228c8f85f8e54f6f02e32f2ff9b9866f1b938fcd', class: { 'stepper-input': true, [this.theme]: !!this.theme } }, h("tet-button", { key: '21ecbebfdb2d09c805be8c673c30bdd6884ada93', type: "secondary", iconMode: true, theme: this.theme, size: 'small', "aria-label": t('components-number-input-decrease'), onKeyDown: this.handleOptionKeydown(onMinusClick), onClick: onMinusClick }, h("tet-icon", { key: '3db5d37c729ba70c16f00d1af6bc9da6d4795ad1', name: "remove", onClick: onMinusClick })), h("input", Object.assign({ key: '290b9ce9cc812c11501e4e2a161ef0c16cf0fa0f', ref: (htmlInputElement) => (this.inputElement = htmlInputElement), class: "stepper-input__value", value: value, type: "number" }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}))), h("tet-button", { key: '1e854519dff317cf704306d3e7a4027ef5bd066b', type: "secondary", iconMode: true, theme: this.theme, size: 'small', "aria-label": t('components-number-input-increase'), onKeyDown: this.handleOptionKeydown(onPlusClick), onClick: onPlusClick }, h("tet-icon", { key: '3d09a2773a6e1b8407a1290d74a1b1f3e9d5d1e3', name: "add", onClick: onPlusClick }))));
124
+ return (h("div", { key: 'e0d5f6335a018289de417ef8429e9721b322b254', class: { 'stepper-input': true, [this.theme]: !!this.theme } }, h("tet-button", { key: 'b0cf8e4764ef907d8131429d8142453c86b70991', type: "secondary", iconMode: true, theme: this.theme, size: 'small', "aria-label": t('components-number-input-decrease'), onKeyDown: this.handleOptionKeydown(onMinusClick), onClick: onMinusClick }, h("tet-icon", { key: 'fab8bf2e83054bd219cb8a599a9e885871003be2', name: "remove", onClick: onMinusClick })), h("input", Object.assign({ key: '32dc412f591c027a01b47a700ef6656c9251e300', ref: (htmlInputElement) => (this.inputElement = htmlInputElement), class: "stepper-input__value", value: value, type: "number" }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}))), h("tet-button", { key: 'bb7ef44dd5b96cf4790fb7fe7ddbd1d79e95e299', type: "secondary", iconMode: true, theme: this.theme, size: 'small', "aria-label": t('components-number-input-increase'), onKeyDown: this.handleOptionKeydown(onPlusClick), onClick: onPlusClick }, h("tet-icon", { key: '9b8bb509a7bdbec818705d7a073b80d34d5eaa4c', name: "add", onClick: onPlusClick }))));
125
125
  }
126
126
  static get is() { return "tet-stepper-input"; }
127
127
  static get encapsulation() { return "shadow"; }
@@ -50,8 +50,8 @@ export class TetTextarea {
50
50
  'error': (errorMessages.length > 0),
51
51
  'keyboard-focus': this.focusVisible,
52
52
  };
53
- return (h(Host, { key: 'f34b954b1d38ae335fda3c21d032a8dea5d1ac4f' }, h("label", { key: 'c680c4240522092485f1b9cbb859b35f2996065e', class: { [`${theme}`]: true } }, label &&
54
- h("span", { key: '7a6874afd2b70c10433eb31b6030c48920db287f', class: { 'tet-textarea__label': true, [`tet-textarea__${theme}`]: true } }, label), h("div", { key: '9e99848011730901eecbfaca8e4bda285ed05726', class: { 'textarea-container': true, [`tet-textarea__${theme}`]: true } }, h("textarea", { key: 'b3285c7be1698d51c75c8cfd428bbfabc414f09c', onFocus: this.addKeyboardFocus, onFocusout: this.removeKeyboardFocus, id: "textarea", class: textareaClasses, placeholder: placeholder, disabled: disabled, autocomplete: "off" }, value))), (this.errorMessages.length > 0) && renderErrorMessages()));
53
+ return (h(Host, { key: '28bf5cfd5f3867f508dce68066f106e5592d52c7' }, h("label", { key: 'fb89908d3d13a78d102f499d861638391360538a', class: { [`${theme}`]: true } }, label &&
54
+ h("span", { key: '81666647b11d90ebf318d9ab61c0d1744916439f', class: { 'tet-textarea__label': true, [`tet-textarea__${theme}`]: true } }, label), h("div", { key: '9702343afd9cdaa3209d4e8d92077d6f388340ad', class: { 'textarea-container': true, [`tet-textarea__${theme}`]: true } }, h("textarea", { key: 'e4925894380d6b2e303ebf82ae9a520df33bdab6', onFocus: this.addKeyboardFocus, onFocusout: this.removeKeyboardFocus, id: "textarea", class: textareaClasses, placeholder: placeholder, disabled: disabled, autocomplete: "off" }, value))), (this.errorMessages.length > 0) && renderErrorMessages()));
55
55
  }
56
56
  static get is() { return "tet-textarea"; }
57
57
  static get encapsulation() { return "shadow"; }
@@ -65,7 +65,7 @@ export class TetNewsCardList {
65
65
  scrollFullWidth,
66
66
  controlScrollAmount,
67
67
  };
68
- return (h(Host, { key: 'bcd09c25fda55e021587039003f93cddd96420dc' }, h("tet-card-list", Object.assign({ key: '0ac5b52b0cdf5b34e5c1a4954c5e9fa3f6f8f2d0', theme: this.theme, part: "card-list-component", exportparts: "card-list, card-list-container", withOverflowOpacity: true }, props), this.items.map((item, index) => this.renderListCard(item, index)))));
68
+ return (h(Host, { key: 'eb67f9ed052ece63eae8a3c62de1046d48c11d0a' }, h("tet-card-list", Object.assign({ key: '1e6c3844d003a156216b8825e9b642dc3ab8b077', theme: this.theme, part: "card-list-component", exportparts: "card-list, card-list-container", withOverflowOpacity: true }, props), this.items.map((item, index) => this.renderListCard(item, index)))));
69
69
  }
70
70
  static get is() { return "tet-news-card-list"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -54,13 +54,13 @@ export class TetNavigationMobile {
54
54
  this.mainDropdownToggle.emit(isTogglerExpanded);
55
55
  }
56
56
  render() {
57
- return (h(Host, { key: 'cc1b1aa87ee611a0d92eaa398470d9964e4c8c84' }, h("navigation", { key: 'a67966c59f534a61e63f213b8dd67e9eb57cfb60', class: {
57
+ return (h(Host, { key: 'af6c79548d6485a9d58c5d80d7dfb5b37e043d13' }, h("navigation", { key: '6488df2c7585f8b9abdb8df0bacee585b11a24ae', class: {
58
58
  'navigation': true,
59
59
  'navigation--dark': this.darkMode
60
- } }, h("div", { key: '97bfb7048844941518783e4b80066d4ff34ed316', class: "navigation__nav-bar" }, h("slot", { key: 'dbb827d5afb985136b8c2543f9610d60dcdb1c77' })), this.isTogglerVisible && (h("span", { key: '1ec147a08db09250dce57ed38cceae0a893a4251', class: "navigation__toggler", onClick: this.onTogglerClick, onKeyDown: (e) => this.handleKeyDown(e), tabIndex: 0 }, !this.isTogglerExpanded && h("tet-icon", { key: '28778de9eba097c4fd597937518bc1d22f8f1a93', class: "navigation__toggler navigation__toggler--burger", name: "burger" }), this.isTogglerExpanded && h("tet-icon", { key: 'c9a66785961b66676ef0b18e61b7cc1cf8072f49', class: "navigation__toggler navigation__toggler--close", name: "close" }))), h("div", { key: 'ea2162d16872548b201588e959c89a4f42c41521', class: {
60
+ } }, h("div", { key: 'f436c49f377e85d2ee28975de8d74a9352c6b36d', class: "navigation__nav-bar" }, h("slot", { key: '00369719e17b78dac10342ac3cbe85f3de5f3a62' })), this.isTogglerVisible && (h("span", { key: '2f083b097d13e75444a393d38c53794d8a44ec5d', class: "navigation__toggler", onClick: this.onTogglerClick, onKeyDown: (e) => this.handleKeyDown(e), tabIndex: 0 }, !this.isTogglerExpanded && h("tet-icon", { key: 'ea89d24f6505dff0be6586a1434fad2bf61ead37', class: "navigation__toggler navigation__toggler--burger", name: "burger" }), this.isTogglerExpanded && h("tet-icon", { key: 'bd4f487e345d714af1c61cf6925b08157cb9d975', class: "navigation__toggler navigation__toggler--close", name: "close" }))), h("div", { key: '00b6d30fbab39f40a7b6c998664a80842bf40e1e', class: {
61
61
  'navigation__dropdown': true,
62
62
  'navigation__dropdown--expanded': this.isTogglerExpanded,
63
- } }, h("slot", { key: '5d1651e6dfe715f33520f1e3d5a738b137161b1d', name: "dropdown" })))));
63
+ } }, h("slot", { key: 'afaee2dcda1306c0c66477c82de4cec7398e6c21', name: "dropdown" })))));
64
64
  }
65
65
  static get is() { return "tet-navigation-mobile"; }
66
66
  static get encapsulation() { return "shadow"; }
@@ -107,22 +107,22 @@ export class TetAccordion {
107
107
  }
108
108
  }
109
109
  render() {
110
- return (h(Host, { key: '85a5bfbe20b0d3c91b0cea9dd80c556acc8ffcd0' }, h("div", { key: 'c0a3dc2e9f094a99c4092a5b4f357c8899c2edfb', class: {
110
+ return (h(Host, { key: '22f614b05425d827ab0291dc8e909ee2305a4b24' }, h("div", { key: '6934bfe52243c5511ae0614a7f87c2aeded1193e', class: {
111
111
  'tet-accordion': true,
112
112
  'tet-accordion--border': this.withBorder,
113
113
  [`${this.theme}-theme`]: true,
114
114
  [`tet-accordion--breakpoint-${this.breakpoint}`]: true,
115
115
  'transparent-bg': this.transparentBackground,
116
- } }, h("div", { key: 'd273da7ffc6c06569b1ee7f48b998e05585fb49e', class: { "tet-accordion__header": true, [this.theme]: true }, onClick: this.toggleOpenState, onKeyDown: this.toggleAccessibilityOpenState, tabIndex: 0 }, this.headerImageSrc && this.headerImageSrc !== '' &&
117
- h("img", { key: '9b5fe55af2c878e7e136bc007c30422c7b1bb959', src: this.headerImageSrc, alt: this.headerImageAlt ? this.headerImageAlt : undefined, class: "tet-accordion__header-image" }), this.renderHeading(), h("tet-icon", { key: '2770e5abee56e385de90e3cf41978d13ada03c15', name: "chevron-down", class: {
116
+ } }, h("div", { key: '41a21eb1771f0d46b6ab25bd8920d5ed4afc4b07', class: { "tet-accordion__header": true, [this.theme]: true }, onClick: this.toggleOpenState, onKeyDown: this.toggleAccessibilityOpenState, tabIndex: 0 }, this.headerImageSrc && this.headerImageSrc !== '' &&
117
+ h("img", { key: '9c68453e65ab6c7f33a4e90e2e79439b5dacf8e4', src: this.headerImageSrc, alt: this.headerImageAlt ? this.headerImageAlt : undefined, class: "tet-accordion__header-image" }), this.renderHeading(), h("tet-icon", { key: '015014ccf317e2e96cd62387e58d765e02081218', name: "chevron-down", class: {
118
118
  'tet-accordion__icon': true,
119
119
  'open': this.isOpen
120
- } })), h("div", { key: 'a60885eec3d86e94482703b356cbaca38976697e', ref: (element) => (this.contentWrapperElement = element), class: {
120
+ } })), h("div", { key: '2bc9512a21706383fbe66b6c394a3189719bf8d2', ref: (element) => (this.contentWrapperElement = element), class: {
121
121
  'tet-accordion__content-wrapper': true,
122
122
  'visible': this.isOpen
123
- }, inert: !this.isOpen }, h("div", { key: '6bdaf1a8f1d80889ed2d68156b8312048134be7b', ref: (element) => (this.contentElement = element), class: {
123
+ }, inert: !this.isOpen }, h("div", { key: '656b232c7288dc19b2afdc8409589d2d1e8530af', ref: (element) => (this.contentElement = element), class: {
124
124
  'tet-accordion__content': true
125
- } }, h("slot", { key: '79c31ec5233e8db9c4209ea9cb37fbf97b61e893' }))))));
125
+ } }, h("slot", { key: '252e86d4b56b5732b298064ac5b65fc9fc93f351' }))))));
126
126
  }
127
127
  static get is() { return "tet-accordion"; }
128
128
  static get encapsulation() { return "shadow"; }
@@ -63,7 +63,7 @@ export class TetExpansionPanel {
63
63
  return this.state;
64
64
  }
65
65
  render() {
66
- return (h("div", { key: '8d3a43d63d7a147bc794f8faca7285cd21eb4ae5', class: { 'tet-expansion-panel': true, 'open': this.state === 'open' } }, h("div", { key: 'ac084397487be7a1a158b3890993fdc1d1b25494', class: "tet-expansion-panel-content" }, h("slot", { key: '8cf593d96b9e238309bb128f77b22c0980c85d96' }))));
66
+ return (h("div", { key: '3973c801ae3263f2b80443bf95d9b95b0bf42828', class: { 'tet-expansion-panel': true, 'open': this.state === 'open' } }, h("div", { key: '45aefcd2caf2b753a0202fd5a973cdc16d87e03d', class: "tet-expansion-panel-content" }, h("slot", { key: '04d3e119069ecc5252a22100951aa88272ee072e' }))));
67
67
  }
68
68
  static get is() { return "tet-expansion-panel"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -116,7 +116,7 @@ export class TetNotification {
116
116
  }
117
117
  render() {
118
118
  const { headerTitle, content } = this;
119
- return (h(Host, { key: 'f47e2e40fc38b631376fc995c95b6b17ef9a7926' }, h("div", { key: 'f28de4ca9913b891e0c196a3c1705da8895c85bd', class: { notification: true, [this.theme]: true } }, h("div", { key: '0eac189810dbc1d0483a5099e2ffd63fd5c508f2', class: { item: true, [this.type]: true } }, h("div", { key: '36e18f24247faa7227eabb3a3538c14d51661cb8', class: "header" }, this.renderTypeIcon(), h("div", { key: 'ac722222084c3a16fe2a0a59c25110cd2573f980', class: "title" }, headerTitle), this.renderCloseButton()), h("div", { key: '558e257d50da78129470e03dec4363921aad2c94', class: "content" }, h("span", { key: '3f738797645a9fd06bd1529f8d1eeb114f434d2d', innerHTML: content }), h("div", { key: '08e3d2adb10f55394082c80dc59919ad7f8a31a9' }, h("slot", { key: '5d2c46da0b437c8208aa08cae3613292c16f14ac', name: "button" })))))));
119
+ return (h(Host, { key: 'ea68910ea921dcba94876825c2dd40ab4bb28e8b' }, h("div", { key: 'a88679392d728d7ac8e72c75aa2ea2adfe6ad50c', class: { notification: true, [this.theme]: true } }, h("div", { key: '53107485961bba50156440e9fe40ffd4e62a0c10', class: { item: true, [this.type]: true } }, h("div", { key: '2c89c4727d0573de9c3aab088f2d183be29aa78d', class: "header" }, this.renderTypeIcon(), h("div", { key: '40d008233eb2485e9cb79920724c7cc42dce656a', class: "title" }, headerTitle), this.renderCloseButton()), h("div", { key: '616a22392fb38522845a92912879478e28903563', class: "content" }, h("span", { key: '7e9d4fb1f2ac2149730aef2f4cf8def11e5cecfa', innerHTML: content }), h("div", { key: '4ccc156029288222be0662ba3a0944ac1468970a' }, h("slot", { key: 'b62acbd076c74470c120037848dba7b9624daf9c', name: "button" })))))));
120
120
  }
121
121
  static get is() { return "tet-notification"; }
122
122
  static get encapsulation() { return "shadow"; }
@@ -351,7 +351,7 @@ export class TetTooltip {
351
351
  return isTooltipOutOfBounds;
352
352
  }
353
353
  render() {
354
- return h(Host, { key: 'b6b7767977d2fe74bcb72087a7a438c3f70a75d2', class: { visible: this.showTooltip } }, this.renderTooltip());
354
+ return h(Host, { key: '6f2107dbd51105a5724c4624d0459736544779dd', class: { visible: this.showTooltip } }, this.renderTooltip());
355
355
  }
356
356
  static get is() { return "tet-tooltip"; }
357
357
  static get encapsulation() { return "shadow"; }
@@ -129,7 +129,7 @@ export class TetAddressOffersView {
129
129
  return h(Fragment, null);
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: '67a2379ba57c996cfecb21e6640c16e7e11071c2' }, this.renderContactForm(), this.renderHeader(), this.address && this.renderBody()));
132
+ return (h(Host, { key: 'eb7b887a1fca3a0600f1cbedf988da5358240e9b' }, this.renderContactForm(), this.renderHeader(), this.address && this.renderBody()));
133
133
  }
134
134
  static get is() { return "tet-address-offers-view"; }
135
135
  static get encapsulation() { return "shadow"; }
@@ -51,7 +51,7 @@ export class TetB2bServiceCalculator {
51
51
  processTranslations('tet-components', this.language).then(() => forceUpdate(this));
52
52
  }
53
53
  render() {
54
- return (h("section", { key: '8cda85f25ae16f047aaebba17cf5b09a5ba0108a', class: "container" }, h("div", { key: 'ae274f3c35a2757636dc200731788b7fc2b4bd4c', class: "title-block" }, t('components-b2b-calculator-title')), h("div", { key: '69f0978da2ef1e1a76ee9693a8dc114bfc39e469', class: "calculator-block" }, h("p", { key: 'e6ccf402ed96cc735da3d8ea7395be1e27d7628e', class: "slider-title" }, t('components-b2b-calculator-computer-count')), h("tet-range-slider", { key: '263f051eae4f7d06b830d61e63ccc1b1b22534d6', 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: '99b23da4d8d13786556eef06e1b04afc8a35f081', class: "control-container" }, h("div", { key: 'bfa319bf2daff7cc8b9e4f1f65a782569657fc4a', class: "control" }, h("tet-checkbox", { key: '0bfc8eba56e1eca62fbbe9e7879a9034ba22bea4', class: "it-admin-checkbox", checked: this.withItAdmin, onCheck: this.handleWithItAdminValueChange }, t('components-b2b-calculator-it-admin-checkbox-label'))), h("div", { key: '73fd15a359b09e2e5094a2b0534ffc63fc5d5dbd', class: "control" }, h("tet-switch", { key: '667a14871e68615f5ca7c9180939c2b3a7b676b1', class: "in-person-support-switch", checked: this.withInPersonServiceSupport, onCheck: this.handleInPersonServiceSupportValueChange }, t('components-b2b-calculator-in-person-support-switch-label')))), h("div", { key: 'a5d8ea4cbd3035344f4aaf336627ff327d3761b9', class: "monthly-payment-block" }, h("p", { key: '054e81603ab5db3fe159df169e9b54e22f385da5', class: "title" }, t('components-b2b-calculator-potential-monthly-payment')), h("p", { key: 'b65b239ac7c6f63ca4ddcb1c99d03d17c857814e' }, h("span", { key: 'afce3dfee4426188c9e2f28a6e2ff639754721b4', class: "price" }, this.totalPrice), h("span", { key: 'e49f0eacccb635be66fdfbd213ba6415e81e1053', class: "currency" }, t('components-euro-per-month')))))));
54
+ return (h("section", { key: '4a0cae9a6c92e56daab2179816535f626b6b91e4', class: "container" }, h("div", { key: '74ac98a2c919c61486ffa561d765c7851e416498', class: "title-block" }, t('components-b2b-calculator-title')), h("div", { key: '93422557e4cfa64b108af608d973976e17bdf4df', class: "calculator-block" }, h("p", { key: '02641f328325cd750435da8fe52f298f64fde409', class: "slider-title" }, t('components-b2b-calculator-computer-count')), h("tet-range-slider", { key: '8c91d0070d7c2e3909f85ddd964e232cbdde1723', 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: '0b97bb2ab85d823b8dfacea52af226fb8d2dc939', class: "control-container" }, h("div", { key: '0650a9f5be57662c6f2d285565aa6cfddd93f5c7', class: "control" }, h("tet-checkbox", { key: '14a580ad3ae90dcd782e5587a2b88fb5620840c7', class: "it-admin-checkbox", checked: this.withItAdmin, onCheck: this.handleWithItAdminValueChange }, t('components-b2b-calculator-it-admin-checkbox-label'))), h("div", { key: '768d6a300bdd9d087dc0d0108c88bd5f0ae25a51', class: "control" }, h("tet-switch", { key: '954efdd4249c798f81f4d74610e8ab9a86657bf1', class: "in-person-support-switch", checked: this.withInPersonServiceSupport, onCheck: this.handleInPersonServiceSupportValueChange }, t('components-b2b-calculator-in-person-support-switch-label')))), h("div", { key: '7902cf23ad4cdcc8233c1f08c03a55c0dbca15db', class: "monthly-payment-block" }, h("p", { key: 'e9db88a81af29275364d5ace234f38c6d1804624', class: "title" }, t('components-b2b-calculator-potential-monthly-payment')), h("p", { key: '4585df1658a18717d640583cb8a56e475af3d7b3' }, h("span", { key: '9c3fdefe74748100dc7d6dffa0eb3e0276565804', class: "price" }, this.totalPrice), h("span", { key: 'f5e4c952bf64b0dc7e58fbb23fd8a5a3c306d6f8', class: "currency" }, t('components-euro-per-month')))))));
55
55
  }
56
56
  static get is() { return "tet-b2b-service-calculator"; }
57
57
  static get encapsulation() { return "shadow"; }
@@ -46,7 +46,7 @@ export class TetBusinessLines {
46
46
  }
47
47
  render() {
48
48
  var _a;
49
- return (h("div", { key: '18fc1ef0574e27d2983bd44d7718dbe1ac4e793f', class: "container" }, this.showHeadings && this.renderHeadings(), h("div", { key: 'b5b31380a2a12a0458ae6532f92db7618e3fa22a', class: "business-line-wrapper" }, (_a = this.businessLines) === null || _a === void 0 ? void 0 : _a.map(this.renderBusinessLineItem))));
49
+ return (h("div", { key: 'cef949ef5ed1b55e430413bc9ac8f2780723fde0', class: "container" }, this.showHeadings && this.renderHeadings(), h("div", { key: '3aa8858a5a3f621aa9b9be5bac9abd496581a8db', class: "business-line-wrapper" }, (_a = this.businessLines) === null || _a === void 0 ? void 0 : _a.map(this.renderBusinessLineItem))));
50
50
  }
51
51
  static get is() { return "tet-business-lines"; }
52
52
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,175 @@
1
+ import { h } from "@stencil/core";
2
+ import { newSpecPage } from "@stencil/core/testing";
3
+ import { TetStepperV3 } from "../../../basic/steppers/tet-stepper-v3/tet-stepper-v3";
4
+ import { TetThankYouViewV3 } from "../tet-thank-you-view-v3";
5
+ describe('tet-thank-you-view-v3', () => {
6
+ it('renders an empty thank you view when no data provided', async () => {
7
+ const page = await newSpecPage({
8
+ components: [TetThankYouViewV3],
9
+ template: () => h("tet-thank-you-view-v3", null)
10
+ });
11
+ expect(page.root).toEqualHtml(`
12
+ <tet-thank-you-view-v3>
13
+ <mock:shadow-root>
14
+ <div class="thank-you-view-v3 light">
15
+ <div class="thank-you-view-v3-info-block">
16
+ <tet-icon aria-hidden="true" class="thank-you-view-v3-icon" name="check"></tet-icon>
17
+ <div class="thank-you-view-v3-info-block-text">
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </mock:shadow-root>
22
+ </tet-thank-you-view-v3>
23
+ `);
24
+ });
25
+ it('renders the thank you view without icon', async () => {
26
+ const page = await newSpecPage({
27
+ components: [TetThankYouViewV3],
28
+ template: () => h("tet-thank-you-view-v3", { icon: "none" })
29
+ });
30
+ expect(page.root).toEqualHtml(`
31
+ <tet-thank-you-view-v3>
32
+ <mock:shadow-root>
33
+ <div class="thank-you-view-v3 light">
34
+ <div class="thank-you-view-v3-info-block">
35
+ <div class="thank-you-view-v3-info-block-text">
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </mock:shadow-root>
40
+ </tet-thank-you-view-v3>
41
+ `);
42
+ });
43
+ it('renders the thank you view with description', async () => {
44
+ const props = {
45
+ mainBlockTitle: 'mainBlockTitle',
46
+ mainBlockDescription: 'mainBlockDescription'
47
+ };
48
+ const page = await newSpecPage({
49
+ components: [TetThankYouViewV3],
50
+ template: () => h("tet-thank-you-view-v3", Object.assign({}, props))
51
+ });
52
+ expect(page.root).toEqualHtml(`
53
+ <tet-thank-you-view-v3>
54
+ <mock:shadow-root>
55
+ <div class="thank-you-view-v3 light">
56
+ <div class="thank-you-view-v3-info-block">
57
+ <tet-icon aria-hidden="true" class="thank-you-view-v3-icon" name="check"></tet-icon>
58
+ <div class="thank-you-view-v3-info-block-text">
59
+ <h1 class="thank-you-view-v3-info-block-title">
60
+ mainBlockTitle
61
+ </h1>
62
+ <div class="thank-you-view-v3-info-block-description">
63
+ mainBlockDescription
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </mock:shadow-root>
69
+ </tet-thank-you-view-v3>
70
+ `);
71
+ });
72
+ it.skip('renders the thank you view with stepper', async () => {
73
+ const props = {
74
+ stepperData: [
75
+ {
76
+ icon: 'check',
77
+ active: true,
78
+ title: 'Tikko',
79
+ description: 'Pieteikums nosūtīts'
80
+ },
81
+ {
82
+ icon: 'check',
83
+ active: true,
84
+ title: 'Tikko',
85
+ description: 'Pieteikums Saņemts'
86
+ }
87
+ ],
88
+ icon: 'check'
89
+ };
90
+ const page = await newSpecPage({
91
+ components: [TetThankYouViewV3, TetStepperV3],
92
+ template: () => h("tet-thank-you-view-v3", Object.assign({}, props))
93
+ });
94
+ expect(page.root).toEqualHtml(`
95
+ <tet-thank-you-view-v3>
96
+ <mock:shadow-root>
97
+ <div class="thank-you-view-v3">
98
+ <div class="thank-you-view-v3-info-block">
99
+ <tet-icon class="thank-you-view-v3-icon" name="check"></tet-icon>
100
+ <div class="thank-you-view-v3-info-block-text">
101
+ </div>
102
+ </div>
103
+ <div class="thank-you-view-v3-stepper">
104
+ <tet-stepper-v3>
105
+ <mock:shadow-root>
106
+ <ol class="stepper">
107
+ <li class="stepper-step">
108
+ <li class="active stepper-line"></li>
109
+ <div class="stepper-step-wrapper">
110
+ <div class="stepper-step-wrapper-icon">
111
+ <div class="check-icon">
112
+ <tet-icon class="check" name="check"></tet-icon>
113
+ </div>
114
+ </div>
115
+ <div class="stepper-step-wrapper-content">
116
+ <div class="stepper-step-wrapper-content-title">
117
+ Tikko
118
+ </div>
119
+ <div class="stepper-step-wrapper-content-description">
120
+ Pieteikums nosūtīts
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </li>
125
+ <li class="stepper-step">
126
+ <div class="stepper-step-wrapper">
127
+ <div class="stepper-step-wrapper-icon">
128
+ <div class="check-icon">
129
+ <tet-icon class="check" name="check"></tet-icon>
130
+ </div>
131
+ </div>
132
+ <div class="stepper-step-wrapper-content">
133
+ <div class="stepper-step-wrapper-content-title">
134
+ Tikko
135
+ </div>
136
+ <div class="stepper-step-wrapper-content-description">
137
+ Pieteikums Saņemts
138
+ </div>
139
+ </div>
140
+ </div>
141
+ </li>
142
+ </ol>
143
+ </mock:shadow-root>
144
+ </tet-stepper-v3>
145
+ </div>
146
+ </div>
147
+ </mock:shadow-root>
148
+ </tet-thank-you-view-v3>
149
+ `);
150
+ });
151
+ it('renders the thank you view with cta button and dark theme', async () => {
152
+ const page = await newSpecPage({
153
+ components: [TetThankYouViewV3],
154
+ template: () => h("tet-thank-you-view-v3", { ctaButtonLabel: "ctaButtonLabel", theme: "dark" })
155
+ });
156
+ expect(page.root).toEqualHtml(`
157
+ <tet-thank-you-view-v3>
158
+ <mock:shadow-root>
159
+ <div class="thank-you-view-v3 dark">
160
+ <div class="thank-you-view-v3-info-block">
161
+ <tet-icon aria-hidden="true" class="thank-you-view-v3-icon" name="check"></tet-icon>
162
+ <div class="thank-you-view-v3-info-block-text">
163
+ </div>
164
+ </div>
165
+ <nav class="thank-you-view-v3-cta-button" aria-label="CTA">
166
+ <tet-button accessibilitylabel="ctaButtonLabel" element-id="thankYouBackButton" size="large" theme="dark" type="primary">
167
+ ctaButtonLabel
168
+ </tet-button>
169
+ </nav>
170
+ </div>
171
+ </mock:shadow-root>
172
+ </tet-thank-you-view-v3>
173
+ `);
174
+ });
175
+ });