@ptcwebops/ptcw-design 1.2.0 → 1.2.2
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-example.cjs.entry.js +1 -1
- package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +43 -0
- package/dist/cjs/core-fd18b67a.js +3771 -0
- package/dist/cjs/icon-asset.cjs.entry.js +53 -0
- package/dist/cjs/interfaces-0ecd8027.js +15 -0
- package/dist/cjs/list-item.cjs.entry.js +33 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container_5.cjs.entry.js +452 -0
- package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +141 -0
- package/dist/cjs/ptc-button_8.cjs.entry.js +528 -0
- package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +8 -1
- package/dist/cjs/ptc-pagenation.cjs.entry.js +5 -5
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ptc-tab-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tab.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-title.cjs.entry.js +78 -0
- package/dist/cjs/ptc-tooltip.cjs.entry.js +90 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/sequential-bundle.cjs.entry.js +100 -0
- package/dist/cjs/tab-header.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/list-item/list-item.css +7 -0
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/{bundle-example → organism-bundles/bundle-example}/bundle-example.css +14 -4
- package/dist/collection/components/{bundle-jumbotron-example → organism-bundles/bundle-jumbotron-example}/bundle-jumbotron-example.js +1 -1
- package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.css +22 -0
- package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -0
- package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +781 -0
- package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +152 -0
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +0 -1
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.css +1 -1
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.css +1 -1
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +4 -2
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +47 -55
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +3 -3
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +8 -4
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +32 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +1 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +8 -4
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +12 -5
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +4 -4
- package/dist/collection/components/ptc-picture/ptc-picture.js +8 -5
- package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.css +1 -0
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +6 -4
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +2 -2
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.css +4 -0
- package/dist/collection/components/ptc-tabs/ptc-tabs.css +1 -0
- package/dist/collection/components/ptc-title/ptc-title.css +1 -1
- package/dist/collection/components/tab-header/tab-header.css +1 -1
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +4042 -56
- package/dist/esm/bundle-example.entry.js +2 -2
- package/dist/esm/bundle-jumbotron-example.entry.js +39 -0
- package/dist/esm/core-1c9d4889.js +3769 -0
- package/dist/esm/dropdown-item.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +49 -0
- package/dist/esm/{index-8e63c32d.js → index-4afc9d28.js} +1 -1
- package/dist/esm/interfaces-c1c73092.js +12 -0
- package/dist/esm/list-item.entry.js +29 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottie-player.entry.js +1 -1
- package/dist/esm/max-width-container_5.entry.js +444 -0
- 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-breadcrumb_2.entry.js +136 -0
- package/dist/esm/ptc-button_8.entry.js +517 -0
- package/dist/esm/ptc-card-bottom_3.entry.js +1 -1
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-checkbox.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
- package/dist/esm/ptc-filter-tag.entry.js +2 -2
- 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 +9 -2
- 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 +1 -1
- package/dist/esm/ptc-pagenation.entry.js +6 -6
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- package/dist/esm/ptc-pricing-block.entry.js +2 -2
- package/dist/esm/ptc-pricing-tabs.entry.js +4 -4
- 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 +1 -1
- 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-tab-list.entry.js +2 -2
- package/dist/esm/ptc-tab.entry.js +2 -2
- package/dist/esm/ptc-tabs.entry.js +2 -2
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptc-title.entry.js +74 -0
- package/dist/esm/ptc-tooltip.entry.js +86 -0
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptcw-design.js +3 -3
- package/dist/esm/sequential-bundle.entry.js +96 -0
- package/dist/esm/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +2 -2
- package/dist/ptcw-design/{p-f55984c2.entry.js → p-00b2c937.entry.js} +1 -1
- package/dist/ptcw-design/p-07059441.entry.js +1 -0
- package/dist/ptcw-design/{p-462567d1.entry.js → p-08f40716.entry.js} +1 -1
- package/dist/ptcw-design/{p-8c6b069b.entry.js → p-09a6b0a7.entry.js} +1 -1
- package/dist/ptcw-design/{p-1bc06d03.entry.js → p-0c1e7f62.entry.js} +1 -1
- package/dist/ptcw-design/p-0eeebc10.entry.js +1 -0
- package/dist/ptcw-design/{p-366528df.entry.js → p-10555016.entry.js} +1 -1
- package/dist/ptcw-design/p-11d73140.entry.js +1 -0
- package/dist/ptcw-design/{p-b922e3a5.entry.js → p-2ac4eb02.entry.js} +1 -1
- package/dist/ptcw-design/{p-fa0e4fe3.entry.js → p-2d0de92a.entry.js} +1 -1
- package/dist/ptcw-design/p-2feb5db1.entry.js +1 -0
- package/dist/ptcw-design/p-36a3f48e.entry.js +1 -0
- package/dist/ptcw-design/{p-cdff68d4.entry.js → p-372a6bb1.entry.js} +1 -1
- package/dist/ptcw-design/{p-00c9ae79.entry.js → p-3bc3c801.entry.js} +1 -1
- package/dist/ptcw-design/{p-ca6d7814.entry.js → p-3f88508e.entry.js} +1 -1
- package/dist/ptcw-design/{p-6872e11b.entry.js → p-4132db6b.entry.js} +1 -1
- package/dist/ptcw-design/{p-3bb54c51.entry.js → p-42424ba0.entry.js} +1 -1
- package/dist/ptcw-design/p-50e52c88.js +1 -0
- package/dist/ptcw-design/{p-61d91a69.entry.js → p-536abb90.entry.js} +1 -1
- package/dist/ptcw-design/p-55d7245e.entry.js +1 -0
- package/dist/ptcw-design/{p-f958e8c7.entry.js → p-588eb1d3.entry.js} +1 -1
- package/dist/ptcw-design/{p-c64a3715.entry.js → p-603576bb.entry.js} +1 -1
- package/dist/ptcw-design/{p-a43f3c42.entry.js → p-6756c89e.entry.js} +1 -1
- package/dist/ptcw-design/p-69dddd51.js +1 -0
- package/dist/ptcw-design/{p-d7d6eff1.entry.js → p-6a0b0d0e.entry.js} +1 -1
- package/dist/ptcw-design/{p-d43ff8d4.entry.js → p-6ab6a1e2.entry.js} +1 -1
- package/dist/ptcw-design/{p-8a1c2577.entry.js → p-6acd380a.entry.js} +1 -1
- package/dist/ptcw-design/{p-609f7161.entry.js → p-6bbccda8.entry.js} +1 -1
- package/dist/ptcw-design/{p-de1ceba8.entry.js → p-6f244989.entry.js} +1 -1
- package/dist/ptcw-design/p-7650e042.entry.js +1 -0
- package/dist/ptcw-design/{p-f81d880d.entry.js → p-77d3b816.entry.js} +1 -1
- package/dist/ptcw-design/p-7a83cae3.entry.js +1 -0
- package/dist/ptcw-design/{p-343f216f.entry.js → p-7f7594ee.entry.js} +1 -1
- package/dist/ptcw-design/{p-6e8222ce.entry.js → p-91db9d8a.entry.js} +1 -1
- package/dist/ptcw-design/p-91dc58c5.entry.js +1 -0
- package/dist/ptcw-design/{p-2181c8c7.entry.js → p-9805a542.entry.js} +1 -1
- package/dist/ptcw-design/p-9bbfeec6.entry.js +1 -0
- package/dist/ptcw-design/{p-63c06667.js → p-9dd25c18.js} +1 -1
- package/dist/ptcw-design/p-a4d49579.entry.js +1 -0
- package/dist/ptcw-design/{p-8a6acf0d.entry.js → p-a76bf4d6.entry.js} +1 -1
- package/dist/ptcw-design/p-aa62ab8c.entry.js +1 -0
- package/dist/ptcw-design/{p-1c9ed21b.entry.js → p-aae3d333.entry.js} +1 -1
- package/dist/ptcw-design/p-ab9d5bb9.entry.js +1 -0
- package/dist/ptcw-design/{p-af975d78.entry.js → p-b2d0228f.entry.js} +1 -1
- package/dist/ptcw-design/{p-a7b20fe7.entry.js → p-b5064c43.entry.js} +1 -1
- package/dist/ptcw-design/{p-55d298f5.entry.js → p-b73ea53a.entry.js} +1 -1
- package/dist/ptcw-design/p-bcbf087c.entry.js +1 -0
- package/dist/ptcw-design/{p-2ae39c65.entry.js → p-c0b1c34c.entry.js} +1 -1
- package/dist/ptcw-design/p-c17514f5.entry.js +1 -0
- package/dist/ptcw-design/{p-12780f09.entry.js → p-c326164f.entry.js} +1 -1
- package/dist/ptcw-design/{p-0f8784e9.entry.js → p-c5975914.entry.js} +1 -1
- package/dist/ptcw-design/p-c80aebb8.entry.js +1 -0
- package/dist/ptcw-design/{p-574680c3.entry.js → p-c83efab5.entry.js} +1 -1
- package/dist/ptcw-design/{p-a24ecd75.entry.js → p-c9342bd2.entry.js} +1 -1
- package/dist/ptcw-design/{p-ea19d8f6.entry.js → p-cb7b03fb.entry.js} +1 -1
- package/dist/ptcw-design/{p-dd6501a8.entry.js → p-cff0b2b0.entry.js} +1 -1
- package/dist/ptcw-design/{p-59058faa.entry.js → p-deed8ef6.entry.js} +1 -1
- package/dist/ptcw-design/{p-c7bd4d99.entry.js → p-e282af3d.entry.js} +1 -1
- package/dist/ptcw-design/{p-e4f1e8fd.entry.js → p-f733dad8.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/list-item/list-item.d.ts +1 -1
- package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -0
- package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -0
- package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +5 -6
- package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +3 -0
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +1 -0
- package/dist/types/components.d.ts +43 -7
- package/package.json +3 -4
- package/readme.md +1 -1
- package/dist/cjs/bundle-jumbotron-example_16.cjs.entry.js +0 -1131
- package/dist/cjs/ptc-card-content.cjs.entry.js +0 -68
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +0 -57
- package/dist/cjs/ptc-overlay.cjs.entry.js +0 -34
- package/dist/esm/bundle-jumbotron-example_16.entry.js +0 -1112
- package/dist/esm/ptc-card-content.entry.js +0 -64
- package/dist/esm/ptc-dynamic-card.entry.js +0 -53
- package/dist/esm/ptc-overlay.entry.js +0 -30
- package/dist/ptcw-design/p-46a6b69c.entry.js +0 -1
- package/dist/ptcw-design/p-46afd828.entry.js +0 -1
- package/dist/ptcw-design/p-47b2c76f.entry.js +0 -1
- package/dist/ptcw-design/p-598d16e5.entry.js +0 -1
- package/dist/ptcw-design/p-6b1eb02f.entry.js +0 -1
- package/dist/ptcw-design/p-a4e1afa5.entry.js +0 -1
- package/dist/ptcw-design/p-af3d5be7.entry.js +0 -1
- package/dist/ptcw-design/p-ce9f0355.entry.js +0 -1
- package/dist/ptcw-design/p-e91fbd67.entry.js +0 -1
- package/dist/ptcw-design/p-f6fe5efe.entry.js +0 -1
- package/dist/ptcw-design/p-fe1ff7d2.entry.js +0 -1
- /package/dist/collection/components/{bundle-example → organism-bundles/bundle-example}/bundle-example.js +0 -0
- /package/dist/collection/components/{bundle-jumbotron-example → organism-bundles/bundle-jumbotron-example}/bundle-jumbotron-example.css +0 -0
- /package/dist/types/components/{bundle-example → organism-bundles/bundle-example}/bundle-example.d.ts +0 -0
- /package/dist/types/components/{bundle-jumbotron-example → organism-bundles/bundle-jumbotron-example}/bundle-jumbotron-example.d.ts +0 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88135a6b.js');
|
|
6
|
+
const interfaces = require('./interfaces-0ecd8027.js');
|
|
7
|
+
|
|
8
|
+
const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
|
|
9
|
+
|
|
10
|
+
const MaxWidthContainer = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.maxWidth = undefined;
|
|
14
|
+
this.breakpoint = 768;
|
|
15
|
+
this.contentAlign = 'center';
|
|
16
|
+
}
|
|
17
|
+
componentDidLoad() {
|
|
18
|
+
this.handleResize();
|
|
19
|
+
window.addEventListener('resize', this.handleResize.bind(this));
|
|
20
|
+
}
|
|
21
|
+
disconnectedCallback() {
|
|
22
|
+
window.removeEventListener('resize', this.handleResize);
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const classMap = this.getCssClassMap();
|
|
26
|
+
return (index.h(index.Host, { class: classMap }, index.h("slot", null)));
|
|
27
|
+
}
|
|
28
|
+
getCssClassMap() {
|
|
29
|
+
return {
|
|
30
|
+
[this.contentAlign]: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
handleResize() {
|
|
34
|
+
// const selectedContainer = this.el.querySelector('.max-width-container');
|
|
35
|
+
if (this.el) {
|
|
36
|
+
if (window.innerWidth >= this.breakpoint) {
|
|
37
|
+
this.el.style.maxWidth = `${this.maxWidth}px`;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
this.el.style.maxWidth = 'initial';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
get el() { return index.getElement(this); }
|
|
45
|
+
};
|
|
46
|
+
MaxWidthContainer.style = maxWidthContainerCss;
|
|
47
|
+
|
|
48
|
+
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}";
|
|
49
|
+
|
|
50
|
+
const PtcBackgroundVideo = class {
|
|
51
|
+
constructor(hostRef) {
|
|
52
|
+
index.registerInstance(this, hostRef);
|
|
53
|
+
this.videoSrc = undefined;
|
|
54
|
+
this.posterSrc = undefined;
|
|
55
|
+
this.overlay = true;
|
|
56
|
+
this.type = 'default';
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
return (index.h(index.Host, { class: this.type }, index.h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }), this.overlay
|
|
60
|
+
? index.h("div", { class: "video-overlay" })
|
|
61
|
+
: "", this.type == 'default'
|
|
62
|
+
? index.h("slot", null)
|
|
63
|
+
: ""));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
PtcBackgroundVideo.style = ptcBackgroundVideoCss;
|
|
67
|
+
|
|
68
|
+
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}}";
|
|
69
|
+
|
|
70
|
+
const PtcImg = class {
|
|
71
|
+
constructor(hostRef) {
|
|
72
|
+
index.registerInstance(this, hostRef);
|
|
73
|
+
this.sizeXs = '510x340';
|
|
74
|
+
this.sizeSm = '1240x496';
|
|
75
|
+
this.sizeMd = '1366x500';
|
|
76
|
+
this.sizeLg = '1920x1080';
|
|
77
|
+
this.imgUrl = undefined;
|
|
78
|
+
this.imageType = 'smart-bg';
|
|
79
|
+
this.borderRadius = '';
|
|
80
|
+
this.loadMode = 'lazy-bg';
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Image Z Index
|
|
84
|
+
*/
|
|
85
|
+
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
86
|
+
WindowResize() {
|
|
87
|
+
this.setResponsiveBg();
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
const classMap = this.getCssClassMap();
|
|
91
|
+
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)));
|
|
92
|
+
}
|
|
93
|
+
componentDidLoad() {
|
|
94
|
+
this.addIntersectionObserver();
|
|
95
|
+
this.setResponsiveBg();
|
|
96
|
+
}
|
|
97
|
+
componentWillUpdate() {
|
|
98
|
+
this.addIntersectionObserver();
|
|
99
|
+
this.setResponsiveBg();
|
|
100
|
+
}
|
|
101
|
+
//responsive image
|
|
102
|
+
setResponsiveBg() {
|
|
103
|
+
// Define local variables
|
|
104
|
+
let backgrounds = (this.el || document).querySelectorAll(interfaces.ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
105
|
+
// Loop through all target elements
|
|
106
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
107
|
+
// Set current variables
|
|
108
|
+
el = backgrounds[i];
|
|
109
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
110
|
+
// If the data attribute exists, set the background
|
|
111
|
+
if (elData !== null) {
|
|
112
|
+
el.style.backgroundImage = "url('" + elData + "')";
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
if (typeof console == 'object') {
|
|
116
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
//lazy loading
|
|
122
|
+
addIntersectionObserver() {
|
|
123
|
+
if (!this.imgUrl) {
|
|
124
|
+
console.log('no image!');
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if ('IntersectionObserver' in window) {
|
|
128
|
+
let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
|
|
129
|
+
let bgObserver = new IntersectionObserver(entries => {
|
|
130
|
+
entries.forEach(entry => {
|
|
131
|
+
if (entry.isIntersecting) {
|
|
132
|
+
const image = entry.target;
|
|
133
|
+
image.classList.remove('lazy-bg');
|
|
134
|
+
bgObserver.unobserve(image);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
lazyLoadBgs.forEach(image => {
|
|
139
|
+
bgObserver.observe(image);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
getCssClassMap() {
|
|
144
|
+
return {
|
|
145
|
+
[this.imageType]: true,
|
|
146
|
+
'ptc-img': true,
|
|
147
|
+
[this.borderRadius]: true,
|
|
148
|
+
[this.loadMode]: true,
|
|
149
|
+
// [this.imageZIndex] : true
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
getCurrentBreakPoints() {
|
|
153
|
+
// Define local variables
|
|
154
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
155
|
+
// Append test node
|
|
156
|
+
doc.body.appendChild(temp);
|
|
157
|
+
// Loop through breakpoints
|
|
158
|
+
for (let i = interfaces.ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
|
|
159
|
+
env = interfaces.ResponsiveBgVariables.envs[i];
|
|
160
|
+
// Add classes
|
|
161
|
+
temp.className = 'hidden-' + env;
|
|
162
|
+
// Found breakpoint
|
|
163
|
+
if (temp.offsetParent === null) {
|
|
164
|
+
// Remove our test node
|
|
165
|
+
doc.body.removeChild(temp);
|
|
166
|
+
// Return current breakpoint
|
|
167
|
+
return env;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// Breakpoint not found, try fallback
|
|
171
|
+
doc.body.removeChild(temp);
|
|
172
|
+
return this.getFallbackBreakpoint();
|
|
173
|
+
}
|
|
174
|
+
getFallbackBreakpoint() {
|
|
175
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
176
|
+
return 'lg';
|
|
177
|
+
}
|
|
178
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
179
|
+
return 'md';
|
|
180
|
+
}
|
|
181
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
182
|
+
return 'sm';
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
return 'xs';
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
get el() { return index.getElement(this); }
|
|
189
|
+
};
|
|
190
|
+
PtcImg.style = ptcImgCss;
|
|
191
|
+
|
|
192
|
+
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:72px;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)}";
|
|
193
|
+
|
|
194
|
+
const PtcModal = class {
|
|
195
|
+
constructor(hostRef) {
|
|
196
|
+
index.registerInstance(this, hostRef);
|
|
197
|
+
this.closed = index.createEvent(this, "closed", 7);
|
|
198
|
+
this.opened = index.createEvent(this, "opened", 7);
|
|
199
|
+
this.iframeUrl = undefined;
|
|
200
|
+
this.size = 'sm';
|
|
201
|
+
this.show = false;
|
|
202
|
+
this.overlay = true;
|
|
203
|
+
this.fixed = false;
|
|
204
|
+
this.closeOnBlur = false;
|
|
205
|
+
this.rounded = false;
|
|
206
|
+
this.showHeaderFooter = false;
|
|
207
|
+
this.overlayHeight = undefined;
|
|
208
|
+
this.bodyOverflowSetting = undefined;
|
|
209
|
+
}
|
|
210
|
+
fireOnClosed(modal) {
|
|
211
|
+
this.closed.emit(modal);
|
|
212
|
+
}
|
|
213
|
+
fireOnOpened(modal) {
|
|
214
|
+
this.opened.emit(modal);
|
|
215
|
+
}
|
|
216
|
+
componentWillLoad() {
|
|
217
|
+
let body = document.querySelector('body');
|
|
218
|
+
this.bodyOverflowSetting = {
|
|
219
|
+
//overflow: body.style['overflow'],
|
|
220
|
+
overflowY: body.style['overflowY'],
|
|
221
|
+
overflowX: body.style['overflowX'],
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
componentWillRender() {
|
|
225
|
+
let body = document.querySelector('body');
|
|
226
|
+
if (body) {
|
|
227
|
+
if (this.show) {
|
|
228
|
+
//body.style['overflow'] = 'hidden';
|
|
229
|
+
body.style['overflowY'] = 'scroll';
|
|
230
|
+
body.style['overflowX'] = 'hidden';
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
//body.style['overflow'] = this.bodyOverflowSetting.overflow;
|
|
234
|
+
body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
|
|
235
|
+
body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
componentDidLoad() {
|
|
240
|
+
if (this.show) {
|
|
241
|
+
this.fireOnOpened(this);
|
|
242
|
+
}
|
|
243
|
+
if (this.showHeaderFooter) {
|
|
244
|
+
this.handleScroll();
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
componentDidUpdate() {
|
|
248
|
+
if (this.show) {
|
|
249
|
+
this.fireOnOpened(this);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
this.fireOnClosed(this);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
resizeIframe(e) {
|
|
256
|
+
let iFrame = e.target;
|
|
257
|
+
setTimeout(() => {
|
|
258
|
+
try {
|
|
259
|
+
if (iFrame.contentDocument) {
|
|
260
|
+
iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
iFrame.height = '616px'; //default
|
|
264
|
+
iFrame.removeAttribute('scrolling');
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
catch (error) {
|
|
268
|
+
console.log(error);
|
|
269
|
+
iFrame.height = '616px'; //default
|
|
270
|
+
iFrame.removeAttribute('scrolling');
|
|
271
|
+
}
|
|
272
|
+
iFrame.classList.add('ready');
|
|
273
|
+
}, 50);
|
|
274
|
+
}
|
|
275
|
+
handleScroll() {
|
|
276
|
+
let modal = this.el.shadowRoot.querySelector('.shadow-scroller');
|
|
277
|
+
if (modal) {
|
|
278
|
+
let body = modal.querySelector('.modal-body');
|
|
279
|
+
var height = body.clientHeight;
|
|
280
|
+
var scrollHeight = body.scrollHeight;
|
|
281
|
+
var scrollTop = body.scrollTop;
|
|
282
|
+
var offset = body.offsetHeight;
|
|
283
|
+
if (height < scrollHeight) { //has scrollbar
|
|
284
|
+
if (scrollTop > 0) { //can scroll up
|
|
285
|
+
modal.classList.add('scroll-top');
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
modal.classList.remove('scroll-top');
|
|
289
|
+
}
|
|
290
|
+
if (offset + scrollTop < scrollHeight) { //can scroll down
|
|
291
|
+
modal.classList.add('scroll-bottom');
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
modal.classList.remove('scroll-bottom');
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
close() {
|
|
300
|
+
this.show = false;
|
|
301
|
+
}
|
|
302
|
+
render() {
|
|
303
|
+
let content;
|
|
304
|
+
let overlay;
|
|
305
|
+
let type = this.iframeUrl ? 'frame' : 'html';
|
|
306
|
+
let closebtn = (index.h("div", { class: "close" }, index.h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } }, 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" })))));
|
|
307
|
+
if (this.iframeUrl) {
|
|
308
|
+
content = (index.h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
if (this.showHeaderFooter) {
|
|
312
|
+
content = (index.h("slot", { name: "body" }));
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
content = (index.h("slot", null));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
if (this.overlay) {
|
|
319
|
+
if (this.closeOnBlur) {
|
|
320
|
+
overlay = index.h("div", { class: "overlay", onClick: (_) => this.close() });
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
overlay = index.h("div", { class: "overlay" });
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return (index.h(index.Host, null, 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 ? [
|
|
327
|
+
index.h("div", { class: "modal-header" }, index.h("slot", { name: "header" }), closebtn),
|
|
328
|
+
index.h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
|
|
329
|
+
index.h("div", { class: "modal-footer" }, index.h("slot", { name: "footer" }))
|
|
330
|
+
] : [
|
|
331
|
+
closebtn,
|
|
332
|
+
index.h("div", { class: "modal-body" }, content)
|
|
333
|
+
]))));
|
|
334
|
+
}
|
|
335
|
+
get el() { return index.getElement(this); }
|
|
336
|
+
};
|
|
337
|
+
PtcModal.style = ptcModalCss;
|
|
338
|
+
|
|
339
|
+
const closeSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 42 41.485">
|
|
340
|
+
<g id="Group_1042" data-name="Group 1042" transform="rotate(180 108.25 87.993)">
|
|
341
|
+
<path id="Line_446" d="M0 0v39.486" class="cls-1" data-name="Line 446"></path>
|
|
342
|
+
<path id="Line_447" d="M0 0h40" class="cls-1" data-name="Line 447"></path>
|
|
343
|
+
<path id="Line_448" d="M0 33.592V0" class="cls-1" data-name="Line 448"></path>
|
|
344
|
+
<path id="Line_449" d="M23.994 0H0" class="cls-1" data-name="Line 449"></path>
|
|
345
|
+
<path id="Line_450" d="M0 0l17.596 17.596" class="cls-2" data-name="Line 450" transform="translate(187.229 147.226)"></path>
|
|
346
|
+
<path id="Line_451" d="M0 7.198L7.199 0" class="cls-2" data-name="Line 451" transform="translate(197.55 147.312)"></path>
|
|
347
|
+
<path id="Path_114" d="M0 7.2L7.2 0" class="cls-2" data-name="Path 114" transform="translate(187.313 157.549)"></path>
|
|
348
|
+
</g>
|
|
349
|
+
</svg>`;
|
|
350
|
+
|
|
351
|
+
const arrowSvgLeft = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
352
|
+
<g filter="url(#filter0_d_494_37)">
|
|
353
|
+
<circle cx="24" cy="22" r="20" fill="white"/>
|
|
354
|
+
<path d="M23.1444 16L23.1444 20.5762L31 20.5762L31 23.4239L23.1444 23.4239L23.1444 28L17 21.9669L23.1444 16Z" class="arrow"/>
|
|
355
|
+
</g>
|
|
356
|
+
<defs>
|
|
357
|
+
<filter id="filter0_d_494_37" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
358
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
359
|
+
<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"/>
|
|
360
|
+
<feOffset dy="2"/>
|
|
361
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
362
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
363
|
+
<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"/>
|
|
364
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_37"/>
|
|
365
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_37" result="shape"/>
|
|
366
|
+
</filter>
|
|
367
|
+
</defs>
|
|
368
|
+
</svg>
|
|
369
|
+
`;
|
|
370
|
+
|
|
371
|
+
const arrowSvgRight = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
372
|
+
<g filter="url(#filter0_d_494_34)">
|
|
373
|
+
<circle cx="24" cy="22" r="20" fill="white"/>
|
|
374
|
+
<path d="M24.8556 16L24.8556 20.5762L17 20.5762L17 23.4239L24.8556 23.4239L24.8556 28L31 21.9669L24.8556 16Z" class="arrow"/>
|
|
375
|
+
</g>
|
|
376
|
+
<defs>
|
|
377
|
+
<filter id="filter0_d_494_34" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
378
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
379
|
+
<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"/>
|
|
380
|
+
<feOffset dy="2"/>
|
|
381
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
382
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
383
|
+
<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"/>
|
|
384
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_34"/>
|
|
385
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_34" result="shape"/>
|
|
386
|
+
</filter>
|
|
387
|
+
</defs>
|
|
388
|
+
</svg>
|
|
389
|
+
`;
|
|
390
|
+
|
|
391
|
+
const backarrow = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 311 512">
|
|
392
|
+
<defs>
|
|
393
|
+
<style>
|
|
394
|
+
.cls-1 {
|
|
395
|
+
fill: #fff;
|
|
396
|
+
fill-rule: evenodd;
|
|
397
|
+
}
|
|
398
|
+
</style>
|
|
399
|
+
</defs>
|
|
400
|
+
<path class="cls-1" d="M251.762,512L311,452.638,114.774,256,311,59.362,251.762,0,0,252.29Z"/>
|
|
401
|
+
</svg>
|
|
402
|
+
`;
|
|
403
|
+
|
|
404
|
+
const play = `<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
405
|
+
<g filter="url(#filter0_d_241_171)">
|
|
406
|
+
<circle cx="42" cy="38" r="36" fill="#1F2024"/>
|
|
407
|
+
<circle cx="42" cy="38" r="35" stroke="#33A13C" stroke-width="2"/>
|
|
408
|
+
</g>
|
|
409
|
+
<path d="M58 38L34 51.8564L34 24.1436L58 38Z" fill="white"/>
|
|
410
|
+
<defs>
|
|
411
|
+
<filter id="filter0_d_241_171" x="0" y="0" width="84" height="84" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
412
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
413
|
+
<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"/>
|
|
414
|
+
<feMorphology radius="2" operator="dilate" in="SourceAlpha" result="effect1_dropShadow_241_171"/>
|
|
415
|
+
<feOffset dy="4"/>
|
|
416
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
417
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
418
|
+
<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"/>
|
|
419
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_241_171"/>
|
|
420
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_241_171" result="shape"/>
|
|
421
|
+
</filter>
|
|
422
|
+
</defs>
|
|
423
|
+
</svg>
|
|
424
|
+
`;
|
|
425
|
+
|
|
426
|
+
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}}";
|
|
427
|
+
|
|
428
|
+
const PtcSvgBtn = class {
|
|
429
|
+
constructor(hostRef) {
|
|
430
|
+
index.registerInstance(this, hostRef);
|
|
431
|
+
this.svgName = 'close';
|
|
432
|
+
this.display = 'block';
|
|
433
|
+
this.zIndex = undefined;
|
|
434
|
+
this.styles = undefined;
|
|
435
|
+
}
|
|
436
|
+
render() {
|
|
437
|
+
const classMap = this.getCssClassMap();
|
|
438
|
+
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));
|
|
439
|
+
}
|
|
440
|
+
getCssClassMap() {
|
|
441
|
+
return {
|
|
442
|
+
[this.display]: true,
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
PtcSvgBtn.style = ptcSvgBtnCss;
|
|
447
|
+
|
|
448
|
+
exports.max_width_container = MaxWidthContainer;
|
|
449
|
+
exports.ptc_background_video = PtcBackgroundVideo;
|
|
450
|
+
exports.ptc_img = PtcImg;
|
|
451
|
+
exports.ptc_modal = PtcModal;
|
|
452
|
+
exports.ptc_svg_btn = PtcSvgBtn;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88135a6b.js');
|
|
6
|
+
|
|
7
|
+
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}";
|
|
8
|
+
|
|
9
|
+
const PtcBreadcrumb = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.position = undefined;
|
|
13
|
+
this.removeTopMargin = false;
|
|
14
|
+
this.color = 'white';
|
|
15
|
+
this.styles = undefined;
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const classMap = this.getCssClassMap();
|
|
19
|
+
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)));
|
|
20
|
+
}
|
|
21
|
+
getCssClassMap() {
|
|
22
|
+
return {
|
|
23
|
+
[this.position]: !!this.position && this.position !== undefined ? true : false,
|
|
24
|
+
['remove-top-margin']: this.removeTopMargin ? true : false,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
PtcBreadcrumb.style = ptcBreadcrumbCss;
|
|
29
|
+
|
|
30
|
+
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}: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%)}}";
|
|
31
|
+
|
|
32
|
+
const PtcJumbotron = class {
|
|
33
|
+
constructor(hostRef) {
|
|
34
|
+
index.registerInstance(this, hostRef);
|
|
35
|
+
this.jumbotronType = 'light';
|
|
36
|
+
this.popupVideo = undefined;
|
|
37
|
+
this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
|
|
38
|
+
this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
|
|
39
|
+
this.pngSrc = undefined;
|
|
40
|
+
this.gifSrc = undefined;
|
|
41
|
+
this.bgVideoSrc = undefined;
|
|
42
|
+
this.bgSrc = undefined;
|
|
43
|
+
this.contentBackground = undefined;
|
|
44
|
+
this.contentColor = undefined;
|
|
45
|
+
this.textAlign = 'left';
|
|
46
|
+
this.isMobile = undefined;
|
|
47
|
+
}
|
|
48
|
+
handleResize() {
|
|
49
|
+
this.getContentBackground();
|
|
50
|
+
}
|
|
51
|
+
connectedCallback() {
|
|
52
|
+
this.getContentBackground();
|
|
53
|
+
}
|
|
54
|
+
componentDidLoad() {
|
|
55
|
+
if (!!this.popupVideo) {
|
|
56
|
+
const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
|
|
57
|
+
const PtcModal = this.el.shadowRoot.querySelector('#j-modal');
|
|
58
|
+
console.log('selected btn: ' + selectedBtn + '; selected Modal: ' + PtcModal);
|
|
59
|
+
selectedBtn.addEventListener('click', () => {
|
|
60
|
+
PtcModal.show = true;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
console.log('render');
|
|
66
|
+
const classMap = this.getCssClassMap();
|
|
67
|
+
let mediaElement;
|
|
68
|
+
switch (this.jumbotronType) {
|
|
69
|
+
case 'png':
|
|
70
|
+
mediaElement = (index.h("div", { class: "mobile-media-image" }, index.h("ptc-picture", { src: this.pngSrc })));
|
|
71
|
+
break;
|
|
72
|
+
case 'gif':
|
|
73
|
+
mediaElement = (index.h("div", { class: "mobile-media-image gif-bg" }, index.h("img", { src: this.gifSrc })));
|
|
74
|
+
break;
|
|
75
|
+
case 'dark-video':
|
|
76
|
+
case 'light-video':
|
|
77
|
+
mediaElement = index.h("ptc-background-video", { class: "video-ratio", overlay: false, "video-src": this.bgVideoSrc });
|
|
78
|
+
break;
|
|
79
|
+
default:
|
|
80
|
+
mediaElement = index.h("ptc-img", { "img-url": this.bgSrc });
|
|
81
|
+
}
|
|
82
|
+
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
|
|
83
|
+
? [
|
|
84
|
+
index.h("ptc-modal", { id: "j-modal", show: false, size: "lg", "iframe-url": this.popupVideo }),
|
|
85
|
+
index.h("ptc-svg-btn", { id: "j-modal-btn", "svg-name": "play", display: "block", "z-index": 2 }),
|
|
86
|
+
]
|
|
87
|
+
: 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)))));
|
|
88
|
+
}
|
|
89
|
+
getCssClassMap() {
|
|
90
|
+
return {
|
|
91
|
+
// [this.imageZIndex] : true
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
getContentBackground() {
|
|
95
|
+
if (window.innerWidth < 992) {
|
|
96
|
+
switch (this.jumbotronType) {
|
|
97
|
+
case 'light':
|
|
98
|
+
case 'light-video':
|
|
99
|
+
this.contentBackground = '#F3F3F3';
|
|
100
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
101
|
+
break;
|
|
102
|
+
case 'dark':
|
|
103
|
+
case 'dark-video':
|
|
104
|
+
this.contentBackground = 'var(--color-gray-09)';
|
|
105
|
+
this.contentColor = 'var(--color-gray-01)';
|
|
106
|
+
break;
|
|
107
|
+
default:
|
|
108
|
+
this.contentBackground = 'transparent';
|
|
109
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
110
|
+
}
|
|
111
|
+
this.isMobile = true;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
switch (this.jumbotronType) {
|
|
115
|
+
case 'light':
|
|
116
|
+
case 'light-video':
|
|
117
|
+
this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
|
|
118
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
119
|
+
break;
|
|
120
|
+
case 'dark':
|
|
121
|
+
case 'dark-video':
|
|
122
|
+
this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
|
|
123
|
+
this.contentColor = 'var(--color-gray-01)';
|
|
124
|
+
break;
|
|
125
|
+
case 'gif':
|
|
126
|
+
this.contentBackground = '#F3F3F3';
|
|
127
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
this.contentBackground = 'transparent';
|
|
131
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
132
|
+
}
|
|
133
|
+
this.isMobile = false;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
get el() { return index.getElement(this); }
|
|
137
|
+
};
|
|
138
|
+
PtcJumbotron.style = ptcJumbotronCss;
|
|
139
|
+
|
|
140
|
+
exports.ptc_breadcrumb = PtcBreadcrumb;
|
|
141
|
+
exports.ptc_jumbotron = PtcJumbotron;
|