@ptcwebops/ptcw-design 6.1.28 → 6.1.30
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/blog-detail-content_2.cjs.entry.js +1 -1
- package/dist/cjs/blog-detail-layout.cjs.entry.js +1 -1
- package/dist/cjs/fl-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-card_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +194 -7
- package/dist/cjs/ptc-filter-tag_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-footer.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +76 -185
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-para.cjs.entry.js +127 -0
- package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-category.cjs.entry.js +2 -2
- package/dist/cjs/ptc-readmore.cjs.entry.js +165 -0
- package/dist/cjs/{ptc-para_3.cjs.entry.js → ptc-title.cjs.entry.js} +2 -280
- package/dist/cjs/ptc-tooltip-v3.cjs.entry.js +2 -2
- package/dist/cjs/ptc-value-prop-card.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/icon-asset/icon-asset.css +2 -2
- package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.css +1 -1
- package/dist/collection/components/organism-bundles/blog-detail-layout/blog-detail-layout.css +1 -1
- package/dist/collection/components/ptc-card/ptc-card.css +1 -1
- package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.css +13 -0
- package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.js +194 -6
- package/dist/collection/components/ptc-featured-list/fl-tab-header/fl-tab-header.js +1 -1
- package/dist/collection/components/ptc-footer/ptc-footer-v2.css +3 -0
- package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.css +7 -7
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +2 -2
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +1 -1
- package/dist/collection/components/ptc-para/ptc-para.js +21 -3
- package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +1 -1
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +2 -2
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +131 -0
- package/dist/collection/components/ptc-product-category/ptc-product-category.js +1 -1
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +34 -51
- package/dist/collection/components/ptc-title/ptc-title.js +20 -1
- package/dist/collection/components/ptc-tooltip-v3/ptc-tooltip-v3.css +1 -6
- package/dist/collection/components/ptc-tooltip-v3/ptc-tooltip-v3.js +1 -1
- package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.js +1 -1
- package/dist/custom-elements/index.js +292 -213
- package/dist/esm/blog-detail-content_2.entry.js +2 -2
- package/dist/esm/blog-detail-layout.entry.js +2 -2
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/fl-tab-content_3.entry.js +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +1 -1
- package/dist/esm/ptc-card_2.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-embedded-quiz.entry.js +194 -7
- package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_2.entry.js +77 -186
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +1 -1
- package/dist/esm/ptc-para.entry.js +123 -0
- package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
- package/dist/esm/ptc-product-category.entry.js +2 -2
- package/dist/esm/ptc-readmore.entry.js +161 -0
- package/dist/esm/{ptc-para_3.entry.js → ptc-title.entry.js} +5 -281
- package/dist/esm/ptc-tooltip-v3.entry.js +2 -2
- package/dist/esm/ptc-value-prop-card.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-b7c6422e.js → utils-1bbe0c30.js} +1 -1
- package/dist/ptcw-design/p-04aae3f5.entry.js +1 -0
- package/dist/ptcw-design/{p-dfb71b58.entry.js → p-18f59395.entry.js} +1 -1
- package/dist/ptcw-design/p-1b7087e7.entry.js +1 -0
- package/dist/ptcw-design/{p-1ae7d46e.entry.js → p-20bfb063.entry.js} +1 -1
- package/dist/ptcw-design/{p-e38ed0e3.entry.js → p-2ac7e3ce.entry.js} +1 -1
- package/dist/ptcw-design/p-2e19248b.entry.js +1 -0
- package/dist/ptcw-design/{p-90992b01.entry.js → p-3b69e2f2.entry.js} +1 -1
- package/dist/ptcw-design/{p-df8526a2.entry.js → p-53f49500.entry.js} +1 -1
- package/dist/ptcw-design/{p-14e53256.entry.js → p-5602ffb4.entry.js} +1 -1
- package/dist/ptcw-design/p-58a33388.entry.js +68 -0
- package/dist/ptcw-design/p-58d5c97e.entry.js +1 -0
- package/dist/ptcw-design/p-61d28206.entry.js +1 -0
- package/dist/ptcw-design/p-71360e29.entry.js +1 -0
- package/dist/ptcw-design/{p-2335d57c.entry.js → p-717d3a75.entry.js} +1 -1
- package/dist/ptcw-design/{p-f05fec22.entry.js → p-71d73712.entry.js} +1 -1
- package/dist/ptcw-design/{p-c44764c7.entry.js → p-7dacbeb3.entry.js} +1 -1
- package/dist/ptcw-design/{p-4aa47312.entry.js → p-84aba692.entry.js} +1 -1
- package/dist/ptcw-design/{p-999d1c9f.entry.js → p-84ec4bf1.entry.js} +1 -1
- package/dist/ptcw-design/{p-34610052.entry.js → p-873c711b.entry.js} +1 -1
- package/dist/ptcw-design/{p-eab1042e.entry.js → p-942850e0.entry.js} +1 -1
- package/dist/ptcw-design/p-946baf89.entry.js +1 -0
- package/dist/ptcw-design/p-a175e86e.entry.js +1 -0
- package/dist/ptcw-design/{p-4c096997.entry.js → p-a4798ed2.entry.js} +1 -1
- package/dist/ptcw-design/p-a84cc8ad.entry.js +1 -0
- package/dist/ptcw-design/{p-841b807d.js → p-ad87bdab.js} +1 -1
- package/dist/ptcw-design/{p-2f7ea03e.entry.js → p-b41dd762.entry.js} +1 -1
- package/dist/ptcw-design/{p-34b270c1.entry.js → p-b4564411.entry.js} +1 -1
- package/dist/ptcw-design/{p-b83c24b8.entry.js → p-b58af3d5.entry.js} +1 -1
- package/dist/ptcw-design/{p-99cef423.entry.js → p-b6e5379a.entry.js} +1 -1
- package/dist/ptcw-design/{p-c7f77978.entry.js → p-cae1202f.entry.js} +1 -1
- package/dist/ptcw-design/{p-103ec637.entry.js → p-dee4bb6c.entry.js} +1 -1
- package/dist/ptcw-design/{p-7e7ebf0a.entry.js → p-deebd138.entry.js} +1 -1
- package/dist/ptcw-design/{p-cffebefe.entry.js → p-f07e64f2.entry.js} +1 -1
- package/dist/ptcw-design/p-fb8584e4.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-embedded-quiz/ptc-embedded-quiz.d.ts +12 -1
- package/dist/types/components/ptc-para/ptc-para.d.ts +4 -0
- package/dist/types/components/ptc-title/ptc-title.d.ts +4 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-0564f8fc.entry.js +0 -1
- package/dist/ptcw-design/p-374734fb.entry.js +0 -1
- package/dist/ptcw-design/p-5f2f5013.entry.js +0 -1
- package/dist/ptcw-design/p-86954980.entry.js +0 -68
- package/dist/ptcw-design/p-93b33ec0.entry.js +0 -1
- package/dist/ptcw-design/p-9c112fb9.entry.js +0 -1
- package/dist/ptcw-design/p-af9026f2.entry.js +0 -1
- package/dist/ptcw-design/p-bd7971a9.entry.js +0 -1
- package/dist/ptcw-design/p-fd11f2a8.entry.js +0 -1
|
@@ -1,6 +1,194 @@
|
|
|
1
1
|
import { Host, h, Fragment } from '@stencil/core';
|
|
2
2
|
export class PtcEmbeddedQuiz {
|
|
3
3
|
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Set focus on the first radio option in the current slide of the quiz
|
|
6
|
+
*/
|
|
7
|
+
this.focusFirstRadio = () => {
|
|
8
|
+
var _a;
|
|
9
|
+
let firstRadio = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.radio');
|
|
10
|
+
if (firstRadio) {
|
|
11
|
+
firstRadio.focus();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Handles custom keyboard click events
|
|
16
|
+
* @param e Event - Only handled if Event is KeyboardEvent
|
|
17
|
+
* @param callback Function that should be called after processing event
|
|
18
|
+
* @param idx -1: Restart button | -2: Previous button | -3: Start button | n>=0: Radio options
|
|
19
|
+
*/
|
|
20
|
+
this.handleKeyClick = (e, callback, idx) => {
|
|
21
|
+
if (e instanceof KeyboardEvent) {
|
|
22
|
+
/**
|
|
23
|
+
* Handles Tab and Shift+Tab operations for the quiz's radio options
|
|
24
|
+
*/
|
|
25
|
+
const handleOptionTabInOut = () => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
if (e.shiftKey) {
|
|
28
|
+
let restartButton = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.restart-quiz-button');
|
|
29
|
+
restartButton && restartButton.focus();
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
let previousButton = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.previous-slide-button');
|
|
33
|
+
previousButton && previousButton.focus();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Handles focus setting when quiz is set to final slide
|
|
38
|
+
*/
|
|
39
|
+
const handleFinalSlideInFocus = () => {
|
|
40
|
+
var _a, _b, _c;
|
|
41
|
+
let firstButton = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('ptc-button');
|
|
42
|
+
if (firstButton) {
|
|
43
|
+
let focusTarget = (_b = firstButton.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('a[tabindex="0"]');
|
|
44
|
+
if (focusTarget) {
|
|
45
|
+
focusTarget.focus();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
let previousButton = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('.previous-slide-button');
|
|
50
|
+
if (previousButton) {
|
|
51
|
+
previousButton.focus();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Handles Shift+Tab operation on final slide previous button
|
|
57
|
+
*/
|
|
58
|
+
const handleFinalSlidePreviousFocus = () => {
|
|
59
|
+
var _a, _b, _c;
|
|
60
|
+
let ctaButtons = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('ptc-button');
|
|
61
|
+
if (ctaButtons.length > 0) {
|
|
62
|
+
let targetButton = ctaButtons[ctaButtons.length - 1];
|
|
63
|
+
let focusTarget = (_b = targetButton.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('a[tabindex="0"]');
|
|
64
|
+
if (focusTarget) {
|
|
65
|
+
focusTarget.focus();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
let restartButton = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('.restart-quiz-button');
|
|
70
|
+
if (restartButton) {
|
|
71
|
+
restartButton.focus();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Handles focus setting when the quiz slide is updated
|
|
77
|
+
*/
|
|
78
|
+
const handleSlideChangeFocus = () => {
|
|
79
|
+
e.preventDefault();
|
|
80
|
+
let currentActiveElement = document.activeElement;
|
|
81
|
+
currentActiveElement.blur();
|
|
82
|
+
callback();
|
|
83
|
+
setTimeout(() => {
|
|
84
|
+
if (this.slide["slide-type"] === "result") {
|
|
85
|
+
handleFinalSlideInFocus();
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
this.focusFirstRadio();
|
|
89
|
+
}
|
|
90
|
+
}, 500);
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Handles Arrow operations and focus updates for the quiz's radio options
|
|
94
|
+
* @param targetIdx Next potential radio button's data-key
|
|
95
|
+
*/
|
|
96
|
+
const handleArrowFocus = (targetIdx) => {
|
|
97
|
+
var _a;
|
|
98
|
+
if (targetIdx === this.slide["options"].length) {
|
|
99
|
+
targetIdx = 0;
|
|
100
|
+
}
|
|
101
|
+
else if (targetIdx < 0) {
|
|
102
|
+
targetIdx = this.slide["options"].length - 1;
|
|
103
|
+
}
|
|
104
|
+
let targetRadio = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.radio[data-key="${targetIdx}"]`);
|
|
105
|
+
targetRadio && targetRadio.focus();
|
|
106
|
+
};
|
|
107
|
+
switch (e.key) {
|
|
108
|
+
case "Tab": {
|
|
109
|
+
switch (idx) {
|
|
110
|
+
case -1: {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
case -2: {
|
|
114
|
+
if (e.shiftKey) {
|
|
115
|
+
e.preventDefault();
|
|
116
|
+
if (this.slide["slide-type"] === "result") {
|
|
117
|
+
handleFinalSlidePreviousFocus();
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.focusFirstRadio();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
default: {
|
|
126
|
+
if (idx >= 0) {
|
|
127
|
+
e.preventDefault();
|
|
128
|
+
handleOptionTabInOut();
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
case " ": {
|
|
136
|
+
switch (idx) {
|
|
137
|
+
case -1:
|
|
138
|
+
case -2: {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
case -3: {
|
|
142
|
+
handleSlideChangeFocus();
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
default: {
|
|
146
|
+
if (idx >= 0) {
|
|
147
|
+
handleSlideChangeFocus();
|
|
148
|
+
}
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
case "Enter": {
|
|
155
|
+
switch (idx) {
|
|
156
|
+
case -1:
|
|
157
|
+
case -2: {
|
|
158
|
+
handleSlideChangeFocus();
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
case -3: {
|
|
162
|
+
handleSlideChangeFocus();
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
default: {
|
|
166
|
+
if (idx >= 0) {
|
|
167
|
+
handleSlideChangeFocus();
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
case "ArrowRight":
|
|
175
|
+
case "ArrowDown": {
|
|
176
|
+
if (idx >= 0) {
|
|
177
|
+
handleArrowFocus(idx + 1);
|
|
178
|
+
}
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
case "ArrowLeft":
|
|
182
|
+
case "ArrowUp": {
|
|
183
|
+
if (idx >= 0) {
|
|
184
|
+
handleArrowFocus(idx - 1);
|
|
185
|
+
}
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
default: break;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
4
192
|
this.getQuizEndpoint = undefined;
|
|
5
193
|
this.quiz = null;
|
|
6
194
|
this.slide = null;
|
|
@@ -61,21 +249,21 @@ export class PtcEmbeddedQuiz {
|
|
|
61
249
|
}
|
|
62
250
|
render() {
|
|
63
251
|
const QuizSlideRestartButton = () => {
|
|
64
|
-
return h("div", { class: "right-button-container" }, h("div", { class: "restart-quiz-button", onClick: () => this.handleRestartButtonClick() }, h("icon-asset", { id: "restart-arrow", type: "ptc", size: "small", name: "quiz-arrow-restart" }), h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, this.restartQuizText || "Restart")));
|
|
252
|
+
return h("div", { class: "right-button-container" }, h("div", { id: "restart-quiz-button", class: "restart-quiz-button mf-listen", onClick: () => this.handleRestartButtonClick(), onKeyDown: e => this.handleKeyClick(e, () => this.handleRestartButtonClick(), -1), tabIndex: 0 }, h("icon-asset", { id: "restart-arrow", type: "ptc", size: "small", name: "quiz-arrow-restart" }), h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, this.restartQuizText || "Restart")));
|
|
65
253
|
};
|
|
66
254
|
const QuizSlidePreviousButton = props => {
|
|
67
|
-
return h("div", { class: "center-button-container" }, h("div", { class: `previous-slide-button ${props.invisible ? "invisible" : ""}`, onClick: () => this.handlePreviousButtonClick() }, h("icon-asset", { id: "left-arrow", type: "ptc", size: "medium", name: "quiz-arrow-left", onClick: () => { } }), h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, this.previousButtonText || "Previous")));
|
|
255
|
+
return h("div", { class: "center-button-container" }, h("div", { id: "previous-slide-button", class: `previous-slide-button mf-listen ${props.invisible ? "invisible" : ""}`, onClick: () => this.handlePreviousButtonClick(), onKeyDown: e => this.handleKeyClick(e, () => this.handlePreviousButtonClick(), -2), tabIndex: 0 }, h("icon-asset", { id: "left-arrow", type: "ptc", size: "medium", name: "quiz-arrow-left", onClick: () => { } }), h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, this.previousButtonText || "Previous")));
|
|
68
256
|
};
|
|
69
257
|
const QuizInitialSlide = () => {
|
|
70
|
-
return (h("div", { class: "quiz-slide-initial" }, h("div", { class: "quiz-slide-content" }, h("div", { id: "initial-quiz-h2", class: "quiz-slide-text-container" }, h("ptc-title", { type: "h2", "text-align": "center", "title-size": "xx-large", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-shadow": "", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-8", "is-plm-hub": "false" }, this.slide["h2"])), h("ptc-spacer", { size: 'medium', breakpoint: 'small' }), h("ptc-spacer", { size: 'large', breakpoint: 'x-small' }), h("div", { id: "initial-quiz-h3", class: "quiz-slide-text-container" }, h("ptc-title", { type: "h3", "text-align": "center", "title-size": "large", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-shadow": "", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false" }, this.slide["h3"])), h("ptc-spacer", { size: 'x-large', breakpoint: 'small' }), h("ptc-spacer", { size: 'xx-large', breakpoint: 'x-small' }), h("div", { id: "initial-quiz-p", class: "quiz-slide-text-container" }, h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "x-small", "font-weight": "w-4", "para-align": "center", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, this.slide["p"])), h("div", { class: "center-button-container" }, h("div", { id: "quiz-start-button", onClick: () => this.handleStartButtonClick() }, h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": "", target: "_blank" }, this.startButtonText || "Start"))))));
|
|
258
|
+
return (h("div", { class: "quiz-slide-initial" }, h("div", { class: "quiz-slide-content" }, h("div", { id: "initial-quiz-h2", class: "quiz-slide-text-container" }, h("ptc-title", { type: "h2", "text-align": "center", "title-size": "xx-large", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-shadow": "", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-8", "is-plm-hub": "false" }, this.slide["h2"])), h("ptc-spacer", { size: 'medium', breakpoint: 'small' }), h("ptc-spacer", { size: 'large', breakpoint: 'x-small' }), h("div", { id: "initial-quiz-h3", class: "quiz-slide-text-container" }, h("ptc-title", { type: "h3", "text-align": "center", "title-size": "large", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-shadow": "", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false" }, this.slide["h3"])), h("ptc-spacer", { size: 'x-large', breakpoint: 'small' }), h("ptc-spacer", { size: 'xx-large', breakpoint: 'x-small' }), h("div", { id: "initial-quiz-p", class: "quiz-slide-text-container" }, h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "x-small", "font-weight": "w-4", "para-align": "center", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, this.slide["p"])), h("div", { class: "center-button-container" }, h("div", { id: "quiz-start-button", onClick: () => this.handleStartButtonClick() }, h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": "", target: "_blank", onKeyDown: e => this.handleKeyClick(e, () => this.handleStartButtonClick(), -3), "tracker-id": "quiz-start-button" }, this.startButtonText || "Start"))))));
|
|
71
259
|
};
|
|
72
260
|
const QuizQuestionSlide = () => {
|
|
73
|
-
return (h("div", { class: "quiz-slide-question" }, h("div", { class: "quiz-slide-content" }, h("div", { class: "quiz-slide-dual-layout" }, h("div", { class: "image-container" }, h("img", { alt: "", src: this.slide['image'] })), h("div", { class: "content-container" }, h("ptc-title", { type: "h4", "text-align": "left", "title-size": "medium", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-shadow": "", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false" }, this.slide["question"]), h("div", { class: "options-container" }, this.slide["options"].map(option => {
|
|
74
|
-
return h("div", { class: "radio-input", onClick: () => this.handleQuestionOptionClick(option["data-model-id"]) }, h("span", { id: `radio-${option["data-model-id"]}`, class: "radio" }), h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, option["data-value"]));
|
|
261
|
+
return (h("div", { class: "quiz-slide-question" }, h("div", { class: "quiz-slide-content" }, h("div", { class: "quiz-slide-dual-layout" }, h("div", { class: "image-container" }, h("img", { alt: "", src: this.slide['image'] })), h("div", { class: "content-container" }, h("ptc-title", { type: "h4", "text-align": "left", "title-size": "medium", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-shadow": "", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false" }, this.slide["question"]), h("div", { class: "options-container" }, this.slide["options"].map((option, idx) => {
|
|
262
|
+
return h("div", { id: `option-${option["data-model-id"]}`, class: "radio-input mf-listen", onClick: () => this.handleQuestionOptionClick(option["data-model-id"]), onKeyDown: e => this.handleKeyClick(e, () => this.handleQuestionOptionClick(option["data-model-id"]), idx), "data-key": idx }, h("span", { id: `radio-${option["data-model-id"]}`, class: "radio", tabIndex: 0, "data-key": idx }), h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, option["data-value"]));
|
|
75
263
|
})))))));
|
|
76
264
|
};
|
|
77
265
|
const QuizResultSlide = () => {
|
|
78
|
-
return (h("div", { class: "quiz-slide-result" }, h("div", { class: "quiz-slide-content" }, h("div", { class: "quiz-slide-dual-layout" }, h("div", { class: "image-container" }, h("img", { alt: "", src: this.slide["image"] })), h("div", { class: "content-container" }, h("ptc-title", { type: "h4", "text-align": "left", "title-size": "medium", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-shadow": "", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false" }, this.slide["title"]), h("ptc-spacer", { size: 'large', breakpoint: 'small' }), h("ptc-spacer", { size: 'x-large', breakpoint: 'x-small' }), h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-bottom-6", "para-style": "", "para-z-index": "z-1", styles: "" }, this.slide["description"]), h("div", { class: "cta-container" }, this.slide["cta-quaternary"] && h("ptc-button", { type: "link", target: this.slide["cta-quaternary"]["target"], color: "ptc-quaternary", "link-href": this.slide["cta-quaternary"]["href"] }, this.slide["cta-quaternary"]["text"]), this.slide["cta-tertiary"] && h("ptc-button", { type: "link", target: this.slide["cta-tertiary"]["target"], color: "ptc-tertiary", "link-href": this.slide["cta-tertiary"]["href"] }, this.slide["cta-tertiary"]["text"])))))));
|
|
266
|
+
return (h("div", { class: "quiz-slide-result" }, h("div", { class: "quiz-slide-content" }, h("div", { class: "quiz-slide-dual-layout" }, h("div", { class: "image-container" }, h("img", { alt: "", src: this.slide["image"] })), h("div", { class: "content-container" }, h("ptc-title", { type: "h4", "text-align": "left", "title-size": "medium", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-shadow": "", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false" }, this.slide["title"]), h("ptc-spacer", { size: 'large', breakpoint: 'small' }), h("ptc-spacer", { size: 'x-large', breakpoint: 'x-small' }), h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-bottom-6", "para-style": "", "para-z-index": "z-1", styles: "" }, this.slide["description"]), h("div", { class: "cta-container" }, this.slide["cta-quaternary"] && h("ptc-button", { type: "link", target: this.slide["cta-quaternary"]["target"], color: "ptc-quaternary", "link-href": this.slide["cta-quaternary"]["href"], "tracker-id": 'final-cta-quaternary' }, this.slide["cta-quaternary"]["text"]), this.slide["cta-tertiary"] && h("ptc-button", { type: "link", target: this.slide["cta-tertiary"]["target"], color: "ptc-tertiary", "link-href": this.slide["cta-tertiary"]["href"], "tracker-id": 'final-cta-tertiary' }, this.slide["cta-tertiary"]["text"])))))));
|
|
79
267
|
};
|
|
80
268
|
const getQuizSlide = () => {
|
|
81
269
|
switch (this.slide["slide-type"]) {
|
|
@@ -50,7 +50,7 @@ export class FlTabHeader {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { class: `fl-header ${this.selected ? 'selected' : ''}`, onClick: this.handleClick.bind(this), onKeyDown: this.handleKeyDown.bind(this) }, h("slot", null), h("p", { id: this.trackerId, class: `${this.selected ? 'selected-p' : ''} mf-listen`, tabindex: (this.selected || window.innerWidth < 992) ? 0 : -1 },
|
|
53
|
+
return (h(Host, { class: `fl-header ${this.selected ? 'selected' : ''}`, onClick: this.handleClick.bind(this), onKeyDown: this.handleKeyDown.bind(this) }, h("slot", null), h("p", { id: this.trackerId, class: `${this.selected ? 'selected-p' : ''} mf-listen`, tabindex: (this.selected || window.innerWidth < 992) ? 0 : -1 }, this.tabTitle)));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "fl-tab-header"; }
|
|
56
56
|
static get encapsulation() { return "scoped"; }
|
|
@@ -239,6 +239,9 @@ ptc-footer .footer-bottom ul li, ptc-footer .footer-bottom ol li {
|
|
|
239
239
|
ptc-footer .footer-bottom .logo {
|
|
240
240
|
margin-bottom: var(--ptc-element-spacing-06);
|
|
241
241
|
}
|
|
242
|
+
ptc-footer .footer-bottom .logo a {
|
|
243
|
+
display: inline-block;
|
|
244
|
+
}
|
|
242
245
|
ptc-footer .footer-bottom .logo .footer-ptc-logo {
|
|
243
246
|
width: 78px;
|
|
244
247
|
height: 28px;
|
|
@@ -1133,29 +1133,29 @@ ptc-link, ptc-square-card,
|
|
|
1133
1133
|
|
|
1134
1134
|
.mdc-checkbox {
|
|
1135
1135
|
transform: translateX(-8px);
|
|
1136
|
-
padding:
|
|
1136
|
+
padding: calc((34px - 18px) / 2);
|
|
1137
1137
|
/* @alternate */
|
|
1138
1138
|
padding: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1139
|
-
margin:
|
|
1139
|
+
margin: calc((34px - 34px) / 2);
|
|
1140
1140
|
/* @alternate */
|
|
1141
1141
|
margin: calc((var(--mdc-checkbox-touch-target-size, 34px) - 34px) / 2);
|
|
1142
1142
|
}
|
|
1143
1143
|
.mdc-checkbox .mdc-checkbox__background {
|
|
1144
|
-
top:
|
|
1144
|
+
top: calc((34px - 18px) / 2);
|
|
1145
1145
|
/* @alternate */
|
|
1146
1146
|
top: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1147
|
-
left:
|
|
1147
|
+
left: calc((34px - 18px) / 2);
|
|
1148
1148
|
/* @alternate */
|
|
1149
1149
|
left: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1150
1150
|
}
|
|
1151
1151
|
.mdc-checkbox .mdc-checkbox__native-control {
|
|
1152
|
-
top:
|
|
1152
|
+
top: calc((34px - 34px) / 2);
|
|
1153
1153
|
/* @alternate */
|
|
1154
1154
|
top: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1155
|
-
right:
|
|
1155
|
+
right: calc((34px - 34px) / 2);
|
|
1156
1156
|
/* @alternate */
|
|
1157
1157
|
right: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1158
|
-
left:
|
|
1158
|
+
left: calc((34px - 34px) / 2);
|
|
1159
1159
|
/* @alternate */
|
|
1160
1160
|
left: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1161
1161
|
width: 34px;
|
|
@@ -1101,7 +1101,7 @@ ptc-link, ptc-square-card,
|
|
|
1101
1101
|
}
|
|
1102
1102
|
@media only screen and (min-width: 992px) {
|
|
1103
1103
|
.u-3-col-grid .u-3-col {
|
|
1104
|
-
width: calc(33.
|
|
1104
|
+
width: calc(33.333333333333% - 10.66666666px);
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
1107
1107
|
.u-3-col-grid.u-col-space-lg {
|
|
@@ -1118,7 +1118,7 @@ ptc-link, ptc-square-card,
|
|
|
1118
1118
|
}
|
|
1119
1119
|
@media only screen and (min-width: 992px) {
|
|
1120
1120
|
.u-3-col-grid.u-col-space-lg .u-3-col {
|
|
1121
|
-
width: calc(33.
|
|
1121
|
+
width: calc(33.333333333333% - 21.3333333px);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
@@ -128,7 +128,7 @@ ptc-link, ptc-square-card,
|
|
|
128
128
|
width: 1.125rem;
|
|
129
129
|
height: 1.125rem;
|
|
130
130
|
border: 1px solid var(--color-gray-10);
|
|
131
|
-
border-radius: calc(var(--ptc-border-radius-standard)
|
|
131
|
+
border-radius: calc(var(--ptc-border-radius-standard)/2);
|
|
132
132
|
transition: background-color var(--ptc-ease-out) var(--ptc-transition-medium), fill var(--ptc-ease-out) var(--ptc-transition-medium), border-color var(--ptc-ease-out) var(--ptc-transition-medium);
|
|
133
133
|
}
|
|
134
134
|
.standard-filter .next-button:hover, .standard-filter .previous-button:hover {
|
|
@@ -22,6 +22,7 @@ export class PtcPara {
|
|
|
22
22
|
this.hideTooltipOnMobile = false;
|
|
23
23
|
this.ismob = undefined;
|
|
24
24
|
this.noOverflow = false;
|
|
25
|
+
this.tooltipWidth = 'default';
|
|
25
26
|
}
|
|
26
27
|
// Tooltip Properties ends
|
|
27
28
|
render() {
|
|
@@ -69,7 +70,7 @@ export class PtcPara {
|
|
|
69
70
|
tooltipMarkup.className = tooltipClass;
|
|
70
71
|
tooltipMarkup.innerText = this.tooltipText;
|
|
71
72
|
tooltipMarkup.style.zIndex = String(this.tooltipZIndex); // Ensures zIndex is a string
|
|
72
|
-
tooltipMarkup.classList.add(this.tooltipPosition, this.tooltipTheme);
|
|
73
|
+
tooltipMarkup.classList.add(this.tooltipPosition, this.tooltipTheme, this.tooltipWidth);
|
|
73
74
|
if (this.hideTooltipOnMobile) {
|
|
74
75
|
tooltipMarkup.classList.add('hide-tooltip-mobile');
|
|
75
76
|
}
|
|
@@ -97,8 +98,7 @@ export class PtcPara {
|
|
|
97
98
|
[this.paraLineH]: true,
|
|
98
99
|
[this.paraAlign]: !!this.paraAlign ? true : false,
|
|
99
100
|
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
100
|
-
['line-clamp-title']: this.maxLines && this.maxLines > 0,
|
|
101
|
-
['tooltip-enabled']: this.enableTooltip
|
|
101
|
+
['line-clamp-title']: this.maxLines && this.maxLines > 0, //tooltip code,
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
//WEB-2392
|
|
@@ -461,6 +461,24 @@ export class PtcPara {
|
|
|
461
461
|
"attribute": "no-overflow",
|
|
462
462
|
"reflect": false,
|
|
463
463
|
"defaultValue": "false"
|
|
464
|
+
},
|
|
465
|
+
"tooltipWidth": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"mutable": false,
|
|
468
|
+
"complexType": {
|
|
469
|
+
"original": "'full-width' | 'default'",
|
|
470
|
+
"resolved": "\"default\" | \"full-width\"",
|
|
471
|
+
"references": {}
|
|
472
|
+
},
|
|
473
|
+
"required": false,
|
|
474
|
+
"optional": true,
|
|
475
|
+
"docs": {
|
|
476
|
+
"tags": [],
|
|
477
|
+
"text": "This will make the width 100% respective to its parent"
|
|
478
|
+
},
|
|
479
|
+
"attribute": "tooltip-width",
|
|
480
|
+
"reflect": false,
|
|
481
|
+
"defaultValue": "'default'"
|
|
464
482
|
}
|
|
465
483
|
};
|
|
466
484
|
}
|
|
@@ -11,7 +11,7 @@ export class PtcPricingAddOnCard {
|
|
|
11
11
|
render() {
|
|
12
12
|
return (h(Host, null, h("div", { class: "add-on-card" }, h("ptc-title", { type: "h4", "text-align": "left", "title-size": "medium", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.cardTitle), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-align": "left", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("slot", { name: "card-pricing" })), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.el.querySelector('[slot="card-body"]').innerHTML.toString().length <= 300) ?
|
|
13
13
|
h("slot", { name: "card-body" }) :
|
|
14
|
-
h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "card-body" })), h("slot", { name: "card-body" })), this.cardCtaHref && this.cardCtaText && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-large" }), h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), h("ptc-button", { class: "mf-listen", type: "link", color: "ptc-tertiary", "link-href": this.cardCtaHref, target: this.cardCtaTarget },
|
|
14
|
+
h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "card-body" })), h("slot", { name: "card-body" })), this.cardCtaHref && this.cardCtaText && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-large" }), h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), h("ptc-button", { class: "mf-listen", type: "link", color: "ptc-tertiary", "link-href": this.cardCtaHref, target: this.cardCtaTarget }, this.cardCtaText)), this.cardDisclaimer && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.cardDisclaimer.length <= 150) ? h("slot", { name: "card-disclaimer" }) : h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "card-disclaimer" })))))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "ptc-pricing-add-on-card"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1046,7 +1046,7 @@ ptc-link, ptc-square-card,
|
|
|
1046
1046
|
}
|
|
1047
1047
|
@media only screen and (min-width: 992px) {
|
|
1048
1048
|
.u-3-col-grid .u-3-col {
|
|
1049
|
-
width: calc(33.
|
|
1049
|
+
width: calc(33.333333333333% - 10.66666666px);
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
.u-3-col-grid.u-col-space-lg {
|
|
@@ -1063,7 +1063,7 @@ ptc-link, ptc-square-card,
|
|
|
1063
1063
|
}
|
|
1064
1064
|
@media only screen and (min-width: 992px) {
|
|
1065
1065
|
.u-3-col-grid.u-col-space-lg .u-3-col {
|
|
1066
|
-
width: calc(33.
|
|
1066
|
+
width: calc(33.333333333333% - 21.3333333px);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
@@ -150,4 +150,135 @@ a:focus-visible {
|
|
|
150
150
|
}
|
|
151
151
|
:host .category-header {
|
|
152
152
|
margin-bottom: var(--ptc-layout-spacing-03);
|
|
153
|
+
}
|
|
154
|
+
:host .tooltip-box {
|
|
155
|
+
visibility: visible;
|
|
156
|
+
padding: 8px;
|
|
157
|
+
color: var(--color-white);
|
|
158
|
+
font-size: var(--ptc-font-size-xxx-small);
|
|
159
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
160
|
+
background-color: var(--color-gray-09);
|
|
161
|
+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
|
|
162
|
+
border: none;
|
|
163
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
164
|
+
width: auto;
|
|
165
|
+
height: auto;
|
|
166
|
+
text-align: left;
|
|
167
|
+
text-shadow: none;
|
|
168
|
+
white-space: normal;
|
|
169
|
+
position: absolute;
|
|
170
|
+
z-index: 999;
|
|
171
|
+
line-height: 1.5;
|
|
172
|
+
}
|
|
173
|
+
@media only screen and (min-width: 480px) {
|
|
174
|
+
:host .tooltip-box {
|
|
175
|
+
width: 273px;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
:host .tooltip-box.hide-tooltip-mobile {
|
|
179
|
+
display: none !important;
|
|
180
|
+
}
|
|
181
|
+
@media only screen and (min-width: 768px) {
|
|
182
|
+
:host .tooltip-box.hide-tooltip-mobile {
|
|
183
|
+
display: block !important;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
:host .tooltip-box.full-width {
|
|
187
|
+
width: 100%;
|
|
188
|
+
}
|
|
189
|
+
:host .tooltip-box::after {
|
|
190
|
+
content: "";
|
|
191
|
+
position: absolute;
|
|
192
|
+
}
|
|
193
|
+
:host .tooltip-box.bottom {
|
|
194
|
+
bottom: -12px;
|
|
195
|
+
transform: translateY(100%);
|
|
196
|
+
}
|
|
197
|
+
:host .tooltip-box.bottom::after {
|
|
198
|
+
top: 1px;
|
|
199
|
+
left: 50%;
|
|
200
|
+
transform: translate(-50%, -100%);
|
|
201
|
+
border: 8px solid transparent;
|
|
202
|
+
border-bottom: 8px solid var(--color-gray-09);
|
|
203
|
+
}
|
|
204
|
+
:host .tooltip-box.left {
|
|
205
|
+
bottom: -12px;
|
|
206
|
+
transform: translate(-80%, 100%);
|
|
207
|
+
}
|
|
208
|
+
:host .tooltip-box.left::after {
|
|
209
|
+
top: 1px;
|
|
210
|
+
right: 8px;
|
|
211
|
+
transform: translateY(-100%);
|
|
212
|
+
border: 8px solid transparent;
|
|
213
|
+
border-bottom: 8px solid var(--color-gray-09);
|
|
214
|
+
}
|
|
215
|
+
:host .tooltip-box.right {
|
|
216
|
+
bottom: -12px;
|
|
217
|
+
transform: translateY(100%);
|
|
218
|
+
right: 0px;
|
|
219
|
+
}
|
|
220
|
+
@-moz-document url-prefix() {
|
|
221
|
+
:host .tooltip-box.right {
|
|
222
|
+
right: unset !important;
|
|
223
|
+
bottom: unset !important;
|
|
224
|
+
transform: translate(60%, 8px) !important;
|
|
225
|
+
}
|
|
226
|
+
@media screen and (min-width: 992px) {
|
|
227
|
+
:host .tooltip-box.right {
|
|
228
|
+
transform: translate(100%, 8px) !important;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
:host .tooltip-box.right::after {
|
|
233
|
+
top: 1px;
|
|
234
|
+
left: 8px;
|
|
235
|
+
transform: translateY(-100%);
|
|
236
|
+
border: 8px solid transparent;
|
|
237
|
+
border-bottom: 8px solid var(--color-gray-09);
|
|
238
|
+
}
|
|
239
|
+
:host .tooltip-box.top {
|
|
240
|
+
top: -8px;
|
|
241
|
+
transform: translateY(-100%);
|
|
242
|
+
}
|
|
243
|
+
:host .tooltip-box.top::after {
|
|
244
|
+
left: 50%;
|
|
245
|
+
bottom: 1px;
|
|
246
|
+
transform: translate(-50%, 100%);
|
|
247
|
+
border: 8px solid transparent;
|
|
248
|
+
border-top: 8px solid var(--color-gray-09);
|
|
249
|
+
}
|
|
250
|
+
:host .tooltip-box.bottom-right {
|
|
251
|
+
bottom: -12px;
|
|
252
|
+
transform: translate(100%, 100%);
|
|
253
|
+
}
|
|
254
|
+
:host .tooltip-box.bottom-right::after {
|
|
255
|
+
top: 1px;
|
|
256
|
+
left: 10%;
|
|
257
|
+
transform: translate(-50%, -100%);
|
|
258
|
+
border: 8px solid transparent;
|
|
259
|
+
border-bottom: 8px solid var(--color-gray-09);
|
|
260
|
+
}
|
|
261
|
+
:host .tooltip-box.danger {
|
|
262
|
+
color: var(--color-red-07);
|
|
263
|
+
font-family: var(--ptc-font-latin);
|
|
264
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
265
|
+
font-size: var(--ptc-font-size-xx-small);
|
|
266
|
+
line-height: var(--ptc-line-height-p);
|
|
267
|
+
border: 2px solid var(--color-red-07);
|
|
268
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
269
|
+
background-color: var(--color-white);
|
|
270
|
+
padding: var(--ptc-element-spacing-06);
|
|
271
|
+
}
|
|
272
|
+
:host .tooltip-box.danger a {
|
|
273
|
+
color: var(--color-hyperlink);
|
|
274
|
+
}
|
|
275
|
+
@media (max-width: 768px) {
|
|
276
|
+
:host .hide-tooltip-on-mobile h1,
|
|
277
|
+
:host .hide-tooltip-on-mobile h2,
|
|
278
|
+
:host .hide-tooltip-on-mobile h3,
|
|
279
|
+
:host .hide-tooltip-on-mobile h4,
|
|
280
|
+
:host .hide-tooltip-on-mobile h5,
|
|
281
|
+
:host .hide-tooltip-on-mobile h6 {
|
|
282
|
+
-webkit-line-clamp: initial !important;
|
|
283
|
+
}
|
|
153
284
|
}
|
|
@@ -4,7 +4,7 @@ export class PtcProductCategory {
|
|
|
4
4
|
this.categoryDescription = undefined;
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, null, h("div", { class: "category-header" }, h("slot", { name: "title" }), h("ptc-spacer", { size: "x-small" }), h("ptc-spacer", { size: "x-small", breakpoint: "x-small" }), h("ptc-para", { "para-margin": "margin-flush", "font-size": "small", "para-line-h": "line-height-p", "font-weight": "w-5", "para-z-index": "z-auto"
|
|
7
|
+
return (h(Host, null, h("div", { class: "category-header" }, h("slot", { name: "title" }), h("ptc-spacer", { size: "x-small" }), h("ptc-spacer", { size: "x-small", breakpoint: "x-small" }), h("ptc-para", { "para-margin": "margin-flush", "font-size": "small", "para-line-h": "line-height-p", "font-weight": "w-5", "para-z-index": "z-auto", "enable-tooltip": true, "max-lines": "9", "tooltip-z-index": "999", "tooltip-width": 'full-width', "seo-compatibility-mode": true }, this.categoryDescription)), h("slot", null)));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "ptc-product-category"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|