@ptcwebops/ptcw-design 6.0.12 → 6.1.0
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_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-checkbox.cjs.entry.js +16 -3
- package/dist/cjs/ptc-dropdown.cjs.entry.js +5 -4
- 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 +9 -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-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-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.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 +25 -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 +2 -2
- 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-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 +254 -116
- 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_2.entry.js +1 -1
- package/dist/esm/ptc-checkbox.entry.js +16 -3
- package/dist/esm/ptc-dropdown.entry.js +5 -4
- 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 +9 -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-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-024851e1.entry.js +1 -0
- package/dist/ptcw-design/p-11eb4dd1.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-611ffe6f.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-9114869a.entry.js +1 -0
- package/dist/ptcw-design/{p-674cbe95.entry.js → p-a2e0ebdf.entry.js} +1 -1
- package/dist/ptcw-design/p-ac860994.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-3a7d25b6.entry.js → p-ea8e0b2e.entry.js} +1 -1
- package/dist/ptcw-design/p-f30cf5e2.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-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 +16 -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-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
|
@@ -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();
|
|
@@ -63,9 +69,9 @@ export class PtcIconMinimize {
|
|
|
63
69
|
let scrollHeight = this.getScrollHeight();
|
|
64
70
|
let icon = this.opened ? 'minus' : 'plus';
|
|
65
71
|
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 })))
|
|
72
|
+
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
73
|
: 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 })))
|
|
74
|
+
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
75
|
: null, h("div", { class: "content", style: scrollHeight }, h("slot", null))));
|
|
70
76
|
}
|
|
71
77
|
static get is() { return "ptc-icon-minimize"; }
|
|
@@ -151,6 +157,23 @@ export class PtcIconMinimize {
|
|
|
151
157
|
},
|
|
152
158
|
"attribute": "data-refine-value",
|
|
153
159
|
"reflect": false
|
|
160
|
+
},
|
|
161
|
+
"trackerId": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"mutable": false,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "string",
|
|
166
|
+
"resolved": "string",
|
|
167
|
+
"references": {}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": ""
|
|
174
|
+
},
|
|
175
|
+
"attribute": "tracker-id",
|
|
176
|
+
"reflect": false
|
|
154
177
|
}
|
|
155
178
|
};
|
|
156
179
|
}
|
|
@@ -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
|
|
|
@@ -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
|
}
|
|
@@ -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"; }
|
|
@@ -2215,9 +2215,9 @@
|
|
|
2215
2215
|
.iti__v-hide {
|
|
2216
2216
|
visibility: hidden;
|
|
2217
2217
|
}
|
|
2218
|
-
.iti input,
|
|
2219
|
-
.iti input[type=text],
|
|
2220
|
-
.iti input[type=tel] {
|
|
2218
|
+
.iti input.iti__tel-input,
|
|
2219
|
+
.iti input.iti__tel-input[type=text],
|
|
2220
|
+
.iti input.iti__tel-input[type=tel] {
|
|
2221
2221
|
position: relative;
|
|
2222
2222
|
z-index: 0;
|
|
2223
2223
|
margin-top: 0 !important;
|
|
@@ -2256,26 +2256,35 @@
|
|
|
2256
2256
|
border-top: none;
|
|
2257
2257
|
border-bottom: 4px solid #555;
|
|
2258
2258
|
}
|
|
2259
|
-
.
|
|
2259
|
+
.iti__dropdown-content {
|
|
2260
2260
|
position: absolute;
|
|
2261
2261
|
z-index: 2;
|
|
2262
|
-
|
|
2263
|
-
padding: 0;
|
|
2264
|
-
margin: 0 0 0 -1px;
|
|
2262
|
+
margin-left: -1px;
|
|
2265
2263
|
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
|
|
2266
2264
|
background-color: white;
|
|
2267
2265
|
border: 1px solid #ccc;
|
|
2268
|
-
white-space: nowrap;
|
|
2269
2266
|
max-height: 200px;
|
|
2270
2267
|
overflow-y: scroll;
|
|
2271
2268
|
-webkit-overflow-scrolling: touch;
|
|
2272
2269
|
}
|
|
2273
|
-
.
|
|
2270
|
+
.iti__dropdown-content--dropup {
|
|
2274
2271
|
bottom: 100%;
|
|
2275
2272
|
margin-bottom: -1px;
|
|
2276
2273
|
}
|
|
2274
|
+
.iti__search-input {
|
|
2275
|
+
width: 100%;
|
|
2276
|
+
border-width: 0;
|
|
2277
|
+
}
|
|
2278
|
+
.iti__country-list {
|
|
2279
|
+
list-style: none;
|
|
2280
|
+
padding: 0;
|
|
2281
|
+
margin: 0;
|
|
2282
|
+
}
|
|
2283
|
+
.iti--flexible-dropdown-width .iti__country-list {
|
|
2284
|
+
white-space: nowrap;
|
|
2285
|
+
}
|
|
2277
2286
|
@media (max-width: 500px) {
|
|
2278
|
-
.iti__country-list {
|
|
2287
|
+
.iti--flexible-dropdown-width .iti__country-list {
|
|
2279
2288
|
white-space: normal;
|
|
2280
2289
|
}
|
|
2281
2290
|
}
|
|
@@ -2307,20 +2316,20 @@
|
|
|
2307
2316
|
margin-right: 0;
|
|
2308
2317
|
margin-left: 6px;
|
|
2309
2318
|
}
|
|
2310
|
-
.iti--allow-dropdown input,
|
|
2311
|
-
.iti--allow-dropdown input[type=text],
|
|
2312
|
-
.iti--allow-dropdown input[type=tel], .iti--separate-dial-code input,
|
|
2313
|
-
.iti--separate-dial-code input[type=text],
|
|
2314
|
-
.iti--separate-dial-code input[type=tel] {
|
|
2319
|
+
.iti--allow-dropdown input.iti__tel-input,
|
|
2320
|
+
.iti--allow-dropdown input.iti__tel-input[type=text],
|
|
2321
|
+
.iti--allow-dropdown input.iti__tel-input[type=tel], .iti--separate-dial-code input.iti__tel-input,
|
|
2322
|
+
.iti--separate-dial-code input.iti__tel-input[type=text],
|
|
2323
|
+
.iti--separate-dial-code input.iti__tel-input[type=tel] {
|
|
2315
2324
|
padding-right: 6px;
|
|
2316
2325
|
padding-left: 52px;
|
|
2317
2326
|
margin-left: 0;
|
|
2318
2327
|
}
|
|
2319
|
-
[dir=rtl] .iti--allow-dropdown input,
|
|
2320
|
-
[dir=rtl] .iti--allow-dropdown input[type=text],
|
|
2321
|
-
[dir=rtl] .iti--allow-dropdown input[type=tel], [dir=rtl] .iti--separate-dial-code input,
|
|
2322
|
-
[dir=rtl] .iti--separate-dial-code input[type=text],
|
|
2323
|
-
[dir=rtl] .iti--separate-dial-code input[type=tel] {
|
|
2328
|
+
[dir=rtl] .iti--allow-dropdown input.iti__tel-input,
|
|
2329
|
+
[dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=text],
|
|
2330
|
+
[dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=tel], [dir=rtl] .iti--separate-dial-code input.iti__tel-input,
|
|
2331
|
+
[dir=rtl] .iti--separate-dial-code input.iti__tel-input[type=text],
|
|
2332
|
+
[dir=rtl] .iti--separate-dial-code input.iti__tel-input[type=tel] {
|
|
2324
2333
|
padding-right: 52px;
|
|
2325
2334
|
padding-left: 6px;
|
|
2326
2335
|
margin-right: 0;
|
|
@@ -2339,12 +2348,12 @@
|
|
|
2339
2348
|
.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
|
|
2340
2349
|
background-color: rgba(0, 0, 0, 0.05);
|
|
2341
2350
|
}
|
|
2342
|
-
.iti--allow-dropdown
|
|
2343
|
-
.iti--allow-dropdown
|
|
2351
|
+
.iti--allow-dropdown .iti__flag-container:has(+ input[disabled]):hover,
|
|
2352
|
+
.iti--allow-dropdown .iti__flag-container:has(+ input[readonly]):hover {
|
|
2344
2353
|
cursor: default;
|
|
2345
2354
|
}
|
|
2346
|
-
.iti--allow-dropdown
|
|
2347
|
-
.iti--allow-dropdown
|
|
2355
|
+
.iti--allow-dropdown .iti__flag-container:has(+ input[disabled]):hover .iti__selected-flag,
|
|
2356
|
+
.iti--allow-dropdown .iti__flag-container:has(+ input[readonly]):hover .iti__selected-flag {
|
|
2348
2357
|
background-color: transparent;
|
|
2349
2358
|
}
|
|
2350
2359
|
.iti--separate-dial-code .iti__selected-flag {
|
|
@@ -2368,18 +2377,26 @@
|
|
|
2368
2377
|
cursor: pointer;
|
|
2369
2378
|
}
|
|
2370
2379
|
|
|
2371
|
-
.iti-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2380
|
+
.iti--fullscreen-popup.iti--container {
|
|
2381
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
2382
|
+
top: 0;
|
|
2383
|
+
bottom: 0;
|
|
2384
|
+
left: 0;
|
|
2385
|
+
right: 0;
|
|
2376
2386
|
position: fixed;
|
|
2387
|
+
padding: 30px;
|
|
2388
|
+
display: flex;
|
|
2389
|
+
flex-direction: column;
|
|
2390
|
+
justify-content: center;
|
|
2391
|
+
}
|
|
2392
|
+
.iti--fullscreen-popup.iti--container.iti--country-search {
|
|
2393
|
+
justify-content: flex-start;
|
|
2377
2394
|
}
|
|
2378
|
-
.iti-
|
|
2395
|
+
.iti--fullscreen-popup .iti__dropdown-content {
|
|
2379
2396
|
max-height: 100%;
|
|
2380
|
-
|
|
2397
|
+
position: relative;
|
|
2381
2398
|
}
|
|
2382
|
-
.iti-
|
|
2399
|
+
.iti--fullscreen-popup .iti__country {
|
|
2383
2400
|
padding: 10px 10px;
|
|
2384
2401
|
line-height: 1.5em;
|
|
2385
2402
|
}
|
|
@@ -2405,7 +2422,7 @@
|
|
|
2405
2422
|
.iti__flag.iti__va {
|
|
2406
2423
|
width: 15px;
|
|
2407
2424
|
}
|
|
2408
|
-
@media (
|
|
2425
|
+
@media (min-resolution: 2x) {
|
|
2409
2426
|
.iti__flag {
|
|
2410
2427
|
background-size: 5762px 15px;
|
|
2411
2428
|
}
|
|
@@ -3471,7 +3488,7 @@
|
|
|
3471
3488
|
background-color: #dbdbdb;
|
|
3472
3489
|
background-position: 20px 0;
|
|
3473
3490
|
}
|
|
3474
|
-
@media (
|
|
3491
|
+
@media (min-resolution: 2x) {
|
|
3475
3492
|
.iti__flag {
|
|
3476
3493
|
background-image: url("../img/flags@2x.png?1");
|
|
3477
3494
|
}
|