@ptcwebops/ptcw-design 2.2.3 → 2.2.5
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/loader.cjs.js +1 -1
- package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +3 -2
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-related-card-rail.cjs.entry.js +160 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/icon-asset/media/designer.svg +7 -0
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +13 -0
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +21 -3
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +3 -2
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.css +137 -0
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +190 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +163 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-card-bottom_3.entry.js +3 -2
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-related-card-rail.entry.js +156 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/media/designer.svg +7 -0
- package/dist/ptcw-design/p-689f0741.entry.js +1 -0
- package/dist/ptcw-design/{p-b3d8e893.entry.js → p-8a60c2b1.entry.js} +1 -1
- package/dist/ptcw-design/p-fe85ac05.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +5 -1
- package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +30 -0
- package/dist/types/components.d.ts +31 -2
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-8b34f2db.entry.js +0 -1
|
@@ -6,6 +6,7 @@ export class PtcCardPlm {
|
|
|
6
6
|
this.linkTitle = undefined;
|
|
7
7
|
this.linkTarget = '_self';
|
|
8
8
|
this.isLoading = false;
|
|
9
|
+
this.styles = undefined;
|
|
9
10
|
}
|
|
10
11
|
handleResize() {
|
|
11
12
|
this.checkScreenSize();
|
|
@@ -38,7 +39,7 @@ export class PtcCardPlm {
|
|
|
38
39
|
render() {
|
|
39
40
|
const classMap = this.getCssClassMap();
|
|
40
41
|
const Tag = !!this.cardLink ? 'a' : 'div';
|
|
41
|
-
return (h(Host, Object.assign({ class: classMap }, (!this.isLoading ? { onMouseEnter: this.hoverEventHandler.bind(this) } : {}), (!this.isLoading ? { onMouseLeave: this.leaveEventHandler.bind(this) } : {})), h(Tag, Object.assign({}, (!!this.cardLink && !this.isLoading ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink && !this.isLoading ? { target: this.linkTarget } : {}), (!!this.cardLink && !this.isLoading ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), h("slot", null))));
|
|
42
|
+
return (h(Host, Object.assign({ class: classMap }, (!this.isLoading ? { onMouseEnter: this.hoverEventHandler.bind(this) } : {}), (!this.isLoading ? { onMouseLeave: this.leaveEventHandler.bind(this) } : {})), this.styles && h("style", null, this.styles), h(Tag, Object.assign({}, (!!this.cardLink && !this.isLoading ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink && !this.isLoading ? { target: this.linkTarget } : {}), (!!this.cardLink && !this.isLoading ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), h("slot", null))));
|
|
42
43
|
}
|
|
43
44
|
getCssClassMap() {
|
|
44
45
|
return {
|
|
@@ -83,8 +84,8 @@ export class PtcCardPlm {
|
|
|
83
84
|
"type": "string",
|
|
84
85
|
"mutable": false,
|
|
85
86
|
"complexType": {
|
|
86
|
-
"original": "'card-video' | 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-2up' | 'extra-tall' | 'color-outlined' | 'result-box'",
|
|
87
|
-
"resolved": "\"card-2up\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-video-intro\" | \"card-wide\" | \"color-outlined\" | \"extra-tall\" | \"result-box\" | \"speed-bump\"",
|
|
87
|
+
"original": "'card-video' | 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-2up' | 'extra-tall' | 'color-outlined' | 'result-box' | 'simple-card'",
|
|
88
|
+
"resolved": "\"card-2up\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-video-intro\" | \"card-wide\" | \"color-outlined\" | \"extra-tall\" | \"result-box\" | \"simple-card\" | \"speed-bump\"",
|
|
88
89
|
"references": {}
|
|
89
90
|
},
|
|
90
91
|
"required": false,
|
|
@@ -165,6 +166,23 @@ export class PtcCardPlm {
|
|
|
165
166
|
"attribute": "is-loading",
|
|
166
167
|
"reflect": false,
|
|
167
168
|
"defaultValue": "false"
|
|
169
|
+
},
|
|
170
|
+
"styles": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "string",
|
|
175
|
+
"resolved": "string",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": true,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "(optional) Injected CSS Styles"
|
|
183
|
+
},
|
|
184
|
+
"attribute": "styles",
|
|
185
|
+
"reflect": false
|
|
168
186
|
}
|
|
169
187
|
};
|
|
170
188
|
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
align-items: center;
|
|
21
21
|
padding: var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06);
|
|
22
|
+
flex: 0 0 310px;
|
|
22
23
|
}
|
|
23
24
|
@media only screen and (min-width: 1440px) {
|
|
24
25
|
:host(.sequential) .card-mobile ptc-card-content, :host(.sequential) .card-dt-open ptc-card-content {
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
:host(.sequential) .card-mobile ptc-picture, :host(.sequential) .card-dt-open ptc-picture {
|
|
32
|
-
flex
|
|
33
|
+
flex: 0 1 auto;
|
|
33
34
|
}
|
|
34
35
|
:host(.sequential) .card-mobile .card-title h3, :host(.sequential) .card-dt-open .card-title h3 {
|
|
35
36
|
color: var(--color-white);
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
:host(.sequential) .card-dt-open {
|
|
96
97
|
border-top: 5px solid var(--color-green-05);
|
|
97
98
|
display: flex;
|
|
98
|
-
width:
|
|
99
|
+
width: 100%;
|
|
99
100
|
height: 480px;
|
|
100
101
|
transition: width var(--ptc-transition-x-fast) var(--ptc-ease-out);
|
|
101
102
|
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
/* 480px */
|
|
4
|
+
/* 768px */
|
|
5
|
+
/* 992px */
|
|
6
|
+
/* 1200px */
|
|
7
|
+
/* 1400px */
|
|
8
|
+
/* 1980px */
|
|
9
|
+
/* 2600px */
|
|
10
|
+
}
|
|
11
|
+
:host .card-rail-container {
|
|
12
|
+
position: fixed;
|
|
13
|
+
bottom: 132px;
|
|
14
|
+
left: 24px;
|
|
15
|
+
width: calc(100vw - 48px);
|
|
16
|
+
background: white;
|
|
17
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
18
|
+
box-shadow: var(--ptc-shadow-small);
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
z-index: 50;
|
|
21
|
+
}
|
|
22
|
+
:host .card-rail-header {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
border-bottom: var(--color-gray-02) solid 1px;
|
|
26
|
+
}
|
|
27
|
+
:host .card-rail-heading {
|
|
28
|
+
margin: 12px 0 12px 16px;
|
|
29
|
+
}
|
|
30
|
+
:host .card-rail-close {
|
|
31
|
+
padding: 15px;
|
|
32
|
+
}
|
|
33
|
+
:host .card-rail-content {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
:host .card-rail-content icon-asset {
|
|
38
|
+
position: absolute;
|
|
39
|
+
z-index: 55px;
|
|
40
|
+
padding: 13px;
|
|
41
|
+
/* Hit area */
|
|
42
|
+
}
|
|
43
|
+
:host .card-rail-content icon-asset#left-arrow {
|
|
44
|
+
left: 3px;
|
|
45
|
+
/* [Expected(16) - HitAreaPadding(13)] */
|
|
46
|
+
}
|
|
47
|
+
:host .card-rail-content icon-asset#right-arrow {
|
|
48
|
+
right: 3px;
|
|
49
|
+
}
|
|
50
|
+
:host .card-rail-content .content-container {
|
|
51
|
+
margin: 24px 50px 24px 50px;
|
|
52
|
+
/* [ArrowLeft(16) + ArrowWidth(18) + ArrowRight(16)] = 50 */
|
|
53
|
+
display: flex;
|
|
54
|
+
overflow-x: hidden;
|
|
55
|
+
-ms-overflow-style: none;
|
|
56
|
+
/* IE and Edge */
|
|
57
|
+
scrollbar-width: none;
|
|
58
|
+
/* Firefox */
|
|
59
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
60
|
+
}
|
|
61
|
+
:host .card-rail-content .content-container::-webkit-scrollbar {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
:host .card-rail-content .content-container .content {
|
|
65
|
+
width: 100%;
|
|
66
|
+
flex: 1 0 100%;
|
|
67
|
+
display: flex;
|
|
68
|
+
}
|
|
69
|
+
:host .card-rail-content .content-container .content:hover {
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
:host .card-rail-content .content-container .content .content-image {
|
|
73
|
+
width: 130px;
|
|
74
|
+
height: 73px;
|
|
75
|
+
text-align: center;
|
|
76
|
+
}
|
|
77
|
+
:host .card-rail-content .content-container .content .content-image img {
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 100%;
|
|
80
|
+
object-fit: cover;
|
|
81
|
+
}
|
|
82
|
+
:host .card-rail-content .content-container .content .content-text {
|
|
83
|
+
flex: 1;
|
|
84
|
+
padding-left: 12px;
|
|
85
|
+
}
|
|
86
|
+
@media only screen and (min-width: 768px) {
|
|
87
|
+
:host .card-rail-container .card-rail-content icon-asset#left-arrow {
|
|
88
|
+
left: 11px;
|
|
89
|
+
}
|
|
90
|
+
:host .card-rail-container .card-rail-content icon-asset#right-arrow {
|
|
91
|
+
right: 11px;
|
|
92
|
+
}
|
|
93
|
+
:host .card-rail-container .card-rail-content .content-container {
|
|
94
|
+
margin: 24px 66px 24px 66px;
|
|
95
|
+
/* [ArrowLeft(24) + ArrowWidth(18) + ArrowRight(24)] = 66 */
|
|
96
|
+
}
|
|
97
|
+
:host .card-rail-container .card-rail-content .content-container .content {
|
|
98
|
+
flex: 1 0 50%;
|
|
99
|
+
}
|
|
100
|
+
:host .card-rail-container .card-rail-content .content-container .content .content-text {
|
|
101
|
+
padding-right: 16px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@media only screen and (min-width: 992px) {
|
|
105
|
+
:host .card-rail-container .card-rail-content icon-asset#left-arrow {
|
|
106
|
+
left: 19px;
|
|
107
|
+
/* [Expected(32) - HitAreaPadding(13)] */
|
|
108
|
+
}
|
|
109
|
+
:host .card-rail-container .card-rail-content icon-asset#right-arrow {
|
|
110
|
+
right: 19px;
|
|
111
|
+
}
|
|
112
|
+
:host .card-rail-container .card-rail-content .content-container {
|
|
113
|
+
margin: 24px 82px 24px 82px;
|
|
114
|
+
/* [ArrowLeft(32) + ArrowWidth(18) + ArrowRight(32)] = 82 */
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
@media only screen and (min-width: 1200px) {
|
|
118
|
+
:host .card-rail-container {
|
|
119
|
+
left: 134px;
|
|
120
|
+
width: calc(100vw - 268px);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
@media only screen and (min-width: 1440px) {
|
|
124
|
+
:host .card-rail-container {
|
|
125
|
+
left: 32px;
|
|
126
|
+
width: 932px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
@media only screen and (min-width: 1600px) {
|
|
130
|
+
:host .card-rail-container {
|
|
131
|
+
left: 32px;
|
|
132
|
+
width: 1328px;
|
|
133
|
+
}
|
|
134
|
+
:host .card-rail-container .card-rail-content .content-container .content {
|
|
135
|
+
flex: 1 0 33.33%;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
export class PtcRelatedCardRail {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.setScreenBasedProps = () => {
|
|
5
|
+
let windowWidth = window.innerWidth;
|
|
6
|
+
let props = {
|
|
7
|
+
contentContainerMargin: undefined,
|
|
8
|
+
contentCards: undefined,
|
|
9
|
+
parahFontSize: undefined
|
|
10
|
+
};
|
|
11
|
+
if (windowWidth >= 2600) {
|
|
12
|
+
props.contentCards = 3;
|
|
13
|
+
props.parahFontSize = 'xx-small';
|
|
14
|
+
}
|
|
15
|
+
else if (windowWidth >= 1980) {
|
|
16
|
+
props.contentCards = 3;
|
|
17
|
+
props.parahFontSize = 'xx-small';
|
|
18
|
+
}
|
|
19
|
+
else if (windowWidth >= 1440) {
|
|
20
|
+
props.contentCards = 2;
|
|
21
|
+
props.parahFontSize = 'xx-small';
|
|
22
|
+
}
|
|
23
|
+
else if (windowWidth >= 1200) {
|
|
24
|
+
props.contentCards = 2;
|
|
25
|
+
props.parahFontSize = 'xx-small';
|
|
26
|
+
}
|
|
27
|
+
else if (windowWidth >= 992) {
|
|
28
|
+
props.contentCards = 2;
|
|
29
|
+
props.parahFontSize = 'xx-small';
|
|
30
|
+
}
|
|
31
|
+
else if (windowWidth >= 768) {
|
|
32
|
+
props.contentCards = 2;
|
|
33
|
+
props.parahFontSize = 'xxx-small';
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
props.contentCards = 1;
|
|
37
|
+
props.parahFontSize = 'xxx-small';
|
|
38
|
+
}
|
|
39
|
+
this.screenBasedProps = Object.assign({}, props);
|
|
40
|
+
};
|
|
41
|
+
this.handlePrevClick = () => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
let contentContainer = (_a = this.el) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('.content-container');
|
|
44
|
+
let contentContainerMarginLeftString = window.getComputedStyle(contentContainer).marginLeft;
|
|
45
|
+
let contentContainerMarginLeft = Number(contentContainerMarginLeftString.substring(0, contentContainerMarginLeftString.length - 2));
|
|
46
|
+
let contentCards = (_b = this.el) === null || _b === void 0 ? void 0 : _b.shadowRoot.querySelectorAll('.content');
|
|
47
|
+
if (this.cardInView > 0) {
|
|
48
|
+
this.cardInView -= 1;
|
|
49
|
+
const content = contentCards[this.cardInView];
|
|
50
|
+
contentContainer.scrollTo({
|
|
51
|
+
left: content.offsetLeft - contentContainerMarginLeft,
|
|
52
|
+
behavior: "smooth"
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.handleNextClick = () => {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
let contentContainer = (_a = this.el) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('.content-container');
|
|
59
|
+
let contentContainerMarginLeftString = window.getComputedStyle(contentContainer).marginLeft;
|
|
60
|
+
let contentContainerMarginLeft = Number(contentContainerMarginLeftString.substring(0, contentContainerMarginLeftString.length - 2));
|
|
61
|
+
let contentCards = (_b = this.el) === null || _b === void 0 ? void 0 : _b.shadowRoot.querySelectorAll('.content');
|
|
62
|
+
if (this.cardInView < (contentCards.length - this.screenBasedProps.contentCards)) {
|
|
63
|
+
this.cardInView += 1;
|
|
64
|
+
const content = contentCards[this.cardInView];
|
|
65
|
+
contentContainer.scrollTo({
|
|
66
|
+
left: content.offsetLeft - contentContainerMarginLeft,
|
|
67
|
+
behavior: "smooth"
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
this.handleOnScrollBehaviour = () => {
|
|
72
|
+
if (!this.closed) {
|
|
73
|
+
let windowHeight = window.innerHeight || (document.documentElement || document.body).clientHeight;
|
|
74
|
+
let documentHeight = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight, document.body.offsetHeight, document.documentElement.offsetHeight, document.body.clientHeight, document.documentElement.clientHeight);
|
|
75
|
+
let scrollTop = window.scrollY || (document.documentElement || document.body).scrollTop;
|
|
76
|
+
let trackLength = documentHeight - windowHeight;
|
|
77
|
+
let percentageSrolled = Math.floor(scrollTop / trackLength * 100);
|
|
78
|
+
if (percentageSrolled >= 50) {
|
|
79
|
+
this.el.style.display = 'block';
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
this.el.style.display = 'none';
|
|
83
|
+
}
|
|
84
|
+
let cardRailContainer = this.el.shadowRoot.querySelector('.card-rail-container');
|
|
85
|
+
let pageFooter = document.querySelector(this.footerQuerySelector);
|
|
86
|
+
if (pageFooter) {
|
|
87
|
+
let pageFooterTop = pageFooter.getBoundingClientRect().top;
|
|
88
|
+
let windowBottom = window.innerHeight;
|
|
89
|
+
if (pageFooterTop <= windowBottom) {
|
|
90
|
+
let newBottom = 132 + (windowBottom - pageFooterTop);
|
|
91
|
+
cardRailContainer.style.bottom = `${newBottom}px`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
this.handleOnResizeBehaviour = () => {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
this.setScreenBasedProps();
|
|
99
|
+
let contentContainer = (_a = this.el) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('.content-container');
|
|
100
|
+
let contentContainerMarginLeftString = window.getComputedStyle(contentContainer).marginLeft;
|
|
101
|
+
let contentContainerMarginLeft = Number(contentContainerMarginLeftString.substring(0, contentContainerMarginLeftString.length - 2));
|
|
102
|
+
let contentCards = (_b = this.el) === null || _b === void 0 ? void 0 : _b.shadowRoot.querySelectorAll('.content');
|
|
103
|
+
contentContainer.scrollTo({
|
|
104
|
+
left: contentCards[0].offsetLeft - contentContainerMarginLeft,
|
|
105
|
+
});
|
|
106
|
+
this.cardInView = 0;
|
|
107
|
+
};
|
|
108
|
+
this.footerQuerySelector = undefined;
|
|
109
|
+
this.closed = false;
|
|
110
|
+
this.cardInView = 0;
|
|
111
|
+
this.data = [];
|
|
112
|
+
this.screenBasedProps = {
|
|
113
|
+
contentContainerMargin: undefined,
|
|
114
|
+
contentCards: undefined,
|
|
115
|
+
parahFontSize: undefined
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
componentWillLoad() {
|
|
119
|
+
const relatedCards = this.el.querySelectorAll('[slot^="related-card-"]');
|
|
120
|
+
for (let ind in relatedCards) {
|
|
121
|
+
let card = relatedCards[ind];
|
|
122
|
+
if (card.tagName === 'DIV') {
|
|
123
|
+
let cardData = {
|
|
124
|
+
image: undefined,
|
|
125
|
+
text: undefined,
|
|
126
|
+
href: undefined
|
|
127
|
+
};
|
|
128
|
+
let cardImage = card.querySelector('img');
|
|
129
|
+
let cardLink = card.querySelector('a');
|
|
130
|
+
cardData.image = cardImage.getAttribute('src');
|
|
131
|
+
cardData.text = cardLink.innerHTML;
|
|
132
|
+
cardData.href = cardLink.getAttribute('href');
|
|
133
|
+
this.data.push(cardData);
|
|
134
|
+
card.remove();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
this.handleOnScrollBehaviour();
|
|
138
|
+
}
|
|
139
|
+
componentDidLoad() {
|
|
140
|
+
this.setScreenBasedProps();
|
|
141
|
+
window.addEventListener('scroll', this.handleOnScrollBehaviour);
|
|
142
|
+
window.addEventListener('resize', this.handleOnResizeBehaviour);
|
|
143
|
+
}
|
|
144
|
+
render() {
|
|
145
|
+
return (this.closed ? null :
|
|
146
|
+
h(Host, null, h("div", { class: "card-rail-container" }, h("div", { class: "card-rail-header" }, h("div", { class: "card-rail-heading" }, h("ptc-para", { "ellipsis-line-cutoff": "0", "font-size": "x-small", "font-weight": "w-7", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-normal", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, "Read More Case Studies")), h("div", { class: "card-rail-close", onClick: () => { this.closed = true; } }, h("icon-asset", { type: "ptc", size: "xx-small", name: "times", color: "gray" }))), h("div", { class: "card-rail-content" }, h("icon-asset", { id: "left-arrow", type: "ptc", size: "small", name: "previous_button_arrow", color: "gray", onClick: this.handlePrevClick }), h("icon-asset", { id: "right-arrow", type: "ptc", size: "small", name: "next_button_arrow", color: "gray", onClick: this.handleNextClick }), h("div", { class: "content-container" }, this.data.map(item => h("div", { class: "content", onClick: () => { window.open(item.href); } }, h("div", { class: "content-image" }, h("img", { alt: "", src: item.image })), h("div", { class: "content-text" }, h("ptc-para", { "ellipsis-line-cutoff": "3", "font-size": this.screenBasedProps.parahFontSize, "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush", "para-style": "", "para-z-index": "z-1", styles: "" }, item.text)))))))));
|
|
147
|
+
}
|
|
148
|
+
static get is() { return "ptc-related-card-rail"; }
|
|
149
|
+
static get encapsulation() { return "shadow"; }
|
|
150
|
+
static get originalStyleUrls() {
|
|
151
|
+
return {
|
|
152
|
+
"$": ["ptc-related-card-rail.scss"]
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
static get styleUrls() {
|
|
156
|
+
return {
|
|
157
|
+
"$": ["ptc-related-card-rail.css"]
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
static get properties() {
|
|
161
|
+
return {
|
|
162
|
+
"footerQuerySelector": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "string",
|
|
167
|
+
"resolved": "string",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "Query selector of page footer above which the related card rail will unstick"
|
|
175
|
+
},
|
|
176
|
+
"attribute": "footer-query-selector",
|
|
177
|
+
"reflect": false
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
static get states() {
|
|
182
|
+
return {
|
|
183
|
+
"closed": {},
|
|
184
|
+
"cardInView": {},
|
|
185
|
+
"data": {},
|
|
186
|
+
"screenBasedProps": {}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
static get elementRef() { return "el"; }
|
|
190
|
+
}
|
|
@@ -464,6 +464,12 @@ export const PtcReadmoreChar: {
|
|
|
464
464
|
new (): PtcReadmoreChar;
|
|
465
465
|
};
|
|
466
466
|
|
|
467
|
+
interface PtcRelatedCardRail extends Components.PtcRelatedCardRail, HTMLElement {}
|
|
468
|
+
export const PtcRelatedCardRail: {
|
|
469
|
+
prototype: PtcRelatedCardRail;
|
|
470
|
+
new (): PtcRelatedCardRail;
|
|
471
|
+
};
|
|
472
|
+
|
|
467
473
|
interface PtcResponsiveWrapper extends Components.PtcResponsiveWrapper, HTMLElement {}
|
|
468
474
|
export const PtcResponsiveWrapper: {
|
|
469
475
|
prototype: PtcResponsiveWrapper;
|