@ptcwebops/ptcw-design 6.3.5-beta → 6.3.5
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/component-1b8ad4d2.js +1819 -0
- package/dist/cjs/{component-4dd13907.js → component-35540bfb.js} +1494 -3305
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/interfaces-574e6df7.js +15 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card_2.cjs.entry.js +3 -4
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +4 -4
- package/dist/cjs/ptc-countdown.cjs.entry.js +19 -71
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
- package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +5 -789
- package/dist/cjs/ptc-icon-list.cjs.entry.js +2 -2
- package/dist/cjs/ptc-img.cjs.entry.js +133 -0
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +672 -0
- package/dist/cjs/ptc-office-location-card.cjs.entry.js +3 -2
- package/dist/cjs/ptc-office-locations.cjs.entry.js +15 -0
- package/dist/cjs/ptc-para.cjs.entry.js +1 -1
- package/dist/cjs/ptc-picture.cjs.entry.js +163 -0
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -10
- package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
- package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
- package/dist/cjs/ptc-title.cjs.entry.js +152 -0
- package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/{ptc-img_5.cjs.entry.js → ptc-white-paper.cjs.entry.js} +4 -481
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/validation-messages-33a4f26b.js +126 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +2 -30
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -6
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
- package/dist/collection/components/ptc-countdown/ptc-countdown.css +0 -1
- package/dist/collection/components/ptc-countdown/ptc-countdown.js +17 -163
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +6 -6
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +6 -0
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +1 -1
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -6
- package/dist/collection/components/ptc-modal/ptc-modal.css +0 -4
- package/dist/collection/components/ptc-modal/ptc-modal.js +5 -5
- package/dist/collection/components/ptc-office-location-card/ptc-office-location-card.js +3 -2
- package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +17 -1
- package/dist/collection/components/ptc-para/ptc-para.css +0 -3
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +3 -4
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -27
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +6 -6
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -6
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -6
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -6
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +1 -1
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -6
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -6
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -6
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +3 -9
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +74 -215
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/{component-9c921cc6.js → component-8c53e377.js} +1482 -3281
- package/dist/esm/component-9beac35b.js +1802 -0
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/interfaces-4caedd26.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +1 -1
- package/dist/esm/ptc-card_2.entry.js +3 -4
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-close-icon_2.entry.js +4 -4
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +19 -71
- package/dist/esm/ptc-data-lookup.entry.js +2 -1
- package/dist/esm/ptc-featured-list.entry.js +1 -1
- package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
- package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +5 -787
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- package/dist/esm/ptc-icon-list.entry.js +2 -2
- package/dist/esm/ptc-img.entry.js +129 -0
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +667 -0
- package/dist/esm/ptc-office-location-card.entry.js +3 -2
- package/dist/esm/ptc-office-locations.entry.js +15 -0
- package/dist/esm/ptc-para.entry.js +2 -2
- package/dist/esm/ptc-picture.entry.js +159 -0
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +2 -10
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-product-card.entry.js +1 -1
- package/dist/esm/ptc-product-category.entry.js +1 -1
- package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +1 -1
- package/dist/esm/ptc-readmore-v3.entry.js +1 -1
- package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
- package/dist/esm/ptc-spacer.entry.js +34 -0
- package/dist/esm/ptc-title.entry.js +148 -0
- package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
- package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
- package/dist/esm/{ptc-img_5.entry.js → ptc-white-paper.entry.js} +6 -479
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-ff65c75b.js → utils-63eab4bd.js} +1 -1
- package/dist/esm/validation-messages-adbb6518.js +124 -0
- package/dist/ptcw-design/media/designer-v6.0.6.svg +2 -30
- package/dist/ptcw-design/p-00e21489.entry.js +1 -0
- package/dist/ptcw-design/p-0c69ea52.entry.js +1 -0
- package/dist/ptcw-design/p-15758793.entry.js +1 -0
- package/dist/ptcw-design/{p-e0b873d0.entry.js → p-16e70f20.entry.js} +1 -1
- package/dist/ptcw-design/{p-ae970a60.entry.js → p-17f6e145.entry.js} +1 -1
- package/dist/ptcw-design/p-18a5a338.js +1 -0
- package/dist/ptcw-design/{p-d73cc053.entry.js → p-18ac526f.entry.js} +1 -1
- package/dist/ptcw-design/p-25a25451.entry.js +1 -0
- package/dist/ptcw-design/p-27a4ee73.entry.js +1 -0
- package/dist/ptcw-design/{p-e4000363.entry.js → p-28be539b.entry.js} +1 -1
- package/dist/ptcw-design/p-2b32297b.entry.js +1 -0
- package/dist/ptcw-design/p-2cb2de0f.entry.js +1 -0
- package/dist/ptcw-design/p-3738a01f.entry.js +1 -0
- package/dist/ptcw-design/p-38b782e8.entry.js +1 -0
- package/dist/ptcw-design/{p-d9abe7e8.entry.js → p-48c33817.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3f8e5d5.entry.js → p-49e54079.entry.js} +1 -1
- package/dist/ptcw-design/{p-445329ed.entry.js → p-4d8f6f46.entry.js} +1 -1
- package/dist/ptcw-design/{p-2c6fc745.entry.js → p-4ee98a3e.entry.js} +1 -1
- package/dist/ptcw-design/p-51a45b13.entry.js +1 -0
- package/dist/ptcw-design/p-54350a01.entry.js +1 -0
- package/dist/ptcw-design/p-593b8eff.entry.js +1 -0
- package/dist/ptcw-design/p-5dae4f30.entry.js +1 -0
- package/dist/ptcw-design/{p-d10cb999.entry.js → p-627103d8.entry.js} +1 -1
- package/dist/ptcw-design/{p-c95f423e.entry.js → p-6a3caf2b.entry.js} +1 -1
- package/dist/ptcw-design/{p-7a9611b4.entry.js → p-6f5fecae.entry.js} +1 -1
- package/dist/ptcw-design/p-711bcdad.js +1 -0
- package/dist/ptcw-design/p-721edfda.entry.js +1 -0
- package/dist/ptcw-design/p-73a853fc.entry.js +1 -0
- package/dist/ptcw-design/{p-0de4cd11.entry.js → p-75988f52.entry.js} +1 -1
- package/dist/ptcw-design/{p-8872161f.js → p-77b1221e.js} +1 -1
- package/dist/ptcw-design/p-7a3e9ecd.entry.js +1 -0
- package/dist/ptcw-design/p-7fb155da.entry.js +1 -0
- package/dist/ptcw-design/{p-c37a3bd2.entry.js → p-821f0ff9.entry.js} +1 -1
- package/dist/ptcw-design/{p-7b703b75.entry.js → p-92d22c78.entry.js} +1 -1
- package/dist/ptcw-design/p-98426799.js +203 -0
- package/dist/ptcw-design/p-98844b50.js +134 -0
- package/dist/ptcw-design/{p-21aa746d.entry.js → p-9f194554.entry.js} +1 -1
- package/dist/ptcw-design/p-a58698ca.entry.js +1 -0
- package/dist/ptcw-design/{p-0b515839.entry.js → p-a791c53a.entry.js} +1 -1
- package/dist/ptcw-design/p-acdd9a1d.entry.js +1 -0
- package/dist/ptcw-design/p-ad821a01.entry.js +1 -0
- package/dist/ptcw-design/{p-94f99d2d.entry.js → p-b441e3fe.entry.js} +1 -1
- package/dist/ptcw-design/{p-918fb77d.entry.js → p-b52301e2.entry.js} +1 -1
- package/dist/ptcw-design/{p-8efa8596.entry.js → p-b651c1cb.entry.js} +1 -1
- package/dist/ptcw-design/p-bf18b622.entry.js +1 -0
- package/dist/ptcw-design/p-bf3bc577.entry.js +1 -0
- package/dist/ptcw-design/{p-1b257420.entry.js → p-c01ea76f.entry.js} +1 -1
- package/dist/ptcw-design/{p-6d3326da.entry.js → p-cbee4653.entry.js} +1 -1
- package/dist/ptcw-design/{p-3dd0ded9.entry.js → p-d089dc37.entry.js} +1 -1
- package/dist/ptcw-design/{p-c66b8926.entry.js → p-d3229458.entry.js} +1 -1
- package/dist/ptcw-design/p-dd02e4d6.entry.js +68 -0
- package/dist/ptcw-design/{p-da82dc93.entry.js → p-e577ad62.entry.js} +1 -1
- package/dist/ptcw-design/{p-808ec62a.entry.js → p-eec2f3da.entry.js} +1 -1
- package/dist/ptcw-design/p-f9256e3d.entry.js +1 -0
- package/dist/ptcw-design/{p-36007a57.entry.js → p-fd394e84.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +0 -8
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -1
- package/dist/types/components/ptc-office-location-card/ptc-office-location-card.d.ts +1 -1
- package/dist/types/components/ptc-office-locations/ptc-office-locations.d.ts +1 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
- package/dist/types/components/ptc-white-paper/ptc-white-paper.d.ts +0 -1
- package/dist/types/components.d.ts +4 -29
- package/package.json +1 -1
- package/readme.md +1 -5
- package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -99
- package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
- package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
- package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
- package/dist/esm/modal-form-example.entry.js +0 -90
- package/dist/ptcw-design/p-0098c4f0.entry.js +0 -1
- package/dist/ptcw-design/p-0d223232.entry.js +0 -1
- package/dist/ptcw-design/p-1a6759a4.entry.js +0 -1
- package/dist/ptcw-design/p-32f64f48.entry.js +0 -1
- package/dist/ptcw-design/p-48815ee0.entry.js +0 -1
- package/dist/ptcw-design/p-596dab12.entry.js +0 -1
- package/dist/ptcw-design/p-67c248ec.entry.js +0 -1
- package/dist/ptcw-design/p-75390f63.entry.js +0 -1
- package/dist/ptcw-design/p-799afee5.entry.js +0 -1
- package/dist/ptcw-design/p-9501995f.entry.js +0 -1
- package/dist/ptcw-design/p-a3b57ede.entry.js +0 -1
- package/dist/ptcw-design/p-baff4d44.entry.js +0 -1
- package/dist/ptcw-design/p-bcab66bf.js +0 -336
- package/dist/ptcw-design/p-bd6af63e.entry.js +0 -1
- package/dist/ptcw-design/p-cbef2216.entry.js +0 -1
- package/dist/ptcw-design/p-dbbe35bf.entry.js +0 -1
- package/dist/ptcw-design/p-de960790.entry.js +0 -1
- package/dist/ptcw-design/p-e475cbcd.entry.js +0 -1
- package/dist/ptcw-design/p-e6a272d9.entry.js +0 -1
- package/dist/ptcw-design/p-ee34afca.entry.js +0 -68
- package/dist/ptcw-design/p-fe40421e.entry.js +0 -1
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
|
@@ -41,7 +41,8 @@ const PtcOfficeLocationCard = class {
|
|
|
41
41
|
this.showFullAddressModal = false;
|
|
42
42
|
this.showFullAddressText = 'Show Full Address';
|
|
43
43
|
}
|
|
44
|
-
handleClick() {
|
|
44
|
+
handleClick(e) {
|
|
45
|
+
e.preventDefault();
|
|
45
46
|
// Emit the addressClicked event with the address as the detail
|
|
46
47
|
this.officeCardClicked.emit(this.address);
|
|
47
48
|
}
|
|
@@ -51,7 +52,7 @@ const PtcOfficeLocationCard = class {
|
|
|
51
52
|
modal.show = true;
|
|
52
53
|
}
|
|
53
54
|
render() {
|
|
54
|
-
return (index.h(index.Host, null, index.h("div", { class: 'ofc-card-wrapper', onClick: () => this.handleClick(), onKeyPress: () => this.handleClick(), tabindex: 0 }, this.showFullAddressModal &&
|
|
55
|
+
return (index.h(index.Host, null, index.h("div", { class: 'ofc-card-wrapper', onClick: (e) => this.handleClick(e), onKeyPress: (e) => this.handleClick(e), tabindex: 0 }, this.showFullAddressModal &&
|
|
55
56
|
index.h("div", { class: 'show-full-cta', onClick: (e) => { this.showFullAddress(e); }, tabindex: 0, onKeyPress: (e) => { this.showFullAddress(e); } }, this.showFullAddressText, index.h("span", { innerHTML: showAll })), index.h("div", { class: 'ofc-title' }, this.officeName), index.h("div", { class: 'map-link' }, index.h("span", { class: "ofc-icon", innerHTML: showMapIcon.showMapSVG }), index.h("slot", { name: "map-link" })), index.h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
56
57
|
index.h("span", { class: "ofc-icon", innerHTML: phone }), index.h("slot", { name: "contact-number" })), index.h("slot", null)), this.showFullAddressModal &&
|
|
57
58
|
index.h("ptc-modal", { id: "show-full-add", show: false, size: "md", fixed: true, rounded: true, overlay: true, "keep-in-viewport": true, styles: ".modal-body{padding: 0 32px 32px 32px;box-sizing: border-box;}" }, index.h("div", { class: 'ofc-title' }, this.officeName), index.h("div", { class: 'map-link' }, index.h("span", { class: "ofc-icon", innerHTML: showMapIcon.showMapSVG }), index.h("slot", { name: 'map-link-modal' })), index.h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
@@ -46,6 +46,7 @@ const PtcOfficeLocations = class {
|
|
|
46
46
|
this.applyText = 'Apply';
|
|
47
47
|
this.clearText = 'Clear';
|
|
48
48
|
this.showMap = false;
|
|
49
|
+
this.cardScroll = false;
|
|
49
50
|
}
|
|
50
51
|
handleResize() {
|
|
51
52
|
this.isMobile = window.innerWidth < 992;
|
|
@@ -55,9 +56,22 @@ const PtcOfficeLocations = class {
|
|
|
55
56
|
}
|
|
56
57
|
handleAddressClicked(event) {
|
|
57
58
|
// CustomEvent's detail property contains the address
|
|
59
|
+
event.preventDefault();
|
|
58
60
|
this.address = event.detail;
|
|
59
61
|
if (!this.isMobile) {
|
|
60
62
|
this.showMap = true;
|
|
63
|
+
if (!this.cardScroll) {
|
|
64
|
+
const mapTop = this.hostEl.shadowRoot.querySelector(".office-location-list-wrapper");
|
|
65
|
+
setTimeout(() => {
|
|
66
|
+
mapTop === null || mapTop === void 0 ? void 0 : mapTop.scrollIntoView({ inline: 'nearest', block: 'start' });
|
|
67
|
+
}, 100);
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
var _a;
|
|
70
|
+
(_a = event.target) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ inline: 'nearest', block: 'nearest' });
|
|
71
|
+
this.cardScroll = this.showMap;
|
|
72
|
+
mapTop === null || mapTop === void 0 ? void 0 : mapTop.scrollIntoView({ inline: 'nearest', block: 'start' });
|
|
73
|
+
}, 500);
|
|
74
|
+
}
|
|
61
75
|
}
|
|
62
76
|
}
|
|
63
77
|
watchStateHandler() {
|
|
@@ -263,6 +277,7 @@ const PtcOfficeLocations = class {
|
|
|
263
277
|
}
|
|
264
278
|
toggleMap() {
|
|
265
279
|
this.showMap = !this.showMap;
|
|
280
|
+
this.cardScroll = this.showMap;
|
|
266
281
|
}
|
|
267
282
|
showFirstMap() {
|
|
268
283
|
const nodeList = document.querySelectorAll('ptc-office-location-card');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-63ddc79c.js');
|
|
6
6
|
const utils = require('./utils-ad441b07.js');
|
|
7
7
|
|
|
8
|
-
const ptcParaCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{position:relative;z-index:1}:host .tooltip-enabled{position:relative}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.
|
|
8
|
+
const ptcParaCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{position:relative;z-index:1}:host .tooltip-enabled{position:relative}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.gray-darker{color:var(--color-gray-11)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.htmlquote-para{font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 992px){p.htmlquote-para{font-size:var(--ptc-font-size-large)}}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-8 ::slotted(a){font-weight:var(--ptc-font-weight-extrabold) !important}p.w-9{font-weight:var(--ptc-font-weight-black)}p.w-9 ::slotted(a){font-weight:var(--ptc-font-weight-black) !important}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.right-768above{text-align:left}@media (min-width: 768px){p.right-768above{text-align:right}}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}p.line-clamp-title{display:-webkit-box !important;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 768px){:host(.hide-tooltip-on-mobile) .line-clamp-title{-webkit-line-clamp:initial !important}}";
|
|
9
9
|
|
|
10
10
|
const PtcPara = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-63ddc79c.js');
|
|
6
|
+
const interfaces = require('./interfaces-574e6df7.js');
|
|
7
|
+
|
|
8
|
+
const ptcPictureCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;overflow:hidden}:host .inline{display:inline}:host .inline-block{display:inline-block}:host .block{display:block}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:absolute}img{max-width:100%}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-pill{border-radius:var(--ptc-border-radius-pill)}.radius-circle{border-radius:var(--ptc-border-radius-circle)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";
|
|
9
|
+
|
|
10
|
+
const PtcPicture = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.src = undefined;
|
|
14
|
+
this.alt = 'image';
|
|
15
|
+
this.sizeXs = '510x340';
|
|
16
|
+
this.sizeSm = '1240x496';
|
|
17
|
+
this.sizeMd = '1366x500';
|
|
18
|
+
this.sizeLg = '1920x1080';
|
|
19
|
+
this.disableResize = false;
|
|
20
|
+
this.oldSrc = undefined;
|
|
21
|
+
this.imagePosition = 'static';
|
|
22
|
+
this.borderRadius = undefined;
|
|
23
|
+
this.height = undefined;
|
|
24
|
+
this.width = undefined;
|
|
25
|
+
this.objectFit = 'cover';
|
|
26
|
+
this.isFullHeight = false;
|
|
27
|
+
this.isFullWidth = false;
|
|
28
|
+
this.styles = undefined;
|
|
29
|
+
this.imageAlignment = 'left';
|
|
30
|
+
this.maxWidth = undefined;
|
|
31
|
+
this.displayImage = 'block';
|
|
32
|
+
}
|
|
33
|
+
WindowResize() {
|
|
34
|
+
this.addIntersectionObserver();
|
|
35
|
+
}
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
if (this.disableResize) {
|
|
38
|
+
this.sizeXs = undefined;
|
|
39
|
+
this.sizeSm = undefined;
|
|
40
|
+
this.sizeMd = undefined;
|
|
41
|
+
this.sizeLg = undefined;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
componentDidLoad() {
|
|
45
|
+
this.addIntersectionObserver();
|
|
46
|
+
}
|
|
47
|
+
componentWillUpdate() {
|
|
48
|
+
if (this.src !== this.oldSrc) {
|
|
49
|
+
this.addIntersectionObserver();
|
|
50
|
+
}
|
|
51
|
+
this.oldSrc = this.src;
|
|
52
|
+
}
|
|
53
|
+
//lazy-loading
|
|
54
|
+
addIntersectionObserver() {
|
|
55
|
+
if (!this.src) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if ('IntersectionObserver' in window) {
|
|
59
|
+
let lazyLoadImages = new IntersectionObserver(entries => {
|
|
60
|
+
entries.forEach(entry => {
|
|
61
|
+
if (entry.isIntersecting) {
|
|
62
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
63
|
+
image.src = this.setResponsiveBg();
|
|
64
|
+
lazyLoadImages.unobserve(image);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
let tempImg = this.el.shadowRoot.querySelector('img');
|
|
69
|
+
if (tempImg) {
|
|
70
|
+
lazyLoadImages.observe(tempImg);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
// fall back to setTimeout for Safari and IE
|
|
75
|
+
setTimeout(() => {
|
|
76
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
77
|
+
image.src = this.setResponsiveBg();
|
|
78
|
+
image.onload = () => {
|
|
79
|
+
image.removeAttribute('data-src');
|
|
80
|
+
console.log('loaded fallback');
|
|
81
|
+
};
|
|
82
|
+
}, 5000);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//responsive image
|
|
86
|
+
setResponsiveBg() {
|
|
87
|
+
// Define local variables
|
|
88
|
+
let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
89
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
90
|
+
// Set current variables
|
|
91
|
+
el = backgrounds[i];
|
|
92
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
93
|
+
if (elData !== null) {
|
|
94
|
+
return elData;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
if (typeof console == 'object') {
|
|
98
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
render() {
|
|
104
|
+
const classMap = this.getCssClassMap();
|
|
105
|
+
const classMapHost = this.getCssClassMapHost();
|
|
106
|
+
return (index.h(index.Host, { class: classMapHost }, this.styles && index.h("style", null, this.styles), index.h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), index.h("slot", null)));
|
|
107
|
+
}
|
|
108
|
+
getCurrentBreakPoints() {
|
|
109
|
+
// Define local variables
|
|
110
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
111
|
+
// Append test node
|
|
112
|
+
doc.body.appendChild(temp);
|
|
113
|
+
// Loop through breakpoints
|
|
114
|
+
for (let i = interfaces.ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
115
|
+
env = interfaces.ResponsivePictureVariables.envs[i];
|
|
116
|
+
// Add classes
|
|
117
|
+
temp.className = 'hidden-' + env;
|
|
118
|
+
// Found breakpoint
|
|
119
|
+
if (temp.offsetParent === null) {
|
|
120
|
+
// Remove our test node
|
|
121
|
+
doc.body.removeChild(temp);
|
|
122
|
+
// Return current breakpoint
|
|
123
|
+
return env;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
// Breakpoint not found, try fallback
|
|
127
|
+
doc.body.removeChild(temp);
|
|
128
|
+
return this.getFallbackBreakpoint();
|
|
129
|
+
}
|
|
130
|
+
getFallbackBreakpoint() {
|
|
131
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
132
|
+
return 'lg';
|
|
133
|
+
}
|
|
134
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
135
|
+
return 'md';
|
|
136
|
+
}
|
|
137
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
138
|
+
return 'sm';
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
return 'xs';
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
getCssClassMap() {
|
|
145
|
+
return {
|
|
146
|
+
[this.borderRadius]: this.borderRadius ? true : false,
|
|
147
|
+
[this.objectFit]: true,
|
|
148
|
+
[this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
|
|
149
|
+
[this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
|
|
150
|
+
[this.displayImage]: true
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
getCssClassMapHost() {
|
|
154
|
+
return {
|
|
155
|
+
[this.imagePosition]: true,
|
|
156
|
+
[this.imageAlignment]: true,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
get el() { return index.getElement(this); }
|
|
160
|
+
};
|
|
161
|
+
PtcPicture.style = ptcPictureCss;
|
|
162
|
+
|
|
163
|
+
exports.ptc_picture = PtcPicture;
|