@ptcwebops/ptcw-design 0.2.8 → 0.3.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/icon-asset_11.cjs.entry.js +540 -0
- package/dist/cjs/list-item.cjs.entry.js +5 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ptc-announcement_2.cjs.entry.js → ptc-announcement.cjs.entry.js} +0 -25
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +23 -0
- package/dist/cjs/ptc-button.cjs.entry.js +9 -5
- package/dist/cjs/ptc-hero.cjs.entry.js +25 -0
- package/dist/cjs/ptc-img.cjs.entry.js +6 -1
- package/dist/cjs/ptc-list.cjs.entry.js +2 -3
- package/dist/cjs/ptc-span.cjs.entry.js +4 -1
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +31 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/icon-asset/icon-asset.css +4 -0
- package/dist/collection/components/icon-asset/icon-asset.js +2 -2
- package/dist/collection/components/icon-asset/media/designer.svg +33 -0
- package/dist/collection/components/list-item/list-item.css +39 -1
- package/dist/collection/components/list-item/list-item.js +26 -5
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +19 -0
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -0
- package/dist/collection/components/ptc-button/ptc-button.css +12 -1
- package/dist/collection/components/ptc-button/ptc-button.js +29 -7
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +28 -0
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +41 -0
- package/dist/collection/components/ptc-card-content/ptc-card-content.css +87 -0
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +81 -0
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +41 -0
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -0
- package/dist/collection/components/ptc-date/ptc-date.css +8 -0
- package/dist/collection/components/ptc-date/ptc-date.js +24 -1
- package/dist/collection/components/ptc-hero/ptc-hero.css +13 -0
- package/dist/collection/components/ptc-hero/ptc-hero.js +43 -0
- package/dist/collection/components/ptc-img/ptc-img.js +6 -1
- package/dist/collection/components/ptc-link/ptc-link.css +25 -3
- package/dist/collection/components/ptc-link/ptc-link.js +3 -2
- package/dist/collection/components/ptc-list/ptc-list.css +8 -4
- package/dist/collection/components/ptc-list/ptc-list.js +5 -8
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +81 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +88 -3
- package/dist/collection/components/ptc-para/ptc-para.css +59 -0
- package/dist/collection/components/ptc-para/ptc-para.js +53 -7
- package/dist/collection/components/ptc-picture/ptc-picture.css +28 -1
- package/dist/collection/components/ptc-picture/ptc-picture.js +27 -9
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +11 -0
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +2 -2
- package/dist/collection/components/ptc-span/ptc-span.css +26 -1
- package/dist/collection/components/ptc-span/ptc-span.js +6 -3
- package/dist/collection/components/ptc-title/ptc-title.css +108 -11
- package/dist/collection/components/ptc-title/ptc-title.js +62 -4
- package/dist/custom-elements/index.d.ts +30 -0
- package/dist/custom-elements/index.js +209 -39
- package/dist/esm/icon-asset_11.entry.js +526 -0
- package/dist/esm/{index-eb8ce23d.js → index-6ce5b664.js} +1 -1
- package/dist/esm/{interfaces-3cb94654.js → interfaces-c1c73092.js} +1 -1
- package/dist/esm/list-item.entry.js +6 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottie-player.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/{ptc-announcement_2.entry.js → ptc-announcement.entry.js} +2 -26
- package/dist/esm/ptc-avatar.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb.entry.js +19 -0
- package/dist/esm/ptc-button.entry.js +10 -6
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +1 -1
- package/dist/esm/ptc-form.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +21 -0
- package/dist/esm/ptc-img.entry.js +8 -3
- package/dist/esm/ptc-input.entry.js +1 -1
- package/dist/esm/ptc-list.entry.js +3 -4
- package/dist/esm/ptc-lottie.entry.js +1 -1
- package/dist/esm/ptc-nav-item.entry.js +1 -1
- package/dist/esm/ptc-nav.entry.js +1 -1
- package/dist/esm/ptc-select.entry.js +1 -1
- package/dist/esm/ptc-span.entry.js +5 -2
- package/dist/esm/ptc-svg-btn.entry.js +27 -0
- package/dist/esm/ptcw-design.js +2 -2
- package/dist/ptcw-design/media/designer.svg +33 -0
- package/dist/ptcw-design/p-29fe43a9.entry.js +1 -0
- package/dist/ptcw-design/p-31b2af1d.entry.js +1 -0
- package/dist/ptcw-design/{p-f94c4594.entry.js → p-3437fbce.entry.js} +1 -1
- package/dist/ptcw-design/p-473ec631.entry.js +1 -0
- package/dist/ptcw-design/{p-240733ce.js → p-50e52c88.js} +1 -1
- package/dist/ptcw-design/{p-e8650244.entry.js → p-542939d4.entry.js} +1 -1
- package/dist/ptcw-design/p-563d409f.entry.js +1 -0
- package/dist/ptcw-design/{p-ef6acb81.entry.js → p-5c78913c.entry.js} +1 -1
- package/dist/ptcw-design/{p-3f42afb6.entry.js → p-5eb74dc3.entry.js} +1 -1
- package/dist/ptcw-design/p-609dec21.entry.js +1 -0
- package/dist/ptcw-design/{p-1b3b0193.entry.js → p-6ff80c95.entry.js} +1 -1
- package/dist/ptcw-design/p-797e4a7d.entry.js +1 -0
- package/dist/ptcw-design/p-9372c930.entry.js +1 -0
- package/dist/ptcw-design/p-9a35c9e2.entry.js +1 -0
- package/dist/ptcw-design/{p-22fd400f.entry.js → p-aafe51df.entry.js} +1 -1
- package/dist/ptcw-design/p-abd4772d.entry.js +1 -0
- package/dist/ptcw-design/{p-75dc7328.entry.js → p-ac57feca.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ca3c085.js → p-b1afaef3.js} +1 -1
- package/dist/ptcw-design/p-b3d73b7f.entry.js +1 -0
- package/dist/ptcw-design/p-b85eda19.entry.js +1 -0
- package/dist/ptcw-design/p-bac826ad.entry.js +1 -0
- package/dist/ptcw-design/{p-e4b96b46.entry.js → p-da7ee0ba.entry.js} +1 -1
- package/dist/ptcw-design/{p-32ef3a79.entry.js → p-e2492128.entry.js} +1 -1
- package/dist/ptcw-design/p-e266fc0b.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
- package/dist/types/components/list-item/list-item.d.ts +2 -1
- package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -0
- package/dist/types/components/ptc-button/ptc-button.d.ts +7 -3
- package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +5 -0
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +11 -0
- package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -0
- package/dist/types/components/ptc-date/ptc-date.d.ts +5 -0
- package/dist/types/components/ptc-hero/ptc-hero.d.ts +5 -0
- package/dist/types/components/ptc-img/ptc-img.d.ts +3 -0
- package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
- package/dist/types/components/ptc-list/ptc-list.d.ts +1 -1
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +17 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +11 -3
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -1
- package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +1 -1
- package/dist/types/components/ptc-span/ptc-span.d.ts +4 -1
- package/dist/types/components/ptc-title/ptc-title.d.ts +14 -2
- package/dist/types/components.d.ts +239 -30
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +0 -64
- package/dist/cjs/ptc-date.cjs.entry.js +0 -48
- package/dist/cjs/ptc-link.cjs.entry.js +0 -53
- package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
- package/dist/cjs/ptc-para.cjs.entry.js +0 -40
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -159
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
- package/dist/cjs/ptc-title.cjs.entry.js +0 -49
- package/dist/esm/icon-asset.entry.js +0 -60
- package/dist/esm/ptc-date.entry.js +0 -44
- package/dist/esm/ptc-link.entry.js +0 -49
- package/dist/esm/ptc-overlay.entry.js +0 -15
- package/dist/esm/ptc-para.entry.js +0 -36
- package/dist/esm/ptc-picture.entry.js +0 -155
- package/dist/esm/ptc-spacer.entry.js +0 -42
- package/dist/esm/ptc-title.entry.js +0 -45
- package/dist/ptcw-design/p-01f4bf71.entry.js +0 -1
- package/dist/ptcw-design/p-08827128.entry.js +0 -1
- package/dist/ptcw-design/p-1bf9750d.entry.js +0 -1
- package/dist/ptcw-design/p-23d07898.entry.js +0 -1
- package/dist/ptcw-design/p-29c54eb0.entry.js +0 -1
- package/dist/ptcw-design/p-2b59ce7a.entry.js +0 -1
- package/dist/ptcw-design/p-389a5670.entry.js +0 -1
- package/dist/ptcw-design/p-51443fbb.entry.js +0 -1
- package/dist/ptcw-design/p-54794e45.entry.js +0 -1
- package/dist/ptcw-design/p-5ae43421.entry.js +0 -1
- package/dist/ptcw-design/p-63b55aba.entry.js +0 -1
- package/dist/ptcw-design/p-6b5c0d9d.entry.js +0 -1
- package/dist/ptcw-design/p-7076b32f.entry.js +0 -1
- package/dist/ptcw-design/p-a86452af.entry.js +0 -1
- package/dist/ptcw-design/p-d3f9852f.entry.js +0 -1
- package/dist/ptcw-design/p-d80b24c9.entry.js +0 -1
- package/dist/ptcw-design/p-fd29d9dd.entry.js +0 -1
|
@@ -11,6 +11,10 @@ button {
|
|
|
11
11
|
white-space: normal;
|
|
12
12
|
position: relative;
|
|
13
13
|
text-decoration: none;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
/*(For Firefox)*/
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
/*(For Chrome and Safari)*/
|
|
14
18
|
cursor: pointer;
|
|
15
19
|
padding: 9.4px 17.5px;
|
|
16
20
|
border-radius: 3px;
|
|
@@ -138,9 +142,12 @@ a {
|
|
|
138
142
|
border-width: 1px;
|
|
139
143
|
position: relative;
|
|
140
144
|
text-decoration: none;
|
|
145
|
+
-moz-osx-font-smoothing: grayscale;
|
|
146
|
+
/*(For Firefox)*/
|
|
147
|
+
-webkit-font-smoothing: antialiased;
|
|
148
|
+
/*(For Chrome and Safari)*/
|
|
141
149
|
padding: 9.4px 17.5px;
|
|
142
150
|
border-radius: 3px;
|
|
143
|
-
text-decoration: none;
|
|
144
151
|
display: inline-block;
|
|
145
152
|
position: relative;
|
|
146
153
|
}
|
|
@@ -180,6 +187,10 @@ a:hover.animation-down ::slotted([slot=slot-before-text]) {
|
|
|
180
187
|
position: relative;
|
|
181
188
|
text-align: center;
|
|
182
189
|
text-decoration: none;
|
|
190
|
+
-moz-osx-font-smoothing: grayscale;
|
|
191
|
+
/*(For Firefox)*/
|
|
192
|
+
-webkit-font-smoothing: antialiased;
|
|
193
|
+
/*(For Chrome and Safari)*/
|
|
183
194
|
transition: background-color var(--ptc-transition-medium) var(--ptc-decelerated-ease);
|
|
184
195
|
}
|
|
185
196
|
.nav:focus {
|
|
@@ -22,15 +22,19 @@ export class PtcButton {
|
|
|
22
22
|
*/
|
|
23
23
|
this.iconPosition = 'icon-right';
|
|
24
24
|
/**
|
|
25
|
-
* Link URL
|
|
25
|
+
* Link URL
|
|
26
26
|
*/
|
|
27
27
|
this.linkHref = undefined;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* link Title
|
|
30
|
+
*/
|
|
31
|
+
this.linkTitle = undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Link target
|
|
30
34
|
* */
|
|
31
35
|
this.target = '_self';
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* Link rel
|
|
34
38
|
* */
|
|
35
39
|
this.rel = undefined;
|
|
36
40
|
/**
|
|
@@ -49,7 +53,7 @@ export class PtcButton {
|
|
|
49
53
|
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
50
54
|
return (h(Host, null,
|
|
51
55
|
this.styles && h("style", null, this.styles),
|
|
52
|
-
h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })),
|
|
56
|
+
h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })),
|
|
53
57
|
h("span", null,
|
|
54
58
|
h("slot", { name: "slot-before-text" }),
|
|
55
59
|
h("slot", null),
|
|
@@ -174,12 +178,30 @@ export class PtcButton {
|
|
|
174
178
|
"optional": true,
|
|
175
179
|
"docs": {
|
|
176
180
|
"tags": [],
|
|
177
|
-
"text": "Link URL
|
|
181
|
+
"text": "Link URL"
|
|
178
182
|
},
|
|
179
183
|
"attribute": "link-href",
|
|
180
184
|
"reflect": false,
|
|
181
185
|
"defaultValue": "undefined"
|
|
182
186
|
},
|
|
187
|
+
"linkTitle": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "link Title"
|
|
200
|
+
},
|
|
201
|
+
"attribute": "link-title",
|
|
202
|
+
"reflect": false,
|
|
203
|
+
"defaultValue": "undefined"
|
|
204
|
+
},
|
|
183
205
|
"target": {
|
|
184
206
|
"type": "string",
|
|
185
207
|
"mutable": false,
|
|
@@ -192,7 +214,7 @@ export class PtcButton {
|
|
|
192
214
|
"optional": true,
|
|
193
215
|
"docs": {
|
|
194
216
|
"tags": [],
|
|
195
|
-
"text": "
|
|
217
|
+
"text": "Link target"
|
|
196
218
|
},
|
|
197
219
|
"attribute": "target",
|
|
198
220
|
"reflect": false,
|
|
@@ -210,7 +232,7 @@ export class PtcButton {
|
|
|
210
232
|
"optional": true,
|
|
211
233
|
"docs": {
|
|
212
234
|
"tags": [],
|
|
213
|
-
"text": "
|
|
235
|
+
"text": "Link rel"
|
|
214
236
|
},
|
|
215
237
|
"attribute": "rel",
|
|
216
238
|
"reflect": false,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host(.card-tall) .ptc-card-bottom-wrapper,
|
|
6
|
+
:host(.card-wide) .ptc-card-bottom-wrapper {
|
|
7
|
+
position: absolute;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
padding: 0 var(--ptc-element-spacing-04) var(--ptc-element-spacing-05) var(--ptc-element-spacing-04);
|
|
11
|
+
z-index: 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host(.card-playlist) {
|
|
15
|
+
flex: 72% 2 1;
|
|
16
|
+
align-self: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media screen and (min-width: 1200px) {
|
|
20
|
+
:host(.card-video-intro) {
|
|
21
|
+
flex: 20% 2 1;
|
|
22
|
+
justify-content: flex-end;
|
|
23
|
+
}
|
|
24
|
+
:host(.card-video-intro) .ptc-card-bottom-wrapper {
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
+
export class PtcCardBottom {
|
|
3
|
+
render() {
|
|
4
|
+
const classMap = this.getCssClassMap();
|
|
5
|
+
return (h(Host, { class: classMap },
|
|
6
|
+
h("div", { class: "ptc-card-bottom-wrapper" },
|
|
7
|
+
h("slot", null))));
|
|
8
|
+
}
|
|
9
|
+
getCssClassMap() {
|
|
10
|
+
return {
|
|
11
|
+
[this.cardType]: this.cardType ? true : false
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
static get is() { return "ptc-card-bottom"; }
|
|
15
|
+
static get encapsulation() { return "shadow"; }
|
|
16
|
+
static get originalStyleUrls() { return {
|
|
17
|
+
"$": ["ptc-card-bottom.scss"]
|
|
18
|
+
}; }
|
|
19
|
+
static get styleUrls() { return {
|
|
20
|
+
"$": ["ptc-card-bottom.css"]
|
|
21
|
+
}; }
|
|
22
|
+
static get properties() { return {
|
|
23
|
+
"cardType": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "\"card-video\" | \"card-tall\" | \"card-2up\" | \"card-wide\" | \"card-playlist\"",
|
|
28
|
+
"resolved": "\"card-2up\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-wide\"",
|
|
29
|
+
"references": {}
|
|
30
|
+
},
|
|
31
|
+
"required": false,
|
|
32
|
+
"optional": false,
|
|
33
|
+
"docs": {
|
|
34
|
+
"tags": [],
|
|
35
|
+
"text": ""
|
|
36
|
+
},
|
|
37
|
+
"attribute": "card-type",
|
|
38
|
+
"reflect": false
|
|
39
|
+
}
|
|
40
|
+
}; }
|
|
41
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host(.speed-bump) {
|
|
6
|
+
border: 1px solid #6a6a6a;
|
|
7
|
+
border-radius: 12px;
|
|
8
|
+
padding: var(--ptc-element-spacing-06) var(--ptc-element-spacing-06);
|
|
9
|
+
text-align: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media screen and (min-width: 768px) {
|
|
13
|
+
:host(.speed-bump) {
|
|
14
|
+
text-align: left;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
:host(.card-tall) .ptc-card-content-wrapper,
|
|
18
|
+
:host(.card-video) .ptc-card-content-wrapper,
|
|
19
|
+
:host(.card-wide) .ptc-card-content-wrapper,
|
|
20
|
+
:host(.card-playlist) .ptc-card-content-wrapper {
|
|
21
|
+
border-radius: var(--ptc-border-radius-x-large);
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
:host(.card-tall) .ptc-card-content-wrapper::before,
|
|
25
|
+
:host(.card-video) .ptc-card-content-wrapper::before,
|
|
26
|
+
:host(.card-wide) .ptc-card-content-wrapper::before,
|
|
27
|
+
:host(.card-playlist) .ptc-card-content-wrapper::before {
|
|
28
|
+
content: "";
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 97.5%;
|
|
32
|
+
border-radius: var(--ptc-border-radius-x-large);
|
|
33
|
+
top: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
background: transparent;
|
|
36
|
+
z-index: 1;
|
|
37
|
+
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.12);
|
|
38
|
+
transition: background var(--ptc-transition-medium) var(--ptc-acceletated-ease);
|
|
39
|
+
}
|
|
40
|
+
:host(.card-tall) .ptc-card-content-wrapper::after,
|
|
41
|
+
:host(.card-video) .ptc-card-content-wrapper::after,
|
|
42
|
+
:host(.card-wide) .ptc-card-content-wrapper::after,
|
|
43
|
+
:host(.card-playlist) .ptc-card-content-wrapper::after {
|
|
44
|
+
content: url("data:image/svg+xml,%3Csvg width='54' height='56' viewBox='0 0 54 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10476)'%3E%3Cpath d='M42 20L12 36V4L42 20Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10476' x='0' y='0' width='54' height='56' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10476'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10476' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
|
|
45
|
+
position: absolute;
|
|
46
|
+
opacity: 0;
|
|
47
|
+
top: 50%;
|
|
48
|
+
left: 50%;
|
|
49
|
+
transform: translate(-50%, -50%);
|
|
50
|
+
z-index: 2;
|
|
51
|
+
transition: opacity var(--ptc-transition-medium) var(--ptc-acceletated-ease);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host(.card-playlist) .ptc-card-content-wrapper {
|
|
55
|
+
width: 88px;
|
|
56
|
+
height: 88px;
|
|
57
|
+
}
|
|
58
|
+
:host(.card-playlist) .ptc-card-content-wrapper::before {
|
|
59
|
+
width: 88px;
|
|
60
|
+
height: 88px;
|
|
61
|
+
}
|
|
62
|
+
:host(.card-playlist) .ptc-card-content-wrapper::after {
|
|
63
|
+
content: url("data:image/svg+xml,%3Csvg width='46' height='48' viewBox='0 0 46 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10337)'%3E%3Cpath d='M34 16L12 28V4L34 16Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10337' x='0' y='0' width='46' height='48' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10337'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10337' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host(.mouse-hover) .ptc-card-content-wrapper::before {
|
|
67
|
+
background: rgba(0, 0, 0, 0.6);
|
|
68
|
+
}
|
|
69
|
+
:host(.mouse-hover) .ptc-card-content-wrapper::after {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host(.card-tall) .ptc-card-content-wrapper::before,
|
|
74
|
+
:host(.card-wide) .ptc-card-content-wrapper::before {
|
|
75
|
+
height: 100%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host(.card-playlist) {
|
|
79
|
+
flex: 28% 1 2;
|
|
80
|
+
margin-right: var(--ptc-element-spacing-03);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media screen and (min-width: 1200px) {
|
|
84
|
+
:host(.card-video-intro) {
|
|
85
|
+
flex: 80% 8 1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Component, Host, h, Prop, Event, Element } from '@stencil/core';
|
|
2
|
+
export class PtcCardContent {
|
|
3
|
+
hoverEventHandler() {
|
|
4
|
+
this.hoverEvent.emit();
|
|
5
|
+
this.el.classList.add('mouse-hover');
|
|
6
|
+
}
|
|
7
|
+
leaveEventHandler() {
|
|
8
|
+
this.hoverEvent.emit();
|
|
9
|
+
this.el.classList.remove('mouse-hover');
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const classMap = this.getCssClassMap();
|
|
13
|
+
return (h(Host, { class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) },
|
|
14
|
+
h("div", { class: "ptc-card-content-wrapper" },
|
|
15
|
+
h("slot", null))));
|
|
16
|
+
}
|
|
17
|
+
getCssClassMap() {
|
|
18
|
+
return {
|
|
19
|
+
[this.cardType]: !!this.cardType ? true : false,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "ptc-card-content"; }
|
|
23
|
+
static get encapsulation() { return "shadow"; }
|
|
24
|
+
static get originalStyleUrls() { return {
|
|
25
|
+
"$": ["ptc-card-content.scss"]
|
|
26
|
+
}; }
|
|
27
|
+
static get styleUrls() { return {
|
|
28
|
+
"$": ["ptc-card-content.css"]
|
|
29
|
+
}; }
|
|
30
|
+
static get properties() { return {
|
|
31
|
+
"cardType": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump' | 'card-playlist'",
|
|
36
|
+
"resolved": "\"card-2up\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-wide\" | \"speed-bump\"",
|
|
37
|
+
"references": {}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": false,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": ""
|
|
44
|
+
},
|
|
45
|
+
"attribute": "card-type",
|
|
46
|
+
"reflect": false
|
|
47
|
+
}
|
|
48
|
+
}; }
|
|
49
|
+
static get events() { return [{
|
|
50
|
+
"method": "hoverEvent",
|
|
51
|
+
"name": "hoverEvent",
|
|
52
|
+
"bubbles": true,
|
|
53
|
+
"cancelable": true,
|
|
54
|
+
"composed": true,
|
|
55
|
+
"docs": {
|
|
56
|
+
"tags": [],
|
|
57
|
+
"text": ""
|
|
58
|
+
},
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "void",
|
|
61
|
+
"resolved": "void",
|
|
62
|
+
"references": {}
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
"method": "leaveEvent",
|
|
66
|
+
"name": "leaveEvent",
|
|
67
|
+
"bubbles": true,
|
|
68
|
+
"cancelable": true,
|
|
69
|
+
"composed": true,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": ""
|
|
73
|
+
},
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "void",
|
|
76
|
+
"resolved": "void",
|
|
77
|
+
"references": {}
|
|
78
|
+
}
|
|
79
|
+
}]; }
|
|
80
|
+
static get elementRef() { return "el"; }
|
|
81
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host(.card-tall),
|
|
6
|
+
:host(.card-wide),
|
|
7
|
+
:host(.card-video) :host(.card-playlist) {
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
10
|
+
:host(.card-tall) a,
|
|
11
|
+
:host(.card-wide) a,
|
|
12
|
+
:host(.card-video) :host(.card-playlist) a {
|
|
13
|
+
text-decoration: none;
|
|
14
|
+
}
|
|
15
|
+
:host(.card-tall) a:hover,
|
|
16
|
+
:host(.card-wide) a:hover,
|
|
17
|
+
:host(.card-video) :host(.card-playlist) a:hover {
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host(.card-playlist) div,
|
|
22
|
+
:host(.card-playlist) a {
|
|
23
|
+
display: flex;
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
:host(.card-playlist) div:hover,
|
|
28
|
+
:host(.card-playlist) a:hover {
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
outline: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host(.card-video-intro) div {
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media screen and (min-width: 1200px) {
|
|
38
|
+
:host(.card-video-intro) div {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
+
export class PtcCardPlm {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.linkTarget = '_self';
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
const classMap = this.getCssClassMap();
|
|
8
|
+
const Tag = !!this.cardLink ? 'a' : 'div';
|
|
9
|
+
return (h(Host, { class: classMap },
|
|
10
|
+
h(Tag, Object.assign({}, (!!this.cardLink ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink ? { target: this.linkTarget } : {}), (!!this.cardLink ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})),
|
|
11
|
+
h("slot", null))));
|
|
12
|
+
}
|
|
13
|
+
getCssClassMap() {
|
|
14
|
+
return {
|
|
15
|
+
[this.cardType]: this.cardType ? true : false
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static get is() { return "ptc-card-plm"; }
|
|
19
|
+
static get encapsulation() { return "shadow"; }
|
|
20
|
+
static get originalStyleUrls() { return {
|
|
21
|
+
"$": ["ptc-card-plm.scss"]
|
|
22
|
+
}; }
|
|
23
|
+
static get styleUrls() { return {
|
|
24
|
+
"$": ["ptc-card-plm.css"]
|
|
25
|
+
}; }
|
|
26
|
+
static get properties() { return {
|
|
27
|
+
"cardType": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "'card-video'| 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro'",
|
|
32
|
+
"resolved": "\"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-video-intro\" | \"card-wide\" | \"speed-bump\"",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": false,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "card-type",
|
|
42
|
+
"reflect": false
|
|
43
|
+
},
|
|
44
|
+
"cardLink": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "string",
|
|
49
|
+
"resolved": "string",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"optional": false,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [],
|
|
56
|
+
"text": ""
|
|
57
|
+
},
|
|
58
|
+
"attribute": "card-link",
|
|
59
|
+
"reflect": false
|
|
60
|
+
},
|
|
61
|
+
"linkTitle": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"mutable": false,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "string",
|
|
66
|
+
"resolved": "string",
|
|
67
|
+
"references": {}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": ""
|
|
74
|
+
},
|
|
75
|
+
"attribute": "link-title",
|
|
76
|
+
"reflect": false
|
|
77
|
+
},
|
|
78
|
+
"linkTarget": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"mutable": false,
|
|
81
|
+
"complexType": {
|
|
82
|
+
"original": "string",
|
|
83
|
+
"resolved": "string",
|
|
84
|
+
"references": {}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": ""
|
|
91
|
+
},
|
|
92
|
+
"attribute": "link-target",
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"defaultValue": "'_self'"
|
|
95
|
+
}
|
|
96
|
+
}; }
|
|
97
|
+
}
|
|
@@ -23,10 +23,16 @@ export class PtcDate {
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
// const newDate = new Date(this.year, this.month, this.day);
|
|
26
|
-
|
|
26
|
+
const classMap = this.getCssClassMap();
|
|
27
|
+
return (h(Host, { class: classMap },
|
|
27
28
|
this.dateStyles && h("style", null, this.dateStyles),
|
|
28
29
|
h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
|
|
29
30
|
}
|
|
31
|
+
getCssClassMap() {
|
|
32
|
+
return {
|
|
33
|
+
[this.dateColor]: !!this.dateColor ? true : false
|
|
34
|
+
};
|
|
35
|
+
}
|
|
30
36
|
getDate() {
|
|
31
37
|
if (this.dateString) {
|
|
32
38
|
let newDate = new Date(this.dateString.replace(/-/g, '\/'));
|
|
@@ -134,6 +140,23 @@ export class PtcDate {
|
|
|
134
140
|
"attribute": "date-string",
|
|
135
141
|
"reflect": false
|
|
136
142
|
},
|
|
143
|
+
"dateColor": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"mutable": false,
|
|
146
|
+
"complexType": {
|
|
147
|
+
"original": "'white' | 'primary-grey'",
|
|
148
|
+
"resolved": "\"primary-grey\" | \"white\"",
|
|
149
|
+
"references": {}
|
|
150
|
+
},
|
|
151
|
+
"required": false,
|
|
152
|
+
"optional": false,
|
|
153
|
+
"docs": {
|
|
154
|
+
"tags": [],
|
|
155
|
+
"text": "Date Color"
|
|
156
|
+
},
|
|
157
|
+
"attribute": "date-color",
|
|
158
|
+
"reflect": false
|
|
159
|
+
},
|
|
137
160
|
"dateStyles": {
|
|
138
161
|
"type": "string",
|
|
139
162
|
"mutable": false,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
+
export class PtcHero {
|
|
3
|
+
render() {
|
|
4
|
+
const classMap = this.getCssClassMap();
|
|
5
|
+
return (h(Host, { class: classMap },
|
|
6
|
+
h("div", { class: "ptc-hero-wrapper" },
|
|
7
|
+
h("ptc-img", { "image-type": "smart-bg", "img-url": "http://s7d1.scene7.com/is/image/ptcinc/cs-boeing-planes-runway", "size-xs": "600x450", "size-sm": "1108x658", "size-md": "1920x1080", "size-lg": "2700x1500" },
|
|
8
|
+
this.heroType == 'jumbotron' ? ([h("ptc-overlay", { "filter-color": "black-1-xs" }), h("ptc-overlay", { "filter-color": "black-2-xs" })]) : this.heroType == 'footer-cta' ? (h("ptc-overlay", { "filter-color": "black-3" })) : null,
|
|
9
|
+
h("slot", null)))));
|
|
10
|
+
}
|
|
11
|
+
getCssClassMap() {
|
|
12
|
+
return {
|
|
13
|
+
[this.heroType]: this.heroType ? true : false,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "ptc-hero"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() { return {
|
|
19
|
+
"$": ["ptc-hero.scss"]
|
|
20
|
+
}; }
|
|
21
|
+
static get styleUrls() { return {
|
|
22
|
+
"$": ["ptc-hero.css"]
|
|
23
|
+
}; }
|
|
24
|
+
static get properties() { return {
|
|
25
|
+
"heroType": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"mutable": false,
|
|
28
|
+
"complexType": {
|
|
29
|
+
"original": "'jumbotron' | 'footer-cta'",
|
|
30
|
+
"resolved": "\"footer-cta\" | \"jumbotron\"",
|
|
31
|
+
"references": {}
|
|
32
|
+
},
|
|
33
|
+
"required": false,
|
|
34
|
+
"optional": false,
|
|
35
|
+
"docs": {
|
|
36
|
+
"tags": [],
|
|
37
|
+
"text": ""
|
|
38
|
+
},
|
|
39
|
+
"attribute": "hero-type",
|
|
40
|
+
"reflect": false
|
|
41
|
+
}
|
|
42
|
+
}; }
|
|
43
|
+
}
|
|
@@ -35,13 +35,17 @@ export class PtcImg {
|
|
|
35
35
|
*/
|
|
36
36
|
this.loadMode = 'lazy-bg';
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Image Z Index
|
|
40
|
+
*/
|
|
41
|
+
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
38
42
|
WindowResize() {
|
|
39
43
|
this.setResponsiveBg();
|
|
40
44
|
}
|
|
41
45
|
render() {
|
|
42
46
|
const classMap = this.getCssClassMap();
|
|
43
47
|
return (h(Host, null,
|
|
44
|
-
h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` })));
|
|
48
|
+
h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? h("slot", null) : null)));
|
|
45
49
|
}
|
|
46
50
|
componentDidLoad() {
|
|
47
51
|
this.addIntersectionObserver();
|
|
@@ -107,6 +111,7 @@ export class PtcImg {
|
|
|
107
111
|
'ptc-img': true,
|
|
108
112
|
[this.borderRadius]: true,
|
|
109
113
|
[this.loadMode]: true,
|
|
114
|
+
// [this.imageZIndex] : true
|
|
110
115
|
};
|
|
111
116
|
}
|
|
112
117
|
getCurrentBreakPoints() {
|