@ptcwebops/ptcw-design 1.3.2 → 1.3.4
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/bundle-jumbotron-example_16.cjs.entry.js +1159 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-card-content.cjs.entry.js +68 -0
- package/dist/cjs/ptc-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +58 -0
- package/dist/cjs/ptc-nav-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-overlay.cjs.entry.js +34 -0
- package/dist/cjs/ptc-search-field.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/sequential-bundle-example.cjs.entry.js +112 -0
- package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +3 -2
- package/dist/collection/components/ptc-background-video/ptc-background-video.css +23 -0
- package/dist/collection/components/ptc-background-video/ptc-background-video.js +13 -7
- package/dist/collection/components/ptc-card/ptc-card.css +7 -36
- package/dist/collection/components/ptc-nav-card/ptc-nav-card.css +1 -1
- package/dist/collection/components/ptc-search-field/ptc-search-field.css +0 -1
- package/dist/collection/components/ptc-title/ptc-title.css +3 -0
- package/dist/collection/components/ptc-title/ptc-title.js +2 -2
- package/dist/custom-elements/index.js +20 -13
- package/dist/esm/bundle-example.entry.js +1 -1
- package/dist/esm/bundle-jumbotron-example_16.entry.js +1140 -0
- package/dist/esm/dropdown-item.entry.js +1 -1
- package/dist/esm/dynamic-box-bundle.entry.js +1 -1
- package/dist/esm/{index-4afc9d28.js → index-8e63c32d.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottie-player.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-card-bottom_3.entry.js +1 -1
- package/dist/esm/ptc-card-content.entry.js +64 -0
- package/dist/esm/ptc-card.entry.js +2 -2
- package/dist/esm/ptc-checkbox.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +1 -1
- package/dist/esm/ptc-dynamic-card.entry.js +54 -0
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
- package/dist/esm/ptc-filter-tag.entry.js +1 -1
- package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +1 -1
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-lottie.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-minimized-footer.entry.js +1 -1
- package/dist/esm/ptc-minimized-header.entry.js +1 -1
- package/dist/esm/ptc-mobile-select.entry.js +1 -1
- package/dist/esm/ptc-nav-card.entry.js +2 -2
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-slider.entry.js +1 -1
- package/dist/esm/ptc-nav-submenu.entry.js +1 -1
- package/dist/esm/ptc-overlay.entry.js +30 -0
- package/dist/esm/ptc-pagenation.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- package/dist/esm/ptc-pricing-block.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore.entry.js +1 -1
- package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
- package/dist/esm/ptc-search-field.entry.js +2 -2
- package/dist/esm/ptc-shopping-cart.entry.js +1 -1
- package/dist/esm/ptc-social-share.entry.js +1 -1
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-sticky-icons.entry.js +1 -1
- package/dist/esm/ptc-sticky-section.entry.js +1 -1
- package/dist/esm/ptc-subnav-card.entry.js +1 -1
- package/dist/esm/ptc-subnav.entry.js +1 -1
- package/dist/esm/ptc-tab-list.entry.js +1 -1
- package/dist/esm/ptc-tab.entry.js +1 -1
- package/dist/esm/ptc-tabs.entry.js +1 -1
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptcw-design.js +3 -3
- package/dist/esm/sequential-bundle-example.entry.js +108 -0
- package/dist/esm/sequential-bundle.entry.js +1 -1
- package/dist/esm/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/ptcw-design/{p-3bc3c801.entry.js → p-00c9ae79.entry.js} +1 -1
- package/dist/ptcw-design/{p-c5975914.entry.js → p-0f8784e9.entry.js} +1 -1
- package/dist/ptcw-design/{p-94c33d5d.entry.js → p-1199de26.entry.js} +1 -1
- package/dist/ptcw-design/{p-c326164f.entry.js → p-12780f09.entry.js} +1 -1
- package/dist/ptcw-design/{p-dc109608.entry.js → p-13a1d14b.entry.js} +1 -1
- package/dist/ptcw-design/{p-4bbebfce.entry.js → p-190a7c24.entry.js} +1 -1
- package/dist/ptcw-design/p-20787719.entry.js +1 -0
- package/dist/ptcw-design/{p-9805a542.entry.js → p-2181c8c7.entry.js} +1 -1
- package/dist/ptcw-design/{p-fbf6f66c.entry.js → p-2318d652.entry.js} +1 -1
- package/dist/ptcw-design/{p-4947eb0a.entry.js → p-250b3ea1.entry.js} +1 -1
- package/dist/ptcw-design/p-2a82b4f4.entry.js +1 -0
- package/dist/ptcw-design/{p-c0b1c34c.entry.js → p-2ae39c65.entry.js} +1 -1
- package/dist/ptcw-design/p-2d111396.entry.js +1 -0
- package/dist/ptcw-design/{p-e0a8242e.entry.js → p-32efd536.entry.js} +1 -1
- package/dist/ptcw-design/{p-10555016.entry.js → p-366528df.entry.js} +1 -1
- package/dist/ptcw-design/{p-42424ba0.entry.js → p-3bb54c51.entry.js} +1 -1
- package/dist/ptcw-design/{p-08f40716.entry.js → p-462567d1.entry.js} +1 -1
- package/dist/ptcw-design/p-46afd828.entry.js +1 -0
- package/dist/ptcw-design/{p-00b2c937.entry.js → p-4983e571.entry.js} +1 -1
- package/dist/ptcw-design/p-4c0a350d.entry.js +1 -0
- package/dist/ptcw-design/{p-3f2b9cad.entry.js → p-4f540f7c.entry.js} +1 -1
- package/dist/ptcw-design/{p-b73ea53a.entry.js → p-55d298f5.entry.js} +1 -1
- package/dist/ptcw-design/{p-c83efab5.entry.js → p-574680c3.entry.js} +1 -1
- package/dist/ptcw-design/{p-deed8ef6.entry.js → p-59058faa.entry.js} +1 -1
- package/dist/ptcw-design/{p-d7e11aad.entry.js → p-5e08dc82.entry.js} +1 -1
- package/dist/ptcw-design/{p-9dd25c18.js → p-63c06667.js} +1 -1
- package/dist/ptcw-design/{p-4132db6b.entry.js → p-6872e11b.entry.js} +1 -1
- package/dist/ptcw-design/{p-91db9d8a.entry.js → p-6e8222ce.entry.js} +1 -1
- package/dist/ptcw-design/p-718d6ae8.entry.js +1 -0
- package/dist/ptcw-design/{p-07059441.entry.js → p-8030db10.entry.js} +1 -1
- package/dist/ptcw-design/{p-6acd380a.entry.js → p-8a1c2577.entry.js} +1 -1
- package/dist/ptcw-design/{p-a76bf4d6.entry.js → p-8a6acf0d.entry.js} +1 -1
- package/dist/ptcw-design/{p-09a6b0a7.entry.js → p-8c6b069b.entry.js} +1 -1
- package/dist/ptcw-design/{p-51ee36a7.entry.js → p-938f3078.entry.js} +1 -1
- package/dist/ptcw-design/{p-bec9b5bf.entry.js → p-98b11018.entry.js} +1 -1
- package/dist/ptcw-design/{p-c17514f5.entry.js → p-9cb33f7d.entry.js} +1 -1
- package/dist/ptcw-design/{p-c9342bd2.entry.js → p-a24ecd75.entry.js} +1 -1
- package/dist/ptcw-design/{p-b5064c43.entry.js → p-a7b20fe7.entry.js} +1 -1
- package/dist/ptcw-design/{p-f4ce7f16.entry.js → p-a9eaabae.entry.js} +1 -1
- package/dist/ptcw-design/{p-e60eb5aa.entry.js → p-ac872890.entry.js} +1 -1
- package/dist/ptcw-design/p-af3d5be7.entry.js +1 -0
- package/dist/ptcw-design/{p-b2d0228f.entry.js → p-af975d78.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ac4eb02.entry.js → p-b922e3a5.entry.js} +1 -1
- package/dist/ptcw-design/{p-9bbfeec6.entry.js → p-c3b7c168.entry.js} +1 -1
- package/dist/ptcw-design/{p-e282af3d.entry.js → p-c7bd4d99.entry.js} +1 -1
- package/dist/ptcw-design/{p-3f88508e.entry.js → p-ca6d7814.entry.js} +1 -1
- package/dist/ptcw-design/{p-c1d75020.entry.js → p-cd6b8c27.entry.js} +1 -1
- package/dist/ptcw-design/{p-372a6bb1.entry.js → p-cdff68d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-6ab6a1e2.entry.js → p-d43ff8d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-08f17ab6.entry.js → p-d49d8875.entry.js} +1 -1
- package/dist/ptcw-design/{p-048f4b08.entry.js → p-d716bd70.entry.js} +1 -1
- package/dist/ptcw-design/{p-6a0b0d0e.entry.js → p-d7d6eff1.entry.js} +1 -1
- package/dist/ptcw-design/{p-cff0b2b0.entry.js → p-dd6501a8.entry.js} +1 -1
- package/dist/ptcw-design/p-de90a288.entry.js +1 -0
- package/dist/ptcw-design/{p-cb7b03fb.entry.js → p-ea19d8f6.entry.js} +1 -1
- package/dist/ptcw-design/{p-1a6d9c21.entry.js → p-ed0c7f10.entry.js} +1 -1
- package/dist/ptcw-design/{p-effa1f41.entry.js → p-eed3687b.entry.js} +1 -1
- package/dist/ptcw-design/{p-384d24fd.entry.js → p-f24c57cf.entry.js} +1 -1
- package/dist/ptcw-design/{p-4a1d0d07.entry.js → p-f4923de6.entry.js} +1 -1
- package/dist/ptcw-design/{p-588eb1d3.entry.js → p-f958e8c7.entry.js} +1 -1
- package/dist/ptcw-design/{p-77d3b816.entry.js → p-fa58bf5f.entry.js} +1 -1
- package/dist/ptcw-design/p-fe1ff7d2.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +10 -9
- package/dist/types/components/ptc-title/ptc-title.d.ts +1 -1
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +0 -46
- package/dist/cjs/icon-asset.cjs.entry.js +0 -53
- package/dist/cjs/interfaces-0ecd8027.js +0 -15
- package/dist/cjs/list-item.cjs.entry.js +0 -33
- package/dist/cjs/max-width-container_6.cjs.entry.js +0 -532
- package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +0 -142
- package/dist/cjs/ptc-button_8.cjs.entry.js +0 -528
- package/dist/cjs/ptc-tooltip.cjs.entry.js +0 -93
- package/dist/esm/bundle-jumbotron-example.entry.js +0 -42
- package/dist/esm/icon-asset.entry.js +0 -49
- package/dist/esm/interfaces-c1c73092.js +0 -12
- package/dist/esm/list-item.entry.js +0 -29
- package/dist/esm/max-width-container_6.entry.js +0 -523
- package/dist/esm/ptc-breadcrumb_2.entry.js +0 -137
- package/dist/esm/ptc-button_8.entry.js +0 -517
- package/dist/esm/ptc-tooltip.entry.js +0 -89
- package/dist/ptcw-design/p-0eeebc10.entry.js +0 -1
- package/dist/ptcw-design/p-1d8c24dd.entry.js +0 -1
- package/dist/ptcw-design/p-36a3f48e.entry.js +0 -1
- package/dist/ptcw-design/p-380b3ef3.entry.js +0 -1
- package/dist/ptcw-design/p-50e52c88.js +0 -1
- package/dist/ptcw-design/p-54f905b1.entry.js +0 -1
- package/dist/ptcw-design/p-7650e042.entry.js +0 -1
- package/dist/ptcw-design/p-8c37ee88.entry.js +0 -1
- package/dist/ptcw-design/p-91dc58c5.entry.js +0 -1
- package/dist/ptcw-design/p-d91ff88e.entry.js +0 -1
- package/dist/ptcw-design/p-e19dbf90.entry.js +0 -1
- package/dist/ptcw-design/p-f64bcaea.entry.js +0 -1
|
@@ -0,0 +1,1159 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88135a6b.js');
|
|
6
|
+
|
|
7
|
+
const bundleJumbotronExampleCss = ":host{display:block}";
|
|
8
|
+
|
|
9
|
+
const BundleJumbotronExample = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.jumbotron = 'light';
|
|
13
|
+
this.isIframe = false;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
let $pngSrc;
|
|
17
|
+
let $gifSrc;
|
|
18
|
+
let $bgVideoSrc;
|
|
19
|
+
let $bgSrc;
|
|
20
|
+
let $popupVideo;
|
|
21
|
+
//replace dummy data
|
|
22
|
+
if (this.jumbotron === 'light' || this.jumbotron === 'dark') {
|
|
23
|
+
$bgSrc = "https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80";
|
|
24
|
+
}
|
|
25
|
+
else if (this.jumbotron === 'dark-video' || this.jumbotron === 'light-video') {
|
|
26
|
+
//$bgVideoSrc = "https://www.ptc.com/-/media/Videos/wind-turbine.mp4";
|
|
27
|
+
// if is iframe use src from iframe
|
|
28
|
+
$bgVideoSrc = "https://player.vimeo.com/video/749261406?h=5e6a60ffc5&muted=1&autoplay=1&loop=1&transparent=0&background=1&app_id=122963%22&controls=0";
|
|
29
|
+
}
|
|
30
|
+
else if (this.jumbotron === 'png') {
|
|
31
|
+
$pngSrc = "https://images.unsplash.com/photo-1676883343977-5f8ecc36856c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NzgyMjcxNDU&ixlib=rb-4.0.3&q=80&w=400";
|
|
32
|
+
}
|
|
33
|
+
else if (this.jumbotron === 'gif') {
|
|
34
|
+
$gifSrc = "https://media.giphy.com/media/TDQkojbHj3wTS/giphy.gif";
|
|
35
|
+
}
|
|
36
|
+
//Optional: set $popupVideo
|
|
37
|
+
//$popupVideo = "https://www.youtube.com/embed/w0mJCtK9sDY";
|
|
38
|
+
return (index.h(index.Host, null, index.h("ptc-jumbotron", Object.assign({ "jumbotron-type": this.jumbotron }, (!!$pngSrc && { pngSrc: $pngSrc }), (!!$gifSrc && { gifSrc: $gifSrc }), (!!$bgVideoSrc && { bgVideoSrc: $bgVideoSrc }), (!!$bgSrc && { bgSrc: $bgSrc }), (!!$popupVideo ), { "main-title": "Sed ut perspiciatis unde omnis iste natus" //bind main title data (multi-line)
|
|
39
|
+
,
|
|
40
|
+
"sub-title": "totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." // bind sub title data (multi-line)
|
|
41
|
+
,
|
|
42
|
+
"is-iframe": this.isIframe }), index.h("ptc-breadcrumb", Object.assign({ slot: "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'white' } : { color: 'primary-gray' }), (this.jumbotron === 'text' ? { position: 'center' } : {})), index.h("list-item", Object.assign({ "list-type": "breadcrumb", "link-href": "https://www.ptc.com/contact-us" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "PLM Video Hub"), index.h("list-item", Object.assign({ "list-type": "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "Current Page")), index.h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-primary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum dolor sit amet"), index.h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum"))));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
BundleJumbotronExample.style = bundleJumbotronExampleCss;
|
|
46
|
+
|
|
47
|
+
const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{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.sc-icon-asset{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.sc-icon-asset{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.sc-icon-asset{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.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-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.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}svg.micro.sc-icon-asset{width:calc(var(--ptc-font-size-x-small) / 2);height:calc(var(--ptc-font-size-x-small) / 2)}svg.xxx-small.sc-icon-asset{width:var(--ptc-font-size-xxx-small);height:var(--ptc-font-size-xxx-small)}svg.xx-small.sc-icon-asset{width:var(--ptc-font-size-xx-small);height:var(--ptc-font-size-xx-small)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.medium.sc-icon-asset{width:var(--ptc-font-size-medium);height:var(--ptc-font-size-medium)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.xxx-large.sc-icon-asset{width:var(--ptc-font-size-xxx-large);height:var(--ptc-font-size-xxx-large)}svg.xxxx-large.sc-icon-asset{width:var(--ptc-font-size-xxxx-large);height:var(--ptc-font-size-xxxx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.white.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.black.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-green-07)}svg.ptc-green.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-green-07)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-06)}svg.light-gray.sc-icon-asset{fill:var(--color-gray-05)}svg.light-gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-05)}svg.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}";
|
|
48
|
+
|
|
49
|
+
const IconAsset = class {
|
|
50
|
+
constructor(hostRef) {
|
|
51
|
+
index.registerInstance(this, hostRef);
|
|
52
|
+
this.regularSprite = index.getAssetPath('./media/regular.svg');
|
|
53
|
+
this.solidSprite = index.getAssetPath('./media/solid.svg');
|
|
54
|
+
this.brandSprite = index.getAssetPath('./media/brands.svg');
|
|
55
|
+
this.ptcSprite = index.getAssetPath('./media/designer.svg');
|
|
56
|
+
this.name = undefined;
|
|
57
|
+
this.size = 'xx-small';
|
|
58
|
+
this.type = 'regular';
|
|
59
|
+
this.spin = '';
|
|
60
|
+
this.pulse = '';
|
|
61
|
+
this.color = 'default';
|
|
62
|
+
this.isMobileSelect = undefined;
|
|
63
|
+
this.injectedStyle = undefined;
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
const classMap = this.getCssClassMap();
|
|
67
|
+
if (this.type == 'brands') {
|
|
68
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
69
|
+
}
|
|
70
|
+
else if (this.type == 'solid') {
|
|
71
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
72
|
+
}
|
|
73
|
+
else if (this.type == 'ptc') {
|
|
74
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
getCssClassMap() {
|
|
81
|
+
return {
|
|
82
|
+
[this.size]: true,
|
|
83
|
+
[this.spin]: true,
|
|
84
|
+
[this.pulse]: true,
|
|
85
|
+
[this.color]: true,
|
|
86
|
+
['ismobileselect']: this.isMobileSelect ? true : false
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
static get assetsDirs() { return ["media"]; }
|
|
90
|
+
};
|
|
91
|
+
IconAsset.style = iconAssetCss;
|
|
92
|
+
|
|
93
|
+
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:var(--color-white);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest)}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0}:host(.breadcrumb) li a.item-link{color:var(--color-white);font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);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-ease-inout)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}:host(.list-green){display:block;margin-bottom:16px}:host(.list-green) li a{font-size:var(--ptc-font-size-xx-small);color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:var(--color-green-04);font-weight:var(--ptc-font-weight-bold);transition:color var(--ptc-transition-medium) var(--ptc-ease-inout);line-height:var(--ptc-line-height-p);text-underline-offset:4px}:host(.list-green) li a:hover{color:var(--color-green-04)}:host(:not(.flush-before)) li::before{margin-right:2px}:host(.list-footer) li{display:inline-block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);font-style:normal;font-stretch:normal;line-height:var(--ptc-line-height-denser);letter-spacing:normal;color:var(--color-white);margin:0 0.5rem}:host(.list-footer) li a{color:var(--color-white-grey);border-bottom:1px solid transparent;display:inline-block;text-decoration:none}:host(.list-footer) li a:hover,:host(.list-footer) li a:focus,:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey);transition:border var(--ptc-ease-inout) var(--ptc-transition-medium)}:host(.list-footer) li a:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}:host(.white) li{color:var(--color-white)}:host(.white) li a.item-link{color:var(--color-white)}:host(.light-gray) li{color:var(--color-gray-01)}:host(.light-gray) li a.item-link{color:var(--color-gray-01)}:host(.primary-gray) li{color:var(--color-gray-10)}:host(.primary-gray) li a.item-link{color:var(--color-gray-10)}";
|
|
94
|
+
|
|
95
|
+
const ListItem = class {
|
|
96
|
+
constructor(hostRef) {
|
|
97
|
+
index.registerInstance(this, hostRef);
|
|
98
|
+
this.listType = 'list-primary';
|
|
99
|
+
this.linkHref = undefined;
|
|
100
|
+
this.flushBefore = false;
|
|
101
|
+
this.linkTarget = '_self';
|
|
102
|
+
this.color = undefined;
|
|
103
|
+
this.styles = undefined;
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
const classMap = this.getCssClassMap();
|
|
107
|
+
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", null, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})), index.h("slot", null))) : (index.h("slot", null)))));
|
|
108
|
+
}
|
|
109
|
+
getCssClassMap() {
|
|
110
|
+
return {
|
|
111
|
+
[this.listType]: true,
|
|
112
|
+
['flush-before']: this.flushBefore ? true : false,
|
|
113
|
+
[this.color]: !!this.color ? true : false,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
ListItem.style = listItemCss;
|
|
118
|
+
|
|
119
|
+
const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
|
|
120
|
+
|
|
121
|
+
const MaxWidthContainer = class {
|
|
122
|
+
constructor(hostRef) {
|
|
123
|
+
index.registerInstance(this, hostRef);
|
|
124
|
+
this.maxWidth = undefined;
|
|
125
|
+
this.breakpoint = 768;
|
|
126
|
+
this.contentAlign = 'center';
|
|
127
|
+
}
|
|
128
|
+
componentDidLoad() {
|
|
129
|
+
this.handleResize();
|
|
130
|
+
window.addEventListener('resize', this.handleResize.bind(this));
|
|
131
|
+
}
|
|
132
|
+
disconnectedCallback() {
|
|
133
|
+
window.removeEventListener('resize', this.handleResize);
|
|
134
|
+
}
|
|
135
|
+
render() {
|
|
136
|
+
const classMap = this.getCssClassMap();
|
|
137
|
+
return (index.h(index.Host, { class: classMap }, index.h("slot", null)));
|
|
138
|
+
}
|
|
139
|
+
getCssClassMap() {
|
|
140
|
+
return {
|
|
141
|
+
[this.contentAlign]: true,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
handleResize() {
|
|
145
|
+
// const selectedContainer = this.el.querySelector('.max-width-container');
|
|
146
|
+
if (this.el) {
|
|
147
|
+
if (window.innerWidth >= this.breakpoint) {
|
|
148
|
+
this.el.style.maxWidth = `${this.maxWidth}px`;
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
this.el.style.maxWidth = 'initial';
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
get el() { return index.getElement(this); }
|
|
156
|
+
};
|
|
157
|
+
MaxWidthContainer.style = maxWidthContainerCss;
|
|
158
|
+
|
|
159
|
+
const ptcBackgroundVideoCss = ":host{display:block;position:relative}:host video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{object-fit:cover}";
|
|
160
|
+
|
|
161
|
+
const PtcBackgroundVideo = class {
|
|
162
|
+
constructor(hostRef) {
|
|
163
|
+
index.registerInstance(this, hostRef);
|
|
164
|
+
this.videoSrc = undefined;
|
|
165
|
+
this.posterSrc = undefined;
|
|
166
|
+
this.overlay = true;
|
|
167
|
+
this.type = 'default';
|
|
168
|
+
this.isIframe = false;
|
|
169
|
+
}
|
|
170
|
+
// componentDidLoad() {
|
|
171
|
+
// if(this.isIframe){
|
|
172
|
+
// const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
|
|
173
|
+
// const iframeDoc = iframe.contentDocument
|
|
174
|
+
// const iframeVideo = iframeDoc.querySelector('video');
|
|
175
|
+
// console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
|
|
176
|
+
// iframeVideo.style.objectFit = 'cover';
|
|
177
|
+
// }
|
|
178
|
+
// }
|
|
179
|
+
render() {
|
|
180
|
+
const videoConten = this.isIframe ? (index.h("div", { class: "iframe-wrapper" }, index.h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (index.h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
|
|
181
|
+
return (index.h(index.Host, { class: this.type }, videoConten, this.overlay ? index.h("div", { class: "video-overlay" }) : '', this.type == 'default' ? index.h("slot", null) : ''));
|
|
182
|
+
}
|
|
183
|
+
get el() { return index.getElement(this); }
|
|
184
|
+
};
|
|
185
|
+
PtcBackgroundVideo.style = ptcBackgroundVideoCss;
|
|
186
|
+
|
|
187
|
+
const ptcBreadcrumbCss = ":host{display:block;margin-top:var(--ptc-element-spacing-05)}::slotted(*){transform:translate(-2px, -2px)}:host(.left){display:flex;justify-content:flex-start}:host(.center){display:flex;justify-content:center}:host(.right){display:flex;justify-content:flex-end}:host(.remove-top-margin){margin-top:0px !important}";
|
|
188
|
+
|
|
189
|
+
const PtcBreadcrumb = class {
|
|
190
|
+
constructor(hostRef) {
|
|
191
|
+
index.registerInstance(this, hostRef);
|
|
192
|
+
this.position = undefined;
|
|
193
|
+
this.removeTopMargin = false;
|
|
194
|
+
this.color = 'white';
|
|
195
|
+
this.styles = undefined;
|
|
196
|
+
}
|
|
197
|
+
render() {
|
|
198
|
+
const classMap = this.getCssClassMap();
|
|
199
|
+
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("list-item", { listType: "breadcrumb", flushBefore: true, "link-href": "https://www.ptc.com" }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color })), index.h("slot", null)));
|
|
200
|
+
}
|
|
201
|
+
getCssClassMap() {
|
|
202
|
+
return {
|
|
203
|
+
[this.position]: !!this.position && this.position !== undefined ? true : false,
|
|
204
|
+
['remove-top-margin']: this.removeTopMargin ? true : false,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
PtcBreadcrumb.style = ptcBreadcrumbCss;
|
|
209
|
+
|
|
210
|
+
const ptcButtonCss = "button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard)}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:var(--ptc-line-height-densest)}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(285deg, var(--color-gray-10) 155%, var(--color-gray-07) 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-green-07);background-image:linear-gradient(285deg, var(--color-green-07) 155%, var(--color-green-07) 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(to right, var(--color-white), var(--color-gray-02), var(--color-gray-01))}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-gray-10)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:var(--ptc-element-spacing-01);margin-top:var(--ptc-element-spacing-01);box-shadow:var(--ptc-shadow-large);border:solid 2.5px var(--color-green-08);background-image:linear-gradient(to right, var(--color-green-06), var(--color-green-08))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-green-08), var(--color-green-06));opacity:0;transition:opacity var(--ptc-transition-x-slow) var(--ptc-ease-inout);border-radius:2px}.legacy-green:hover{box-shadow:var(--ptc-shadow-x-large)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-x-small)}@media only screen and (min-width: 768px){.legacy-green span{font-size:var(--ptc-font-size-small);letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard);display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all var(--ptc-ease-inout) var(--ptc-transition-medium);position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}.nav{font-family:var(--ptc-font-latin);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-xx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-loose);list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.nav:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav:hover{background-color:var(--color-gray-12)}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus,.icon-toggle:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03)}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09)}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}";
|
|
211
|
+
|
|
212
|
+
const PtcButton = class {
|
|
213
|
+
constructor(hostRef) {
|
|
214
|
+
index.registerInstance(this, hostRef);
|
|
215
|
+
this.clickEvent = index.createEvent(this, "clickEvent", 7);
|
|
216
|
+
this.disabled = false;
|
|
217
|
+
this.active = false;
|
|
218
|
+
this.type = 'button';
|
|
219
|
+
this.color = 'ptc-primary';
|
|
220
|
+
this.iconAnimation = '';
|
|
221
|
+
this.iconPosition = 'icon-right';
|
|
222
|
+
this.linkHref = undefined;
|
|
223
|
+
this.linkTitle = undefined;
|
|
224
|
+
this.target = '_self';
|
|
225
|
+
this.rel = undefined;
|
|
226
|
+
this.tabNav = 0;
|
|
227
|
+
this.styles = undefined;
|
|
228
|
+
}
|
|
229
|
+
clickEventHandler() {
|
|
230
|
+
this.clickEvent.emit();
|
|
231
|
+
}
|
|
232
|
+
render() {
|
|
233
|
+
const classMap = this.getCssClassMap();
|
|
234
|
+
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
235
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.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 })), index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
|
|
236
|
+
}
|
|
237
|
+
getCssClassMap() {
|
|
238
|
+
return {
|
|
239
|
+
[this.color]: true,
|
|
240
|
+
[this.iconAnimation]: true,
|
|
241
|
+
[this.iconPosition]: true,
|
|
242
|
+
['disabled']: this.disabled ? true : false,
|
|
243
|
+
['active']: this.active ? true : false,
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
PtcButton.style = ptcButtonCss;
|
|
248
|
+
|
|
249
|
+
let ResponsiveBgVariables = {
|
|
250
|
+
envs: ['xs', 'sm', 'md', 'lg'],
|
|
251
|
+
selector: '.ptc-img',
|
|
252
|
+
interval: 250
|
|
253
|
+
};
|
|
254
|
+
let ResponsivePictureVariables = {
|
|
255
|
+
envs: ['xs', 'sm', 'md', 'lg'],
|
|
256
|
+
selector: '.ptc-picture',
|
|
257
|
+
interval: 250
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}";
|
|
261
|
+
|
|
262
|
+
const PtcImg = class {
|
|
263
|
+
constructor(hostRef) {
|
|
264
|
+
index.registerInstance(this, hostRef);
|
|
265
|
+
this.sizeXs = '510x340';
|
|
266
|
+
this.sizeSm = '1240x496';
|
|
267
|
+
this.sizeMd = '1366x500';
|
|
268
|
+
this.sizeLg = '1920x1080';
|
|
269
|
+
this.imgUrl = undefined;
|
|
270
|
+
this.imageType = 'smart-bg';
|
|
271
|
+
this.borderRadius = '';
|
|
272
|
+
this.loadMode = 'lazy-bg';
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Image Z Index
|
|
276
|
+
*/
|
|
277
|
+
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
278
|
+
WindowResize() {
|
|
279
|
+
this.setResponsiveBg();
|
|
280
|
+
}
|
|
281
|
+
render() {
|
|
282
|
+
const classMap = this.getCssClassMap();
|
|
283
|
+
return (index.h(index.Host, null, index.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' ? index.h("slot", null) : null)));
|
|
284
|
+
}
|
|
285
|
+
componentDidLoad() {
|
|
286
|
+
this.addIntersectionObserver();
|
|
287
|
+
this.setResponsiveBg();
|
|
288
|
+
}
|
|
289
|
+
componentWillUpdate() {
|
|
290
|
+
this.addIntersectionObserver();
|
|
291
|
+
this.setResponsiveBg();
|
|
292
|
+
}
|
|
293
|
+
//responsive image
|
|
294
|
+
setResponsiveBg() {
|
|
295
|
+
// Define local variables
|
|
296
|
+
let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
297
|
+
// Loop through all target elements
|
|
298
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
299
|
+
// Set current variables
|
|
300
|
+
el = backgrounds[i];
|
|
301
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
302
|
+
// If the data attribute exists, set the background
|
|
303
|
+
if (elData !== null) {
|
|
304
|
+
el.style.backgroundImage = "url('" + elData + "')";
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
if (typeof console == 'object') {
|
|
308
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
//lazy loading
|
|
314
|
+
addIntersectionObserver() {
|
|
315
|
+
if (!this.imgUrl) {
|
|
316
|
+
console.log('no image!');
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
if ('IntersectionObserver' in window) {
|
|
320
|
+
let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
|
|
321
|
+
let bgObserver = new IntersectionObserver(entries => {
|
|
322
|
+
entries.forEach(entry => {
|
|
323
|
+
if (entry.isIntersecting) {
|
|
324
|
+
const image = entry.target;
|
|
325
|
+
image.classList.remove('lazy-bg');
|
|
326
|
+
bgObserver.unobserve(image);
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
lazyLoadBgs.forEach(image => {
|
|
331
|
+
bgObserver.observe(image);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
getCssClassMap() {
|
|
336
|
+
return {
|
|
337
|
+
[this.imageType]: true,
|
|
338
|
+
'ptc-img': true,
|
|
339
|
+
[this.borderRadius]: true,
|
|
340
|
+
[this.loadMode]: true,
|
|
341
|
+
// [this.imageZIndex] : true
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
getCurrentBreakPoints() {
|
|
345
|
+
// Define local variables
|
|
346
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
347
|
+
// Append test node
|
|
348
|
+
doc.body.appendChild(temp);
|
|
349
|
+
// Loop through breakpoints
|
|
350
|
+
for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
|
|
351
|
+
env = ResponsiveBgVariables.envs[i];
|
|
352
|
+
// Add classes
|
|
353
|
+
temp.className = 'hidden-' + env;
|
|
354
|
+
// Found breakpoint
|
|
355
|
+
if (temp.offsetParent === null) {
|
|
356
|
+
// Remove our test node
|
|
357
|
+
doc.body.removeChild(temp);
|
|
358
|
+
// Return current breakpoint
|
|
359
|
+
return env;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
// Breakpoint not found, try fallback
|
|
363
|
+
doc.body.removeChild(temp);
|
|
364
|
+
return this.getFallbackBreakpoint();
|
|
365
|
+
}
|
|
366
|
+
getFallbackBreakpoint() {
|
|
367
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
368
|
+
return 'lg';
|
|
369
|
+
}
|
|
370
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
371
|
+
return 'md';
|
|
372
|
+
}
|
|
373
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
374
|
+
return 'sm';
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
return 'xs';
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
get el() { return index.getElement(this); }
|
|
381
|
+
};
|
|
382
|
+
PtcImg.style = ptcImgCss;
|
|
383
|
+
|
|
384
|
+
const ptcJumbotronCss = ".ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){.ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){.ptc-container{padding-left:0;padding-right:0;max-width:1200px}}.ptc-container-lg{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 480px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-03);padding-right:var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 768px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-04);padding-right:var(--ptc-layout-spacing-04)}}@media only screen and (min-width: 992px){.ptc-container-lg{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}@media only screen and (min-width: 1980px){.ptc-container-lg{padding-left:0;padding-right:0;max-width:1900px}}.ptc-container-fluid{width:100%}.u-para-sm{font-size:var(--ptc-font-size-small) !important}.u-para-md{font-size:var(--ptc-font-size-medium) !important}.u-para-lg{font-size:var(--ptc-font-size-large) !important}.u-para-xl{font-size:var(--ptc-font-size-x-large) !important}.u-para-xxl{font-size:var(--ptc-font-size-xx-large) !important}.u-para-xxxl{font-size:var(--ptc-font-size-xxx-large) !important}@media only screen and (min-width: 768px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.05vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.05vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.05vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.05vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.05vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.05vw) !important}}@media only screen and (min-width: 992px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.1vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.1vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.1vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.1vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.1vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.1vw) !important}}@media only screen and (min-width: 1200px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.15vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.15vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.15vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.15vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.15vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.15vw) !important}}@media only screen and (min-width: 1440px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.2vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.2vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.2vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.2vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.2vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.2vw) !important}}@media only screen and (min-width: 1600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.25vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.25vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.25vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.25vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.25vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.25vw) !important}}@media only screen and (min-width: 1980px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.3vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.3vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.3vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.3vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.3vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.3vw) !important}}@media only screen and (min-width: 2600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.35vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.35vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.35vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.35vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.35vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.35vw) !important}}.u-para-body{font-size:var(--ptc-font-size-medium) !important}.u-color-white{color:var(--color-white) !important}.u-uppercase{text-transform:uppercase !important}.u-margin-flush{margin:0 !important}.u-marginTop-flush{margin-top:0 !important}.u-marginLeft-flush{margin-left:0 !important}.u-marginRight-flush{margin-right:0 !important}.u-marginBottom-flush{margin-bottom:0 !important}.u-padding-flush{padding:0 !important}.u-paddingTop-flush{padding-top:0 !important}.u-paddingLeft-flush{padding-left:0 !important}.u-paddingRight-flush{padding-right:0 !important}.u-paddingBottom-flush{padding-bottom:0 !important}.u-margin-xs{margin:var(--ptc-element-spacing-01) !important}.u-marginTop-xs{margin-top:var(--ptc-element-spacing-01) !important}.u-marginLeft-xs{margin-left:var(--ptc-element-spacing-01) !important}.u-marginRight-xs{margin-right:var(--ptc-element-spacing-01) !important}.u-marginBottom-xs{margin-bottom:var(--ptc-element-spacing-01) !important}.u-margin-sm{margin:var(--ptc-element-spacing-02) !important}.u-marginTop-sm{margin-top:var(--ptc-element-spacing-02) !important}.u-marginLeft-sm{margin-left:var(--ptc-element-spacing-02) !important}.u-marginRight-sm{margin-right:var(--ptc-element-spacing-02) !important}.u-marginBottom-sm{margin-bottom:var(--ptc-element-spacing-02) !important}.u-margin-md{margin:var(--ptc-element-spacing-03) !important}.u-marginTop-md{margin-top:var(--ptc-element-spacing-03) !important}.u-marginLeft-md{margin-left:var(--ptc-element-spacing-03) !important}.u-marginRight-md{margin-right:var(--ptc-element-spacing-03) !important}.u-marginBottom-md{margin-bottom:var(--ptc-element-spacing-03) !important}.u-margin-lg{margin:var(--ptc-element-spacing-04) !important}.u-marginTop-lg{margin-top:var(--ptc-element-spacing-04) !important}.u-marginLeft-lg{margin-left:var(--ptc-element-spacing-04) !important}.u-marginRight-lg{margin-right:var(--ptc-element-spacing-04) !important}.u-marginBottom-lg{margin-bottom:var(--ptc-element-spacing-04) !important}.u-margin-xl{margin:var(--ptc-element-spacing-05) !important}.u-marginTop-xl{margin-top:var(--ptc-element-spacing-05) !important}.u-marginLeft-xl{margin-left:var(--ptc-element-spacing-05) !important}.u-marginRight-xl{margin-right:var(--ptc-element-spacing-05) !important}.u-marginBottom-xl{margin-bottom:var(--ptc-element-spacing-05) !important}.u-margin-xxl{margin:var(--ptc-element-spacing-06) !important}.u-marginTop-xxl{margin-top:var(--ptc-element-spacing-06) !important}.u-marginLeft-xxl{margin-left:var(--ptc-element-spacing-06) !important}.u-marginRight-xxl{margin-right:var(--ptc-element-spacing-06) !important}.u-marginBottom-xxl{margin-bottom:var(--ptc-element-spacing-06) !important}.u-textAlign-ctr{text-align:center !important}.u-textAlign-right{text-align:right !important}.u-textAlign-left{text-align:left !important}.u-textWhite{color:var(--color-white) !important}.u-textGreen1{color:var(--color-green-07) !important}.u-textGreen2{color:var(--color-green-06) !important}.u-text-nowrap{white-space:nowrap}.u-text-bold{font-weight:var(--ptc-font-weight-bold)}.u-text-thin{font-weight:var(--ptc-font-weight-thin)}.u-textStyle-normal{font-style:normal !important}.u-no-scroll{overflow:hidden}.u-background-reset{background-color:transparent !important}.u-white-overylay{background:rgba(242, 242, 242, 0.9)}.u-cursor-pointer{cursor:pointer}.u-clear{clear:both}@media only screen and (min-width: 768px){.u-hero-width{width:525px}.u-margin-center{margin:0 auto}.u-justify-self-end{justify-self:flex-end}}.u-hero-pushup{transform:translateY(-120px)}@media only screen and (min-width: 768px){.u-hero-pushup{transform:translateY(-144px)}}@media only screen and (min-width: 768px){.grid-order-1-md{order:1}.grid-order-2-md{order:2}.grid-order-3-md{order:3}}.standard-list{list-style:none;margin-left:0;margin-bottom:20px;padding:0}.is-spaced-between{justify-content:space-between}.grid-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-large-col-gap-md{column-gap:3rem}}.grid-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-large-col-gap-sm{column-gap:3rem}}.grid-x-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-x-large-col-gap-md{column-gap:4rem}}.grid-x-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-x-large-col-gap-sm{column-gap:4rem}}.grid-medium-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-medium-col-gap-md{column-gap:2rem}}.grid-medium-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-medium-col-gap-sm{column-gap:2rem}}.is-float-left{float:left}.is-float-right{float:right}.is-mobile{display:block}.is-desktop{display:none}@media only screen and (min-width: 992px){.is-mobile{display:none}.is-desktop{display:block}}.ptc-section{padding-top:2rem;padding-bottom:2rem}@media only screen and (min-width: 992px){.ptc-section{padding-top:3rem;padding-bottom:3rem}}.ptc-section-standard{padding-top:3rem;padding-bottom:3rem}.ptc-section-half{padding-top:1.5rem;padding-bottom:1.5rem}.u-flex{display:flex}@media only screen and (min-width: 480px){.u-flex-xs{display:flex}}@media only screen and (min-width: 768px){.u-flex-sm{display:flex}}@media only screen and (min-width: 992px){.u-flex-md{display:flex}}@media only screen and (min-width: 1200px){.u-flex-lg{display:flex}}@media only screen and (min-width: 1440px){.u-flex-xl{display:flex}}@media only screen and (min-width: 1600px){.u-flex-xxl{display:flex}}@media only screen and (min-width: 1980px){.u-flex-2k{display:flex}}@media only screen and (min-width: 2600px){.u-flex-4k{display:flex}}.u-align-center{margin:auto;align-self:center}.u-align-left{margin-right:auto;align-self:center}.u-align-right{margin-left:auto;align-self:center}.u-align-x-center{margin-right:auto;margin-left:auto}.u-align-x-left{margin-right:auto}.u-align-x-right{margin-left:auto}.u-align-y-center{align-self:center}.u-align-y-top{align-self:flex-start}.u-align-y-bottom{align-self:flex-end}.is-flex-column{flex-direction:column}.flex-align-items{align-items:flex-end}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap{flex-wrap:wrap}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-md)}@media only screen and (min-width: 992px){.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-lg)}}.fef-two-column-two-media .is-col-6-md{padding-bottom:3rem}.fef-two-column-two-media .is-col-6-md:last-child{padding-bottom:0rem}@media only screen and (min-width: 768px){.fef-two-column-two-media .is-col-6-md{padding-bottom:0rem}}ptc-icon-list.icon-top-align-list a{text-decoration:none;transition:color 0.3s ease;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-font-size-x-large);border-bottom:0.094rem solid var(--color-green-06);color:var(--color-gray-10)}ptc-icon-list.icon-top-align-list a:hover{color:var(--color-green-06)}@media only screen and (min-width: 768px){.is-grid.grid-large-col-gap-xs-0{row-gap:0}}.max-content{max-width:90%;margin:auto}@media only screen and (min-width: 480px){.max-content{max-width:80%}}.product-tab ptc-title h3{font-size:20px !important;font-weight:900}@media only screen and (min-width: 1200px){.product-tab ptc-title h3{font-size:15px !important;font-weight:800}}.product-tab .is-grid{grid-column-gap:20px;grid-row-gap:12px}ptc-bio-card .bio-modal-open-content{color:var(--color-gray-10);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-denser)}ptc-bio-card .bio-modal-open-content h3{letter-spacing:0.08rem;margin-bottom:2px;font-size:var(--ptc-font-size-small)}ptc-bio-card .bio-modal-open-content ul{margin-top:0}ptc-bio-card .bio-modal-open-content ul li{line-height:var(--ptc-line-height-p)}ptc-bio-card .bio-modal-open-content ul li a{text-decoration:none;color:var(--color-green-06);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content ul li a:hover{color:var(--color-gray-10);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content .btn-blackgrey{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:14px 20px;border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard);color:var(--color-white);font-weight:700}ptc-bio-card .bio-modal-open-content .btn-blackgrey:hover{background-color:var(--color-gray-09);border-color:var(--color-gray-08)}ptc-bio-card .bio-modal-open-content .btn-blackgrey svg{display:none}ptc-bio-card .bio-modal-open-content hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.u-justify-space-between{justify-content:space-between}ptc-nav-submenu .dropdown-content{display:none}ptc-nav-submenu .dropdown-content.open{padding-top:5px;padding-bottom:5px;display:block}ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-04)}@media only screen and (min-width: 1200px){ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-04)}}:host{display:block}.parent{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-column-gap:0px;grid-row-gap:0px;position:unset}.div1{grid-area:1/1/2/2;min-height:300px}.div1.hidden{display:none}.mobile-media-image{display:flex;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.mobile-media-image{display:none}}.gif-bg{background-color:#F3F3F3}.video-ratio{position:relative;overflow:hidden;height:0;padding-bottom:100%}@media only screen and (min-width: 768px){.video-ratio{padding-bottom:75%}}@media only screen and (min-width: 992px){.video-ratio{padding-bottom:59.37%;max-height:500px}}@media only screen and (min-width: 1200px){.video-ratio{padding-bottom:39.67%}}@media only screen and (min-width: 1440px){.video-ratio{padding-bottom:33%}}.div2{grid-area:2/1/3/2;position:relative}.bg-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.content-layout{display:flex;flex-direction:column}@media only screen and (min-width: 992px){.content-layout{flex-direction:row}}.gap-adjustment{gap:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-07)}.text-adjustment{justify-content:flex-start}@media only screen and (min-width: 992px){.text-adjustment{justify-content:center}}.desktop-media-image{width:40%;display:none}@media only screen and (min-width: 992px){.desktop-media-image{display:block}}.desk-gif-adjustment{z-index:3}@media only screen and (min-width: 992px){.parent{grid-template-columns:1fr;grid-template-rows:1fr;grid-column-gap:0px;grid-row-gap:0px;min-height:500px;position:relative}.div1{grid-area:1/1/2/2;min-height:unset}.div2{grid-area:1/1/2/2;align-self:center;position:unset}}ptc-svg-btn{position:absolute;left:50%;bottom:150%;transform:translate(-50%, 50%)}@media only screen and (min-width: 992px){ptc-svg-btn{left:70%;bottom:50%;transform:translate(0%, 50%)}}";
|
|
385
|
+
|
|
386
|
+
const PtcJumbotron = class {
|
|
387
|
+
constructor(hostRef) {
|
|
388
|
+
index.registerInstance(this, hostRef);
|
|
389
|
+
this.jumbotronType = 'light';
|
|
390
|
+
this.popupVideo = undefined;
|
|
391
|
+
this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
|
|
392
|
+
this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
|
|
393
|
+
this.pngSrc = undefined;
|
|
394
|
+
this.gifSrc = undefined;
|
|
395
|
+
this.bgVideoSrc = undefined;
|
|
396
|
+
this.bgSrc = undefined;
|
|
397
|
+
this.isIframe = false;
|
|
398
|
+
this.contentBackground = undefined;
|
|
399
|
+
this.contentColor = undefined;
|
|
400
|
+
this.textAlign = 'left';
|
|
401
|
+
this.isMobile = undefined;
|
|
402
|
+
}
|
|
403
|
+
handleResize() {
|
|
404
|
+
this.getContentBackground();
|
|
405
|
+
}
|
|
406
|
+
connectedCallback() {
|
|
407
|
+
this.getContentBackground();
|
|
408
|
+
}
|
|
409
|
+
componentDidLoad() {
|
|
410
|
+
if (!!this.popupVideo) {
|
|
411
|
+
const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
|
|
412
|
+
const PtcModal = this.el.shadowRoot.querySelector('#j-modal');
|
|
413
|
+
console.log('selected btn: ' + selectedBtn + '; selected Modal: ' + PtcModal);
|
|
414
|
+
selectedBtn.addEventListener('click', () => {
|
|
415
|
+
PtcModal.show = true;
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
render() {
|
|
420
|
+
console.log('render');
|
|
421
|
+
const classMap = this.getCssClassMap();
|
|
422
|
+
let mediaElement;
|
|
423
|
+
switch (this.jumbotronType) {
|
|
424
|
+
case 'png':
|
|
425
|
+
mediaElement = (index.h("div", { class: "mobile-media-image" }, index.h("ptc-picture", { src: this.pngSrc })));
|
|
426
|
+
break;
|
|
427
|
+
case 'gif':
|
|
428
|
+
mediaElement = (index.h("div", { class: "mobile-media-image gif-bg" }, index.h("img", { src: this.gifSrc })));
|
|
429
|
+
break;
|
|
430
|
+
case 'dark-video':
|
|
431
|
+
case 'light-video':
|
|
432
|
+
mediaElement = index.h("ptc-background-video", { class: "video-ratio", overlay: false, "video-src": this.bgVideoSrc, isIframe: this.isIframe });
|
|
433
|
+
break;
|
|
434
|
+
default:
|
|
435
|
+
mediaElement = index.h("ptc-img", { "img-url": this.bgSrc });
|
|
436
|
+
}
|
|
437
|
+
return (index.h(index.Host, { class: classMap }, index.h("div", { class: "parent" }, index.h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), index.h("div", { class: "div2 content-container" }, index.h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), index.h("div", { class: "ptc-container content-layout" }, index.h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign }, index.h("slot", { name: "breadcrumb" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-title", { type: "h1", upperline: "no-upperline", "title-size": "xxxx-large", "title-height": "densest", "title-weight": "w-8", "title-margin": "margin-flush", "text-align": this.jumbotronType === 'text' ? 'center' : 'left' }, index.h("ptc-tooltip", { "text-lines": "3", description: this.mainTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? "x-small" : "small", "font-weight": this.jumbotronType === 'text' && this.isMobile ? 'w-7' : 'w-4', "para-margin": "margin-bottom-6", "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, index.h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), index.h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, index.h("slot", { name: "j-cta" }))), !!this.popupVideo
|
|
438
|
+
? [
|
|
439
|
+
index.h("ptc-modal", { id: "j-modal", show: false, size: "lg", "iframe-url": this.popupVideo }),
|
|
440
|
+
index.h("ptc-svg-btn", { id: "j-modal-btn", "svg-name": "play", display: "block", "z-index": 2 }),
|
|
441
|
+
]
|
|
442
|
+
: null, this.jumbotronType === 'png' ? (index.h("div", { class: "desktop-media-image" }, index.h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (index.h("div", { class: "desktop-media-image desk-gif-adjustment" }, index.h("img", { src: this.gifSrc }))) : null)))));
|
|
443
|
+
}
|
|
444
|
+
getCssClassMap() {
|
|
445
|
+
return {
|
|
446
|
+
// [this.imageZIndex] : true
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
getContentBackground() {
|
|
450
|
+
if (window.innerWidth < 992) {
|
|
451
|
+
switch (this.jumbotronType) {
|
|
452
|
+
case 'light':
|
|
453
|
+
case 'light-video':
|
|
454
|
+
this.contentBackground = '#F3F3F3';
|
|
455
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
456
|
+
break;
|
|
457
|
+
case 'dark':
|
|
458
|
+
case 'dark-video':
|
|
459
|
+
this.contentBackground = 'var(--color-gray-09)';
|
|
460
|
+
this.contentColor = 'var(--color-gray-01)';
|
|
461
|
+
break;
|
|
462
|
+
default:
|
|
463
|
+
this.contentBackground = 'transparent';
|
|
464
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
465
|
+
}
|
|
466
|
+
this.isMobile = true;
|
|
467
|
+
}
|
|
468
|
+
else {
|
|
469
|
+
switch (this.jumbotronType) {
|
|
470
|
+
case 'light':
|
|
471
|
+
case 'light-video':
|
|
472
|
+
this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
|
|
473
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
474
|
+
break;
|
|
475
|
+
case 'dark':
|
|
476
|
+
case 'dark-video':
|
|
477
|
+
this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
|
|
478
|
+
this.contentColor = 'var(--color-gray-01)';
|
|
479
|
+
break;
|
|
480
|
+
case 'gif':
|
|
481
|
+
this.contentBackground = '#F3F3F3';
|
|
482
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
483
|
+
break;
|
|
484
|
+
default:
|
|
485
|
+
this.contentBackground = 'transparent';
|
|
486
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
487
|
+
}
|
|
488
|
+
this.isMobile = false;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
get el() { return index.getElement(this); }
|
|
492
|
+
};
|
|
493
|
+
PtcJumbotron.style = ptcJumbotronCss;
|
|
494
|
+
|
|
495
|
+
const ptcModalCss = ":host{display:block}.wrapper{position:absolute;width:100vw;height:100%;top:0;left:0;z-index:3000;display:none}.wrapper.fixed{position:fixed}.wrapper .modal-popup{margin:7.5rem auto 1rem;background-color:var(--color-white);box-shadow:var(--ptc-shadow-large);max-width:22.5625rem;width:80%;display:flex;flex-direction:column;align-items:flex-end;align-content:flex-end;z-index:3020;transform:translateY(-100%)}@media only screen and (min-width: 992px){.wrapper .modal-popup{max-width:29.125rem}}.wrapper .modal-popup.md{max-width:44.125rem}.wrapper .modal-popup.lg{max-width:56.25rem}.wrapper .modal-popup.xl{max-width:64.0625rem}.wrapper .modal-popup .modal-body{width:100%}.wrapper .modal-popup .modal-body iframe{opacity:0;overflow:hidden;width:100%;border:0;transition:opacity var(--ptc-ease-inout) var(--ptc-transition-medium)}.wrapper .modal-popup .modal-body iframe.ready{opacity:1}.wrapper .modal-popup .modal-body.frame{overflow:hidden}.wrapper .modal-popup .modal-body.html{overflow:hidden}.wrapper .modal-popup .close{margin-right:var(--ptc-element-spacing-03);margin-top:var(--ptc-element-spacing-03)}.wrapper .modal-popup.shadow-scroller{max-height:756px}.wrapper .modal-popup.shadow-scroller .modal-header{transition:box-shadow ease-in-out 250ms;position:relative;min-height:57px;border-bottom:1px solid var(--color-gray-02);width:100%}.wrapper .modal-popup.shadow-scroller .modal-header .close{position:absolute;top:var(--spacing-md);right:var(--spacing-md);margin:0}.wrapper .modal-popup.shadow-scroller .modal-body{min-height:200px;overflow-x:hidden;overflow-y:auto}.wrapper .modal-popup.shadow-scroller .modal-footer{transition:box-shadow ease-in-out 250ms;width:100%;min-height:60px;border-top:1px solid var(--color-gray-02);padding-top:1rem}.wrapper .modal-popup.shadow-scroller.scroll-top .modal-header{box-shadow:0px 4px 12px rgba(0, 0, 0, 0.12)}.wrapper .modal-popup.shadow-scroller.scroll-bottom .modal-footer{box-shadow:0px -8px 12px rgba(0, 0, 0, 0.12)}.wrapper.show{display:flex;align-items:flex-start}.wrapper.show .modal-popup{transform:translateY(0)}.wrapper.show .modal-popup.rounded{border-radius:var(--ptc-border-radius-standard)}.overlay{width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:3010;display:block;background-color:rgba(0, 0, 0, 0.6)}:host(.standard) .modal-popup{border-radius:var(--ptc-border-radius-standard)}:host(.large) .modal-popup{border-radius:var(--ptc-border-radius-large)}:host(.pill) .modal-popup{border-radius:var(--ptc-border-radius-pill)}:host(.circle) .modal-popup{border-radius:var(--ptc-border-radius-circle)}:host(.bio-modal) .modal-popup{padding:30px 15px 30px 0;max-width:1200px}@media only screen and (min-width: 1440px){:host(.bio-modal) .modal-popup{max-width:1400px}}:host(.bio-modal) .close{position:absolute;margin:0;right:15px;top:30px}:host(.bio-modal) .close svg .cls-1,:host(.bio-modal) .close svg .cls-2{fill:none;stroke-width:2px}:host(.bio-modal) .close svg .cls-1{stroke:#1c2439;stroke-linecap:square}:host(.bio-modal) .close svg .cls-2{stroke:#74c34d}:host(.bio-modal) .close svg path{transition:all ease-in-out 250ms}:host(.bio-modal) .close svg .cls-1:nth-child(1){transform:translate(175.5px, 135.5px)}:host(.bio-modal) .close svg .cls-1:nth-child(2){transform:translate(175.5px, 174.985px)}:host(.bio-modal) .close svg .cls-1:nth-child(3){transform:translate(215.5px, 141.393px)}:host(.bio-modal) .close svg .cls-1:nth-child(4){transform:translate(175.5px, 135.5px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(1){transform:translate(175.5px, 162px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(2){transform:translate(149px, 174.985px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(3){transform:translate(215.5px, 174px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(4){transform:translate(152.5px, 135.5px)}";
|
|
496
|
+
|
|
497
|
+
const PtcModal = class {
|
|
498
|
+
constructor(hostRef) {
|
|
499
|
+
index.registerInstance(this, hostRef);
|
|
500
|
+
this.closed = index.createEvent(this, "closed", 7);
|
|
501
|
+
this.opened = index.createEvent(this, "opened", 7);
|
|
502
|
+
this.iframeUrl = undefined;
|
|
503
|
+
this.size = 'sm';
|
|
504
|
+
this.show = false;
|
|
505
|
+
this.overlay = true;
|
|
506
|
+
this.fixed = false;
|
|
507
|
+
this.closeOnBlur = false;
|
|
508
|
+
this.rounded = false;
|
|
509
|
+
this.showHeaderFooter = false;
|
|
510
|
+
this.overlayHeight = undefined;
|
|
511
|
+
this.borderRadius = 'standard | large | pill | circle';
|
|
512
|
+
this.isBioModal = false;
|
|
513
|
+
this.bodyOverflowSetting = undefined;
|
|
514
|
+
}
|
|
515
|
+
fireOnClosed(modal) {
|
|
516
|
+
this.closed.emit(modal);
|
|
517
|
+
}
|
|
518
|
+
fireOnOpened(modal) {
|
|
519
|
+
this.opened.emit(modal);
|
|
520
|
+
}
|
|
521
|
+
componentWillLoad() {
|
|
522
|
+
let body = document.querySelector('body');
|
|
523
|
+
this.bodyOverflowSetting = {
|
|
524
|
+
//overflow: body.style['overflow'],
|
|
525
|
+
overflowY: body.style['overflowY'],
|
|
526
|
+
overflowX: body.style['overflowX'],
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
componentWillRender() {
|
|
530
|
+
let body = document.querySelector('body');
|
|
531
|
+
if (body) {
|
|
532
|
+
if (this.show) {
|
|
533
|
+
//body.style['overflow'] = 'hidden';
|
|
534
|
+
body.style['overflowY'] = 'scroll';
|
|
535
|
+
body.style['overflowX'] = 'hidden';
|
|
536
|
+
}
|
|
537
|
+
else {
|
|
538
|
+
//body.style['overflow'] = this.bodyOverflowSetting.overflow;
|
|
539
|
+
body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
|
|
540
|
+
body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
componentDidLoad() {
|
|
545
|
+
if (this.show) {
|
|
546
|
+
this.fireOnOpened(this);
|
|
547
|
+
}
|
|
548
|
+
if (this.showHeaderFooter) {
|
|
549
|
+
this.handleScroll();
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
componentDidUpdate() {
|
|
553
|
+
if (this.show) {
|
|
554
|
+
this.fireOnOpened(this);
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
this.fireOnClosed(this);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
resizeIframe(e) {
|
|
561
|
+
let iFrame = e.target;
|
|
562
|
+
setTimeout(() => {
|
|
563
|
+
try {
|
|
564
|
+
if (iFrame.contentDocument) {
|
|
565
|
+
iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
|
|
566
|
+
}
|
|
567
|
+
else {
|
|
568
|
+
iFrame.height = '616px'; //default
|
|
569
|
+
iFrame.removeAttribute('scrolling');
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
catch (error) {
|
|
573
|
+
console.log(error);
|
|
574
|
+
iFrame.height = '616px'; //default
|
|
575
|
+
iFrame.removeAttribute('scrolling');
|
|
576
|
+
}
|
|
577
|
+
iFrame.classList.add('ready');
|
|
578
|
+
}, 50);
|
|
579
|
+
}
|
|
580
|
+
handleScroll() {
|
|
581
|
+
let modal = this.el.shadowRoot.querySelector('.shadow-scroller');
|
|
582
|
+
if (modal) {
|
|
583
|
+
let body = modal.querySelector('.modal-body');
|
|
584
|
+
var height = body.clientHeight;
|
|
585
|
+
var scrollHeight = body.scrollHeight;
|
|
586
|
+
var scrollTop = body.scrollTop;
|
|
587
|
+
var offset = body.offsetHeight;
|
|
588
|
+
if (height < scrollHeight) { //has scrollbar
|
|
589
|
+
if (scrollTop > 0) { //can scroll up
|
|
590
|
+
modal.classList.add('scroll-top');
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
modal.classList.remove('scroll-top');
|
|
594
|
+
}
|
|
595
|
+
if (offset + scrollTop < scrollHeight) { //can scroll down
|
|
596
|
+
modal.classList.add('scroll-bottom');
|
|
597
|
+
}
|
|
598
|
+
else {
|
|
599
|
+
modal.classList.remove('scroll-bottom');
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
close() {
|
|
605
|
+
this.show = false;
|
|
606
|
+
}
|
|
607
|
+
render() {
|
|
608
|
+
let content;
|
|
609
|
+
let overlay;
|
|
610
|
+
let type = this.iframeUrl ? 'frame' : 'html';
|
|
611
|
+
let closebtn = (index.h("div", { class: "close" }, index.h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } }, this.isBioModal
|
|
612
|
+
?
|
|
613
|
+
index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "42", height: "41.485", viewBox: "0 0 42 41.485" }, index.h("g", { "data-name": "Group 1042", transform: "rotate(180 108.25 87.993)" }, index.h("path", { d: "M0 0v39.486", class: "cls-1", "data-name": "Line 446" }), index.h("path", { d: "M0 0h40", class: "cls-1", "data-name": "Line 447" }), index.h("path", { d: "M0 33.592V0", class: "cls-1", "data-name": "Line 448" }), index.h("path", { d: "M23.994 0H0", class: "cls-1", "data-name": "Line 449" }), index.h("path", { d: "M0 0l17.596 17.596", class: "cls-2", "data-name": "Line 450", transform: "translate(187.229 147.226)" }), index.h("path", { d: "M0 7.198L7.199 0", class: "cls-2", "data-name": "Line 451", transform: "translate(197.55 147.312)" }), index.h("path", { d: "M0 7.2L7.2 0", class: "cls-2", "data-name": "Path 114", transform: "translate(187.313 157.549)" })))
|
|
614
|
+
:
|
|
615
|
+
index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { d: "M1 1L13 13", stroke: "black" }), index.h("path", { d: "M13 1L1 13", stroke: "black" })))));
|
|
616
|
+
if (this.iframeUrl) {
|
|
617
|
+
content = (index.h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
if (this.showHeaderFooter) {
|
|
621
|
+
content = (index.h("slot", { name: "body" }));
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
624
|
+
content = (index.h("slot", null));
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
if (this.overlay) {
|
|
628
|
+
if (this.closeOnBlur) {
|
|
629
|
+
overlay = index.h("div", { class: "overlay", onClick: (_) => this.close() });
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
overlay = index.h("div", { class: "overlay" });
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
return (index.h(index.Host, { class: `${this.isBioModal ? "bio-modal" : ""} ${this.borderRadius}` }, index.h("div", { class: `wrapper ${this.show ? "show" : "hide"} ${this.fixed ? 'fixed' : ''} ` }, overlay, index.h("div", { class: `modal-popup ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} ` }, this.showHeaderFooter ? [
|
|
636
|
+
index.h("div", { class: "modal-header" }, index.h("slot", { name: "header" }), closebtn),
|
|
637
|
+
index.h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
|
|
638
|
+
index.h("div", { class: "modal-footer" }, index.h("slot", { name: "footer" }))
|
|
639
|
+
] : [
|
|
640
|
+
closebtn,
|
|
641
|
+
index.h("div", { class: "modal-body" }, content)
|
|
642
|
+
]))));
|
|
643
|
+
}
|
|
644
|
+
get el() { return index.getElement(this); }
|
|
645
|
+
};
|
|
646
|
+
PtcModal.style = ptcModalCss;
|
|
647
|
+
|
|
648
|
+
const ptcParaCss = ":host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}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-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}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.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-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}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-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}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.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
649
|
+
|
|
650
|
+
const PtcPara = class {
|
|
651
|
+
constructor(hostRef) {
|
|
652
|
+
index.registerInstance(this, hostRef);
|
|
653
|
+
this.fontSize = 'x-small';
|
|
654
|
+
this.fontWeight = 'w-4';
|
|
655
|
+
this.paraStyle = 'default';
|
|
656
|
+
this.paraColor = 'primary-grey';
|
|
657
|
+
this.paraLineH = 'line-height-normal';
|
|
658
|
+
this.paraMargin = undefined;
|
|
659
|
+
this.paraAlign = undefined;
|
|
660
|
+
this.ellipsisLineCutoff = undefined;
|
|
661
|
+
this.paraZIndex = undefined;
|
|
662
|
+
this.styles = undefined;
|
|
663
|
+
}
|
|
664
|
+
render() {
|
|
665
|
+
const classMap = this.getCssClassMap();
|
|
666
|
+
const colorClass = this.addWhiteClass();
|
|
667
|
+
const cutOff = this.getLineCuttoff();
|
|
668
|
+
return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
|
|
669
|
+
}
|
|
670
|
+
getCssClassMap() {
|
|
671
|
+
return {
|
|
672
|
+
[this.fontSize]: true,
|
|
673
|
+
[this.fontWeight]: true,
|
|
674
|
+
[this.paraStyle]: true,
|
|
675
|
+
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
676
|
+
[this.paraColor]: true,
|
|
677
|
+
[this.paraLineH]: true,
|
|
678
|
+
[this.paraAlign]: !!this.paraAlign ? true : false,
|
|
679
|
+
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
//WEB-2392
|
|
683
|
+
addWhiteClass() {
|
|
684
|
+
if (this.paraColor == 'white') {
|
|
685
|
+
return {
|
|
686
|
+
[this.paraColor]: true,
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
getLineCuttoff() {
|
|
691
|
+
let result;
|
|
692
|
+
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
693
|
+
result = {
|
|
694
|
+
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
return result;
|
|
698
|
+
}
|
|
699
|
+
get el() { return index.getElement(this); }
|
|
700
|
+
};
|
|
701
|
+
PtcPara.style = ptcParaCss;
|
|
702
|
+
|
|
703
|
+
const ptcPictureCss = ":host{display:block;overflow:hidden}:host img{display:block}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:absolute}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-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";
|
|
704
|
+
|
|
705
|
+
const PtcPicture = class {
|
|
706
|
+
constructor(hostRef) {
|
|
707
|
+
index.registerInstance(this, hostRef);
|
|
708
|
+
this.src = undefined;
|
|
709
|
+
this.alt = 'image';
|
|
710
|
+
this.sizeXs = '510x340';
|
|
711
|
+
this.sizeSm = '1240x496';
|
|
712
|
+
this.sizeMd = '1366x500';
|
|
713
|
+
this.sizeLg = '1920x1080';
|
|
714
|
+
this.oldSrc = undefined;
|
|
715
|
+
this.imagePosition = 'static';
|
|
716
|
+
this.borderRadius = undefined;
|
|
717
|
+
this.height = undefined;
|
|
718
|
+
this.width = undefined;
|
|
719
|
+
this.objectFit = 'cover';
|
|
720
|
+
this.isFullHeight = false;
|
|
721
|
+
this.isFullWidth = false;
|
|
722
|
+
this.styles = undefined;
|
|
723
|
+
this.imageAlignment = 'left';
|
|
724
|
+
this.maxWidth = undefined;
|
|
725
|
+
}
|
|
726
|
+
WindowResize() {
|
|
727
|
+
this.addIntersectionObserver();
|
|
728
|
+
}
|
|
729
|
+
componentDidLoad() {
|
|
730
|
+
this.addIntersectionObserver();
|
|
731
|
+
}
|
|
732
|
+
componentWillUpdate() {
|
|
733
|
+
if (this.src !== this.oldSrc) {
|
|
734
|
+
this.addIntersectionObserver();
|
|
735
|
+
}
|
|
736
|
+
this.oldSrc = this.src;
|
|
737
|
+
}
|
|
738
|
+
//lazy-loading
|
|
739
|
+
addIntersectionObserver() {
|
|
740
|
+
if (!this.src) {
|
|
741
|
+
return;
|
|
742
|
+
}
|
|
743
|
+
if ('IntersectionObserver' in window) {
|
|
744
|
+
let lazyLoadImages = new IntersectionObserver(entries => {
|
|
745
|
+
entries.forEach(entry => {
|
|
746
|
+
if (entry.isIntersecting) {
|
|
747
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
748
|
+
image.src = this.setResponsiveBg();
|
|
749
|
+
lazyLoadImages.unobserve(image);
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
});
|
|
753
|
+
let tempImg = this.el.shadowRoot.querySelector('img');
|
|
754
|
+
if (tempImg) {
|
|
755
|
+
lazyLoadImages.observe(tempImg);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
else {
|
|
759
|
+
// fall back to setTimeout for Safari and IE
|
|
760
|
+
setTimeout(() => {
|
|
761
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
762
|
+
image.src = this.setResponsiveBg();
|
|
763
|
+
image.onload = () => {
|
|
764
|
+
image.removeAttribute('data-src');
|
|
765
|
+
console.log('loaded fallback');
|
|
766
|
+
};
|
|
767
|
+
}, 5000);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
//responsive image
|
|
771
|
+
setResponsiveBg() {
|
|
772
|
+
// Define local variables
|
|
773
|
+
let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
774
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
775
|
+
// Set current variables
|
|
776
|
+
el = backgrounds[i];
|
|
777
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
778
|
+
if (elData !== null) {
|
|
779
|
+
return elData;
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
if (typeof console == 'object') {
|
|
783
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
render() {
|
|
789
|
+
const classMap = this.getCssClassMap();
|
|
790
|
+
const classMapHost = this.getCssClassMapHost();
|
|
791
|
+
return (index.h(index.Host, { class: classMapHost }, 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, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), index.h("slot", null)));
|
|
792
|
+
}
|
|
793
|
+
getCurrentBreakPoints() {
|
|
794
|
+
// Define local variables
|
|
795
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
796
|
+
// Append test node
|
|
797
|
+
doc.body.appendChild(temp);
|
|
798
|
+
// Loop through breakpoints
|
|
799
|
+
for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
800
|
+
env = ResponsivePictureVariables.envs[i];
|
|
801
|
+
// Add classes
|
|
802
|
+
temp.className = 'hidden-' + env;
|
|
803
|
+
// Found breakpoint
|
|
804
|
+
if (temp.offsetParent === null) {
|
|
805
|
+
// Remove our test node
|
|
806
|
+
doc.body.removeChild(temp);
|
|
807
|
+
// Return current breakpoint
|
|
808
|
+
return env;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
// Breakpoint not found, try fallback
|
|
812
|
+
doc.body.removeChild(temp);
|
|
813
|
+
return this.getFallbackBreakpoint();
|
|
814
|
+
}
|
|
815
|
+
getFallbackBreakpoint() {
|
|
816
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
817
|
+
return 'lg';
|
|
818
|
+
}
|
|
819
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
820
|
+
return 'md';
|
|
821
|
+
}
|
|
822
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
823
|
+
return 'sm';
|
|
824
|
+
}
|
|
825
|
+
else {
|
|
826
|
+
return 'xs';
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
getCssClassMap() {
|
|
830
|
+
return {
|
|
831
|
+
[this.borderRadius]: this.borderRadius ? true : false,
|
|
832
|
+
[this.objectFit]: true,
|
|
833
|
+
[this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
|
|
834
|
+
[this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
getCssClassMapHost() {
|
|
838
|
+
return {
|
|
839
|
+
[this.imagePosition]: true,
|
|
840
|
+
[this.imageAlignment]: true,
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
get el() { return index.getElement(this); }
|
|
844
|
+
};
|
|
845
|
+
PtcPicture.style = ptcPictureCss;
|
|
846
|
+
|
|
847
|
+
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-vertical.space-128){width:100%;height:128px;min-height:128px}: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.99em){: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: 75em){:host(.ptc-spacer-xx-large){display:block}}:host(.ptc-spacer-xxx-large){display:none}@media (min-width: 90em){:host(.ptc-spacer-xxx-large){display:block}}";
|
|
848
|
+
|
|
849
|
+
const PtcSpacer = class {
|
|
850
|
+
constructor(hostRef) {
|
|
851
|
+
index.registerInstance(this, hostRef);
|
|
852
|
+
this.breakpoint = '';
|
|
853
|
+
this.size = 'medium';
|
|
854
|
+
this.direction = 'vertical';
|
|
855
|
+
}
|
|
856
|
+
render() {
|
|
857
|
+
const classMap = this.getCssClassMap();
|
|
858
|
+
return (index.h(index.Host, { class: classMap }));
|
|
859
|
+
}
|
|
860
|
+
getCssClassMap() {
|
|
861
|
+
return {
|
|
862
|
+
[this.size]: true,
|
|
863
|
+
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
864
|
+
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
865
|
+
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
866
|
+
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
867
|
+
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
868
|
+
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
869
|
+
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
870
|
+
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
871
|
+
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
872
|
+
['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
};
|
|
876
|
+
PtcSpacer.style = ptcSpacerCss;
|
|
877
|
+
|
|
878
|
+
const closeSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 42 41.485">
|
|
879
|
+
<g id="Group_1042" data-name="Group 1042" transform="rotate(180 108.25 87.993)">
|
|
880
|
+
<path id="Line_446" d="M0 0v39.486" class="cls-1" data-name="Line 446"></path>
|
|
881
|
+
<path id="Line_447" d="M0 0h40" class="cls-1" data-name="Line 447"></path>
|
|
882
|
+
<path id="Line_448" d="M0 33.592V0" class="cls-1" data-name="Line 448"></path>
|
|
883
|
+
<path id="Line_449" d="M23.994 0H0" class="cls-1" data-name="Line 449"></path>
|
|
884
|
+
<path id="Line_450" d="M0 0l17.596 17.596" class="cls-2" data-name="Line 450" transform="translate(187.229 147.226)"></path>
|
|
885
|
+
<path id="Line_451" d="M0 7.198L7.199 0" class="cls-2" data-name="Line 451" transform="translate(197.55 147.312)"></path>
|
|
886
|
+
<path id="Path_114" d="M0 7.2L7.2 0" class="cls-2" data-name="Path 114" transform="translate(187.313 157.549)"></path>
|
|
887
|
+
</g>
|
|
888
|
+
</svg>`;
|
|
889
|
+
|
|
890
|
+
const arrowSvgLeft = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
891
|
+
<g filter="url(#filter0_d_494_37)">
|
|
892
|
+
<circle cx="24" cy="22" r="20" fill="white"/>
|
|
893
|
+
<path d="M23.1444 16L23.1444 20.5762L31 20.5762L31 23.4239L23.1444 23.4239L23.1444 28L17 21.9669L23.1444 16Z" class="arrow"/>
|
|
894
|
+
</g>
|
|
895
|
+
<defs>
|
|
896
|
+
<filter id="filter0_d_494_37" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
897
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
898
|
+
<feColorMatrix 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"/>
|
|
899
|
+
<feOffset dy="2"/>
|
|
900
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
901
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
902
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
903
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_37"/>
|
|
904
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_37" result="shape"/>
|
|
905
|
+
</filter>
|
|
906
|
+
</defs>
|
|
907
|
+
</svg>
|
|
908
|
+
`;
|
|
909
|
+
|
|
910
|
+
const arrowSvgRight = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
911
|
+
<g filter="url(#filter0_d_494_34)">
|
|
912
|
+
<circle cx="24" cy="22" r="20" fill="white"/>
|
|
913
|
+
<path d="M24.8556 16L24.8556 20.5762L17 20.5762L17 23.4239L24.8556 23.4239L24.8556 28L31 21.9669L24.8556 16Z" class="arrow"/>
|
|
914
|
+
</g>
|
|
915
|
+
<defs>
|
|
916
|
+
<filter id="filter0_d_494_34" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
917
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
918
|
+
<feColorMatrix 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"/>
|
|
919
|
+
<feOffset dy="2"/>
|
|
920
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
921
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
922
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
923
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_34"/>
|
|
924
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_34" result="shape"/>
|
|
925
|
+
</filter>
|
|
926
|
+
</defs>
|
|
927
|
+
</svg>
|
|
928
|
+
`;
|
|
929
|
+
|
|
930
|
+
const backarrow = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 311 512">
|
|
931
|
+
<defs>
|
|
932
|
+
<style>
|
|
933
|
+
.cls-1 {
|
|
934
|
+
fill: #fff;
|
|
935
|
+
fill-rule: evenodd;
|
|
936
|
+
}
|
|
937
|
+
</style>
|
|
938
|
+
</defs>
|
|
939
|
+
<path class="cls-1" d="M251.762,512L311,452.638,114.774,256,311,59.362,251.762,0,0,252.29Z"/>
|
|
940
|
+
</svg>
|
|
941
|
+
`;
|
|
942
|
+
|
|
943
|
+
const play = `<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
944
|
+
<g filter="url(#filter0_d_241_171)">
|
|
945
|
+
<circle cx="42" cy="38" r="36" fill="#1F2024"/>
|
|
946
|
+
<circle cx="42" cy="38" r="35" stroke="#33A13C" stroke-width="2"/>
|
|
947
|
+
</g>
|
|
948
|
+
<path d="M58 38L34 51.8564L34 24.1436L58 38Z" fill="white"/>
|
|
949
|
+
<defs>
|
|
950
|
+
<filter id="filter0_d_241_171" x="0" y="0" width="84" height="84" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
951
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
952
|
+
<feColorMatrix 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"/>
|
|
953
|
+
<feMorphology radius="2" operator="dilate" in="SourceAlpha" result="effect1_dropShadow_241_171"/>
|
|
954
|
+
<feOffset dy="4"/>
|
|
955
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
956
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
957
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0.231373 0 0 0 0 0.270588 0 0 0 0 0.313726 0 0 0 0.1 0"/>
|
|
958
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_241_171"/>
|
|
959
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_241_171" result="shape"/>
|
|
960
|
+
</filter>
|
|
961
|
+
</defs>
|
|
962
|
+
</svg>
|
|
963
|
+
`;
|
|
964
|
+
|
|
965
|
+
const ptcSvgBtnCss = ":host{cursor:pointer}:host(.block){display:block}:host(.inline){display:inline}:host(.inline-block){display:inline-block}:host(.flex){display:flex}:host(:focus-visible){outline:none}:host(.backarrow){margin:8px 8px 0px -2px}:focus-visible{outline:none}.svg-close svg .cls-1,.svg-close svg .cls-2{fill:none;stroke-width:2px}.svg-close svg .cls-1{stroke:var(--color-gray-10);stroke-linecap:square}.svg-close svg .cls-2{stroke:var(--color-gray-10)}.svg-close svg path{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}.svg-close svg .cls-1:first-child{-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close svg .cls-1:nth-child(2){-webkit-transform:translate(175.5px, 174.985px);-ms-transform:translate(175.5px, 174.985px);transform:translate(175.5px, 174.985px)}.svg-close svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 141.393px);-ms-transform:translate(215.5px, 141.393px);transform:translate(215.5px, 141.393px)}.svg-close svg .cls-1:nth-child(4){-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close:hover svg .cls-1:first-child{-webkit-transform:translate(175.5px, 162px);-ms-transform:translate(175.5px, 162px);transform:translate(175.5px, 162px)}.svg-close:hover svg .cls-1:nth-child(2){-webkit-transform:translate(149px, 174.985px);-ms-transform:translate(149px, 174.985px);transform:translate(149px, 174.985px)}.svg-close:hover svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 174px);-ms-transform:translate(215.5px, 174px);transform:translate(215.5px, 174px)}.svg-close:hover svg .cls-1:nth-child(4){-webkit-transform:translate(152.5px, 135.5px);-ms-transform:translate(152.5px, 135.5px);transform:translate(152.5px, 135.5px)}.svg-close.svg-close-white .cls-1{stroke:var(--color-white)}.slider-left,.slider-right{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}.slider-left svg .arrow,.slider-right svg .arrow{fill:var(--color-gray-10)}.slider-left:hover svg .arrow,.slider-right:hover svg .arrow{fill:var(--color-green-06)}.back-arrow{display:inline-block;fill:none;stroke-width:30px;stroke:var(--color-gray-10);stroke-linecap:square;height:10px;width:20px;position:relative;top:1px;text-align:center}@media only screen and (max-width: 1024px) and (min-width: 576px){:host(.back-arrow){margin:8px 8px 16px -2px}}";
|
|
966
|
+
|
|
967
|
+
const PtcSvgBtn = class {
|
|
968
|
+
constructor(hostRef) {
|
|
969
|
+
index.registerInstance(this, hostRef);
|
|
970
|
+
this.svgName = 'close';
|
|
971
|
+
this.display = 'block';
|
|
972
|
+
this.zIndex = undefined;
|
|
973
|
+
this.styles = undefined;
|
|
974
|
+
}
|
|
975
|
+
render() {
|
|
976
|
+
const classMap = this.getCssClassMap();
|
|
977
|
+
return (index.h(index.Host, Object.assign({ class: classMap }, (this.zIndex !== undefined ? { style: { zIndex: this.zIndex } } : null)), this.styles && index.h("style", null, this.styles), !!this.svgName && this.svgName === 'close' ? index.h("div", { class: "svg-close", innerHTML: closeSvg }) : null, !!this.svgName && this.svgName === 'slider-left' ? index.h("div", { class: "slider-left", innerHTML: arrowSvgLeft }) : null, !!this.svgName && this.svgName === 'slider-right' ? index.h("div", { class: "slider-right", innerHTML: arrowSvgRight }) : null, !!this.svgName && this.svgName === 'back-arrow' ? index.h("div", { class: "back-arrow", innerHTML: backarrow }) : null, !!this.svgName && this.svgName === 'play' ? index.h("div", { class: "play", innerHTML: play }) : null));
|
|
978
|
+
}
|
|
979
|
+
getCssClassMap() {
|
|
980
|
+
return {
|
|
981
|
+
[this.display]: true,
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
PtcSvgBtn.style = ptcSvgBtnCss;
|
|
986
|
+
|
|
987
|
+
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,div.center.dotted.sc-ptc-title h4.sc-ptc-title::before,div.center.dotted.sc-ptc-title h5.sc-ptc-title::before,div.center.dotted.sc-ptc-title h6.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,div.left.dotted.sc-ptc-title h4.sc-ptc-title::before,div.left.dotted.sc-ptc-title h5.sc-ptc-title::before,div.left.dotted.sc-ptc-title h6.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,div.right.dotted.sc-ptc-title h4.sc-ptc-title::before,div.right.dotted.sc-ptc-title h5.sc-ptc-title::before,div.right.dotted.sc-ptc-title h6.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,div.dotted.sc-ptc-title h4.sc-ptc-title::before,div.dotted.sc-ptc-title h5.sc-ptc-title::before,div.dotted.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed var(--color-green-07)}div.solid.sc-ptc-title h1.sc-ptc-title,div.solid.sc-ptc-title h2.sc-ptc-title,div.solid.sc-ptc-title h3.sc-ptc-title,div.solid.sc-ptc-title h4.sc-ptc-title,div.solid.sc-ptc-title h5.sc-ptc-title,div.solid.sc-ptc-title h6.sc-ptc-title{padding-top:4px}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,div.solid.sc-ptc-title h4.sc-ptc-title::before,div.solid.sc-ptc-title h5.sc-ptc-title::before,div.solid.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-gray-03);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,div.solid.sc-ptc-title h4.sc-ptc-title::after,div.solid.sc-ptc-title h5.sc-ptc-title::after,div.solid.sc-ptc-title h6.sc-ptc-title::after{content:\"\";position:absolute;width:56px;height:2px;background-color:var(--color-green-07);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,div.is-standard.sc-ptc-title h4.sc-ptc-title,div.is-standard.sc-ptc-title h5.sc-ptc-title,div.is-standard.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative}div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0px;color:var(--color-gray-10)}div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);color:var(--color-gray-10)}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,div.is-plm-hub.sc-ptc-title h4.sc-ptc-title,div.is-plm-hub.sc-ptc-title h5.sc-ptc-title,div.is-plm-hub.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px;color:var(--color-white) !important}div.margin-flush.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-flush.sc-ptc-title h1.sc-ptc-title,div.margin-flush.sc-ptc-title h2.sc-ptc-title,div.margin-flush.sc-ptc-title h3.sc-ptc-title,div.margin-flush.sc-ptc-title h4.sc-ptc-title,div.margin-flush.sc-ptc-title h5.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-top-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}div.margin-top-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}div.margin-top-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}div.margin-top-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}div.margin-top-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}div.margin-bottom-2.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}div.margin-bottom-3.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}div.margin-bottom-4.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}div.margin-bottom-5.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}div.margin-bottom-6.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}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-5.sc-ptc-title h4.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}div.green.sc-ptc-title h1.sc-ptc-title,div.green.sc-ptc-title h2.sc-ptc-title,div.green.sc-ptc-title h3.sc-ptc-title,div.green.sc-ptc-title h4.sc-ptc-title,div.green.sc-ptc-title h5.sc-ptc-title,div.green.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-green-07)}div.blue.sc-ptc-title h1.sc-ptc-title,div.blue.sc-ptc-title h2.sc-ptc-title,div.blue.sc-ptc-title h3.sc-ptc-title,div.blue.sc-ptc-title h4.sc-ptc-title,div.blue.sc-ptc-title h5.sc-ptc-title,div.blue.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-blue-07)}div.red.sc-ptc-title h1.sc-ptc-title,div.red.sc-ptc-title h2.sc-ptc-title,div.red.sc-ptc-title h3.sc-ptc-title,div.red.sc-ptc-title h4.sc-ptc-title,div.red.sc-ptc-title h5.sc-ptc-title,div.red.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-red-07)}div.orange.sc-ptc-title h1.sc-ptc-title,div.orange.sc-ptc-title h2.sc-ptc-title,div.orange.sc-ptc-title h3.sc-ptc-title,div.orange.sc-ptc-title h4.sc-ptc-title,div.orange.sc-ptc-title h5.sc-ptc-title,div.orange.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-orange-07)}div.slate-grey.sc-ptc-title h1.sc-ptc-title,div.slate-grey.sc-ptc-title h2.sc-ptc-title,div.slate-grey.sc-ptc-title h3.sc-ptc-title,div.slate-grey.sc-ptc-title h4.sc-ptc-title,div.slate-grey.sc-ptc-title h5.sc-ptc-title,div.slate-grey.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-gray-07)}div.w-3.sc-ptc-title h1.sc-ptc-title,div.w-3.sc-ptc-title h2.sc-ptc-title,div.w-3.sc-ptc-title h3.sc-ptc-title,div.w-3.sc-ptc-title h4.sc-ptc-title,div.w-3.sc-ptc-title h5.sc-ptc-title,div.w-3.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-thin)}div.w-4.sc-ptc-title h1.sc-ptc-title,div.w-4.sc-ptc-title h2.sc-ptc-title,div.w-4.sc-ptc-title h3.sc-ptc-title,div.w-4.sc-ptc-title h4.sc-ptc-title,div.w-4.sc-ptc-title h5.sc-ptc-title,div.w-4.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-regular)}div.w-5.sc-ptc-title h1.sc-ptc-title,div.w-5.sc-ptc-title h2.sc-ptc-title,div.w-5.sc-ptc-title h3.sc-ptc-title,div.w-5.sc-ptc-title h4.sc-ptc-title,div.w-5.sc-ptc-title h5.sc-ptc-title,div.w-5.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-medium)}div.w-6.sc-ptc-title h1.sc-ptc-title,div.w-6.sc-ptc-title h2.sc-ptc-title,div.w-6.sc-ptc-title h3.sc-ptc-title,div.w-6.sc-ptc-title h4.sc-ptc-title,div.w-6.sc-ptc-title h5.sc-ptc-title,div.w-6.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-semibold)}div.w-7.sc-ptc-title h1.sc-ptc-title,div.w-7.sc-ptc-title h2.sc-ptc-title,div.w-7.sc-ptc-title h3.sc-ptc-title,div.w-7.sc-ptc-title h4.sc-ptc-title,div.w-7.sc-ptc-title h5.sc-ptc-title,div.w-7.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-bold)}div.w-8.sc-ptc-title h1.sc-ptc-title,div.w-8.sc-ptc-title h2.sc-ptc-title,div.w-8.sc-ptc-title h3.sc-ptc-title,div.w-8.sc-ptc-title h4.sc-ptc-title,div.w-8.sc-ptc-title h5.sc-ptc-title,div.w-8.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-extrabold)}div.w-9.sc-ptc-title h1.sc-ptc-title,div.w-9.sc-ptc-title h2.sc-ptc-title,div.w-9.sc-ptc-title h3.sc-ptc-title,div.w-9.sc-ptc-title h4.sc-ptc-title,div.w-9.sc-ptc-title h5.sc-ptc-title,div.w-9.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-black)}div.xx-small.sc-ptc-title h1.sc-ptc-title,div.xx-small.sc-ptc-title h2.sc-ptc-title,div.xx-small.sc-ptc-title h3.sc-ptc-title,div.xx-small.sc-ptc-title h4.sc-ptc-title,div.xx-small.sc-ptc-title h5.sc-ptc-title,div.xx-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-small)}div.x-small.sc-ptc-title h1.sc-ptc-title,div.x-small.sc-ptc-title h2.sc-ptc-title,div.x-small.sc-ptc-title h3.sc-ptc-title,div.x-small.sc-ptc-title h4.sc-ptc-title,div.x-small.sc-ptc-title h5.sc-ptc-title,div.x-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-small)}div.small.sc-ptc-title h1.sc-ptc-title,div.small.sc-ptc-title h2.sc-ptc-title,div.small.sc-ptc-title h3.sc-ptc-title,div.small.sc-ptc-title h4.sc-ptc-title,div.small.sc-ptc-title h5.sc-ptc-title,div.small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-small)}div.medium.sc-ptc-title h1.sc-ptc-title,div.medium.sc-ptc-title h2.sc-ptc-title,div.medium.sc-ptc-title h3.sc-ptc-title,div.medium.sc-ptc-title h4.sc-ptc-title,div.medium.sc-ptc-title h5.sc-ptc-title,div.medium.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-medium)}div.large.sc-ptc-title h1.sc-ptc-title,div.large.sc-ptc-title h2.sc-ptc-title,div.large.sc-ptc-title h3.sc-ptc-title,div.large.sc-ptc-title h4.sc-ptc-title,div.large.sc-ptc-title h5.sc-ptc-title,div.large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-large)}div.x-large.sc-ptc-title h1.sc-ptc-title,div.x-large.sc-ptc-title h2.sc-ptc-title,div.x-large.sc-ptc-title h3.sc-ptc-title,div.x-large.sc-ptc-title h4.sc-ptc-title,div.x-large.sc-ptc-title h5.sc-ptc-title,div.x-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}@media only screen and (min-width: 768px){div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}@media only screen and (min-width: 768px){div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}}div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media screen and (min-width: 769px){div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}div.xxxx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}div.densest.sc-ptc-title h1.sc-ptc-title,div.densest.sc-ptc-title h2.sc-ptc-title,div.densest.sc-ptc-title h3.sc-ptc-title,div.densest.sc-ptc-title h4.sc-ptc-title,div.densest.sc-ptc-title h5.sc-ptc-title,div.densest.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-densest)}div.denser.sc-ptc-title h1.sc-ptc-title,div.denser.sc-ptc-title h2.sc-ptc-title,div.denser.sc-ptc-title h3.sc-ptc-title,div.denser.sc-ptc-title h4.sc-ptc-title,div.denser.sc-ptc-title h5.sc-ptc-title,div.denser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-denser)}div.dense.sc-ptc-title h1.sc-ptc-title,div.dense.sc-ptc-title h2.sc-ptc-title,div.dense.sc-ptc-title h3.sc-ptc-title,div.dense.sc-ptc-title h4.sc-ptc-title,div.dense.sc-ptc-title h5.sc-ptc-title,div.dense.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-dense)}div.normal.sc-ptc-title h1.sc-ptc-title,div.normal.sc-ptc-title h2.sc-ptc-title,div.normal.sc-ptc-title h3.sc-ptc-title,div.normal.sc-ptc-title h4.sc-ptc-title,div.normal.sc-ptc-title h5.sc-ptc-title,div.normal.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-normal)}div.loose.sc-ptc-title h1.sc-ptc-title,div.loose.sc-ptc-title h2.sc-ptc-title,div.loose.sc-ptc-title h3.sc-ptc-title,div.loose.sc-ptc-title h4.sc-ptc-title,div.loose.sc-ptc-title h5.sc-ptc-title,div.loose.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-loose)}div.looser.sc-ptc-title h1.sc-ptc-title,div.looser.sc-ptc-title h2.sc-ptc-title,div.looser.sc-ptc-title h3.sc-ptc-title,div.looser.sc-ptc-title h4.sc-ptc-title,div.looser.sc-ptc-title h5.sc-ptc-title,div.looser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-looser)}div.paragraph.sc-ptc-title h1.sc-ptc-title,div.paragraph.sc-ptc-title h2.sc-ptc-title,div.paragraph.sc-ptc-title h3.sc-ptc-title,div.paragraph.sc-ptc-title h4.sc-ptc-title,div.paragraph.sc-ptc-title h5.sc-ptc-title,div.paragraph.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-paragraph)}div.black.sc-ptc-title h1.sc-ptc-title,div.black.sc-ptc-title h2.sc-ptc-title,div.black.sc-ptc-title h3.sc-ptc-title,div.black.sc-ptc-title h4.sc-ptc-title,div.black.sc-ptc-title h5.sc-ptc-title,div.black.sc-ptc-title h6.sc-ptc-title{color:var(--color-black)}div.white.sc-ptc-title h1.sc-ptc-title,div.white.sc-ptc-title h2.sc-ptc-title,div.white.sc-ptc-title h3.sc-ptc-title,div.white.sc-ptc-title h4.sc-ptc-title,div.white.sc-ptc-title h5.sc-ptc-title,div.white.sc-ptc-title h6.sc-ptc-title{color:var(--color-white)}div.gray.sc-ptc-title h1.sc-ptc-title,div.gray.sc-ptc-title h2.sc-ptc-title,div.gray.sc-ptc-title h3.sc-ptc-title,div.gray.sc-ptc-title h4.sc-ptc-title,div.gray.sc-ptc-title h5.sc-ptc-title,div.gray.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-10)}div.gray-darker.sc-ptc-title h1.sc-ptc-title,div.gray-darker.sc-ptc-title h2.sc-ptc-title,div.gray-darker.sc-ptc-title h3.sc-ptc-title,div.gray-darker.sc-ptc-title h4.sc-ptc-title,div.gray-darker.sc-ptc-title h5.sc-ptc-title,div.gray-darker.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-11)}div.ellipsis-boxing.sc-ptc-title h1.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h2.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h3.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h4.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h5.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h6.sc-ptc-title{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}div.block.sc-ptc-title h1.sc-ptc-title,div.block.sc-ptc-title h2.sc-ptc-title,div.block.sc-ptc-title h3.sc-ptc-title,div.block.sc-ptc-title h4.sc-ptc-title,div.block.sc-ptc-title h5.sc-ptc-title,div.block.sc-ptc-title h6.sc-ptc-title{display:block}";
|
|
988
|
+
|
|
989
|
+
const PtcTitle = class {
|
|
990
|
+
constructor(hostRef) {
|
|
991
|
+
index.registerInstance(this, hostRef);
|
|
992
|
+
this.isPlmHub = false;
|
|
993
|
+
this.type = 'h2';
|
|
994
|
+
this.textAlign = undefined;
|
|
995
|
+
this.upperline = 'dotted';
|
|
996
|
+
this.titleShadow = undefined;
|
|
997
|
+
this.titleColor = 'gray';
|
|
998
|
+
this.titleMargin = undefined;
|
|
999
|
+
this.titleWeight = undefined;
|
|
1000
|
+
this.titleSize = undefined;
|
|
1001
|
+
this.titleHeight = 'paragraph';
|
|
1002
|
+
this.styles = undefined;
|
|
1003
|
+
this.ellipsisLineCutoff = undefined;
|
|
1004
|
+
this.titleDisplay = 'inline-block';
|
|
1005
|
+
}
|
|
1006
|
+
render() {
|
|
1007
|
+
const classMap = this.getCssClassMap();
|
|
1008
|
+
const cutOff = this.getLineCuttoff();
|
|
1009
|
+
let TagType;
|
|
1010
|
+
switch (this.type) {
|
|
1011
|
+
case 'h1':
|
|
1012
|
+
TagType = 'h1';
|
|
1013
|
+
break;
|
|
1014
|
+
case 'h3':
|
|
1015
|
+
TagType = 'h3';
|
|
1016
|
+
break;
|
|
1017
|
+
case 'h4':
|
|
1018
|
+
TagType = 'h4';
|
|
1019
|
+
break;
|
|
1020
|
+
case 'h5':
|
|
1021
|
+
TagType = 'h5';
|
|
1022
|
+
break;
|
|
1023
|
+
case 'h6':
|
|
1024
|
+
TagType = 'h6';
|
|
1025
|
+
break;
|
|
1026
|
+
default:
|
|
1027
|
+
TagType = 'h2';
|
|
1028
|
+
}
|
|
1029
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { style: cutOff }, index.h("slot", null)))));
|
|
1030
|
+
}
|
|
1031
|
+
getCssClassMap() {
|
|
1032
|
+
return {
|
|
1033
|
+
[this.textAlign]: !!this.textAlign ? true : false,
|
|
1034
|
+
[this.upperline]: true,
|
|
1035
|
+
[this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
|
|
1036
|
+
[this.titleMargin]: !!this.titleMargin ? true : false,
|
|
1037
|
+
[this.titleShadow]: !!this.titleShadow ? true : false,
|
|
1038
|
+
[this.titleWeight]: !!this.titleWeight ? true : false,
|
|
1039
|
+
[this.titleSize]: !!this.titleSize ? true : false,
|
|
1040
|
+
[this.titleHeight]: !!this.titleHeight ? true : false,
|
|
1041
|
+
[this.titleColor]: !!this.titleColor ? true : false,
|
|
1042
|
+
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
1043
|
+
[this.titleDisplay]: !!this.titleDisplay ? true : false,
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
getLineCuttoff() {
|
|
1047
|
+
let result;
|
|
1048
|
+
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
1049
|
+
result = {
|
|
1050
|
+
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
return result;
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
PtcTitle.style = ptcTitleCss;
|
|
1057
|
+
|
|
1058
|
+
const ptcTooltipCss = ".sc-ptc-tooltip-h{position:relative}.inline.sc-ptc-tooltip-h{display:inline}.block.sc-ptc-tooltip-h{display:block}.text-ellipsis.sc-ptc-tooltip{position:relative;display:inline}.text-ellipsis.sc-ptc-tooltip:not(.truncated){z-index:auto !important}.z-auto.sc-ptc-tooltip{z-index:auto}.z-1.sc-ptc-tooltip{z-index:1}.z-2.sc-ptc-tooltip{z-index:2}.z-3.sc-ptc-tooltip{z-index:3}.z-999.sc-ptc-tooltip{z-index:999}.tooltip.sc-ptc-tooltip{position:absolute;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:2px;width:auto;height:auto;visibility:hidden;text-align:left;text-shadow:none;white-space:normal}@media only screen and (min-width: 480px){.tooltip.sc-ptc-tooltip{width:273px}}.tooltip.danger.sc-ptc-tooltip{color:var(--color-red-07);font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-xx-small);line-height:var(--ptc-line-height-p);border:2px solid var(--color-red-07);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);padding:var(--ptc-element-spacing-06)}.tooltip.danger.sc-ptc-tooltip a.sc-ptc-tooltip{color:var(--color-blue-07)}.tooltip.bottom.sc-ptc-tooltip{bottom:-12px;transform:translateY(100%)}.tooltip.bottom.sc-ptc-tooltip::after{top:1px;left:50%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.left.sc-ptc-tooltip{bottom:-12px;transform:translate(-80%, 100%)}.tooltip.left.sc-ptc-tooltip::after{top:1px;right:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.right.sc-ptc-tooltip{bottom:-12px;transform:translateY(100%);right:0px}.tooltip.right.sc-ptc-tooltip::after{top:1px;left:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.top.sc-ptc-tooltip{top:-8px;transform:translateY(-100%)}.tooltip.top.sc-ptc-tooltip::after{left:50%;bottom:1px;transform:translate(-50%, 100%);border:8px solid transparent;border-top:8px solid var(--color-gray-09)}.tooltip.bottom-right.sc-ptc-tooltip{bottom:-12px;transform:translate(-60%, 100%)}.tooltip.bottom-right.sc-ptc-tooltip::after{top:1px;left:75%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.danger.sc-ptc-tooltip::after{top:0;border-bottom:8px solid var(--color-red-07)}.truncated.sc-ptc-tooltip{cursor:help}.truncated.sc-ptc-tooltip:hover+.tooltip.sc-ptc-tooltip{visibility:visible;z-index:9999}.wrapper-content.sc-ptc-tooltip{display:inline-block;position:relative}.wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{width:auto;min-width:72px;max-width:273px}.wrapper-content.sc-ptc-tooltip .slot-content.sc-ptc-tooltip:hover+.tooltip.sc-ptc-tooltip{visibility:visible;z-index:9999}.tooltip.sc-ptc-tooltip::after{content:\"\";position:absolute}.ellipsis-by-line-boxing.sc-ptc-tooltip{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}";
|
|
1059
|
+
|
|
1060
|
+
const PtcTooltip = class {
|
|
1061
|
+
constructor(hostRef) {
|
|
1062
|
+
index.registerInstance(this, hostRef);
|
|
1063
|
+
this.textDisplay = 'inline';
|
|
1064
|
+
this.maxLength = 45;
|
|
1065
|
+
this.textLines = undefined;
|
|
1066
|
+
this.description = 'This is a tooltip text placeholder';
|
|
1067
|
+
this.zIndex = 'z-auto';
|
|
1068
|
+
this.position = 'bottom';
|
|
1069
|
+
this.styles = undefined;
|
|
1070
|
+
this.mode = 'text-only';
|
|
1071
|
+
this.theme = 'standard';
|
|
1072
|
+
}
|
|
1073
|
+
addTruncatedClass() {
|
|
1074
|
+
const appRoot = this.el;
|
|
1075
|
+
const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
|
|
1076
|
+
text.forEach(t => {
|
|
1077
|
+
t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
// Created this function to initialize the truncate function on specific elements like tabs
|
|
1081
|
+
enableAddTruncatedClass(element) {
|
|
1082
|
+
const allTabHeaders = document.querySelectorAll(element);
|
|
1083
|
+
for (const element of Array.from(allTabHeaders)) {
|
|
1084
|
+
let tabHeader = element;
|
|
1085
|
+
if (tabHeader) {
|
|
1086
|
+
tabHeader.addEventListener('click', () => {
|
|
1087
|
+
setTimeout(() => {
|
|
1088
|
+
this.addTruncatedClass();
|
|
1089
|
+
}, 100);
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
componentDidLoad() {
|
|
1095
|
+
//this.addTruncatedClass();
|
|
1096
|
+
setTimeout(() => {
|
|
1097
|
+
this.addTruncatedClass();
|
|
1098
|
+
}, 1000);
|
|
1099
|
+
this.enableAddTruncatedClass('tab-header');
|
|
1100
|
+
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
1101
|
+
document.addEventListener('readystatechange', () => {
|
|
1102
|
+
if (document.readyState === 'complete') {
|
|
1103
|
+
this.addTruncatedClass();
|
|
1104
|
+
}
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
render() {
|
|
1108
|
+
if (this.mode == 'wrapper') {
|
|
1109
|
+
return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "wrapper-content" }, index.h("div", { class: "slot-content" }, index.h("slot", null)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, index.h("slot", { name: "description" }), this.description))));
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
const classMap = this.getCssClassMap();
|
|
1113
|
+
const cutOff = this.getLineCuttoff();
|
|
1114
|
+
let truncatedText = this.description.substring(0, this.maxLength);
|
|
1115
|
+
if (this.description.length > this.maxLength) {
|
|
1116
|
+
const lastSpace = truncatedText.lastIndexOf(' ');
|
|
1117
|
+
truncatedText = truncatedText.substring(0, lastSpace);
|
|
1118
|
+
truncatedText += '... ';
|
|
1119
|
+
}
|
|
1120
|
+
return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), this.textLines > 0 && !!this.textLines ? (index.h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description)) : (index.h("div", { class: classMap }, truncatedText)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, this.description)));
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
getCssClassMap() {
|
|
1124
|
+
return {
|
|
1125
|
+
// ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
|
|
1126
|
+
['text-ellipsis']: true,
|
|
1127
|
+
[this.zIndex]: this.description.length > this.maxLength ? true : false,
|
|
1128
|
+
['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
getLineCuttoff() {
|
|
1132
|
+
let result;
|
|
1133
|
+
if (this.textLines && this.textLines > 0) {
|
|
1134
|
+
result = {
|
|
1135
|
+
['-webkit-line-clamp']: `${this.textLines}`,
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
return result;
|
|
1139
|
+
}
|
|
1140
|
+
get el() { return index.getElement(this); }
|
|
1141
|
+
};
|
|
1142
|
+
PtcTooltip.style = ptcTooltipCss;
|
|
1143
|
+
|
|
1144
|
+
exports.bundle_jumbotron_example = BundleJumbotronExample;
|
|
1145
|
+
exports.icon_asset = IconAsset;
|
|
1146
|
+
exports.list_item = ListItem;
|
|
1147
|
+
exports.max_width_container = MaxWidthContainer;
|
|
1148
|
+
exports.ptc_background_video = PtcBackgroundVideo;
|
|
1149
|
+
exports.ptc_breadcrumb = PtcBreadcrumb;
|
|
1150
|
+
exports.ptc_button = PtcButton;
|
|
1151
|
+
exports.ptc_img = PtcImg;
|
|
1152
|
+
exports.ptc_jumbotron = PtcJumbotron;
|
|
1153
|
+
exports.ptc_modal = PtcModal;
|
|
1154
|
+
exports.ptc_para = PtcPara;
|
|
1155
|
+
exports.ptc_picture = PtcPicture;
|
|
1156
|
+
exports.ptc_spacer = PtcSpacer;
|
|
1157
|
+
exports.ptc_svg_btn = PtcSvgBtn;
|
|
1158
|
+
exports.ptc_title = PtcTitle;
|
|
1159
|
+
exports.ptc_tooltip = PtcTooltip;
|