@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
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0b899fc6.js');
|
|
6
|
+
const interfaces = require('./interfaces-0ecd8027.js');
|
|
7
|
+
|
|
8
|
+
const iconAssetCss = "/*!\n * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg{vertical-align:-.225em}.svg-inline--fa.fa-w-1{width:.0625em}.svg-inline--fa.fa-w-2{width:.125em}.svg-inline--fa.fa-w-3{width:.1875em}.svg-inline--fa.fa-w-4{width:.25em}.svg-inline--fa.fa-w-5{width:.3125em}.svg-inline--fa.fa-w-6{width:.375em}.svg-inline--fa.fa-w-7{width:.4375em}.svg-inline--fa.fa-w-8{width:.5em}.svg-inline--fa.fa-w-9{width:.5625em}.svg-inline--fa.fa-w-10{width:.625em}.svg-inline--fa.fa-w-11{width:.6875em}.svg-inline--fa.fa-w-12{width:.75em}.svg-inline--fa.fa-w-13{width:.8125em}.svg-inline--fa.fa-w-14{width:.875em}.svg-inline--fa.fa-w-15{width:.9375em}.svg-inline--fa.fa-w-16{width:1em}.svg-inline--fa.fa-w-17{width:1.0625em}.svg-inline--fa.fa-w-18{width:1.125em}.svg-inline--fa.fa-w-19{width:1.1875em}.svg-inline--fa.fa-w-20{width:1.25em}.svg-inline--fa.fa-pull-left{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right{margin-left:.3em;width:auto}.svg-inline--fa.fa-border{height:1.5em}.svg-inline--fa.fa-li{width:2em}.svg-inline--fa.fa-fw{width:1.25em}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa .fa-secondary,.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fad.fa-inverse{color:#fff}icon-asset{vertical-align:middle}svg.x-small{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.large{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.white{fill:var(--color-white)}svg.black{fill:var(--color-black)}svg.ptc-green{fill:var(--color-primary-green)}svg.inherit{fill:inherit}";
|
|
9
|
+
|
|
10
|
+
let IconAsset = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/**
|
|
14
|
+
* Icon Size
|
|
15
|
+
*/
|
|
16
|
+
this.size = 'small';
|
|
17
|
+
/**
|
|
18
|
+
* Icon Type
|
|
19
|
+
*/
|
|
20
|
+
this.type = 'regular';
|
|
21
|
+
/**
|
|
22
|
+
* Icon Spin Animation (not valid for ptc type)
|
|
23
|
+
*/
|
|
24
|
+
this.spin = '';
|
|
25
|
+
/**
|
|
26
|
+
* Icon Pulse Animation (not valid for ptc type)
|
|
27
|
+
*/
|
|
28
|
+
this.pulse = '';
|
|
29
|
+
/**
|
|
30
|
+
* Icon Color
|
|
31
|
+
*/
|
|
32
|
+
this.color = 'default';
|
|
33
|
+
this.regularSprite = index.getAssetPath('./media/regular.svg');
|
|
34
|
+
this.solidSprite = index.getAssetPath('./media/solid.svg');
|
|
35
|
+
this.brandSprite = index.getAssetPath('./media/brands.svg');
|
|
36
|
+
this.ptcSprite = index.getAssetPath('./media/designer.svg');
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
const classMap = this.getCssClassMap();
|
|
40
|
+
if (this.type == 'brands') {
|
|
41
|
+
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
42
|
+
}
|
|
43
|
+
else if (this.type == 'solid') {
|
|
44
|
+
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
45
|
+
}
|
|
46
|
+
else if (this.type == 'ptc') {
|
|
47
|
+
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
getCssClassMap() {
|
|
54
|
+
return {
|
|
55
|
+
[this.size]: true,
|
|
56
|
+
[this.spin]: true,
|
|
57
|
+
[this.pulse]: true,
|
|
58
|
+
[this.color]: true,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
static get assetsDirs() { return ["media"]; }
|
|
62
|
+
};
|
|
63
|
+
IconAsset.style = iconAssetCss;
|
|
64
|
+
|
|
65
|
+
const ptcCardBottomCss = ":host{display:block}:host(.card-tall) .ptc-card-bottom-wrapper,:host(.card-wide) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0 var(--ptc-element-spacing-04) var(--ptc-element-spacing-05) var(--ptc-element-spacing-04);z-index:2}:host(.card-playlist){flex:72% 2 1;align-self:center}@media screen and (min-width: 1200px){:host(.card-video-intro){flex:20% 2 1;justify-content:flex-end}:host(.card-video-intro) .ptc-card-bottom-wrapper{display:flex;justify-content:flex-end}}";
|
|
66
|
+
|
|
67
|
+
let PtcCardBottom = class {
|
|
68
|
+
constructor(hostRef) {
|
|
69
|
+
index.registerInstance(this, hostRef);
|
|
70
|
+
}
|
|
71
|
+
render() {
|
|
72
|
+
const classMap = this.getCssClassMap();
|
|
73
|
+
return (index.h(index.Host, { class: classMap }, index.h("div", { class: "ptc-card-bottom-wrapper" }, index.h("slot", null))));
|
|
74
|
+
}
|
|
75
|
+
getCssClassMap() {
|
|
76
|
+
return {
|
|
77
|
+
[this.cardType]: this.cardType ? true : false
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
PtcCardBottom.style = ptcCardBottomCss;
|
|
82
|
+
|
|
83
|
+
const ptcCardContentCss = ":host{display:block}:host(.speed-bump){border:1px solid #6a6a6a;border-radius:12px;padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06);text-align:center}@media screen and (min-width: 768px){:host(.speed-bump){text-align:left}}:host(.card-tall) .ptc-card-content-wrapper,:host(.card-video) .ptc-card-content-wrapper,:host(.card-wide) .ptc-card-content-wrapper,:host(.card-playlist) .ptc-card-content-wrapper{border-radius:var(--ptc-border-radius-x-large);position:relative}:host(.card-tall) .ptc-card-content-wrapper::before,:host(.card-video) .ptc-card-content-wrapper::before,:host(.card-wide) .ptc-card-content-wrapper::before,:host(.card-playlist) .ptc-card-content-wrapper::before{content:\"\";position:absolute;width:100%;height:97.5%;border-radius:var(--ptc-border-radius-x-large);top:0;left:0;background:transparent;z-index:1;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.12);transition:background var(--ptc-transition-medium) var(--ptc-acceletated-ease)}:host(.card-tall) .ptc-card-content-wrapper::after,:host(.card-video) .ptc-card-content-wrapper::after,:host(.card-wide) .ptc-card-content-wrapper::after,:host(.card-playlist) .ptc-card-content-wrapper::after{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\");position:absolute;opacity:0;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;transition:opacity var(--ptc-transition-medium) var(--ptc-acceletated-ease)}:host(.card-playlist) .ptc-card-content-wrapper{width:88px;height:88px}:host(.card-playlist) .ptc-card-content-wrapper::before{width:88px;height:88px}:host(.card-playlist) .ptc-card-content-wrapper::after{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\")}:host(.mouse-hover) .ptc-card-content-wrapper::before{background:rgba(0, 0, 0, 0.6)}:host(.mouse-hover) .ptc-card-content-wrapper::after{opacity:1}:host(.card-tall) .ptc-card-content-wrapper::before,:host(.card-wide) .ptc-card-content-wrapper::before{height:100%}:host(.card-playlist){flex:28% 1 2;margin-right:var(--ptc-element-spacing-03)}@media screen and (min-width: 1200px){:host(.card-video-intro){flex:80% 8 1}}";
|
|
84
|
+
|
|
85
|
+
let PtcCardContent = class {
|
|
86
|
+
constructor(hostRef) {
|
|
87
|
+
index.registerInstance(this, hostRef);
|
|
88
|
+
this.hoverEvent = index.createEvent(this, "hoverEvent", 7);
|
|
89
|
+
this.leaveEvent = index.createEvent(this, "leaveEvent", 7);
|
|
90
|
+
}
|
|
91
|
+
hoverEventHandler() {
|
|
92
|
+
this.hoverEvent.emit();
|
|
93
|
+
this.el.classList.add('mouse-hover');
|
|
94
|
+
}
|
|
95
|
+
leaveEventHandler() {
|
|
96
|
+
this.hoverEvent.emit();
|
|
97
|
+
this.el.classList.remove('mouse-hover');
|
|
98
|
+
}
|
|
99
|
+
render() {
|
|
100
|
+
const classMap = this.getCssClassMap();
|
|
101
|
+
return (index.h(index.Host, { class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, index.h("div", { class: "ptc-card-content-wrapper" }, index.h("slot", null))));
|
|
102
|
+
}
|
|
103
|
+
getCssClassMap() {
|
|
104
|
+
return {
|
|
105
|
+
[this.cardType]: !!this.cardType ? true : false,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
get el() { return index.getElement(this); }
|
|
109
|
+
};
|
|
110
|
+
PtcCardContent.style = ptcCardContentCss;
|
|
111
|
+
|
|
112
|
+
const ptcCardPlmCss = ":host{display:block}:host(.card-tall),:host(.card-wide),:host(.card-video) :host(.card-playlist){position:relative}:host(.card-tall) a,:host(.card-wide) a,:host(.card-video) :host(.card-playlist) a{text-decoration:none}:host(.card-tall) a:hover,:host(.card-wide) a:hover,:host(.card-video) :host(.card-playlist) a:hover{text-decoration:none}:host(.card-playlist) div,:host(.card-playlist) a{display:flex;text-decoration:none;outline:none}:host(.card-playlist) div:hover,:host(.card-playlist) a:hover{text-decoration:none;outline:none}:host(.card-video-intro) div{display:block}@media screen and (min-width: 1200px){:host(.card-video-intro) div{display:flex}}";
|
|
113
|
+
|
|
114
|
+
let PtcCardPlm = class {
|
|
115
|
+
constructor(hostRef) {
|
|
116
|
+
index.registerInstance(this, hostRef);
|
|
117
|
+
this.linkTarget = '_self';
|
|
118
|
+
}
|
|
119
|
+
render() {
|
|
120
|
+
const classMap = this.getCssClassMap();
|
|
121
|
+
const Tag = !!this.cardLink ? 'a' : 'div';
|
|
122
|
+
return (index.h(index.Host, { class: classMap }, index.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 } : {})), index.h("slot", null))));
|
|
123
|
+
}
|
|
124
|
+
getCssClassMap() {
|
|
125
|
+
return {
|
|
126
|
+
[this.cardType]: this.cardType ? true : false
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
PtcCardPlm.style = ptcCardPlmCss;
|
|
131
|
+
|
|
132
|
+
const ptcDateCss = ":host{display:block}:host(.primary-grey){color:var(--color-primary-gray-new)}:host(.white) span{color:var(--color-white)}";
|
|
133
|
+
|
|
134
|
+
let PtcDate = class {
|
|
135
|
+
constructor(hostRef) {
|
|
136
|
+
index.registerInstance(this, hostRef);
|
|
137
|
+
/**
|
|
138
|
+
* Year
|
|
139
|
+
*/
|
|
140
|
+
this.year = 1900;
|
|
141
|
+
/**
|
|
142
|
+
* Month
|
|
143
|
+
* An integer between 0 (January) and 11 (December) representing the month.If omitted, defaults to 0.
|
|
144
|
+
*/
|
|
145
|
+
this.month = 0;
|
|
146
|
+
/**
|
|
147
|
+
* Day
|
|
148
|
+
* An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
|
|
149
|
+
*/
|
|
150
|
+
this.day = 1;
|
|
151
|
+
/**
|
|
152
|
+
* Country
|
|
153
|
+
* examples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES
|
|
154
|
+
*/
|
|
155
|
+
this.country = "en-US";
|
|
156
|
+
}
|
|
157
|
+
render() {
|
|
158
|
+
// const newDate = new Date(this.year, this.month, this.day);
|
|
159
|
+
const classMap = this.getCssClassMap();
|
|
160
|
+
return (index.h(index.Host, { class: classMap }, this.dateStyles && index.h("style", null, this.dateStyles), index.h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
|
|
161
|
+
}
|
|
162
|
+
getCssClassMap() {
|
|
163
|
+
return {
|
|
164
|
+
[this.dateColor]: !!this.dateColor ? true : false
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
getDate() {
|
|
168
|
+
if (this.dateString) {
|
|
169
|
+
let newDate = new Date(this.dateString.replace(/-/g, '\/'));
|
|
170
|
+
return newDate;
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return new Date(this.year, this.month, this.day);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
PtcDate.style = ptcDateCss;
|
|
178
|
+
|
|
179
|
+
const ptcLinkCss = ":host{display:block}.disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}.ptc-link.arrow icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}.ptc-link.arrow icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link.arrow-plm icon-asset{position:absolute;right:-6.75px;transform:translate(100%, 8%)}.ptc-link.arrow-plm svg{fill:#3DAB49 !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title:focus,.nav-title-link:focus,.primary-nav-link:focus,.secondary-nav-link:focus,.footer-nav-link:focus,.copyright-link:focus{outline:3px solid #0092d1;outline-offset:2px}.nav-title{box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:15px;font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0.15px;line-height:25.05px;list-style:none;margin-bottom:10px;text-align:left}.primary-nav-link{background-color:transparent;box-sizing:border-box;color:#f3f3f4;display:inline-block;font-size:15px;font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0.3px;line-height:25.95px;list-style:none;margin:var(--ptc-element-spacing-01) var(--ptc-element-spacing-03);padding:var(--ptc-element-spacing-02) var(--ptc-element-spacing-05);padding-bottom:7px;position:relative;text-decoration:none;transition:background-color var(--ptc-transition-medium) var(--ptc-decelerated-ease)}.primary-nav-link:hover{border-radius:4px;background-color:#20262a;text-decoration:none;outline:none}.nav-title-link{background-color:transparent;box-sizing:border-box;color:var(--color-white);font-size:var(--ptc-font-size-x-small);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);line-height:15px;list-style:none;text-align:left;text-decoration-color:var(--color-white);text-decoration:none;transition:border-color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent;display:inline-block}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-secondary-turtlegreen)}.secondary-nav-link{display:inline-block;background-color:transparent;box-sizing:border-box;color:var(--color-white);font-size:var(--ptc-font-size-x-small);font-stretch:100%;font-style:normal;font-weight:var(--ptc-font-weight-semibold);letter-spacing:0.12px;line-height:14.4px;list-style:none;margin-bottom:12px;text-align:left;text-decoration:none;transition:border-color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent;white-space:nowrap}.secondary-nav-link:hover{color:var(--color-white);border-bottom:1.5px solid #74c34d;border-radius:0;text-decoration:none}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-standard-ease), color var(--ptc-transition-medium) var(--ptc-standard-ease);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);line-height:1.73;letter-spacing:1.13px;text-align:left;font-size:15px}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-secondary-turtlegreen);color:var(--color-secondary-turtlegreen)}.copyright-link{color:var(--color-white);font-size:13px;font-weight:var(--ptc-font-weight-normal);line-height:2;display:inline-block}.arrow-plm{color:var(--color-white);font-weight:var(--ptc-font-weight-extrabold);font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-19);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:transparent;text-underline-offset:2px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-acceletated-ease)}.arrow-plm:hover{text-decoration-color:#3DAB49}";
|
|
180
|
+
|
|
181
|
+
let PtcLink = class {
|
|
182
|
+
constructor(hostRef) {
|
|
183
|
+
index.registerInstance(this, hostRef);
|
|
184
|
+
/**
|
|
185
|
+
* Disabled link
|
|
186
|
+
*/
|
|
187
|
+
this.disabled = false;
|
|
188
|
+
/**
|
|
189
|
+
* Rxternal link
|
|
190
|
+
* */
|
|
191
|
+
this.external = false;
|
|
192
|
+
/**
|
|
193
|
+
* Target
|
|
194
|
+
*/
|
|
195
|
+
this.target = '_self';
|
|
196
|
+
/**
|
|
197
|
+
* Theme
|
|
198
|
+
*/
|
|
199
|
+
this.theme = 'simple';
|
|
200
|
+
/**
|
|
201
|
+
* Uppercase
|
|
202
|
+
*/
|
|
203
|
+
this.uppercase = false;
|
|
204
|
+
/**
|
|
205
|
+
* Font Size
|
|
206
|
+
*/
|
|
207
|
+
this.fontSize = 'medium';
|
|
208
|
+
}
|
|
209
|
+
render() {
|
|
210
|
+
const classMap = this.getCssClassMap();
|
|
211
|
+
return (index.h(index.Host, null, index.h("a", { class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle }, this.theme == 'arrow' ? index.h("icon-asset", { type: "solid", size: "small", name: "arrow-right" }) : '', this.theme == 'arrow-plm' ? index.h("icon-asset", { type: "ptc", size: "x-small", name: "button-arrow-right" }) : '', index.h("slot", null))));
|
|
212
|
+
}
|
|
213
|
+
getCssClassMap() {
|
|
214
|
+
return {
|
|
215
|
+
['ptc-link']: true,
|
|
216
|
+
[this.theme]: true,
|
|
217
|
+
['uppercase']: this.uppercase,
|
|
218
|
+
['disabled']: this.disabled,
|
|
219
|
+
[this.fontSize]: true,
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
PtcLink.style = ptcLinkCss;
|
|
224
|
+
|
|
225
|
+
const ptcOverlayCss = ":host{display:block;position:absolute;top:0;left:0;width:100%;height:100%}:host(.blue){background:linear-gradient(180deg, rgba(25, 123, 192, 0.2) 0%, #197BC0 100%)}:host(.red){background:linear-gradient(180deg, rgba(209, 44, 58, 0.2) 0%, #D12C3A 100%)}:host(.orange){background:linear-gradient(180deg, rgba(195, 119, 41, 0.2) 0%, #C37729 100%)}:host(.green){background:linear-gradient(180deg, rgba(0, 137, 11, 0.2) 0%, #00890B 100%)}:host(.black-1-sm){background:linear-gradient(270deg, rgba(32, 38, 42, 0) 33.33%, #20262A 100%)}:host(.black-2-sm){background:linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, #20262A 100%)}:host(.black-1-xs){background:linear-gradient(270deg, rgba(32, 38, 42, 0.32) 33.33%, #20262A 100%)}:host(.black-2-xs){background:linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, #20262A 100%)}:host(.black-3){background:linear-gradient(180deg, #20262A 0%, rgba(32, 38, 42, 0.55) 100%)}:host(.slate-grey){background:linear-gradient(180deg, rgba(97, 116, 128, 0.2) 0%, #617480 100%)}:host(.radius-sm){border-radius:var(--ptc-border-radius-small)}:host(.radius-md){border-radius:var(--ptc-border-radius-medium)}:host(.radius-lg){border-radius:var(--ptc-border-radius-large)}:host(.radius-x-lg){border-radius:var(--ptc-border-radius-x-large)}:host(.z-index-auto){z-index:auto}:host(.z-index-n-1){z-index:-1}:host(.z-index-n-2){z-index:-2}:host(.z-index-p-1){z-index:1}:host(.z-index-p-2){z-index:2}";
|
|
226
|
+
|
|
227
|
+
let PtcOverlay = class {
|
|
228
|
+
constructor(hostRef) {
|
|
229
|
+
index.registerInstance(this, hostRef);
|
|
230
|
+
/**
|
|
231
|
+
* Overlay z-index
|
|
232
|
+
*/
|
|
233
|
+
this.overlayZIndex = 'z-index-auto';
|
|
234
|
+
}
|
|
235
|
+
render() {
|
|
236
|
+
const classMap = this.getCssClassMap();
|
|
237
|
+
return index.h(index.Host, { class: classMap });
|
|
238
|
+
}
|
|
239
|
+
getCssClassMap() {
|
|
240
|
+
return {
|
|
241
|
+
[this.filterColor]: !!this.filterColor ? true : false,
|
|
242
|
+
[this.borderRadius]: !!this.borderRadius ? true : false,
|
|
243
|
+
[this.overlayZIndex]: true
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
PtcOverlay.style = ptcOverlayCss;
|
|
248
|
+
|
|
249
|
+
const ptcParaCss = ":host{z-index:1}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-primary-grey)}p.primary-grey{color:var(--color-primary-grey)}p.white{color:var(--color-white)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.font-size-15{font-size:var(--ptc-font-size-15)}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03)}p.margin-top-4{margin-top:var(--ptc-element-spacing-04)}p.margin-top-5{margin-top:var(--ptc-element-spacing-05)}p.margin-top-6{margin-top:var(--ptc-element-spacing-06)}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03)}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04)}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05)}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-17{line-height:var(--ptc-line-height-17)}p.line-height-18{line-height:var(--ptc-line-height-18)}p.line-height-19{line-height:var(--ptc-line-height-19)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-secondary-grey);line-height:var(--ptc-line-height-looser);letter-spacing:1px}";
|
|
250
|
+
|
|
251
|
+
let PtcPara = class {
|
|
252
|
+
constructor(hostRef) {
|
|
253
|
+
index.registerInstance(this, hostRef);
|
|
254
|
+
/**
|
|
255
|
+
* Paragraph font size
|
|
256
|
+
**/
|
|
257
|
+
this.fontSize = "medium";
|
|
258
|
+
/**
|
|
259
|
+
* Paragraph font weight
|
|
260
|
+
**/
|
|
261
|
+
this.fontWeight = 'w-4';
|
|
262
|
+
/**
|
|
263
|
+
* Paragraph Style
|
|
264
|
+
**/
|
|
265
|
+
this.paraStyle = 'default';
|
|
266
|
+
/**
|
|
267
|
+
* Paragraph Color
|
|
268
|
+
*/
|
|
269
|
+
this.paraColor = 'primary-grey';
|
|
270
|
+
/**
|
|
271
|
+
* line height
|
|
272
|
+
*/
|
|
273
|
+
this.paraLineH = 'line-height-normal';
|
|
274
|
+
}
|
|
275
|
+
render() {
|
|
276
|
+
const classMap = this.getCssClassMap();
|
|
277
|
+
return (index.h("p", { class: classMap, part: "part-para" }, index.h("slot", null)));
|
|
278
|
+
}
|
|
279
|
+
getCssClassMap() {
|
|
280
|
+
return {
|
|
281
|
+
[this.fontSize]: true,
|
|
282
|
+
[this.fontWeight]: true,
|
|
283
|
+
[this.paraStyle]: true,
|
|
284
|
+
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
285
|
+
[this.paraColor]: true,
|
|
286
|
+
[this.paraLineH]: true
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
PtcPara.style = ptcParaCss;
|
|
291
|
+
|
|
292
|
+
const ptcPictureCss = ":host{display:block;overflow:hidden}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:static}img{max-width:100%}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-sm{border-radius:var(--ptc-border-radius-small)}.radius-md{border-radius:var(--ptc-border-radius-medium)}.radius-lg{border-radius:var(--ptc-border-radius-large)}.radius-x-lg{border-radius:var(--ptc-border-radius-x-large)}";
|
|
293
|
+
|
|
294
|
+
let PtcPicture = class {
|
|
295
|
+
constructor(hostRef) {
|
|
296
|
+
index.registerInstance(this, hostRef);
|
|
297
|
+
/**
|
|
298
|
+
* Image alt
|
|
299
|
+
*/
|
|
300
|
+
this.alt = "image";
|
|
301
|
+
/**
|
|
302
|
+
* Image size for smallest screen
|
|
303
|
+
* <=767px
|
|
304
|
+
*/
|
|
305
|
+
this.sizeXs = '510x340';
|
|
306
|
+
/**
|
|
307
|
+
* Image size for small screen
|
|
308
|
+
* >=768px and <=991px
|
|
309
|
+
*/
|
|
310
|
+
this.sizeSm = '1240x496';
|
|
311
|
+
/**
|
|
312
|
+
* Image size for medium screen
|
|
313
|
+
* >=992px and <=1199px
|
|
314
|
+
*/
|
|
315
|
+
this.sizeMd = '1366x500';
|
|
316
|
+
/**
|
|
317
|
+
* Image solution for large screen
|
|
318
|
+
* >=1200px
|
|
319
|
+
*/
|
|
320
|
+
this.sizeLg = '1920x1080';
|
|
321
|
+
/**
|
|
322
|
+
* Image Position
|
|
323
|
+
*/
|
|
324
|
+
this.imagePosition = 'static';
|
|
325
|
+
/**
|
|
326
|
+
* Object Fit
|
|
327
|
+
* Default: cover
|
|
328
|
+
*/
|
|
329
|
+
this.objectFit = 'cover';
|
|
330
|
+
}
|
|
331
|
+
WindowResize() {
|
|
332
|
+
this.addIntersectionObserver();
|
|
333
|
+
}
|
|
334
|
+
componentDidLoad() {
|
|
335
|
+
this.addIntersectionObserver();
|
|
336
|
+
}
|
|
337
|
+
componentWillUpdate() {
|
|
338
|
+
if (this.src !== this.oldSrc) {
|
|
339
|
+
this.addIntersectionObserver();
|
|
340
|
+
}
|
|
341
|
+
this.oldSrc = this.src;
|
|
342
|
+
}
|
|
343
|
+
//lazy-loading
|
|
344
|
+
addIntersectionObserver() {
|
|
345
|
+
if (!this.src) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
if ('IntersectionObserver' in window) {
|
|
349
|
+
let lazyLoadImages = new IntersectionObserver(entries => {
|
|
350
|
+
entries.forEach(entry => {
|
|
351
|
+
if (entry.isIntersecting) {
|
|
352
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
353
|
+
image.src = this.setResponsiveBg();
|
|
354
|
+
console.log('loaded');
|
|
355
|
+
lazyLoadImages.unobserve(image);
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
});
|
|
359
|
+
lazyLoadImages.observe(this.el.shadowRoot.querySelector('img'));
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
// fall back to setTimeout for Safari and IE
|
|
363
|
+
setTimeout(() => {
|
|
364
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
365
|
+
image.src = this.setResponsiveBg();
|
|
366
|
+
image.onload = () => {
|
|
367
|
+
image.removeAttribute('data-src');
|
|
368
|
+
console.log('loaded fallback');
|
|
369
|
+
};
|
|
370
|
+
}, 5000);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
//responsive image
|
|
374
|
+
setResponsiveBg() {
|
|
375
|
+
// Define local variables
|
|
376
|
+
let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
377
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
378
|
+
// Set current variables
|
|
379
|
+
el = backgrounds[i];
|
|
380
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
381
|
+
if (elData !== null) {
|
|
382
|
+
// console.log('img src= ' + elData);
|
|
383
|
+
return elData;
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
if (typeof console == 'object') {
|
|
387
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
render() {
|
|
393
|
+
const classMap = this.getCssClassMap();
|
|
394
|
+
return (index.h(index.Host, { class: this.imagePosition }, this.styles && index.h("style", null, this.styles), index.h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt })), index.h("slot", null)));
|
|
395
|
+
}
|
|
396
|
+
getCurrentBreakPoints() {
|
|
397
|
+
// Define local variables
|
|
398
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
399
|
+
// Append test node
|
|
400
|
+
doc.body.appendChild(temp);
|
|
401
|
+
// Loop through breakpoints
|
|
402
|
+
for (let i = interfaces.ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
403
|
+
env = interfaces.ResponsivePictureVariables.envs[i];
|
|
404
|
+
// Add classes
|
|
405
|
+
temp.className = 'hidden-' + env;
|
|
406
|
+
// Found breakpoint
|
|
407
|
+
if (temp.offsetParent === null) {
|
|
408
|
+
// Remove our test node
|
|
409
|
+
doc.body.removeChild(temp);
|
|
410
|
+
console.log('remove test node');
|
|
411
|
+
// Return current breakpoint
|
|
412
|
+
return env;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
// Breakpoint not found, try fallback
|
|
416
|
+
doc.body.removeChild(temp);
|
|
417
|
+
return this.getFallbackBreakpoint();
|
|
418
|
+
}
|
|
419
|
+
getFallbackBreakpoint() {
|
|
420
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
421
|
+
return 'lg';
|
|
422
|
+
}
|
|
423
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
424
|
+
return 'md';
|
|
425
|
+
}
|
|
426
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
427
|
+
return 'sm';
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
return 'xs';
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
getCssClassMap() {
|
|
434
|
+
return {
|
|
435
|
+
[this.borderRadius]: this.borderRadius ? true : false,
|
|
436
|
+
[this.objectFit]: true,
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
get el() { return index.getElement(this); }
|
|
440
|
+
};
|
|
441
|
+
PtcPicture.style = ptcPictureCss;
|
|
442
|
+
|
|
443
|
+
const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.ptc-spacer-xx-large){display:block}}";
|
|
444
|
+
|
|
445
|
+
let PtcSpacer = class {
|
|
446
|
+
constructor(hostRef) {
|
|
447
|
+
index.registerInstance(this, hostRef);
|
|
448
|
+
/**
|
|
449
|
+
* Breakpoint
|
|
450
|
+
*/
|
|
451
|
+
this.breakpoint = '';
|
|
452
|
+
/**
|
|
453
|
+
* Spacing Size
|
|
454
|
+
*/
|
|
455
|
+
this.size = 'medium';
|
|
456
|
+
/**
|
|
457
|
+
* Direction
|
|
458
|
+
*/
|
|
459
|
+
this.direction = 'vertical';
|
|
460
|
+
}
|
|
461
|
+
render() {
|
|
462
|
+
const classMap = this.getCssClassMap();
|
|
463
|
+
return (index.h(index.Host, { class: classMap }));
|
|
464
|
+
}
|
|
465
|
+
getCssClassMap() {
|
|
466
|
+
return {
|
|
467
|
+
[this.size]: true,
|
|
468
|
+
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
469
|
+
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
470
|
+
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
471
|
+
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
472
|
+
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
473
|
+
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
474
|
+
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
475
|
+
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
476
|
+
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
PtcSpacer.style = ptcSpacerCss;
|
|
481
|
+
|
|
482
|
+
const ptcTitleCss = "div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before{right:0%}div.inherit.sc-ptc-title{text-align:inherit}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed #5bb73b}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-secondary-grey);opacity:0.9;left:0px}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after{content:\"\";position:absolute;width:20%;height:2px;background-color:var(--color-primary-green);top:-2px;left:0px}div.is-standard.sc-ptc-title h1.sc-ptc-title,div.is-standard.sc-ptc-title h2.sc-ptc-title,div.is-standard.sc-ptc-title h3.sc-ptc-title{display:inline-block;position:relative}div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:46px;line-height:52px;font-weight:800;letter-spacing:0px;color:var(--color-primary-grey)}div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:28px;line-height:32px;font-weight:800;color:var(--color-primary-grey)}div.is-plm-hub.sc-ptc-title h1.sc-ptc-title,div.is-plm-hub.sc-ptc-title h2.sc-ptc-title,div.is-plm-hub.sc-ptc-title h3.sc-ptc-title{display:inline-block;position:relative;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px}div.is-plm-hub.sc-ptc-title h1.sc-ptc-title{font-weight:var(--ptc-font-weight-bold);font-size:50px;line-height:59px;color:var(--color-white)}div.is-plm-hub.sc-ptc-title h2.sc-ptc-title{font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-large);line-height:28px;color:var(--color-white)}div.is-plm-hub.sc-ptc-title h3.sc-ptc-title{font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-large);line-height:23px;color:var(--color-white)}div.margin-flush.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-top-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02)}div.margin-top-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03)}div.margin-top-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04)}div.margin-top-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05)}div.margin-top-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06)}div.margin-bottom-2.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-02)}div.margin-bottom-3.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-03)}div.margin-bottom-4.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-04)}div.margin-bottom-5.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-05)}div.margin-bottom-6.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-06)}div.margin-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}div.margin-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}div.margin-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}div.margin-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}div.margin-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}";
|
|
483
|
+
|
|
484
|
+
let PtcTitle = class {
|
|
485
|
+
constructor(hostRef) {
|
|
486
|
+
index.registerInstance(this, hostRef);
|
|
487
|
+
/**
|
|
488
|
+
* Is this title using on the PLM Hub page
|
|
489
|
+
*/
|
|
490
|
+
this.isPlmHub = false;
|
|
491
|
+
/**
|
|
492
|
+
* Title Tag Type
|
|
493
|
+
*/
|
|
494
|
+
this.type = 'h2';
|
|
495
|
+
/**
|
|
496
|
+
* Text Align
|
|
497
|
+
*/
|
|
498
|
+
this.textAlign = 'left';
|
|
499
|
+
/**
|
|
500
|
+
* Upperline Style
|
|
501
|
+
*/
|
|
502
|
+
this.upperline = 'dotted';
|
|
503
|
+
}
|
|
504
|
+
render() {
|
|
505
|
+
const classMap = this.getCssClassMap();
|
|
506
|
+
let TagType;
|
|
507
|
+
switch (this.type) {
|
|
508
|
+
case 'h1':
|
|
509
|
+
TagType = 'h1';
|
|
510
|
+
break;
|
|
511
|
+
case 'h3':
|
|
512
|
+
TagType = 'h3';
|
|
513
|
+
break;
|
|
514
|
+
default:
|
|
515
|
+
TagType = 'h2';
|
|
516
|
+
}
|
|
517
|
+
return (index.h(index.Host, null, index.h("div", { class: classMap }, index.h(TagType, null, index.h("slot", null)))));
|
|
518
|
+
}
|
|
519
|
+
getCssClassMap() {
|
|
520
|
+
return {
|
|
521
|
+
[this.textAlign]: true,
|
|
522
|
+
[this.upperline]: true,
|
|
523
|
+
[this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
|
|
524
|
+
[this.titleMargin]: !!this.titleMargin ? true : false
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
PtcTitle.style = ptcTitleCss;
|
|
529
|
+
|
|
530
|
+
exports.icon_asset = IconAsset;
|
|
531
|
+
exports.ptc_card_bottom = PtcCardBottom;
|
|
532
|
+
exports.ptc_card_content = PtcCardContent;
|
|
533
|
+
exports.ptc_card_plm = PtcCardPlm;
|
|
534
|
+
exports.ptc_date = PtcDate;
|
|
535
|
+
exports.ptc_link = PtcLink;
|
|
536
|
+
exports.ptc_overlay = PtcOverlay;
|
|
537
|
+
exports.ptc_para = PtcPara;
|
|
538
|
+
exports.ptc_picture = PtcPicture;
|
|
539
|
+
exports.ptc_spacer = PtcSpacer;
|
|
540
|
+
exports.ptc_title = PtcTitle;
|
|
@@ -4,21 +4,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0b899fc6.js');
|
|
6
6
|
|
|
7
|
-
const listItemCss = ":host{display:block}";
|
|
7
|
+
const listItemCss = ":host(.list-primary){display:block}:host(.flush-before) li::before{content:\"\" !important}:host(.breadcrumb){display:inline-block}:host(.breadcrumb) li{position:relative;display:inline-block;color:white;font-weight:700;font-size:12px;line-height:14px}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0}:host(.breadcrumb) li a.item-link{color:white;font-weight:var(-ptc-font-weight-bold) !important;font-size:var(-ptc-font-size-x-small) !important;line-height:14px;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-acceletated-ease)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:#3DAB49;outline:none}";
|
|
8
8
|
|
|
9
9
|
let ListItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
-
this.listType = '
|
|
12
|
+
this.listType = 'list-primary';
|
|
13
13
|
this.linkHref = undefined;
|
|
14
|
+
this.flushBefore = false;
|
|
14
15
|
}
|
|
15
16
|
render() {
|
|
16
17
|
const classMap = this.getCssClassMap();
|
|
17
|
-
return (index.h(index.Host, { class: classMap }, index.h("li", null, this.linkHref ? (index.h("a", Object.assign({}, (this.linkHref ? { href: this.linkHref } : {})), index.h("slot", null))) : (index.h("slot", null)))));
|
|
18
|
+
return (index.h(index.Host, { class: classMap }, index.h("li", null, this.linkHref ? (index.h("a", Object.assign({ class: "item-link" }, (this.linkHref ? { href: this.linkHref } : {})), index.h("slot", null))) : (index.h("slot", null)))));
|
|
18
19
|
}
|
|
19
20
|
getCssClassMap() {
|
|
20
21
|
return {
|
|
21
22
|
[this.listType]: true,
|
|
23
|
+
['flush-before']: this.flushBefore ? true : false
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
};
|