@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.
- package/dist/cjs/index-f559cb2e.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +6 -6
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-lines.cjs.entry.js +1 -1
- package/dist/cjs/tet-colors.cjs.entry.js +3 -3
- package/dist/cjs/tet-components.cjs.js +1 -1
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +5 -5
- package/dist/cjs/tet-datepicker.cjs.entry.js +4 -4
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
- package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
- package/dist/cjs/tet-grid.cjs.entry.js +1 -1
- package/dist/cjs/tet-layout.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +1 -1
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +3 -3
- package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-notification.cjs.entry.js +1 -1
- package/dist/cjs/tet-number-input_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-range-slider_2.cjs.entry.js +7 -7
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +42 -0
- package/dist/cjs/tet-textarea.cjs.entry.js +2 -2
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +92 -0
- package/dist/cjs/tet-tooltip.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/basic/steppers/tet-stepper-v3/test/tet-stepper-v3.spec.js +135 -0
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.css +486 -0
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.js +89 -0
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
- package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
- package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +1 -1
- package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +1 -1
- package/dist/collection/components/views/tet-thank-you-view-v3/test/tet-thank-you-view-v3.spec.js +175 -0
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.css +469 -0
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.js +357 -0
- package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
- package/dist/collection/docs/styling/colors/tet-colors.js +3 -3
- package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
- package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
- package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
- package/dist/collection/docs/styling/link/tet-link.js +1 -1
- package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
- package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
- package/dist/components/index.js +4 -0
- package/dist/components/{p-6d2030bc.js → p-08f20a97.js} +1 -1
- package/dist/components/{p-bd462b2b.js → p-3c2b7a19.js} +7 -7
- package/dist/components/{p-f621eb12.js → p-64a1709d.js} +1 -1
- package/dist/components/{p-ef2c876b.js → p-87f69802.js} +1 -1
- package/dist/components/{p-7ffb7b91.js → p-9541b087.js} +2 -2
- package/dist/components/p-96c5b413.js +62 -0
- package/dist/components/{p-df47c3c2.js → p-cac98727.js} +1 -1
- package/dist/components/{p-0e5c2c19.js → p-d066a1fd.js} +1 -1
- package/dist/components/{p-4837068d.js → p-f143c1b6.js} +1 -1
- package/dist/components/tet-accordion.js +6 -6
- package/dist/components/tet-address-offers-view.js +1 -1
- package/dist/components/tet-b2b-service-calculator.js +2 -2
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-lines.js +1 -1
- package/dist/components/tet-cloud-configurator.js +1 -1
- package/dist/components/tet-colors.js +3 -3
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +8 -8
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-font-weight.js +1 -1
- package/dist/components/tet-fonts.js +1 -1
- package/dist/components/tet-grid.js +1 -1
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-macd-view.js +1 -1
- package/dist/components/tet-navigation-mobile.js +3 -3
- package/dist/components/tet-news-card-list.js +1 -1
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +1 -1
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v3.d.ts +11 -0
- package/dist/components/tet-stepper-v3.js +6 -0
- package/dist/components/tet-table.js +1 -1
- package/dist/components/tet-textarea.js +2 -2
- package/dist/components/tet-thank-you-view-v3.d.ts +11 -0
- package/dist/components/tet-thank-you-view-v3.js +137 -0
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/esm/index-7f1e2a22.js +8 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tet-accordion.entry.js +6 -6
- package/dist/esm/tet-address-offers-view.entry.js +1 -1
- package/dist/esm/tet-b2b-service-calculator.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-lines.entry.js +1 -1
- package/dist/esm/tet-colors.entry.js +3 -3
- package/dist/esm/tet-components.js +1 -1
- package/dist/esm/tet-datepicker-header_4.entry.js +5 -5
- package/dist/esm/tet-datepicker.entry.js +4 -4
- package/dist/esm/tet-expansion-panel.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +1 -1
- package/dist/esm/tet-fonts.entry.js +1 -1
- package/dist/esm/tet-grid.entry.js +1 -1
- package/dist/esm/tet-layout.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +1 -1
- package/dist/esm/tet-navigation-mobile.entry.js +3 -3
- package/dist/esm/tet-news-card-list.entry.js +1 -1
- package/dist/esm/tet-notification.entry.js +1 -1
- package/dist/esm/tet-number-input_2.entry.js +1 -1
- package/dist/esm/tet-range-slider_2.entry.js +7 -7
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-stepper-v3.entry.js +38 -0
- package/dist/esm/tet-textarea.entry.js +2 -2
- package/dist/esm/tet-thank-you-view-v3.entry.js +88 -0
- package/dist/esm/tet-tooltip.entry.js +1 -1
- package/dist/tet-components/{p-b119d561.entry.js → p-0b54af69.entry.js} +1 -1
- package/dist/tet-components/{p-56ba2009.entry.js → p-12b577dc.entry.js} +1 -1
- package/dist/tet-components/{p-0a750c4f.entry.js → p-14398114.entry.js} +1 -1
- package/dist/tet-components/{p-bf3e7f72.entry.js → p-1878753a.entry.js} +1 -1
- package/dist/tet-components/{p-17b4104b.entry.js → p-390dae53.entry.js} +1 -1
- package/dist/tet-components/{p-d8851106.entry.js → p-3f047cc1.entry.js} +1 -1
- package/dist/tet-components/{p-29b4d2a1.entry.js → p-4025d8b9.entry.js} +1 -1
- package/dist/tet-components/{p-c34b6de0.entry.js → p-4f8a1bac.entry.js} +1 -1
- package/dist/tet-components/{p-8971f30a.entry.js → p-51b9e9b1.entry.js} +1 -1
- package/dist/tet-components/{p-2c4ff0e0.entry.js → p-535aa0e6.entry.js} +1 -1
- package/dist/tet-components/{p-7b7b84bc.entry.js → p-77d077a2.entry.js} +1 -1
- package/dist/tet-components/{p-6282db79.entry.js → p-829ea121.entry.js} +1 -1
- package/dist/tet-components/{p-075a2c0d.entry.js → p-85746897.entry.js} +1 -1
- package/dist/tet-components/p-884fb1ef.entry.js +1 -0
- package/dist/tet-components/{p-061c267a.entry.js → p-8f01d952.entry.js} +1 -1
- package/dist/tet-components/{p-adc24a53.entry.js → p-948edd76.entry.js} +1 -1
- package/dist/tet-components/{p-84b9ec15.entry.js → p-95636edc.entry.js} +1 -1
- package/dist/tet-components/{p-b4e98d75.entry.js → p-aeac34db.entry.js} +1 -1
- package/dist/tet-components/{p-5f74e092.entry.js → p-b35358e8.entry.js} +1 -1
- package/dist/tet-components/p-b6b9d41a.entry.js +1 -0
- package/dist/tet-components/{p-d5556174.entry.js → p-d119d84a.entry.js} +1 -1
- package/dist/tet-components/{p-6e4be4a3.entry.js → p-d13cc8cb.entry.js} +1 -1
- package/dist/tet-components/{p-1479c97e.entry.js → p-deb15b17.entry.js} +1 -1
- package/dist/tet-components/{p-f46011ad.entry.js → p-faa94705.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.d.ts +22 -0
- package/dist/types/components.d.ts +185 -0
- 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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
767
|
+
} })), h("div", { key: 'a5d78efeeb02a3e168f56bd6d5e5f42e5719a703', class: {
|
|
768
768
|
'range-slider__current-step-container': true,
|
|
769
769
|
'hidden': !this.withCurrentStepCounter,
|
|
770
|
-
} }, h("div", { key: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
54
|
-
h("span", { key: '
|
|
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: '
|
|
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"; }
|
package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js
CHANGED
|
@@ -54,13 +54,13 @@ export class TetNavigationMobile {
|
|
|
54
54
|
this.mainDropdownToggle.emit(isTogglerExpanded);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
117
|
-
h("img", { key: '
|
|
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: '
|
|
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: '
|
|
123
|
+
}, inert: !this.isOpen }, h("div", { key: '656b232c7288dc19b2afdc8409589d2d1e8530af', ref: (element) => (this.contentElement = element), class: {
|
|
124
124
|
'tet-accordion__content': true
|
|
125
|
-
} }, h("slot", { key: '
|
|
125
|
+
} }, h("slot", { key: '252e86d4b56b5732b298064ac5b65fc9fc93f351' }))))));
|
|
126
126
|
}
|
|
127
127
|
static get is() { return "tet-accordion"; }
|
|
128
128
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js
CHANGED
|
@@ -63,7 +63,7 @@ export class TetExpansionPanel {
|
|
|
63
63
|
return this.state;
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h("div", { key: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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"; }
|
package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js
CHANGED
|
@@ -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: '
|
|
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: '
|
|
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"; }
|
package/dist/collection/components/views/tet-thank-you-view-v3/test/tet-thank-you-view-v3.spec.js
ADDED
|
@@ -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
|
+
});
|