@ptcwebops/ptcw-design 1.5.7 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{icon-asset_16.cjs.entry.js → bundle-jumbotron-example_14.cjs.entry.js} +401 -407
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +46 -0
- package/dist/cjs/ptc-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-card.cjs.entry.js +33 -0
- package/dist/cjs/ptc-product-category.cjs.entry.js +21 -0
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +80 -0
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +23 -0
- package/dist/cjs/ptc-product-list.cjs.entry.js +128 -0
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +130 -0
- package/dist/cjs/{ptc-social-share.cjs.entry.js → ptc-progress-bar_2.cjs.entry.js} +26 -5
- package/dist/cjs/ptc-slit-card.cjs.entry.js +36 -0
- package/dist/cjs/ptc-span.cjs.entry.js +3 -1
- package/dist/cjs/ptc-sticky-title.cjs.entry.js +34 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/icon-asset/media/designer.svg +36 -0
- package/dist/collection/components/max-width-container/max-width-container.js +19 -1
- package/dist/collection/components/ptc-card/ptc-card.css +4 -4
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +48 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -1
- package/dist/collection/components/ptc-link/ptc-link.css +23 -1
- package/dist/collection/components/ptc-link/ptc-link.js +2 -2
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +48 -0
- package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.css +13 -0
- package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -0
- package/dist/collection/components/ptc-slit-card/ptc-slit-card.css +64 -0
- package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -0
- package/dist/collection/components/ptc-social-share/ptc-social-share.js +7 -7
- package/dist/collection/components/ptc-span/ptc-span.css +34 -0
- package/dist/collection/components/ptc-span/ptc-span.js +22 -2
- package/dist/collection/components/ptc-sticky-title/media/logo.png +0 -0
- package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.css +115 -0
- package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -0
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +106 -15
- package/dist/esm/{icon-asset_16.entry.js → bundle-jumbotron-example_14.entry.js} +396 -400
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-back-to-top.entry.js +42 -0
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-product-card.entry.js +29 -0
- package/dist/esm/ptc-product-category.entry.js +17 -0
- package/dist/esm/ptc-product-dropdown.entry.js +76 -0
- package/dist/esm/ptc-product-highlight-card.entry.js +19 -0
- package/dist/esm/ptc-product-list.entry.js +124 -0
- package/dist/esm/ptc-product-sidebar.entry.js +126 -0
- package/dist/esm/{ptc-social-share.entry.js → ptc-progress-bar_2.entry.js} +26 -6
- package/dist/esm/ptc-slit-card.entry.js +32 -0
- package/dist/esm/ptc-span.entry.js +3 -1
- package/dist/esm/ptc-sticky-title.entry.js +30 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/media/designer.svg +36 -0
- package/dist/ptcw-design/media/logo.png +0 -0
- package/dist/ptcw-design/{p-9703a463.entry.js → p-046b0224.entry.js} +1 -1
- package/dist/ptcw-design/p-19ec063d.entry.js +1 -0
- package/dist/ptcw-design/{p-078e0f3d.entry.js → p-2404b2db.entry.js} +1 -1
- package/dist/ptcw-design/p-43e72cf0.entry.js +1 -0
- package/dist/ptcw-design/p-49dc9b68.entry.js +1 -0
- package/dist/ptcw-design/p-65513c45.entry.js +1 -0
- package/dist/ptcw-design/p-6c08595d.entry.js +1 -0
- package/dist/ptcw-design/p-798c2328.entry.js +1 -0
- package/dist/ptcw-design/p-8148b960.entry.js +1 -0
- package/dist/ptcw-design/p-ac5dfbd0.entry.js +1 -0
- package/dist/ptcw-design/p-af3a4142.entry.js +1 -0
- package/dist/ptcw-design/p-c26920ef.entry.js +1 -0
- package/dist/ptcw-design/{p-325b2d5c.entry.js → p-c2c85e61.entry.js} +1 -1
- package/dist/ptcw-design/p-cd44eedb.entry.js +1 -0
- package/dist/ptcw-design/p-e341cb46.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/max-width-container/max-width-container.d.ts +4 -0
- package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
- package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -0
- package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -0
- package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +1 -1
- package/dist/types/components/ptc-span/ptc-span.d.ts +5 -1
- package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -0
- package/dist/types/components.d.ts +135 -6
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +0 -50
- package/dist/cjs/interfaces-574e6df7.js +0 -15
- package/dist/cjs/max-width-container_3.cjs.entry.js +0 -236
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +0 -135
- package/dist/esm/bundle-jumbotron-example.entry.js +0 -46
- package/dist/esm/interfaces-7c0243be.js +0 -12
- package/dist/esm/max-width-container_3.entry.js +0 -230
- package/dist/esm/ptc-jumbotron.entry.js +0 -131
- package/dist/ptcw-design/p-0f8784e9.entry.js +0 -1
- package/dist/ptcw-design/p-45771c7d.entry.js +0 -1
- package/dist/ptcw-design/p-609d4967.entry.js +0 -1
- package/dist/ptcw-design/p-6e8222ce.entry.js +0 -1
- package/dist/ptcw-design/p-73ea7065.entry.js +0 -1
- package/dist/ptcw-design/p-7c0ee168.entry.js +0 -1
- package/dist/ptcw-design/p-ee1183b2.js +0 -1
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88135a6b.js');
|
|
6
|
-
const interfaces = require('./interfaces-574e6df7.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}: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}:host .play-button{position:absolute;top:1.5rem;right:1.5rem;width:34px;height:34px;z-index:99}@media (min-width: 768px){:host .play-button{top:unset;bottom:3.75rem;right:2rem}}";
|
|
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.playButtonTitle = undefined;
|
|
57
|
-
this.pauseButtonTitle = undefined;
|
|
58
|
-
this.paused = undefined;
|
|
59
|
-
this.type = 'default';
|
|
60
|
-
this.isIframe = false;
|
|
61
|
-
}
|
|
62
|
-
// componentDidLoad() {
|
|
63
|
-
// if(this.isIframe){
|
|
64
|
-
// const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
|
|
65
|
-
// const iframeDoc = iframe.contentDocument
|
|
66
|
-
// const iframeVideo = iframeDoc.querySelector('video');
|
|
67
|
-
// console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
|
|
68
|
-
// iframeVideo.style.objectFit = 'cover';
|
|
69
|
-
// }
|
|
70
|
-
// }
|
|
71
|
-
// @Method()
|
|
72
|
-
// async toggleVideo() {
|
|
73
|
-
// // show a prompt
|
|
74
|
-
// this.paused = !this.paused;
|
|
75
|
-
// let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
|
|
76
|
-
// if (video) {
|
|
77
|
-
// if (this.paused) {
|
|
78
|
-
// video.pause();
|
|
79
|
-
// } else {
|
|
80
|
-
// video.play().catch(z => console.error(z));
|
|
81
|
-
// }
|
|
82
|
-
// }
|
|
83
|
-
// console.log('Hello, I am a publish method from ptc-background-video!');
|
|
84
|
-
// }
|
|
85
|
-
componentWillLoad() {
|
|
86
|
-
this.paused = false;
|
|
87
|
-
}
|
|
88
|
-
render() {
|
|
89
|
-
const videoContent = 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 }));
|
|
90
|
-
return (index.h(index.Host, { class: this.type }, videoContent, !!this.videoSrc && this.playButtonTitle && (index.h("div", { class: "play-button" }, this.paused && (index.h("ptc-tooltip", { class: "play-btn", mode: "wrapper", description: this.playButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, index.h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), styles: "button.icon-toggle { padding :0px 8px; }" }, index.h("icon-asset", { name: "play", size: "small", type: "ptc", color: "black" })))), !this.paused && !!this.pauseButtonTitle && (index.h("ptc-tooltip", { class: "pause-btn", mode: "wrapper", description: this.pauseButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, index.h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e) }, index.h("icon-asset", { name: "pause", size: "small", type: "ptc", color: "black" })))))), this.overlay ? index.h("div", { class: "video-overlay" }) : '', this.type == 'default' ? index.h("slot", null) : ''));
|
|
91
|
-
}
|
|
92
|
-
toggleVideoPlay(e) {
|
|
93
|
-
e.preventDefault();
|
|
94
|
-
this.paused = !this.paused;
|
|
95
|
-
let video = this.el.shadowRoot.querySelector('video');
|
|
96
|
-
if (video) {
|
|
97
|
-
if (this.paused) {
|
|
98
|
-
video.pause();
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
video.play().catch(z => console.error(z));
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
get el() { return index.getElement(this); }
|
|
106
|
-
};
|
|
107
|
-
PtcBackgroundVideo.style = ptcBackgroundVideoCss;
|
|
108
|
-
|
|
109
|
-
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-standard-top{border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-large-top{border-top-left-radius:var(--ptc-border-radius-large);border-top-right-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}}";
|
|
110
|
-
|
|
111
|
-
const PtcImg = class {
|
|
112
|
-
constructor(hostRef) {
|
|
113
|
-
index.registerInstance(this, hostRef);
|
|
114
|
-
this.sizeXs = '510x340';
|
|
115
|
-
this.sizeSm = '1240x496';
|
|
116
|
-
this.sizeMd = '1366x500';
|
|
117
|
-
this.sizeLg = '1920x1080';
|
|
118
|
-
this.imgUrl = undefined;
|
|
119
|
-
this.imageType = 'smart-bg';
|
|
120
|
-
this.borderRadius = '';
|
|
121
|
-
this.loadMode = 'lazy-bg';
|
|
122
|
-
this.styles = undefined;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Image Z Index
|
|
126
|
-
*/
|
|
127
|
-
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
128
|
-
WindowResize() {
|
|
129
|
-
this.setResponsiveBg();
|
|
130
|
-
}
|
|
131
|
-
render() {
|
|
132
|
-
const classMap = this.getCssClassMap();
|
|
133
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), 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)));
|
|
134
|
-
}
|
|
135
|
-
componentDidLoad() {
|
|
136
|
-
this.addIntersectionObserver();
|
|
137
|
-
this.setResponsiveBg();
|
|
138
|
-
}
|
|
139
|
-
componentWillUpdate() {
|
|
140
|
-
this.addIntersectionObserver();
|
|
141
|
-
this.setResponsiveBg();
|
|
142
|
-
}
|
|
143
|
-
//responsive image
|
|
144
|
-
setResponsiveBg() {
|
|
145
|
-
// Define local variables
|
|
146
|
-
let backgrounds = (this.el || document).querySelectorAll(interfaces.ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
147
|
-
// Loop through all target elements
|
|
148
|
-
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
149
|
-
// Set current variables
|
|
150
|
-
el = backgrounds[i];
|
|
151
|
-
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
152
|
-
// If the data attribute exists, set the background
|
|
153
|
-
if (elData !== null) {
|
|
154
|
-
el.style.backgroundImage = "url('" + elData + "')";
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
if (typeof console == 'object') {
|
|
158
|
-
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
//lazy loading
|
|
164
|
-
addIntersectionObserver() {
|
|
165
|
-
if (!this.imgUrl) {
|
|
166
|
-
console.log('no image!');
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
if ('IntersectionObserver' in window) {
|
|
170
|
-
let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
|
|
171
|
-
let bgObserver = new IntersectionObserver(entries => {
|
|
172
|
-
entries.forEach(entry => {
|
|
173
|
-
if (entry.isIntersecting) {
|
|
174
|
-
const image = entry.target;
|
|
175
|
-
image.classList.remove('lazy-bg');
|
|
176
|
-
bgObserver.unobserve(image);
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
lazyLoadBgs.forEach(image => {
|
|
181
|
-
bgObserver.observe(image);
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
getCssClassMap() {
|
|
186
|
-
return {
|
|
187
|
-
[this.imageType]: true,
|
|
188
|
-
'ptc-img': true,
|
|
189
|
-
[this.borderRadius]: true,
|
|
190
|
-
[this.loadMode]: true,
|
|
191
|
-
// [this.imageZIndex] : true
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
getCurrentBreakPoints() {
|
|
195
|
-
// Define local variables
|
|
196
|
-
let doc = window.document, temp = doc.createElement('div'), env;
|
|
197
|
-
// Append test node
|
|
198
|
-
doc.body.appendChild(temp);
|
|
199
|
-
// Loop through breakpoints
|
|
200
|
-
for (let i = interfaces.ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
|
|
201
|
-
env = interfaces.ResponsiveBgVariables.envs[i];
|
|
202
|
-
// Add classes
|
|
203
|
-
temp.className = 'hidden-' + env;
|
|
204
|
-
// Found breakpoint
|
|
205
|
-
if (temp.offsetParent === null) {
|
|
206
|
-
// Remove our test node
|
|
207
|
-
doc.body.removeChild(temp);
|
|
208
|
-
// Return current breakpoint
|
|
209
|
-
return env;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
// Breakpoint not found, try fallback
|
|
213
|
-
doc.body.removeChild(temp);
|
|
214
|
-
return this.getFallbackBreakpoint();
|
|
215
|
-
}
|
|
216
|
-
getFallbackBreakpoint() {
|
|
217
|
-
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
218
|
-
return 'lg';
|
|
219
|
-
}
|
|
220
|
-
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
221
|
-
return 'md';
|
|
222
|
-
}
|
|
223
|
-
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
224
|
-
return 'sm';
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return 'xs';
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
get el() { return index.getElement(this); }
|
|
231
|
-
};
|
|
232
|
-
PtcImg.style = ptcImgCss;
|
|
233
|
-
|
|
234
|
-
exports.max_width_container = MaxWidthContainer;
|
|
235
|
-
exports.ptc_background_video = PtcBackgroundVideo;
|
|
236
|
-
exports.ptc_img = PtcImg;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88135a6b.js');
|
|
6
|
-
|
|
7
|
-
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-white{background-color:var(--color-white)}.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}.u-border-radius-standard{border-radius:var(--ptc-border-radius-standard)}.u-border-radius-large{border-radius:var(--ptc-border-radius-large)}.u-border-radius-pill{border-radius:var(--ptc-border-radius-pill)}.u-border-radius-circle{border-radius:var(--ptc-border-radius-circle)}@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}}@media only screen and (min-width: 992px){.grid-order-1-lg{order:1}.grid-order-2-lg{order:2}.grid-order-3-lg{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}.u-align-self-start{align-self:start}.u-align-self-center{align-self:center}.u-align-self-stretch{align-self:stretch}.u-justify-self-start{justify-self:start}.u-justify-self-center{justify-self:center}.u-justify-self-stretch{justify-self:stretch}.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}}@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)}}.all-product-banner{padding:50px 0 44px 0px}@media only screen and (min-width: 992px){.all-product-banner{padding:50px 0 72px 0px;display:flex;min-height:300px;justify-content:center;align-items:center}}: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;z-index:999}.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}.gif-bg img{width:100%;height:auto}@media only screen and (min-width: 768px){.gif-bg img{width:auto}}.video-ratio{position:relative;overflow:hidden;height:0;padding-bottom:100%}@media screen and (min-width: 550px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 768px){.video-ratio{padding-bottom:56.25%}}@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:min(578px, 46.67%)}}@media only screen and (min-width: 1440px){.video-ratio{padding-bottom:min(578px, 39.67%)}}.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-07);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;display:none;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.desk-gif-adjustment{display:flex}}.desk-gif-adjustment img{width:100%}@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}}";
|
|
8
|
-
|
|
9
|
-
const PtcJumbotron = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.jumbotronType = 'light';
|
|
13
|
-
this.hasPopupVideo = false;
|
|
14
|
-
this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
|
|
15
|
-
this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
|
|
16
|
-
this.pngSrc = undefined;
|
|
17
|
-
this.gifSrc = undefined;
|
|
18
|
-
this.bgVideoSrc = undefined;
|
|
19
|
-
this.bgSrc = undefined;
|
|
20
|
-
this.isIframe = false;
|
|
21
|
-
this.playButtonTitle = undefined;
|
|
22
|
-
this.pauseButtonTitle = undefined;
|
|
23
|
-
this.contentBackground = undefined;
|
|
24
|
-
this.contentColor = undefined;
|
|
25
|
-
this.textAlign = 'left';
|
|
26
|
-
this.isMobile = undefined;
|
|
27
|
-
}
|
|
28
|
-
handleResize() {
|
|
29
|
-
this.getContentBackground();
|
|
30
|
-
this.adjustJumbotronHeight();
|
|
31
|
-
}
|
|
32
|
-
connectedCallback() {
|
|
33
|
-
this.getContentBackground();
|
|
34
|
-
}
|
|
35
|
-
componentDidLoad() {
|
|
36
|
-
// if (!!this.popupVideo) {
|
|
37
|
-
// const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
|
|
38
|
-
// const PtcModal: HTMLPtcModalElement = this.el.shadowRoot.querySelector('#j-modal');
|
|
39
|
-
// if (selectedBtn && PtcModal) {
|
|
40
|
-
// selectedBtn.addEventListener('click', function () {
|
|
41
|
-
// PtcModal.show = true;
|
|
42
|
-
// });
|
|
43
|
-
// const iframe = PtcModal.shadowRoot.querySelector('iframe');
|
|
44
|
-
// console.log('iframe')
|
|
45
|
-
// console.log(iframe);
|
|
46
|
-
// const iframeDoc= iframe.contentDocument
|
|
47
|
-
// //const shadowVideo = shadowIframe.querySelector('document')
|
|
48
|
-
// console.log('video: ')
|
|
49
|
-
// console.log(iframeDoc)
|
|
50
|
-
// }
|
|
51
|
-
// }
|
|
52
|
-
this.adjustJumbotronHeight();
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
console.log('render');
|
|
56
|
-
const classMap = this.getCssClassMap();
|
|
57
|
-
let mediaElement;
|
|
58
|
-
switch (this.jumbotronType) {
|
|
59
|
-
case 'png':
|
|
60
|
-
mediaElement = (index.h("div", { class: "mobile-media-image" }, index.h("ptc-picture", { src: this.pngSrc })));
|
|
61
|
-
break;
|
|
62
|
-
case 'gif':
|
|
63
|
-
mediaElement = (index.h("div", { class: "mobile-media-image gif-bg" }, index.h("img", { src: this.gifSrc })));
|
|
64
|
-
break;
|
|
65
|
-
case 'dark-video':
|
|
66
|
-
case 'light-video':
|
|
67
|
-
mediaElement = (index.h("ptc-background-video", { class: "video-ratio", overlay: false, "video-src": this.bgVideoSrc, isIframe: this.isIframe, "play-button-title": this.playButtonTitle, "pause-button-title": this.pauseButtonTitle }));
|
|
68
|
-
break;
|
|
69
|
-
default:
|
|
70
|
-
mediaElement = index.h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
|
|
71
|
-
}
|
|
72
|
-
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("slot", { name: "main-title" }), 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.hasPopupVideo ? index.h("slot", { name: "video" }) : 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)))));
|
|
73
|
-
}
|
|
74
|
-
getCssClassMap() {
|
|
75
|
-
return {
|
|
76
|
-
// [this.imageZIndex] : true
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
getContentBackground() {
|
|
80
|
-
if (window.innerWidth < 992) {
|
|
81
|
-
switch (this.jumbotronType) {
|
|
82
|
-
case 'light':
|
|
83
|
-
case 'light-video':
|
|
84
|
-
this.contentBackground = '#F3F3F3';
|
|
85
|
-
this.contentColor = 'var(--color-gray-10)';
|
|
86
|
-
break;
|
|
87
|
-
case 'dark':
|
|
88
|
-
case 'dark-video':
|
|
89
|
-
this.contentBackground = 'var(--color-gray-09)';
|
|
90
|
-
this.contentColor = 'var(--color-gray-01)';
|
|
91
|
-
break;
|
|
92
|
-
default:
|
|
93
|
-
this.contentBackground = 'transparent';
|
|
94
|
-
this.contentColor = 'var(--color-gray-10)';
|
|
95
|
-
}
|
|
96
|
-
this.isMobile = true;
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
switch (this.jumbotronType) {
|
|
100
|
-
case 'light':
|
|
101
|
-
case 'light-video':
|
|
102
|
-
this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
|
|
103
|
-
this.contentColor = 'var(--color-gray-10)';
|
|
104
|
-
break;
|
|
105
|
-
case 'dark':
|
|
106
|
-
case 'dark-video':
|
|
107
|
-
this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
|
|
108
|
-
this.contentColor = 'var(--color-gray-01)';
|
|
109
|
-
break;
|
|
110
|
-
case 'gif':
|
|
111
|
-
this.contentBackground = '#F3F3F3';
|
|
112
|
-
this.contentColor = 'var(--color-gray-10)';
|
|
113
|
-
break;
|
|
114
|
-
default:
|
|
115
|
-
this.contentBackground = 'transparent';
|
|
116
|
-
this.contentColor = 'var(--color-gray-10)';
|
|
117
|
-
}
|
|
118
|
-
this.isMobile = false;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
adjustJumbotronHeight() {
|
|
122
|
-
const contentContainerH = this.el.shadowRoot.querySelector('.content-container').clientHeight;
|
|
123
|
-
const videoEle = !!this.el.shadowRoot.querySelector('.video-ratio') ? this.el.shadowRoot.querySelector('.video-ratio') : null;
|
|
124
|
-
if (contentContainerH < 500 && videoEle && !this.isMobile) {
|
|
125
|
-
videoEle.style.paddingBottom = '500px';
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
!!videoEle ? (videoEle.style.paddingBottom = '') : null;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
get el() { return index.getElement(this); }
|
|
132
|
-
};
|
|
133
|
-
PtcJumbotron.style = ptcJumbotronCss;
|
|
134
|
-
|
|
135
|
-
exports.ptc_jumbotron = PtcJumbotron;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-8e63c32d.js';
|
|
2
|
-
|
|
3
|
-
const bundleJumbotronExampleCss = ":host{display:block}";
|
|
4
|
-
|
|
5
|
-
const BundleJumbotronExample = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.jumbotron = 'light';
|
|
9
|
-
this.isIframe = false;
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
let $pngSrc;
|
|
13
|
-
let $gifSrc;
|
|
14
|
-
let $bgVideoSrc;
|
|
15
|
-
let $bgSrc;
|
|
16
|
-
let $popupVideo;
|
|
17
|
-
//replace dummy data
|
|
18
|
-
if (this.jumbotron === 'light' || this.jumbotron === 'dark') {
|
|
19
|
-
$bgSrc =
|
|
20
|
-
'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80';
|
|
21
|
-
}
|
|
22
|
-
else if (this.jumbotron === 'dark-video' || this.jumbotron === 'light-video') {
|
|
23
|
-
//$bgVideoSrc = "https://www.ptc.com/-/media/Videos/wind-turbine.mp4";
|
|
24
|
-
// if is iframe use src from iframe
|
|
25
|
-
$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';
|
|
26
|
-
}
|
|
27
|
-
else if (this.jumbotron === 'png') {
|
|
28
|
-
$pngSrc =
|
|
29
|
-
'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';
|
|
30
|
-
}
|
|
31
|
-
else if (this.jumbotron === 'gif') {
|
|
32
|
-
$gifSrc = 'https://media.giphy.com/media/TDQkojbHj3wTS/giphy.gif';
|
|
33
|
-
}
|
|
34
|
-
//Optional: set $popupVideo
|
|
35
|
-
//$popupVideo = "https://www.youtube.com/embed/w0mJCtK9sDY";
|
|
36
|
-
return (h(Host, null, h("ptc-jumbotron", Object.assign({ "jumbotron-type": this.jumbotron }, (!!$pngSrc && { pngSrc: $pngSrc }), (!!$gifSrc && { gifSrc: $gifSrc }), (!!$bgVideoSrc && { bgVideoSrc: $bgVideoSrc }), (!!$bgSrc && { bgSrc: $bgSrc }), (!!$popupVideo ), { "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)
|
|
37
|
-
,
|
|
38
|
-
"is-iframe": this.isIframe }), h("ptc-breadcrumb", Object.assign({ slot: "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'white' } : { color: 'primary-gray' }), (this.jumbotron === 'text' ? { position: 'center' } : {})), 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"), h("list-item", Object.assign({ "list-type": "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "Current Page")), h("ptc-title", { slot: "main-title", type: "h1", upperline: "no-upperline", "title-size": "xxxx-large", "title-height": "densest", "title-weight": "w-8", "title-margin": "margin-flush", "text-align": "left" // if type=text, text-align=center, otherwise left
|
|
39
|
-
,
|
|
40
|
-
"title-color": "gray" //if dark, dark-video then "gray-1"
|
|
41
|
-
}, h("ptc-tooltip", { "text-lines": "3", description: "Sed ut perspiciatis unde omnis iste natus", position: "right" })), h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-primary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum dolor sit amet"), h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum"))));
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
BundleJumbotronExample.style = bundleJumbotronExampleCss;
|
|
45
|
-
|
|
46
|
-
export { BundleJumbotronExample as bundle_jumbotron_example };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
let ResponsiveBgVariables = {
|
|
2
|
-
envs: ['xs', 'sm', 'md', 'lg'],
|
|
3
|
-
selector: '.ptc-img',
|
|
4
|
-
interval: 250
|
|
5
|
-
};
|
|
6
|
-
let ResponsivePictureVariables = {
|
|
7
|
-
envs: ['xs', 'sm', 'md', 'lg'],
|
|
8
|
-
selector: '.ptc-picture',
|
|
9
|
-
interval: 250
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { ResponsivePictureVariables as R, ResponsiveBgVariables as a };
|