@ptcwebops/ptcw-design 6.0.12 → 6.1.1
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/blogs-search-section.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset_13.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card_2.cjs.entry.js +43 -2
- package/dist/cjs/ptc-checkbox.cjs.entry.js +16 -3
- package/dist/cjs/ptc-dropdown.cjs.entry.js +6 -5
- package/dist/cjs/ptc-filter-tag_2.cjs.entry.js +16 -8
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +185 -76
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +20 -3
- package/dist/cjs/ptc-inline-cta.cjs.entry.js +4 -4
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +2 -2
- package/dist/cjs/ptc-link.cjs.entry.js +3 -2
- package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-search-field.cjs.entry.js +2 -2
- package/dist/cjs/ptc-social-icons.cjs.entry.js +2 -2
- 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/organism-bundles/blogs-search-section/blogs-search-section.js +1 -1
- package/dist/collection/components/ptc-card/ptc-card.css +1 -1
- package/dist/collection/components/ptc-card/ptc-card.js +86 -1
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +1 -0
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.css +9 -0
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +51 -2
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.css +8 -0
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +22 -4
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +4 -0
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +11 -0
- package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.css +7 -7
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +4 -0
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +36 -2
- package/dist/collection/components/ptc-inline-cta/ptc-inline-cta.css +0 -2
- package/dist/collection/components/ptc-inline-cta/ptc-inline-cta.js +3 -3
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +3 -4
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -1
- package/dist/collection/components/ptc-link/ptc-link.js +21 -2
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +5 -5
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +6 -6
- package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +1 -1
- package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +1 -1
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +1 -1
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +2 -2
- package/dist/collection/components/ptc-search-field/ptc-search-field.css +12 -5
- package/dist/collection/components/ptc-search-field/ptc-search-field.js +1 -1
- package/dist/collection/components/ptc-social-icons/ptc-social-icons.css +0 -1
- package/dist/collection/components/ptc-social-icons/ptc-social-icons.js +1 -1
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +51 -34
- package/dist/custom-elements/index.js +313 -123
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/icon-asset_13.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-card-bottom_2.entry.js +1 -1
- package/dist/esm/ptc-card_2.entry.js +44 -3
- package/dist/esm/ptc-checkbox.entry.js +16 -3
- package/dist/esm/ptc-dropdown.entry.js +6 -5
- package/dist/esm/ptc-filter-tag_2.entry.js +16 -8
- package/dist/esm/ptc-form-checkbox_2.entry.js +185 -76
- package/dist/esm/ptc-icon-minimize.entry.js +20 -3
- package/dist/esm/ptc-inline-cta.entry.js +4 -4
- package/dist/esm/ptc-jumbotron.entry.js +2 -2
- package/dist/esm/ptc-link.entry.js +3 -2
- package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-section.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-search-field.entry.js +2 -2
- package/dist/esm/ptc-social-icons.entry.js +2 -2
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-0483b35b.entry.js +1 -0
- package/dist/ptcw-design/{p-97691f5d.entry.js → p-0d2690dd.entry.js} +1 -1
- package/dist/ptcw-design/p-11eb4dd1.entry.js +1 -0
- package/dist/ptcw-design/p-1b1e8962.entry.js +1 -0
- package/dist/ptcw-design/p-1d48bad3.entry.js +1 -0
- package/dist/ptcw-design/p-21092dd2.entry.js +68 -0
- package/dist/ptcw-design/p-4ab685ce.entry.js +1 -0
- package/dist/ptcw-design/p-524088af.entry.js +1 -0
- package/dist/ptcw-design/{p-1b7a3753.entry.js → p-6cbc9e45.entry.js} +1 -1
- package/dist/ptcw-design/p-77b7108b.entry.js +1 -0
- package/dist/ptcw-design/p-7b27a4e4.entry.js +1 -0
- package/dist/ptcw-design/{p-674cbe95.entry.js → p-a2e0ebdf.entry.js} +1 -1
- package/dist/ptcw-design/p-a974f98f.entry.js +1 -0
- package/dist/ptcw-design/p-ac860994.entry.js +1 -0
- package/dist/ptcw-design/p-b03382d9.entry.js +1 -0
- package/dist/ptcw-design/p-b34456c8.entry.js +1 -0
- package/dist/ptcw-design/p-c48fad4f.entry.js +1 -0
- package/dist/ptcw-design/p-cd26d791.entry.js +1 -0
- package/dist/ptcw-design/{p-a241088c.entry.js → p-cfd07ef5.entry.js} +1 -1
- package/dist/ptcw-design/{p-3a7d25b6.entry.js → p-ea8e0b2e.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-card/ptc-card.d.ts +7 -0
- package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +3 -0
- package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +1 -0
- package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +1 -0
- package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +2 -0
- package/dist/types/components/ptc-link/ptc-link.d.ts +6 -0
- package/dist/types/components.d.ts +19 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-29816755.entry.js +0 -1
- package/dist/ptcw-design/p-4e60977c.entry.js +0 -1
- package/dist/ptcw-design/p-79624098.entry.js +0 -1
- package/dist/ptcw-design/p-7964e154.entry.js +0 -1
- package/dist/ptcw-design/p-a5ae3230.entry.js +0 -1
- package/dist/ptcw-design/p-a9a2d397.entry.js +0 -1
- package/dist/ptcw-design/p-b23ba3b6.entry.js +0 -1
- package/dist/ptcw-design/p-b72f0796.entry.js +0 -1
- package/dist/ptcw-design/p-c26edffe.entry.js +0 -68
- package/dist/ptcw-design/p-ccf1dacd.entry.js +0 -1
- package/dist/ptcw-design/p-d0ee3b50.entry.js +0 -1
- package/dist/ptcw-design/p-d538b1bc.entry.js +0 -1
- package/dist/ptcw-design/p-daa98c0d.entry.js +0 -1
- package/dist/ptcw-design/p-f2ed73d6.entry.js +0 -1
- package/dist/ptcw-design/p-fe73a83c.entry.js +0 -1
|
@@ -16,6 +16,7 @@ export class PtcDropdown {
|
|
|
16
16
|
this.listItems = undefined;
|
|
17
17
|
this.toggle = false;
|
|
18
18
|
this.selectedItem = undefined;
|
|
19
|
+
this.trackerId = undefined;
|
|
19
20
|
}
|
|
20
21
|
offClick(e) {
|
|
21
22
|
if (e && !this.host.contains(e.target) && this.toggle) {
|
|
@@ -44,13 +45,13 @@ export class PtcDropdown {
|
|
|
44
45
|
}
|
|
45
46
|
render() {
|
|
46
47
|
const classMap = this.getCssClassMap();
|
|
47
|
-
return (h("div", { class: classMap }, h("header", { class: "dropdown__header", onClick: this.toggleList }, h("label", null, h("b", null, this.label), " ", this.selectedItem ? this.selectedItem.label : "Select Option"), h("icon-asset", { type: "solid", size: "x-small", name: "chevron-down" })), this.toggle &&
|
|
48
|
-
h("ul", { tabIndex: -1, class: "dropdown__list", onBlur: () => { this.toggle = false; } }, this.listItems.map((item) => {
|
|
49
|
-
let cssClass = "dropdown__item";
|
|
48
|
+
return (h("div", { class: classMap }, h("header", { id: this.trackerId, class: "dropdown__header mf-listen", onClick: this.toggleList, tabindex: "0", onKeyPress: this.toggleList }, h("label", null, h("b", null, this.label), " ", this.selectedItem ? this.selectedItem.label : "Select Option"), h("icon-asset", { type: "solid", size: "x-small", name: "chevron-down" })), this.toggle &&
|
|
49
|
+
h("ul", { id: this.trackerId + `ul`, tabIndex: -1, class: "dropdown__list mf-listen", onBlur: () => { this.toggle = false; } }, this.listItems.map((item) => {
|
|
50
|
+
let cssClass = "dropdown__item mf-listen";
|
|
50
51
|
if (item.selected) {
|
|
51
52
|
cssClass += " selected";
|
|
52
53
|
}
|
|
53
|
-
return (h("li", { class: cssClass, onClick: () => this.handleClick(item) }, item.label));
|
|
54
|
+
return (h("li", { class: cssClass, id: item.label + this.trackerId, onClick: () => this.handleClick(item), tabindex: "0", onKeyPress: () => this.handleClick(item) }, item.label));
|
|
54
55
|
}))));
|
|
55
56
|
}
|
|
56
57
|
getCssClassMap() {
|
|
@@ -122,6 +123,23 @@ export class PtcDropdown {
|
|
|
122
123
|
"tags": [],
|
|
123
124
|
"text": ""
|
|
124
125
|
}
|
|
126
|
+
},
|
|
127
|
+
"trackerId": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "string",
|
|
132
|
+
"resolved": "string",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": ""
|
|
140
|
+
},
|
|
141
|
+
"attribute": "tracker-id",
|
|
142
|
+
"reflect": false
|
|
125
143
|
}
|
|
126
144
|
};
|
|
127
145
|
}
|
|
@@ -60,6 +60,10 @@ ptc-link, ptc-square-card,
|
|
|
60
60
|
position: relative;
|
|
61
61
|
margin: 0.25rem;
|
|
62
62
|
}
|
|
63
|
+
.ptc-filter-tag:focus-visible {
|
|
64
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
65
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
66
|
+
}
|
|
63
67
|
.ptc-filter-tag.bubble {
|
|
64
68
|
margin: 0 0.25rem;
|
|
65
69
|
display: inline-block;
|
|
@@ -4,6 +4,17 @@ export class PtcFilterTag {
|
|
|
4
4
|
this.handleClick = () => {
|
|
5
5
|
this.clicked.emit(this);
|
|
6
6
|
};
|
|
7
|
+
this.handleKeyDown = (e) => {
|
|
8
|
+
switch (e.key) {
|
|
9
|
+
case "Enter": {
|
|
10
|
+
this.clicked.emit(this);
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
default: {
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
7
18
|
this.theme = 'bubble';
|
|
8
19
|
this.iconColorMap = undefined;
|
|
9
20
|
this.styles = undefined;
|
|
@@ -1133,29 +1133,29 @@ ptc-link, ptc-square-card,
|
|
|
1133
1133
|
|
|
1134
1134
|
.mdc-checkbox {
|
|
1135
1135
|
transform: translateX(-8px);
|
|
1136
|
-
padding:
|
|
1136
|
+
padding: 8px;
|
|
1137
1137
|
/* @alternate */
|
|
1138
1138
|
padding: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1139
|
-
margin:
|
|
1139
|
+
margin: 0px;
|
|
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: 8px;
|
|
1145
1145
|
/* @alternate */
|
|
1146
1146
|
top: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1147
|
-
left:
|
|
1147
|
+
left: 8px;
|
|
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: 0px;
|
|
1153
1153
|
/* @alternate */
|
|
1154
1154
|
top: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1155
|
-
right:
|
|
1155
|
+
right: 0px;
|
|
1156
1156
|
/* @alternate */
|
|
1157
1157
|
right: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1158
|
-
left:
|
|
1158
|
+
left: 0px;
|
|
1159
1159
|
/* @alternate */
|
|
1160
1160
|
left: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1161
1161
|
width: 34px;
|
|
@@ -104,4 +104,8 @@ ptc-link, ptc-square-card,
|
|
|
104
104
|
.ptc-icon-minimize .header .icon icon-asset svg.xxx-small.sc-icon-asset {
|
|
105
105
|
width: 0.5rem;
|
|
106
106
|
height: 0.5rem;
|
|
107
|
+
}
|
|
108
|
+
.ptc-icon-minimize .header .icon:focus-visible {
|
|
109
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
110
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
107
111
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
export class PtcIconMinimize {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.handleKeyDown = (e) => {
|
|
5
|
+
if (e.key === "Enter") {
|
|
6
|
+
this.dropdownToggle();
|
|
7
|
+
}
|
|
8
|
+
};
|
|
4
9
|
this.heading = undefined;
|
|
5
10
|
this.opened = true;
|
|
6
11
|
this.timeStamp = undefined;
|
|
7
12
|
this.listType = "default";
|
|
8
13
|
this.dataRefineValue = undefined;
|
|
14
|
+
this.trackerId = undefined;
|
|
9
15
|
}
|
|
10
16
|
componentWillLoad() {
|
|
11
17
|
this.timeStamp = Date.now().toString();
|
|
@@ -18,6 +24,17 @@ export class PtcIconMinimize {
|
|
|
18
24
|
}
|
|
19
25
|
dropdownToggle() {
|
|
20
26
|
this.opened = !this.opened;
|
|
27
|
+
var checkList = this.host.querySelector(".fitler-check-list");
|
|
28
|
+
if (checkList) {
|
|
29
|
+
var checkBoxesList = checkList.querySelectorAll("ptc-checkbox");
|
|
30
|
+
if (checkBoxesList) {
|
|
31
|
+
checkBoxesList.forEach(item => {
|
|
32
|
+
if (item.shadowRoot.querySelector("label")) {
|
|
33
|
+
item.shadowRoot.querySelector("label").tabIndex = this.opened ? 0 : -1;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
21
38
|
}
|
|
22
39
|
getScrollHeight() {
|
|
23
40
|
let result = undefined;
|
|
@@ -63,9 +80,9 @@ export class PtcIconMinimize {
|
|
|
63
80
|
let scrollHeight = this.getScrollHeight();
|
|
64
81
|
let icon = this.opened ? 'minus' : 'plus';
|
|
65
82
|
return (h("div", { class: 'ptc-icon-minimize' }, this.listType == "default" ?
|
|
66
|
-
h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon", onClick: () => this.dropdownToggle() }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
|
|
83
|
+
h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: 0 }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
|
|
67
84
|
: this.listType == "checkbox" ?
|
|
68
|
-
h("div", { class: "header" }, h("div", { class: "title" }, h("ptc-checkbox", { checked: "unchecked", "data-refine": this.dataRefineValue, "input-name": "", value: this.heading }, this.heading)), h("div", { class: "icon", onClick: () => this.dropdownToggle() }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
|
|
85
|
+
h("div", { class: "header" }, h("div", { class: "title" }, h("ptc-checkbox", { checked: "unchecked", "data-refine": this.dataRefineValue, "input-name": "", value: this.heading }, this.heading)), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: 0 }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
|
|
69
86
|
: null, h("div", { class: "content", style: scrollHeight }, h("slot", null))));
|
|
70
87
|
}
|
|
71
88
|
static get is() { return "ptc-icon-minimize"; }
|
|
@@ -151,6 +168,23 @@ export class PtcIconMinimize {
|
|
|
151
168
|
},
|
|
152
169
|
"attribute": "data-refine-value",
|
|
153
170
|
"reflect": false
|
|
171
|
+
},
|
|
172
|
+
"trackerId": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "string",
|
|
177
|
+
"resolved": "string",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": ""
|
|
185
|
+
},
|
|
186
|
+
"attribute": "tracker-id",
|
|
187
|
+
"reflect": false
|
|
154
188
|
}
|
|
155
189
|
};
|
|
156
190
|
}
|
|
@@ -311,9 +311,7 @@ ptc-link, ptc-square-card,
|
|
|
311
311
|
text-decoration: none;
|
|
312
312
|
}
|
|
313
313
|
:host .bottom-inline-cta-container .link-wrapper:focus-visible {
|
|
314
|
-
padding: 2px;
|
|
315
314
|
border-radius: var(--ptc-border-radius-standard);
|
|
316
|
-
border: 2px solid white;
|
|
317
315
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
318
316
|
}
|
|
319
317
|
@media only screen and (min-width: 768px) {
|
|
@@ -94,15 +94,15 @@ export class PtcInlineCta {
|
|
|
94
94
|
render() {
|
|
95
95
|
const Small = () => {
|
|
96
96
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
97
|
-
return h("div", { class: "small-inline-cta-container" }, h("div", { class: "cta-bg" }), h("div", { class: "cta-content" }, h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: "\r\n\t\t\t\t\t\t\t\t:host {\r\n\t\t\t\t\t\t\t\t\theight: 100%;\r\n\r\n\t\t\t\t\t\t\t\t\timg {\r\n\t\t\t\t\t\t\t\t\t\tborder-radius: var(--ptc-border-radius-standard);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t" })), h("div", { class: "cta-body", id: this.trackerId }, h("a", { class: "cta-body-inner link-wrapper", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && h("ptc-title", { type: "h4", "title-size": "medium", "title-weight": "w-7", "title-color": "white", "title-height": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, this.truncate(this.heading, 70)), !!this.description && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), h("ptc-spacer", { breakpoint: 'small', size: 'x-small' }), h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.truncate(this.description, 100))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), h("ptc-spacer", { breakpoint: 'small', size: 'x-small' }), h("ptc-link", { disabled: false, "font-size": "small", theme: "d-green-underline", styles: ".d-green-underline {line-height: var(--ptc-line-height-p)}", "link-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))))));
|
|
97
|
+
return h("div", { class: "small-inline-cta-container" }, h("div", { class: "cta-bg" }), h("div", { class: "cta-content" }, h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: "\r\n\t\t\t\t\t\t\t\t:host {\r\n\t\t\t\t\t\t\t\t\theight: 100%;\r\n\r\n\t\t\t\t\t\t\t\t\timg {\r\n\t\t\t\t\t\t\t\t\t\tborder-radius: var(--ptc-border-radius-standard);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t" })), h("div", { class: "cta-body", id: this.trackerId }, h("a", { class: "cta-body-inner link-wrapper mf-listen", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && h("ptc-title", { type: "h4", "title-size": "medium", "title-weight": "w-7", "title-color": "white", "title-height": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, this.truncate(this.heading, 70)), !!this.description && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), h("ptc-spacer", { breakpoint: 'small', size: 'x-small' }), h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.truncate(this.description, 100))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), h("ptc-spacer", { breakpoint: 'small', size: 'x-small' }), h("ptc-link", { disabled: false, "font-size": "small", theme: "d-green-underline", styles: ".d-green-underline {line-height: var(--ptc-line-height-p)}", "tab-nav": "-1", "link-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))))));
|
|
98
98
|
};
|
|
99
99
|
const Big = () => {
|
|
100
100
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
101
|
-
return h("div", { class: "big-inline-cta-container" }, h("div", { class: "cta-bg" }), h("div", { class: "cta-content" }, h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: "\r\n\t\t\t\t\t\t\t\t:host {\r\n\t\t\t\t\t\t\t\t\theight: 100%;\r\n\r\n\t\t\t\t\t\t\t\t\timg {\r\n\t\t\t\t\t\t\t\t\t\tborder-radius: var(--ptc-border-radius-standard);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t" })), h("div", { class: "cta-body", id: this.trackerId }, h("a", { class: "cta-body-inner link-wrapper", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && h("ptc-title", { type: "h3", "title-size": "large", "title-weight": "w-7", "title-color": "white", "title-height": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, this.truncate(this.heading, 70)), !!this.description && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'large' }), h("ptc-spacer", { breakpoint: 'small', size: 'medium' }), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.truncate(this.description, 200))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'xx-large' }), h("ptc-spacer", { breakpoint: 'small', size: 'x-large' }), h("ptc-spacer", { breakpoint: 'x-small', size: 'x-small' }), h("ptc-spacer", { breakpoint: 'small', size: 'xx-small' }), h("ptc-button", { color: "ptc-tertiary", disabled: false, type: "button", styles: ".ptc-tertiary {border: 2px solid #FFFFFF !important}", "tab-nav": "-1", "button-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))))));
|
|
101
|
+
return h("div", { class: "big-inline-cta-container" }, h("div", { class: "cta-bg" }), h("div", { class: "cta-content" }, h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: "\r\n\t\t\t\t\t\t\t\t:host {\r\n\t\t\t\t\t\t\t\t\theight: 100%;\r\n\r\n\t\t\t\t\t\t\t\t\timg {\r\n\t\t\t\t\t\t\t\t\t\tborder-radius: var(--ptc-border-radius-standard);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t" })), h("div", { class: "cta-body", id: this.trackerId }, h("a", { class: "cta-body-inner link-wrapper mf-listen", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && h("ptc-title", { type: "h3", "title-size": "large", "title-weight": "w-7", "title-color": "white", "title-height": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, this.truncate(this.heading, 70)), !!this.description && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'large' }), h("ptc-spacer", { breakpoint: 'small', size: 'medium' }), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.truncate(this.description, 200))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'xx-large' }), h("ptc-spacer", { breakpoint: 'small', size: 'x-large' }), h("ptc-spacer", { breakpoint: 'x-small', size: 'x-small' }), h("ptc-spacer", { breakpoint: 'small', size: 'xx-small' }), h("ptc-button", { color: "ptc-tertiary", disabled: false, type: "button", styles: ".ptc-tertiary {border: 2px solid #FFFFFF !important}", "tab-nav": "-1", "button-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))))));
|
|
102
102
|
};
|
|
103
103
|
const Bottom = () => {
|
|
104
104
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
105
|
-
return h("div", { class: "bottom-inline-cta-container" }, h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: ":host {height: 100%;}" })), h("div", { id: this.trackerId, class: "cta-body" }, h("a", { class: "link-wrapper", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && h("ptc-title", { "seo-compatibility-mode": true, type: "h2", "title-size": "xx-large", "title-weight": "w-8", "title-line-h": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, h("h2", null, this.truncate(this.heading, 70))), !!this.description && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), h("ptc-spacer", { breakpoint: 'x-small', size: 'large' }), h("ptc-spacer", { breakpoint: 'small', size: 'medium' }), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-line-h": "line-height-p", "para-margin": "margin-bottom-4" }, this.truncate(this.description, 100))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && h("ptc-button", { color: "ptc-primary", disabled: false, type: "button", "tab-nav": "-1", "button-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))));
|
|
105
|
+
return h("div", { class: "bottom-inline-cta-container" }, h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: ":host {height: 100%;}" })), h("div", { id: this.trackerId, class: "cta-body" }, h("a", { class: "link-wrapper mf-listen", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && h("ptc-title", { "seo-compatibility-mode": true, type: "h2", "title-size": "xx-large", "title-weight": "w-8", "title-line-h": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, h("h2", null, this.truncate(this.heading, 70))), !!this.description && h(Fragment, null, h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), h("ptc-spacer", { breakpoint: 'x-small', size: 'large' }), h("ptc-spacer", { breakpoint: 'small', size: 'medium' }), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-line-h": "line-height-p", "para-margin": "margin-bottom-4" }, this.truncate(this.description, 100))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && h("ptc-button", { color: "ptc-primary", disabled: false, type: "button", "tab-nav": "-1", "button-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))));
|
|
106
106
|
};
|
|
107
107
|
const InlineCta = () => {
|
|
108
108
|
switch (this.type) {
|
|
@@ -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.3333333333% - 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.3333333333% - 21.3333333px);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
@@ -1261,8 +1261,7 @@ a:focus-visible {
|
|
|
1261
1261
|
background-color: var(--color-black);
|
|
1262
1262
|
height: auto;
|
|
1263
1263
|
min-height: 640px !important;
|
|
1264
|
-
max-height:
|
|
1265
|
-
max-height: -webkit-fit-content;
|
|
1264
|
+
max-height: -webkit-fill-available;
|
|
1266
1265
|
}
|
|
1267
1266
|
@media (min-height: 640px) {
|
|
1268
1267
|
.hp-adjustments {
|
|
@@ -66,7 +66,7 @@ export class PtcJumbotron {
|
|
|
66
66
|
default:
|
|
67
67
|
mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
|
|
68
68
|
}
|
|
69
|
-
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: { 'parent': true, 'light-links': this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video', 'hp-adjustments': this.isHomepage, 'transitioning': this.isTransitioning } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: { "ptc-container": true, "content-layout": true, 'hp-container': this.isHomepage, 'blog-container': (this.jumbotronType === "blog") } }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("span", { class: "main-content-items" }, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (!this.isHomepage) && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), !this.isHomepage && (h("ptc-para", { styles: `p{color: ${this.contentColor}!important;}`, "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": "w-4", "para-margin": `${this.jumbotronType === 'text' || this.jumbotronType === 'blog' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left', "seo-compatibility-mode": true }, h("p", { innerHTML: this.subTitle, style: { margin: '0' } }), h("p", { style: { margin: '0' } }, h("slot", { name: "blog-date" })), this.jumbotronType === 'blog' && h("div", null, h("ptc-spacer", { breakpoint: 'x-small', size: 'medium' }), h("ptc-spacer", { breakpoint: 'small', size: 'small' }), h("div", { id: "header-blog-author", slot: "blog-author" }, h("div", { class: "image" }, h("img", { alt: this.blogAuthorImageAlt, src: this.blogAuthorImage })), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("a", { class: "blog-author-name", tabindex: "0", href: this.blogAuthorQueryHref, target: this.blogAuthorQueryTarget, "aria-label": "Other blogs by author" }, this.blogAuthorName)))))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo && this.jumbotronType !== 'png' ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: `img {${this.pngImgStyles}}` }), this.hasPopupVideo ? h("slot", { name: "video" }) : null))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null, this.jumbotronType === 'blog' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: "img {height: 100%;}" })))) : null)))));
|
|
69
|
+
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: { 'parent': true, 'light-links': this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video', 'hp-adjustments': this.isHomepage, 'transitioning': this.isTransitioning } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: { "ptc-container": true, "content-layout": true, 'hp-container': this.isHomepage, 'blog-container': (this.jumbotronType === "blog") } }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("span", { class: "main-content-items" }, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (!this.isHomepage) && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), !this.isHomepage && (h("ptc-para", { styles: `p{color: ${this.contentColor}!important;}`, "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": "w-4", "para-margin": `${this.jumbotronType === 'text' || this.jumbotronType === 'blog' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left', "seo-compatibility-mode": true }, h("p", { innerHTML: this.subTitle, style: { margin: '0' } }), h("p", { style: { margin: '0' } }, h("slot", { name: "blog-date" })), this.jumbotronType === 'blog' && h("div", null, h("ptc-spacer", { breakpoint: 'x-small', size: 'medium' }), h("ptc-spacer", { breakpoint: 'small', size: 'small' }), h("div", { id: "header-blog-author", slot: "blog-author" }, h("div", { class: "image" }, h("img", { alt: this.blogAuthorImageAlt, src: this.blogAuthorImage })), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("a", { class: "blog-author-name mf-listen", tabindex: "0", href: this.blogAuthorQueryHref, target: this.blogAuthorQueryTarget, "aria-label": "Other blogs by author" }, this.blogAuthorName)))))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo && this.jumbotronType !== 'png' ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: `img {${this.pngImgStyles}}` }), this.hasPopupVideo ? h("slot", { name: "video" }) : null))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null, this.jumbotronType === 'blog' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: "img {height: 100%;}" })))) : null)))));
|
|
70
70
|
}
|
|
71
71
|
getCssClassMap() {
|
|
72
72
|
return {
|
|
@@ -14,6 +14,7 @@ export class PtcLink {
|
|
|
14
14
|
this.seoCompatibilityMode = false;
|
|
15
15
|
this.styles = undefined;
|
|
16
16
|
this.trackerId = undefined;
|
|
17
|
+
this.tabNav = 0;
|
|
17
18
|
this.darkFocusState = false;
|
|
18
19
|
}
|
|
19
20
|
seoCompRender() {
|
|
@@ -23,11 +24,11 @@ export class PtcLink {
|
|
|
23
24
|
if (this.el == firstChild) {
|
|
24
25
|
this.el.innerHTML = '';
|
|
25
26
|
}
|
|
26
|
-
return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { id: this.trackerId, class: "tracker-div" }, h(TagType, { class: classMap, innerHTML: html, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle, tabindex:
|
|
27
|
+
return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { id: this.trackerId, class: "tracker-div" }, h(TagType, Object.assign({ class: classMap, innerHTML: html, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle }, (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), h("slot", null)))));
|
|
27
28
|
}
|
|
28
29
|
standardRender() {
|
|
29
30
|
const classMap = this.getCssClassMap();
|
|
30
|
-
return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { id: this.trackerId, class: "tracker-div" }, h("a", { class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle, tabindex:
|
|
31
|
+
return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { id: this.trackerId, class: "tracker-div" }, h("a", Object.assign({ class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle }, (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), h("slot", null)))));
|
|
31
32
|
}
|
|
32
33
|
// render() {
|
|
33
34
|
// const classMap = this.getCssClassMap();
|
|
@@ -303,6 +304,24 @@ export class PtcLink {
|
|
|
303
304
|
"attribute": "tracker-id",
|
|
304
305
|
"reflect": false
|
|
305
306
|
},
|
|
307
|
+
"tabNav": {
|
|
308
|
+
"type": "number",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "number",
|
|
312
|
+
"resolved": "number",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": false,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": "(optional) tab-nav.\r\nindicates that its element can be focused, and where it participates in sequential keyboard navigation.\r\nA negative value (usually tabindex=\"-1\") means that the element is not reachable via sequential keyboard navigation"
|
|
320
|
+
},
|
|
321
|
+
"attribute": "tab-nav",
|
|
322
|
+
"reflect": false,
|
|
323
|
+
"defaultValue": "0"
|
|
324
|
+
},
|
|
306
325
|
"darkFocusState": {
|
|
307
326
|
"type": "boolean",
|
|
308
327
|
"mutable": false,
|
|
@@ -98,8 +98,8 @@ ptc-link, ptc-square-card,
|
|
|
98
98
|
}
|
|
99
99
|
.standard-filter .standard-filter-item:focus {
|
|
100
100
|
text-decoration: none;
|
|
101
|
-
|
|
102
|
-
outline
|
|
101
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
102
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
103
103
|
}
|
|
104
104
|
.standard-filter .standard-filter-item:active {
|
|
105
105
|
background-color: var(--color-gray-05);
|
|
@@ -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)/2);
|
|
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 {
|
|
@@ -142,8 +142,8 @@ ptc-link, ptc-square-card,
|
|
|
142
142
|
}
|
|
143
143
|
.standard-filter .next-button:focus, .standard-filter .previous-button:focus {
|
|
144
144
|
text-decoration: none;
|
|
145
|
-
|
|
146
|
-
outline
|
|
145
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
146
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
147
147
|
}
|
|
148
148
|
.standard-filter .next-button.disabled, .standard-filter .previous-button.disabled {
|
|
149
149
|
cursor: default;
|
|
@@ -216,19 +216,19 @@ export class PtcPagenation {
|
|
|
216
216
|
switch (this.theme) {
|
|
217
217
|
case "standard":
|
|
218
218
|
let allowSkip = pageCountValue > 6;
|
|
219
|
-
return (h("div", { class: "standard-filter" }, this.styles && h("style", null, this.styles), h("a", { href: "#", class: this.clickedPageNumber == 1 ? "previous-button disabled" : "previous-button", onClick: this.handleClickPrev }, h("icon-asset", { type: "ptc", name: "chevron-down", size: "xxx-small" })), allowSkip && this.clickedPageNumber > pageLength ? [
|
|
220
|
-
h("a", { href: "#", "data-url": "first", "data-page": 1, class: "standard-filter-item", onClick: (e) => this.handlePageSkip(e, 1) }, 1),
|
|
219
|
+
return (h("div", { class: "standard-filter" }, this.styles && h("style", null, this.styles), h("a", { id: "lastPageArrowId", href: "#", class: this.clickedPageNumber == 1 ? "previous-button mf-listen disabled" : "previous-button mf-listen", onClick: this.handleClickPrev }, h("icon-asset", { type: "ptc", name: "chevron-down", size: "xxx-small" })), allowSkip && this.clickedPageNumber > pageLength ? [
|
|
220
|
+
h("a", { href: "#", id: "pagebtn1Id", "data-url": "first", "data-page": 1, class: "standard-filter-item mf-listen", onClick: (e) => this.handlePageSkip(e, 1) }, 1),
|
|
221
221
|
h("span", { class: "standard-filter-dots" }, "...")
|
|
222
222
|
] : null, this.pageNumbers.map(anchoritem => {
|
|
223
|
-
return (h("a", { href: "#", "data-url": anchoritem.id, "data-page": anchoritem.dataPage, class: anchoritem.isActive ? "standard-filter-item active" : "standard-filter-item", onClick: (e) => this.handleClickPage(e, anchoritem.dataPage) }, anchoritem.dataPage));
|
|
223
|
+
return (h("a", { href: "#", id: `pagebtn` + anchoritem.dataPage + `id`, "data-url": anchoritem.id, "data-page": anchoritem.dataPage, class: anchoritem.isActive ? "standard-filter-item mf-listen active" : "standard-filter-item mf-listen", onClick: (e) => this.handleClickPage(e, anchoritem.dataPage) }, anchoritem.dataPage));
|
|
224
224
|
}), allowSkip && pageCountValue > this.maxPageNumber ? [
|
|
225
225
|
h("span", { class: "standard-filter-dots" }, "..."),
|
|
226
|
-
h("a", { href: "#", "data-url": "last", "data-page": pageCountValue, class: "standard-filter-item", onClick: (e) => this.handlePageSkip(e, pageCountValue) }, pageCountValue)
|
|
227
|
-
] : null, h("a", { href: "#", class: this.clickedPageNumber == pageCountValue ? "next-button disabled" : "next-button", onClick: this.handleClick }, h("icon-asset", { type: "ptc", name: "chevron-down", size: "xxx-small" }))));
|
|
226
|
+
h("a", { href: "#", "data-url": "last", id: `pagebtn` + pageCountValue + `id`, "data-page": pageCountValue, class: "mf-listen standard-filter-item", onClick: (e) => this.handlePageSkip(e, pageCountValue) }, pageCountValue)
|
|
227
|
+
] : null, h("a", { id: "nextPageArrowId", href: "#", class: this.clickedPageNumber == pageCountValue ? "next-button mf-listen disabled" : "next-button mf-listen", onClick: this.handleClick }, h("icon-asset", { type: "ptc", name: "chevron-down", size: "xxx-small" }))));
|
|
228
228
|
case "events":
|
|
229
229
|
default:
|
|
230
230
|
return (h("div", { class: "events-filter" }, this.styles && h("style", null, this.styles), h("span", { class: this.clickedPageNumber == 1 ? "events-filter-item disabled prev-text" : "events-filter-item prev-text" }, this.previousValue), h("img", { src: this.prevArrowImg, onClick: this.handleClickPrev, class: this.clickedPageNumber == 1 ? "pagenation-arrow prev-page events-disable-arrows" : "pagenation-arrow prev-page" }), this.pageNumbers.map(anchoritem => {
|
|
231
|
-
return (h("a", { href: "#", "data-url": anchoritem.id, "data-page": anchoritem.dataPage, class: anchoritem.isActive ? "events-filter-item active" : "events-filter-item", onClick: (e) => this.handleClickPage(e, anchoritem.dataPage) }, anchoritem.dataPage));
|
|
231
|
+
return (h("a", { href: "#", id: `pagebtn` + anchoritem.dataPage + `id`, "data-url": anchoritem.id, "data-page": anchoritem.dataPage, class: anchoritem.isActive ? "events-filter-item mf-listen active" : "events-filter-item mf-listen", onClick: (e) => this.handleClickPage(e, anchoritem.dataPage) }, anchoritem.dataPage));
|
|
232
232
|
}), pageCountValue > this.maxPageNumber ? (h("span", { class: "events-filter-dots" }, ". . .")) : null, h("img", { src: this.nextArrowImg, onClick: this.handleClick, class: this.clickedPageNumber == pageCountValue ? "pagenation-arrow last-page events-disable-arrows" : "pagenation-arrow last-page" }), h("span", { class: this.clickedPageNumber == pageCountValue ? "events-filter-item disabled last-text" : "events-filter-item last-text" }, this.lastValue)));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -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", { type: "link", color: "ptc-tertiary", "link-href": this.cardCtaHref, target: this.cardCtaTarget }, h("ptc-tooltip", { "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.cardCtaText, position: "bottom" }))), 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" })))))));
|
|
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 }, h("ptc-tooltip", { "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.cardCtaText, position: "bottom" }))), 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"; }
|
|
@@ -33,7 +33,7 @@ export class PtcPricingAddOnSection {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, null, h("ptc-title", { type: "h3", "text-align": "left", "title-size": "large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.sectionTitle), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "is-grid has-col-gap-md" }, this.cardData.map((data, ind) => h("div", { class: "is-col-12 is-col-6-md is-col-4-lg is-col-3-xl" }, h("ptc-pricing-add-on-card", { "card-title": data.title, "card-pricing-text": data.pricing, "card-cta-href": data.cta.linkHref, "card-cta-text": data.cta.linkText, "card-cta-target": data.cta.linkTarget, "card-disclaimer": data.disclaimer }, h("span", { slot: "card-pricing" }, h("slot", { name: `card-pricing-${ind + 1}` })), h("div", { slot: "card-body" }, h("slot", { name: `card-body-${ind + 1}` })), h("span", { slot: "card-disclaimer" }, h("slot", { name: `card-disclaimer-${ind + 1}` }))))))));
|
|
36
|
+
return (h(Host, null, h("ptc-title", { type: "h3", "text-align": "left", "title-size": "large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.sectionTitle), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "is-grid has-col-gap-md" }, this.cardData.map((data, ind) => h("div", { class: "is-col-12 is-col-6-md is-col-4-lg is-col-3-xl" }, h("ptc-pricing-add-on-card", { id: `pricing-add-on-${ind + 1}`, "card-title": data.title, "card-pricing-text": data.pricing, "card-cta-href": data.cta.linkHref, "card-cta-text": data.cta.linkText, "card-cta-target": data.cta.linkTarget, "card-disclaimer": data.disclaimer }, h("span", { slot: "card-pricing" }, h("slot", { name: `card-pricing-${ind + 1}` })), h("div", { slot: "card-body" }, h("slot", { name: `card-body-${ind + 1}` })), h("span", { slot: "card-disclaimer" }, h("slot", { name: `card-disclaimer-${ind + 1}` }))))))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "ptc-pricing-add-on-section"; }
|
|
39
39
|
static get originalStyleUrls() {
|
package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js
CHANGED
|
@@ -394,7 +394,7 @@ export class PtcPricingPackagingTable {
|
|
|
394
394
|
h("div", { class: "desktop-sticky-row-header" })
|
|
395
395
|
: null, ([...Array(this.dataCols).keys()]).map(col => {
|
|
396
396
|
return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, (this.ctaButtons[col]) ?
|
|
397
|
-
h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: `${this.ctaButtons[col].linkTarget}`, "link-title": this.ctaButtons[col].linkTitle }, this.isDesktopView ?
|
|
397
|
+
h("ptc-button", { id: `pricing-cta-${col}`, type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: `${this.ctaButtons[col].linkTarget}`, "link-title": this.ctaButtons[col].linkTitle }, this.isDesktopView ?
|
|
398
398
|
h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.ctaButtons[col].linkText, position: "top" })
|
|
399
399
|
: this.ctaButtons[col].linkText) : null);
|
|
400
400
|
}), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })) : null;
|
|
@@ -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.3333333333% - 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.3333333333% - 21.3333333px);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
@@ -86,10 +86,12 @@ ptc-link, ptc-square-card,
|
|
|
86
86
|
width: 100%;
|
|
87
87
|
box-sizing: border-box;
|
|
88
88
|
margin-right: 0px;
|
|
89
|
+
z-index: -1;
|
|
89
90
|
}
|
|
90
91
|
:host .search-div input:focus-visible {
|
|
91
|
-
border-radius: var(--ptc-border-radius-standard)
|
|
92
|
-
outline:
|
|
92
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
93
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
94
|
+
z-index: 0;
|
|
93
95
|
}
|
|
94
96
|
:host .search-div input::placeholder {
|
|
95
97
|
font-family: var(--ptc-font-latin);
|
|
@@ -117,9 +119,11 @@ ptc-link, ptc-square-card,
|
|
|
117
119
|
:host .search-div .search-btn:hover {
|
|
118
120
|
background-color: var(--color-gray-10);
|
|
119
121
|
}
|
|
120
|
-
:host .search-div .search-btn:focus {
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
:host .search-div .search-btn:focus-visible {
|
|
123
|
+
z-index: 2;
|
|
124
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
125
|
+
border: 2px solid white;
|
|
126
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
:host(.dark) {
|
|
@@ -242,4 +246,7 @@ ptc-link, ptc-square-card,
|
|
|
242
246
|
.cls {
|
|
243
247
|
display: none;
|
|
244
248
|
}
|
|
249
|
+
}
|
|
250
|
+
.tracker-div {
|
|
251
|
+
display: inline;
|
|
245
252
|
}
|
|
@@ -59,7 +59,7 @@ export class PtcSearchField {
|
|
|
59
59
|
render() {
|
|
60
60
|
const classMap = this.getCssClassMap();
|
|
61
61
|
const clearIconColor = this.darkTheme ? "white" : "black";
|
|
62
|
-
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: "search-div"
|
|
62
|
+
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: "search-div" }, h("div", { class: 'input-wrap mf-listen', id: "searchTextID" }, h("input", { id: "ptc-search-input", type: "text", value: this.textValue, placeholder: this.placeholderLabel, onKeyDown: (e) => { this.keyDownHandler(e); }, onKeyUp: () => { this.keyUpHandler(); }, onChange: (e) => { this.textChangedHandler(e); } }), this.enableClear && h("div", { class: "icon-wrapper" }, h("icon-asset", { class: "cls", type: "ptc", color: clearIconColor, name: "times", size: "xxx-small", onClick: (e) => { this.clearSearchValue(); this.buttonClickHandler(e); } }))), h("div", { class: "tracker-div mf-listen", id: "searchBtnID" }, h("button", { type: "button", color: "blackgrey", class: "search-btn", onClick: (e) => { this.buttonClickHandler(e); } }, h("icon-asset", { type: "ptc", size: "medium", name: "new-search", color: "white" }))))));
|
|
63
63
|
}
|
|
64
64
|
getCssClassMap() {
|
|
65
65
|
return {
|
|
@@ -14,7 +14,7 @@ export class PtcSocialIcons {
|
|
|
14
14
|
this.target = '_blank';
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, null, h("slot", null), h("div", { id: this.trackerId }, this.facebookUrl && h("a", { href: this.facebookUrl, title: 'Facebook', innerHTML: facebookSVG, target: this.target, "aria-label": "Social share - Facebook" }), this.linkedinUrl && h("a", { href: this.linkedinUrl, title: 'LinkedIn', innerHTML: linkedinSVG, target: this.target, "aria-label": "Social share - LinkedIn" }), this.xUrl && h("a", { href: this.xUrl, title: 'X', innerHTML: xSVG, target: this.target, "aria-label": "Social share - X" }), this.emailTo && h("a", { href: `mailto:${this.emailTo}`, title: 'Email', innerHTML: emailSVG, target: this.target, "aria-label": "Social share - Email" }))));
|
|
17
|
+
return (h(Host, null, h("slot", null), h("div", { id: this.trackerId }, this.facebookUrl && h("a", { class: "mf-listen", href: this.facebookUrl, title: 'Facebook', innerHTML: facebookSVG, target: this.target, "aria-label": "Social share - Facebook" }), this.linkedinUrl && h("a", { class: "mf-listen", href: this.linkedinUrl, title: 'LinkedIn', innerHTML: linkedinSVG, target: this.target, "aria-label": "Social share - LinkedIn" }), this.xUrl && h("a", { class: "mf-listen", href: this.xUrl, title: 'X', innerHTML: xSVG, target: this.target, "aria-label": "Social share - X" }), this.emailTo && h("a", { class: "mf-listen", href: `mailto:${this.emailTo}`, title: 'Email', innerHTML: emailSVG, target: this.target, "aria-label": "Social share - Email" }))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "ptc-social-icons"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|