@ptcwebops/ptcw-design 6.3.17-beta → 6.3.18-beta
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/academic-form-test.cjs.entry.js +0 -7
- package/dist/cjs/blog-detail-content_2.cjs.entry.js +0 -1
- package/dist/cjs/blog-detail-layout.cjs.entry.js +0 -1
- package/dist/cjs/blogs-search-section.cjs.entry.js +0 -2
- package/dist/cjs/bundle-example.cjs.entry.js +0 -2
- package/dist/cjs/embedded-form.cjs.entry.js +0 -9
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -3
- package/dist/cjs/footer-form.cjs.entry.js +0 -2
- package/dist/cjs/homepage-jumbotron.cjs.entry.js +0 -2
- package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +0 -1
- package/dist/cjs/jumbotron-sub-mune.cjs.entry.js +0 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-background-video.cjs.entry.js +0 -23
- package/dist/cjs/ptc-brightcov-video.cjs.entry.js +0 -33
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -1
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +0 -2
- package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +0 -10
- package/dist/cjs/ptc-form-checkbox_4.cjs.entry.js +0 -12
- package/dist/cjs/ptc-form.cjs.entry.js +0 -7
- package/dist/cjs/ptc-icon-card-slider-example.cjs.entry.js +1 -11
- package/dist/cjs/ptc-icon-component.cjs.entry.js +0 -13
- package/dist/cjs/ptc-img.cjs.entry.js +0 -1
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +3 -2
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -8
- package/dist/cjs/ptc-mobile-select.cjs.entry.js +0 -3
- package/dist/cjs/ptc-nav-slider.cjs.entry.js +0 -9
- package/dist/cjs/ptc-office-locations.cjs.entry.js +1 -1
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -1
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +0 -2
- package/dist/cjs/ptc-progress-bar.cjs.entry.js +0 -1
- package/dist/cjs/ptc-readmore-new.cjs.entry.js +0 -1
- package/dist/cjs/ptc-readmore-v3.cjs.entry.js +0 -3
- package/dist/cjs/ptc-related-card-rail.cjs.entry.js +0 -2
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -2
- package/dist/cjs/ptc-subnav.cjs.entry.js +0 -1
- package/dist/cjs/ptc-tab-list.cjs.entry.js +0 -1
- package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +0 -13
- package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +0 -17
- package/dist/cjs/ptc-value-led-layout.cjs.entry.js +0 -1
- package/dist/cjs/ptc-white-paper.cjs.entry.js +0 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/sequential-bundle-example.cjs.entry.js +0 -12
- package/dist/cjs/sequential-bundle.cjs.entry.js +0 -1
- package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.js +0 -1
- package/dist/collection/components/jumbotron-sub-mune/jumbotron-sub-mune.js +0 -1
- package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.js +0 -1
- package/dist/collection/components/organism-bundles/blog-detail-layout/blog-detail-layout.js +0 -1
- package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.js +0 -2
- package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +0 -2
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +0 -3
- package/dist/collection/components/organism-bundles/form/academic-form/academic-form-test.js +0 -7
- package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +0 -9
- package/dist/collection/components/organism-bundles/form/footer-form/footer-form.js +0 -2
- package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.js +0 -7
- package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js +0 -2
- package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.css +4 -0
- package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.js +0 -10
- package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +0 -1
- package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +0 -12
- package/dist/collection/components/ptc-background-video/ptc-background-video.js +0 -23
- package/dist/collection/components/ptc-brightcov-video/ptc-brightcov-video.js +0 -33
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +0 -1
- package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.js +0 -2
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +0 -1
- package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.js +0 -2
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +0 -13
- package/dist/collection/components/ptc-img/ptc-img.js +0 -1
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +18 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +20 -1
- package/dist/collection/components/ptc-media-card/ptc-media-card.js +1 -8
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +0 -3
- package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +1 -1
- package/dist/collection/components/ptc-picture/ptc-picture.js +0 -1
- package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +0 -2
- package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +0 -1
- package/dist/collection/components/ptc-readmore-new/ptc-readmore-new.js +0 -1
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.js +0 -3
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +0 -2
- package/dist/collection/components/ptc-scroll-button/ptc-scroll-button.js +0 -2
- package/dist/collection/components/ptc-select/ptc-select.js +0 -2
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +0 -1
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +0 -8
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +0 -13
- package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +0 -9
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.js +0 -17
- package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +0 -1
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +0 -1
- package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +0 -9
- package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +0 -1
- package/dist/custom-elements/index.js +7 -227
- package/dist/esm/academic-form-test.entry.js +0 -7
- package/dist/esm/blog-detail-content_2.entry.js +0 -1
- package/dist/esm/blog-detail-layout.entry.js +0 -1
- package/dist/esm/blogs-search-section.entry.js +0 -2
- package/dist/esm/bundle-example.entry.js +0 -2
- package/dist/esm/embedded-form.entry.js +0 -9
- package/dist/esm/event-jumbotron-example.entry.js +0 -3
- package/dist/esm/footer-form.entry.js +0 -2
- package/dist/esm/homepage-jumbotron.entry.js +0 -2
- package/dist/esm/jumbotron-sub-menu.entry.js +0 -1
- package/dist/esm/jumbotron-sub-mune.entry.js +0 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +0 -23
- package/dist/esm/ptc-brightcov-video.entry.js +0 -33
- package/dist/esm/ptc-card-bottom_2.entry.js +0 -1
- package/dist/esm/ptc-data-lookup.entry.js +0 -2
- package/dist/esm/ptc-filter-dropdown_4.entry.js +0 -10
- package/dist/esm/ptc-form-checkbox_4.entry.js +0 -12
- package/dist/esm/ptc-form.entry.js +0 -7
- package/dist/esm/ptc-icon-card-slider-example.entry.js +1 -11
- package/dist/esm/ptc-icon-component.entry.js +0 -13
- package/dist/esm/ptc-img.entry.js +0 -1
- package/dist/esm/ptc-jumbotron.entry.js +3 -2
- package/dist/esm/ptc-media-card.entry.js +1 -8
- package/dist/esm/ptc-mobile-select.entry.js +0 -3
- package/dist/esm/ptc-nav-slider.entry.js +0 -9
- package/dist/esm/ptc-office-locations.entry.js +1 -1
- package/dist/esm/ptc-picture.entry.js +0 -1
- package/dist/esm/ptc-product-dropdown.entry.js +0 -2
- package/dist/esm/ptc-progress-bar.entry.js +0 -1
- package/dist/esm/ptc-readmore-new.entry.js +0 -1
- package/dist/esm/ptc-readmore-v3.entry.js +0 -3
- package/dist/esm/ptc-related-card-rail.entry.js +0 -2
- package/dist/esm/ptc-scroll-button.entry.js +0 -2
- package/dist/esm/ptc-subnav.entry.js +0 -1
- package/dist/esm/ptc-tab-list.entry.js +0 -1
- package/dist/esm/ptc-theater-video-modal.entry.js +0 -13
- package/dist/esm/ptc-tooltip-v2.entry.js +0 -17
- package/dist/esm/ptc-value-led-layout.entry.js +0 -1
- package/dist/esm/ptc-white-paper.entry.js +0 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/sequential-bundle-example.entry.js +0 -12
- package/dist/esm/sequential-bundle.entry.js +0 -1
- package/dist/ptcw-design/p-0529caaa.entry.js +1 -0
- package/dist/ptcw-design/p-156017ea.entry.js +1 -0
- package/dist/ptcw-design/p-36abe396.entry.js +1 -0
- package/dist/ptcw-design/p-3ed4a7ed.entry.js +1 -0
- package/dist/ptcw-design/p-4c146daf.entry.js +1 -0
- package/dist/ptcw-design/p-4f3dea53.entry.js +1 -0
- package/dist/ptcw-design/p-5311c6e1.entry.js +1 -0
- package/dist/ptcw-design/p-560b05a5.entry.js +1 -0
- package/dist/ptcw-design/{p-291072b4.entry.js → p-643ad4d7.entry.js} +1 -1
- package/dist/ptcw-design/p-71e0321d.entry.js +1 -0
- package/dist/ptcw-design/p-71fbb799.entry.js +1 -0
- package/dist/ptcw-design/p-761a31f8.entry.js +1 -0
- package/dist/ptcw-design/p-7bdf1e64.entry.js +1 -0
- package/dist/ptcw-design/p-89f0cf12.entry.js +1 -0
- package/dist/ptcw-design/p-a59c9cdc.entry.js +1 -0
- package/dist/ptcw-design/p-a8504f11.entry.js +1 -0
- package/dist/ptcw-design/p-aebf443f.entry.js +1 -0
- package/dist/ptcw-design/{p-dc8c0a06.entry.js → p-baeee2b4.entry.js} +1 -1
- package/dist/ptcw-design/p-bf56d5a3.entry.js +1 -0
- package/dist/ptcw-design/{p-c1aab261.entry.js → p-d66debb3.entry.js} +1 -1
- package/dist/ptcw-design/p-dfb400ed.entry.js +1 -0
- package/dist/ptcw-design/p-e43c30c9.entry.js +1 -0
- package/dist/ptcw-design/p-e4eb925f.entry.js +1 -0
- package/dist/ptcw-design/p-e5369c4d.entry.js +1 -0
- package/dist/ptcw-design/p-e6c04255.entry.js +1 -0
- package/dist/ptcw-design/p-ea5f747e.entry.js +68 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-01075feb.entry.js +0 -1
- package/dist/ptcw-design/p-03a917f8.entry.js +0 -1
- package/dist/ptcw-design/p-17f6e145.entry.js +0 -1
- package/dist/ptcw-design/p-25a25451.entry.js +0 -1
- package/dist/ptcw-design/p-3738a01f.entry.js +0 -1
- package/dist/ptcw-design/p-3c3a7b54.entry.js +0 -1
- package/dist/ptcw-design/p-6a3caf2b.entry.js +0 -1
- package/dist/ptcw-design/p-6b32020a.entry.js +0 -1
- package/dist/ptcw-design/p-721edfda.entry.js +0 -1
- package/dist/ptcw-design/p-821f0ff9.entry.js +0 -1
- package/dist/ptcw-design/p-8c692bd6.entry.js +0 -1
- package/dist/ptcw-design/p-8e8c7a3a.entry.js +0 -1
- package/dist/ptcw-design/p-94f99d2d.entry.js +0 -1
- package/dist/ptcw-design/p-99b45d23.entry.js +0 -1
- package/dist/ptcw-design/p-a412ff0a.entry.js +0 -1
- package/dist/ptcw-design/p-a4f65d28.entry.js +0 -1
- package/dist/ptcw-design/p-bd6af63e.entry.js +0 -1
- package/dist/ptcw-design/p-d0581b07.entry.js +0 -68
- package/dist/ptcw-design/p-d20cf3c5.entry.js +0 -1
- package/dist/ptcw-design/p-d3229458.entry.js +0 -1
- package/dist/ptcw-design/p-ee534211.entry.js +0 -1
- package/dist/ptcw-design/p-feecf6b5.entry.js +0 -1
- package/dist/ptcw-design/p-ffb0ff97.entry.js +0 -1
package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.js
CHANGED
|
@@ -110,7 +110,6 @@ export class BlogsSearchSection {
|
|
|
110
110
|
this.getResults();
|
|
111
111
|
});
|
|
112
112
|
mobileFiltersModalCta.addEventListener('clicked', () => {
|
|
113
|
-
console.log("Modal open");
|
|
114
113
|
mobileFiltersModal.setAttribute('show', 'true');
|
|
115
114
|
});
|
|
116
115
|
mobileFiltersModal.addEventListener('opened', () => {
|
|
@@ -173,7 +172,6 @@ export class BlogsSearchSection {
|
|
|
173
172
|
}
|
|
174
173
|
getResults() {
|
|
175
174
|
setTimeout(() => {
|
|
176
|
-
console.log("Blogs search section resolving promise");
|
|
177
175
|
this.preloaderDependency.resolve();
|
|
178
176
|
// this.isLoading = false;
|
|
179
177
|
this.data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
|
|
@@ -13,7 +13,6 @@ export class BundleExample {
|
|
|
13
13
|
this.updateMaxHeight();
|
|
14
14
|
}
|
|
15
15
|
squareHeightChangedHandler(event) {
|
|
16
|
-
//console.log('Received the height:', event.detail); // Here you get the height
|
|
17
16
|
this.cardHeights = [...this.cardHeights, event.detail];
|
|
18
17
|
this.updateMaxHeight();
|
|
19
18
|
}
|
|
@@ -26,7 +25,6 @@ export class BundleExample {
|
|
|
26
25
|
}
|
|
27
26
|
updateMaxHeight() {
|
|
28
27
|
this.maxCardHeight = Math.max(...this.cardHeights, 0); // Update maxHeight based on the current cardHeights
|
|
29
|
-
console.log('cardheights: ' + this.cardHeights);
|
|
30
28
|
}
|
|
31
29
|
render() {
|
|
32
30
|
return (h(Host, null, h("div", { class: "is-grid has-col-2 has-col-2-sm has-col-3-md has-col-4-lg has-col-5-xl has-col-gap-md has-row-gap-md" }, h("div", { class: "is-col-1" }, h("ptc-card-wrapper", { "card-type": "card-video", class: "is-col-4", "card-link": "https://www.ptc.com", "link-title": "ptc", "is-loading": this.isLoading }, h("ptc-card-content", { "card-type": "card-video", "is-loading": this.isLoading }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, h("ptc-picture", { alt: "image-test", "border-radius": "radius-large", src: "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data" }))), h("ptc-card-bottom", { "card-type": "card-video" }, h("ptc-para", { "font-size": "x-small", "font-weight": "w-7", "para-line-h": "line-height-19", "para-color": "white", "para-margin": "margin-top-3" }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, "3 Reasons Why Engineering and Manufacturing are Disjointed"), h("ptc-skeleton", { "is-loading": this.isLoading, animated: true, width: "80%", "top-margin": "var(--ptc-element-spacing-01)" }))))), h("div", { class: "is-col-1" }, h("ptc-card-wrapper", { "card-type": "card-video", class: "is-col-4", "card-link": "https://www.ptc.com", "link-title": "ptc", "is-loading": this.isLoading }, h("ptc-card-content", { "card-type": "card-video", "is-loading": this.isLoading }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, h("ptc-picture", { alt: "image-test", "border-radius": "radius-large", src: "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data" }))), h("ptc-card-bottom", { "card-type": "card-video" }, h("ptc-para", { "font-size": "x-small", "font-weight": "w-7", "para-line-h": "line-height-19", "para-color": "white", "para-margin": "margin-top-3" }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, "3 Reasons Why Engineering and Manufacturing are Disjointed"), h("ptc-skeleton", { "is-loading": this.isLoading, animated: true, width: "80%", "top-margin": "var(--ptc-element-spacing-01)" }))))), h("div", { class: "is-col-1" }, h("ptc-card-wrapper", { "card-type": "card-video", class: "is-col-4", "card-link": "https://www.ptc.com", "link-title": "ptc", "is-loading": this.isLoading }, h("ptc-card-content", { "card-type": "card-video", "is-loading": this.isLoading }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, h("ptc-picture", { alt: "image-test", "border-radius": "radius-large", src: "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data" }))), h("ptc-card-bottom", { "card-type": "card-video" }, h("ptc-para", { "font-size": "x-small", "font-weight": "w-7", "para-line-h": "line-height-19", "para-color": "white", "para-margin": "margin-top-3" }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, "3 Reasons Why Engineering and Manufacturing are Disjointed"), h("ptc-skeleton", { "is-loading": this.isLoading, animated: true, width: "80%", "top-margin": "var(--ptc-element-spacing-01)" }))))), h("div", { class: "is-col-1" }, h("ptc-card-wrapper", { "card-type": "card-video", class: "is-col-4", "card-link": "https://www.ptc.com", "link-title": "ptc", "is-loading": this.isLoading }, h("ptc-card-content", { "card-type": "card-video", "is-loading": this.isLoading }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, h("ptc-picture", { alt: "image-test", "border-radius": "radius-large", src: "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data" }))), h("ptc-card-bottom", { "card-type": "card-video" }, h("ptc-para", { "font-size": "x-small", "font-weight": "w-7", "para-line-h": "line-height-19", "para-color": "white", "para-margin": "margin-top-3" }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, "3 Reasons Why Engineering and Manufacturing are Disjointed"), h("ptc-skeleton", { "is-loading": this.isLoading, animated: true, width: "80%", "top-margin": "var(--ptc-element-spacing-01)" }))))), h("div", { class: "is-col-1" }, h("ptc-card-wrapper", { "card-type": "card-video", class: "is-col-4", "card-link": "https://www.ptc.com", "link-title": "ptc", "is-loading": this.isLoading }, h("ptc-card-content", { "card-type": "card-video", "is-loading": this.isLoading }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, h("ptc-picture", { alt: "image-test", "border-radius": "radius-large", src: "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data" }))), h("ptc-card-bottom", { "card-type": "card-video" }, h("ptc-para", { "font-size": "x-small", "font-weight": "w-7", "para-line-h": "line-height-19", "para-color": "white", "para-margin": "margin-top-3" }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, "3 Reasons Why Engineering and Manufacturing are Disjointed"), h("ptc-skeleton", { "is-loading": this.isLoading, animated: true, width: "80%", "top-margin": "var(--ptc-element-spacing-01)" }))))), h("div", { class: "is-col-1" }, h("ptc-card-wrapper", { "card-type": "card-video", class: "is-col-4", "card-link": "https://www.ptc.com", "link-title": "ptc", "is-loading": this.isLoading }, h("ptc-card-content", { "card-type": "card-video", "is-loading": this.isLoading }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, h("ptc-picture", { alt: "image-test", "border-radius": "radius-large", src: "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data" }))), h("ptc-card-bottom", { "card-type": "card-video" }, h("ptc-para", { "font-size": "x-small", "font-weight": "w-7", "para-line-h": "line-height-19", "para-color": "white", "para-margin": "margin-top-3" }, h("ptc-skeleton", { "is-loading": this.isLoading, animated: true }, "3 Reasons Why Engineering and Manufacturing are Disjointed"), h("ptc-skeleton", { "is-loading": this.isLoading, animated: true, width: "80%", "top-margin": "var(--ptc-element-spacing-01)" }))))))));
|
|
@@ -87,7 +87,6 @@ export class EventJumbotronExample {
|
|
|
87
87
|
else if (!this.isDesktop) {
|
|
88
88
|
if (!this.isDragging) {
|
|
89
89
|
const modal = document.getElementById(`modal-${cardIndex}`);
|
|
90
|
-
// console.log('open: ' + modal.id);
|
|
91
90
|
modal.show = true;
|
|
92
91
|
}
|
|
93
92
|
}
|
|
@@ -115,7 +114,6 @@ export class EventJumbotronExample {
|
|
|
115
114
|
const card = panel.querySelector('.no-content-card');
|
|
116
115
|
if (card) {
|
|
117
116
|
const button = card.querySelector('ptc-button');
|
|
118
|
-
// console.log('button: ' + button.innerHTML);
|
|
119
117
|
if (button) {
|
|
120
118
|
const link = button.shadowRoot.querySelector('a');
|
|
121
119
|
if (link) {
|
|
@@ -192,7 +190,6 @@ export class EventJumbotronExample {
|
|
|
192
190
|
document.addEventListener('keydown', event => {
|
|
193
191
|
if (event.key === 'Tab' || event.key === 'Enter' || event.key === ' ') {
|
|
194
192
|
this.openedWithKeyboard = true;
|
|
195
|
-
// console.log('keyboard status: ' + this.openedWithKeyboard);
|
|
196
193
|
}
|
|
197
194
|
});
|
|
198
195
|
document.addEventListener('mousedown', () => {
|
package/dist/collection/components/organism-bundles/form/academic-form/academic-form-test.js
CHANGED
|
@@ -39,27 +39,20 @@ export class AcademicForm {
|
|
|
39
39
|
this.formData.lastName = this.lastNameEle.inputValue;
|
|
40
40
|
this.formData.company = this.companyEle.inputValue;
|
|
41
41
|
this.formData.phone = this.phoneEle.inputValue;
|
|
42
|
-
// this.formData.country = this.countryEle.inputValue;
|
|
43
|
-
// this.formData.inquiryReason= this.inquiryreasonEle.inputValue;
|
|
44
|
-
// this.formData.howhearselfreport = this.howhearselfreport.inputValue;
|
|
45
|
-
// console.log("get form Data: " + this.formData.email)
|
|
46
42
|
if (this.isValid()) {
|
|
47
43
|
const formSubmitEvent = new CustomEvent('formSubmit', {
|
|
48
44
|
detail: this.formData,
|
|
49
45
|
bubbles: true,
|
|
50
46
|
});
|
|
51
47
|
this.el.dispatchEvent(formSubmitEvent);
|
|
52
|
-
console.log('Form Submitted: ' + this.formData);
|
|
53
48
|
}
|
|
54
49
|
else {
|
|
55
50
|
console.log('Form validation failed');
|
|
56
|
-
console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone);
|
|
57
51
|
}
|
|
58
52
|
}
|
|
59
53
|
isValid() {
|
|
60
54
|
const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
|
|
61
55
|
const invalidLength = document.querySelectorAll('.invalid-field').length;
|
|
62
|
-
// console.log('invalid fields length: ' + invalidLength), check the select field
|
|
63
56
|
return (email !== '' &&
|
|
64
57
|
phone !== '' &&
|
|
65
58
|
firstName !== '' &&
|
|
@@ -40,13 +40,6 @@ export class EmbeddedForm {
|
|
|
40
40
|
console.log('No Data Lookup...');
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
// private init_notme(): void{
|
|
44
|
-
// const topAdditional = document.getElementById('not-me-additional-top');
|
|
45
|
-
// const bottomAdditional = document.getElementById('not-me-additional-bottom');
|
|
46
|
-
// console.log("top: " + topAdditional)
|
|
47
|
-
// if(topAdditional) topAdditional.style.display = 'none';
|
|
48
|
-
// if(bottomAdditional) bottomAdditional.style.display = 'none';
|
|
49
|
-
// }
|
|
50
43
|
handleInputChange(field, value) {
|
|
51
44
|
this.formData = Object.assign(Object.assign({}, this.formData), { [field]: value });
|
|
52
45
|
}
|
|
@@ -69,7 +62,6 @@ export class EmbeddedForm {
|
|
|
69
62
|
});
|
|
70
63
|
this.el.dispatchEvent(formSubmitEvent);
|
|
71
64
|
this.isSubmitted = true;
|
|
72
|
-
console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone, this.formData.country, this.formData.inquiryReason, this.formData.howhearselfreport, this.formData.policyChecked);
|
|
73
65
|
}
|
|
74
66
|
else {
|
|
75
67
|
console.log('Form validation failed');
|
|
@@ -83,7 +75,6 @@ export class EmbeddedForm {
|
|
|
83
75
|
isValid() {
|
|
84
76
|
const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
|
|
85
77
|
const invalidLength = document.querySelectorAll('.invalid-field').length;
|
|
86
|
-
// console.log('invalid fields length: ' + invalidLength), check the select field
|
|
87
78
|
return (email !== '' &&
|
|
88
79
|
phone !== '' &&
|
|
89
80
|
firstName !== '' &&
|
|
@@ -36,11 +36,9 @@ export class FooterForm {
|
|
|
36
36
|
bubbles: true,
|
|
37
37
|
});
|
|
38
38
|
this.el.dispatchEvent(formSubmitEvent);
|
|
39
|
-
console.log('Form Submitted: ' + this.formData);
|
|
40
39
|
}
|
|
41
40
|
else {
|
|
42
41
|
console.log('Form validation failed');
|
|
43
|
-
console.log('Form Submitted: ' + this.formData.email);
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
isValid() {
|
|
@@ -39,27 +39,20 @@ export class PtcForm {
|
|
|
39
39
|
this.formData.lastName = this.lastNameEle.inputValue;
|
|
40
40
|
this.formData.company = this.companyEle.inputValue;
|
|
41
41
|
this.formData.phone = this.phoneEle.inputValue;
|
|
42
|
-
// this.formData.country = this.countryEle.inputValue;
|
|
43
|
-
// this.formData.inquiryReason= this.inquiryreasonEle.inputValue;
|
|
44
|
-
// this.formData.howhearselfreport = this.howhearselfreport.inputValue;
|
|
45
|
-
// console.log("get form Data: " + this.formData.email)
|
|
46
42
|
if (this.isValid()) {
|
|
47
43
|
const formSubmitEvent = new CustomEvent('formSubmit', {
|
|
48
44
|
detail: this.formData,
|
|
49
45
|
bubbles: true,
|
|
50
46
|
});
|
|
51
47
|
this.el.dispatchEvent(formSubmitEvent);
|
|
52
|
-
console.log('Form Submitted: ' + this.formData);
|
|
53
48
|
}
|
|
54
49
|
else {
|
|
55
50
|
console.log('Form validation failed');
|
|
56
|
-
console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone);
|
|
57
51
|
}
|
|
58
52
|
}
|
|
59
53
|
isValid() {
|
|
60
54
|
const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
|
|
61
55
|
const invalidLength = document.querySelectorAll('.invalid-field').length;
|
|
62
|
-
// console.log('invalid fields length: ' + invalidLength), check the select field
|
|
63
56
|
return (email !== '' &&
|
|
64
57
|
phone !== '' &&
|
|
65
58
|
firstName !== '' &&
|
package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js
CHANGED
|
@@ -57,7 +57,6 @@ export class HomepageJumbotron {
|
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
});
|
|
60
|
-
console.log('running swiper');
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
destroySlider() {
|
|
@@ -91,7 +90,6 @@ export class HomepageJumbotron {
|
|
|
91
90
|
updateTileElements() {
|
|
92
91
|
const tiles = Array.from(this.el.querySelectorAll(`[slot^="jumbotron-tile-${this.activeTab}"]`));
|
|
93
92
|
this.tileElements = tiles;
|
|
94
|
-
//console.log('tile check: ' + tiles[0].outerHTML);
|
|
95
93
|
}
|
|
96
94
|
onItemSelected(event) {
|
|
97
95
|
this.isTransitioning = true;
|
|
@@ -1136,4 +1136,8 @@ swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,
|
|
|
1136
1136
|
}
|
|
1137
1137
|
.ptc-icon-card-slider-wrapper .swiper-container {
|
|
1138
1138
|
clip-path: inset(0px -10px 0px -10px);
|
|
1139
|
+
padding-left: 24px;
|
|
1140
|
+
padding-right: 24px;
|
|
1141
|
+
margin-left: -24px;
|
|
1142
|
+
margin-right: -24px;
|
|
1139
1143
|
}
|
|
@@ -4,16 +4,6 @@ export class PtcIconCardSliderExample {
|
|
|
4
4
|
componentDidLoad() {
|
|
5
5
|
setTimeout(() => {
|
|
6
6
|
let list = this.el.querySelector('.ptc-icon-slider-cards');
|
|
7
|
-
// let slides = list.querySelectorAll('.swiper-wrapper .swiper-slide');
|
|
8
|
-
// const marginRight = 40; // Margin-right in pixels
|
|
9
|
-
// const totalMargins = (slides.length) * marginRight; // Total margin space for all slides
|
|
10
|
-
// const containerWidth = list.clientWidth - totalMargins; // Available width after margins
|
|
11
|
-
// if (slides.length < 4) {
|
|
12
|
-
// console.log('Less than 4 slides detected. Adjusting widths...');
|
|
13
|
-
// slides.forEach((slide) => {
|
|
14
|
-
// (slide as HTMLElement).style.flex = `1 0 ${containerWidth / Math.min(3, slides.length)}px`;
|
|
15
|
-
// });
|
|
16
|
-
// }
|
|
17
7
|
this.listSwp = new Swiper(list, {
|
|
18
8
|
modules: [Navigation, Pagination, Scrollbar, Mousewheel],
|
|
19
9
|
slidesPerView: 'auto',
|
|
@@ -11,17 +11,12 @@ export class SequentialBundleExample {
|
|
|
11
11
|
}
|
|
12
12
|
handleResize() {
|
|
13
13
|
this.updateIsMobile();
|
|
14
|
-
// console.log('handleResize: isMobile: ' + this.isMobile);
|
|
15
14
|
}
|
|
16
15
|
watchStateHandler() {
|
|
17
|
-
console.log('Runing Watch/ismobilechange: isMobile updated and Start handleIsMobileChange');
|
|
18
|
-
console.log('Start Watch: isMobile: ' + this.isMobile);
|
|
19
16
|
if (this.isMobile && !this.mySwiper && this.isConnected) {
|
|
20
|
-
console.log('watch/ismobileChange condition1: Run swiper');
|
|
21
17
|
let that = this;
|
|
22
18
|
const createSwiper = () => {
|
|
23
19
|
let tempSwiperContainer = that.el.shadowRoot.querySelector('.swiper-container');
|
|
24
|
-
console.log("find container: " + tempSwiperContainer);
|
|
25
20
|
if (tempSwiperContainer) {
|
|
26
21
|
that.mySwiper = new Swiper(tempSwiperContainer, {
|
|
27
22
|
slidesPerView: "auto",
|
|
@@ -47,25 +42,19 @@ export class SequentialBundleExample {
|
|
|
47
42
|
createSwiper();
|
|
48
43
|
}
|
|
49
44
|
else if (!this.isMobile && this.mySwiper) {
|
|
50
|
-
console.log("watch/ismobileChange condition2: it's not swiper and remove it");
|
|
51
45
|
this.mySwiper.destroy(true, true);
|
|
52
46
|
this.mySwiper = null;
|
|
53
47
|
}
|
|
54
48
|
}
|
|
55
49
|
connectedCallback() {
|
|
56
|
-
console.log('START! isMobile: ' + this.isMobile);
|
|
57
50
|
//if screen is mobile when first load
|
|
58
51
|
this.updateIsMobile();
|
|
59
|
-
console.log("ConnectedCallback: isMobile: " + this.isMobile);
|
|
60
52
|
this.isConnected = true;
|
|
61
53
|
}
|
|
62
54
|
componentDidLoad() {
|
|
63
|
-
console.log('Component Did Load');
|
|
64
55
|
this.watchStateHandler();
|
|
65
56
|
}
|
|
66
57
|
disconnectedCallback() {
|
|
67
|
-
console.log("Running disconnectedCb");
|
|
68
|
-
//window.removeEventListener('resize', this.handleResize);
|
|
69
58
|
if (this.mySwiper) {
|
|
70
59
|
this.mySwiper.destroy(true, true);
|
|
71
60
|
this.mySwiper = null;
|
|
@@ -106,7 +95,6 @@ export class SequentialBundleExample {
|
|
|
106
95
|
])));
|
|
107
96
|
}
|
|
108
97
|
updateIsMobile() {
|
|
109
|
-
// console.log("Checking isMobile...")
|
|
110
98
|
this.isMobile = window.innerWidth < 1200;
|
|
111
99
|
}
|
|
112
100
|
static get is() { return "sequential-bundle-example"; }
|
|
@@ -17,29 +17,6 @@ export class PtcBackgroundVideo {
|
|
|
17
17
|
this.isIframe = false;
|
|
18
18
|
this.loadedTrue = false;
|
|
19
19
|
}
|
|
20
|
-
// componentDidLoad() {
|
|
21
|
-
// if(this.isIframe){
|
|
22
|
-
// const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
|
|
23
|
-
// const iframeDoc = iframe.contentDocument
|
|
24
|
-
// const iframeVideo = iframeDoc.querySelector('video');
|
|
25
|
-
// console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
|
|
26
|
-
// iframeVideo.style.objectFit = 'cover';
|
|
27
|
-
// }
|
|
28
|
-
// }
|
|
29
|
-
// @Method()
|
|
30
|
-
// async toggleVideo() {
|
|
31
|
-
// // show a prompt
|
|
32
|
-
// this.paused = !this.paused;
|
|
33
|
-
// let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
|
|
34
|
-
// if (video) {
|
|
35
|
-
// if (this.paused) {
|
|
36
|
-
// video.pause();
|
|
37
|
-
// } else {
|
|
38
|
-
// video.play().catch(z => console.error(z));
|
|
39
|
-
// }
|
|
40
|
-
// }
|
|
41
|
-
// console.log('Hello, I am a publish method from ptc-background-video!');
|
|
42
|
-
// }
|
|
43
20
|
componentDidLoad() {
|
|
44
21
|
if (this.defer) {
|
|
45
22
|
nextUserInteractionEvent(this).then(() => {
|
|
@@ -6,39 +6,6 @@ export class PtcBrightcovVideo {
|
|
|
6
6
|
componentDidLoad() {
|
|
7
7
|
// this.loadBrightcovePlayer();
|
|
8
8
|
}
|
|
9
|
-
// loadBrightcovePlayer() {
|
|
10
|
-
// // Load the Brightcove Player library
|
|
11
|
-
// const script = document.createElement('script');
|
|
12
|
-
// script.src = 'https://players.brightcove.net/1532789042001/dNyUv9zZ6_default/index.min.js'; // Replace with your actual account and player IDs
|
|
13
|
-
// script.async = true;
|
|
14
|
-
// script.onerror = (error) => {
|
|
15
|
-
// console.error('Error loading Brightcove Player:', error);
|
|
16
|
-
// };
|
|
17
|
-
// this.el.appendChild(script);
|
|
18
|
-
// script.onload = () => this.initializeVideo();
|
|
19
|
-
// const bcStyle = document.createElement('link');
|
|
20
|
-
// bcStyle.href = 'https://players.brightcove.net/videojs-bc-playlist-ui/3/videojs-bc-playlist-ui.css';
|
|
21
|
-
// bcStyle.onerror = (error) => {
|
|
22
|
-
// console.error('Error loading Brightcove styles:', error);
|
|
23
|
-
// };
|
|
24
|
-
// this.el.appendChild(bcStyle);
|
|
25
|
-
// bcStyle.onload = () => this.initializeVideo();
|
|
26
|
-
// }
|
|
27
|
-
// initializeVideo() {
|
|
28
|
-
// console.log('Initializing video with ID:', this.videoId);
|
|
29
|
-
// const videoContainer = this.el.querySelector('.video-container');
|
|
30
|
-
// if (videoContainer && this.videoId) {
|
|
31
|
-
// videoContainer.innerHTML = `<video-js
|
|
32
|
-
// id="bcPlayer"
|
|
33
|
-
// data-account="1532789042001"
|
|
34
|
-
// data-player="dNyUv9zZ6_default"
|
|
35
|
-
// data-embed="default"
|
|
36
|
-
// data-video-id="${this.videoId}"
|
|
37
|
-
// controls
|
|
38
|
-
// class="vjs-fill"
|
|
39
|
-
// ></video-js>`;
|
|
40
|
-
// }
|
|
41
|
-
// }
|
|
42
9
|
render() {
|
|
43
10
|
return (h("div", { class: 'aspect-ratio-container' }, h("div", { class: "video-container" }, h("video-js", { id: "bcPlayer", "data-account": "1532789042001", "data-player": "dNyUv9zZ6", "data-embed": "default", "data-video-id": "6337173859112", controls: "", "data-application-id": "", class: "vjs-fill" }), h("script", { src: "https://players.brightcove.net/1532789042001/dNyUv9zZ6_default/index.min.js" }))));
|
|
44
11
|
}
|
|
@@ -28,7 +28,6 @@ export class PtcCardBottom {
|
|
|
28
28
|
}
|
|
29
29
|
async addClassOnDefaultSlot() {
|
|
30
30
|
const slot = this.el.shadowRoot.querySelector('slot:not([name])');
|
|
31
|
-
console.log('slot: ' + slot);
|
|
32
31
|
const assignedElements = slot.assignedElements();
|
|
33
32
|
assignedElements.forEach((ele) => {
|
|
34
33
|
!ele.classList.contains('event-podcast') && ele.classList.add('event-podcast');
|
|
@@ -78,7 +78,6 @@ export class PtcDataLookup {
|
|
|
78
78
|
init_notme() {
|
|
79
79
|
const topAdditional = document.getElementById('not-me-additional-top');
|
|
80
80
|
const bottomAdditional = document.getElementById('not-me-additional-bottom');
|
|
81
|
-
console.log("top: " + topAdditional);
|
|
82
81
|
if (topAdditional)
|
|
83
82
|
topAdditional.style.display = 'none';
|
|
84
83
|
if (bottomAdditional)
|
|
@@ -87,7 +86,6 @@ export class PtcDataLookup {
|
|
|
87
86
|
async performDataLookup() {
|
|
88
87
|
if (this.isInitialized) {
|
|
89
88
|
this.elqLib.user_elq_email = this.getCookie('elq-uid');
|
|
90
|
-
console.log("elqlib.user_elq_email: " + this.elqLib.user_elq_email);
|
|
91
89
|
this.elqLib.find_eloqua_contact();
|
|
92
90
|
}
|
|
93
91
|
}
|
|
@@ -27,7 +27,6 @@ export class PtcFormCheckbox {
|
|
|
27
27
|
this.checkboxChanged.emit(isCheckedStatus);
|
|
28
28
|
this.isChecked = isCheckedStatus;
|
|
29
29
|
this.validateCheckbox();
|
|
30
|
-
console.log('log: isChecked:' + this.isChecked);
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
componentWillLoad() {
|
|
@@ -58,7 +57,6 @@ export class PtcFormCheckbox {
|
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
getValidationMessage(type) {
|
|
61
|
-
// console.log("lang type: " + type);
|
|
62
60
|
return ValidationMessages[this.language][type];
|
|
63
61
|
}
|
|
64
62
|
handleKeyDown(event) {
|
|
@@ -56,23 +56,10 @@ export class PtcIconComponent {
|
|
|
56
56
|
nextEl: this.swiperButtonNextRef,
|
|
57
57
|
prevEl: this.swiperButtonPrevRef,
|
|
58
58
|
},
|
|
59
|
-
// keyboard: {
|
|
60
|
-
// enabled: true,
|
|
61
|
-
// onlyInViewport: true
|
|
62
|
-
// }
|
|
63
59
|
});
|
|
64
60
|
}
|
|
65
61
|
}
|
|
66
|
-
//@Listen('readMoreRendered', { target: 'window' })
|
|
67
|
-
//handlereadMorePressed(el) {
|
|
68
|
-
// if(this.iconSwiper && el){
|
|
69
|
-
// this.iconSwiper.slideReset(0.001);
|
|
70
|
-
// this.iconSwiper.updateAutoHeight(0.001);
|
|
71
|
-
// }
|
|
72
|
-
//}
|
|
73
62
|
disconnectedCallback() {
|
|
74
|
-
console.log("Running disconnectedCb");
|
|
75
|
-
//window.removeEventListener('resize', this.handleResize);
|
|
76
63
|
if (this.iconSwiper) {
|
|
77
64
|
this.iconSwiper.destroy(true, true);
|
|
78
65
|
this.iconSwiper = null;
|
|
@@ -1303,6 +1303,20 @@ a:focus-visible {
|
|
|
1303
1303
|
z-index: 1;
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
|
+
.logo-frame {
|
|
1307
|
+
background-color: transparent;
|
|
1308
|
+
margin-top: 24px;
|
|
1309
|
+
display: flex;
|
|
1310
|
+
width: 152px;
|
|
1311
|
+
height: max-content;
|
|
1312
|
+
}
|
|
1313
|
+
.logo-frame img {
|
|
1314
|
+
box-sizing: border-box;
|
|
1315
|
+
max-width: 100%;
|
|
1316
|
+
height: 100%;
|
|
1317
|
+
max-height: 64.02px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1306
1320
|
.hp-adjustments {
|
|
1307
1321
|
background-color: var(--color-black);
|
|
1308
1322
|
height: auto;
|
|
@@ -1525,6 +1539,10 @@ a:focus-visible {
|
|
|
1525
1539
|
margin-bottom: 0;
|
|
1526
1540
|
margin-top: 20px;
|
|
1527
1541
|
}
|
|
1542
|
+
:host(.text-jumbotron) .parent .logo-frame {
|
|
1543
|
+
justify-self: center;
|
|
1544
|
+
justify-content: center;
|
|
1545
|
+
}
|
|
1528
1546
|
|
|
1529
1547
|
:host(.png-jumbotron) .desktop-media-image,
|
|
1530
1548
|
:host(.png-jumbotron) .mobile-media-image {
|
|
@@ -28,6 +28,7 @@ export class PtcJumbotron {
|
|
|
28
28
|
this.blogAuthorQueryHref = "";
|
|
29
29
|
this.blogAuthorQueryTarget = "";
|
|
30
30
|
this.hasCountdown = false;
|
|
31
|
+
this.logo = "";
|
|
31
32
|
this.styles = undefined;
|
|
32
33
|
this.defer = undefined;
|
|
33
34
|
this.hasCtaSlot = undefined;
|
|
@@ -69,7 +70,7 @@ export class PtcJumbotron {
|
|
|
69
70
|
default:
|
|
70
71
|
mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
|
|
71
72
|
}
|
|
72
|
-
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: { 'parent': true, 'light-links': this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video', 'hp-adjustments': this.isHomepage, 'transitioning': this.isTransitioning } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: { "ptc-container": true, "content-layout": true, 'hp-container': this.isHomepage, 'blog-container': (this.jumbotronType === "blog") } }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("span", { class: "main-content-items" }, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (!this.isHomepage) && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), !this.isHomepage && (h("ptc-para", { styles: `p{color: ${this.contentColor}!important;}`, "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": "w-4", "para-margin": `${this.jumbotronType === 'text' || this.jumbotronType === 'blog' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left', "seo-compatibility-mode": true }, h("p", { innerHTML: this.subTitle, style: { margin: '0' } }), h("p", { style: { margin: '0' } }, h("slot", { name: "blog-date" })), this.jumbotronType === 'blog' && h("div", null, h("ptc-spacer", { breakpoint: 'x-small', size: 'medium' }), h("ptc-spacer", { breakpoint: 'small', size: 'small' }), h("div", { id: "header-blog-author", slot: "blog-author" }, h("div", { class: "image" }, h("img", { alt: this.blogAuthorImageAlt, src: this.blogAuthorImage })), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("a", { class: "blog-author-name mf-listen", tabindex: "0", href: this.blogAuthorQueryHref, target: this.blogAuthorQueryTarget, "aria-label": "Other blogs by author" }, this.blogAuthorName)))))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo && this.jumbotronType !== 'png' ? h("slot", { name: "video" }) : null, this.hasCountdown ? h("slot", { name: "countdown" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: `img {${this.pngImgStyles}}` }), this.hasPopupVideo ? h("slot", { name: "video" }) : null))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null, this.jumbotronType === 'blog' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: "img {height: 100%;}" })))) : null)))));
|
|
73
|
+
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: { 'parent': true, 'light-links': this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video', 'hp-adjustments': this.isHomepage, 'transitioning': this.isTransitioning } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: { "ptc-container": true, "content-layout": true, 'hp-container': this.isHomepage, 'blog-container': (this.jumbotronType === "blog") } }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), !!this.logo && h("div", { class: "logo-frame" }, h("img", { alt: "Logo", src: this.logo })), h("span", { class: "main-content-items" }, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (!this.isHomepage) && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), !this.isHomepage && (h("ptc-para", { styles: `p{color: ${this.contentColor}!important;}`, "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": "w-4", "para-margin": `${this.jumbotronType === 'text' || this.jumbotronType === 'blog' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left', "seo-compatibility-mode": true }, h("p", { innerHTML: this.subTitle, style: { margin: '0' } }), h("p", { style: { margin: '0' } }, h("slot", { name: "blog-date" })), this.jumbotronType === 'blog' && h("div", null, h("ptc-spacer", { breakpoint: 'x-small', size: 'medium' }), h("ptc-spacer", { breakpoint: 'small', size: 'small' }), h("div", { id: "header-blog-author", slot: "blog-author" }, h("div", { class: "image" }, h("img", { alt: this.blogAuthorImageAlt, src: this.blogAuthorImage })), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("a", { class: "blog-author-name mf-listen", tabindex: "0", href: this.blogAuthorQueryHref, target: this.blogAuthorQueryTarget, "aria-label": "Other blogs by author" }, this.blogAuthorName)))))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo && this.jumbotronType !== 'png' ? h("slot", { name: "video" }) : null, this.hasCountdown ? h("slot", { name: "countdown" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: `img {${this.pngImgStyles}}` }), this.hasPopupVideo ? h("slot", { name: "video" }) : null))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null, this.jumbotronType === 'blog' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: "img {height: 100%;}" })))) : null)))));
|
|
73
74
|
}
|
|
74
75
|
getCssClassMap() {
|
|
75
76
|
return {
|
|
@@ -555,6 +556,24 @@ export class PtcJumbotron {
|
|
|
555
556
|
"reflect": false,
|
|
556
557
|
"defaultValue": "false"
|
|
557
558
|
},
|
|
559
|
+
"logo": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"mutable": false,
|
|
562
|
+
"complexType": {
|
|
563
|
+
"original": "string",
|
|
564
|
+
"resolved": "string",
|
|
565
|
+
"references": {}
|
|
566
|
+
},
|
|
567
|
+
"required": false,
|
|
568
|
+
"optional": true,
|
|
569
|
+
"docs": {
|
|
570
|
+
"tags": [],
|
|
571
|
+
"text": ""
|
|
572
|
+
},
|
|
573
|
+
"attribute": "logo",
|
|
574
|
+
"reflect": false,
|
|
575
|
+
"defaultValue": "\"\""
|
|
576
|
+
},
|
|
558
577
|
"styles": {
|
|
559
578
|
"type": "string",
|
|
560
579
|
"mutable": false,
|
|
@@ -37,8 +37,6 @@ export class PtcMediaCard {
|
|
|
37
37
|
}
|
|
38
38
|
setTabNavigatedState() {
|
|
39
39
|
this.el.parentElement.tagName === 'DYNAMIC-PRODUCT-DRIVERS' ? this.isTabNavigated = false : this.isTabNavigated = true;
|
|
40
|
-
//console.log('parent ele tag name: ' + this.el.parentElement.tagName)
|
|
41
|
-
//console.log('isTabNavigated value: ' + this.isTabNavigated)
|
|
42
40
|
}
|
|
43
41
|
componentWillLoad() {
|
|
44
42
|
this.setTabNavigatedState();
|
|
@@ -57,13 +55,8 @@ export class PtcMediaCard {
|
|
|
57
55
|
? true
|
|
58
56
|
: false
|
|
59
57
|
: false;
|
|
60
|
-
//console.log("isVideoUrl: " + isVideoUrl + " hoverBackgroundImage: " + this.hoverBackgroundImage);
|
|
61
58
|
const classMap = this.getCssClassMap();
|
|
62
|
-
return (h(Host, { class: classMap, onmouseenter: () => (this.isHovered = true), onmouseleave: () => (this.isHovered = false),
|
|
63
|
-
// {...(!isVideoUrl
|
|
64
|
-
// ? { ...{ style: this.isHovered ? { backgroundImage: `url(${this.hoverBackgroundImage})` } : { backgroundImage: `url(${this.activeBackgroundImage})` } } }
|
|
65
|
-
// : null)}
|
|
66
|
-
style: this.cardType != 'case-study-icon'
|
|
59
|
+
return (h(Host, { class: classMap, onmouseenter: () => (this.isHovered = true), onmouseleave: () => (this.isHovered = false), style: this.cardType != 'case-study-icon'
|
|
67
60
|
? this.isHovered && this.hoverBackgroundImage
|
|
68
61
|
? { backgroundImage: `url(${this.hoverBackgroundImage})` }
|
|
69
62
|
: { backgroundImage: `url(${this.activeBackgroundImage})` }
|
|
@@ -70,13 +70,11 @@ export class PtcMobileSelect {
|
|
|
70
70
|
const item = that.getMobileSelectedItem(context);
|
|
71
71
|
context.locatePosition(0, item.index);
|
|
72
72
|
storeIndex = item.index;
|
|
73
|
-
//console.log("storeIndex: "+ storeIndex)
|
|
74
73
|
}
|
|
75
74
|
catch (error) {
|
|
76
75
|
console.log(error);
|
|
77
76
|
// debugger
|
|
78
77
|
}
|
|
79
|
-
//e.locatePosition(0, storeIndex);
|
|
80
78
|
}
|
|
81
79
|
else {
|
|
82
80
|
return;
|
|
@@ -99,7 +97,6 @@ export class PtcMobileSelect {
|
|
|
99
97
|
context.setTriggerInnerText(selectedItem.value);
|
|
100
98
|
context.show();
|
|
101
99
|
}
|
|
102
|
-
//console.log('href: ' + data[0].id + '; indexArr: ' + indexArr);
|
|
103
100
|
}
|
|
104
101
|
}.bind(this),
|
|
105
102
|
});
|
|
@@ -39,7 +39,7 @@ export class PtcOfficeLocations {
|
|
|
39
39
|
}, 100);
|
|
40
40
|
setTimeout(() => {
|
|
41
41
|
var _a;
|
|
42
|
-
(_a = event.target) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ inline: 'nearest', block: '
|
|
42
|
+
(_a = event.target) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ inline: 'nearest', block: 'center' });
|
|
43
43
|
this.cardScroll = this.showMap;
|
|
44
44
|
mapTop === null || mapTop === void 0 ? void 0 : mapTop.scrollIntoView({ inline: 'nearest', block: 'start' });
|
|
45
45
|
}, 500);
|
|
@@ -42,7 +42,6 @@ export class PtcProductDropdown {
|
|
|
42
42
|
const index = this.selectedOptions.indexOf(option);
|
|
43
43
|
if (index > -1) {
|
|
44
44
|
this.selectedOptions.splice(index, 1);
|
|
45
|
-
//console.log(this.selectedOptions);
|
|
46
45
|
this.selectedValues.emit({
|
|
47
46
|
'sender': this,
|
|
48
47
|
'selectedOptions': this.selectedOptions
|
|
@@ -50,7 +49,6 @@ export class PtcProductDropdown {
|
|
|
50
49
|
}
|
|
51
50
|
else {
|
|
52
51
|
this.selectedOptions.push(option);
|
|
53
|
-
//console.log(this.selectedOptions);
|
|
54
52
|
this.selectedValues.emit({
|
|
55
53
|
'sender': this,
|
|
56
54
|
'selectedOptions': this.selectedOptions
|
|
@@ -6,7 +6,6 @@ export class PtcProgressBar {
|
|
|
6
6
|
handleScroll() {
|
|
7
7
|
const scrollTop = document.documentElement.scrollTop;
|
|
8
8
|
const scrollHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight;
|
|
9
|
-
//console.log('scrollTop: ' + scrollTop + '; scorllHeight: ' + scrollHeight);
|
|
10
9
|
const percentage = (scrollTop / scrollHeight) * 100;
|
|
11
10
|
this.scrollPercentage = percentage;
|
|
12
11
|
}
|