@ptcwebops/ptcw-design 6.3.10 → 6.3.11-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/{component-06dda623.js → component-4dd13907.js} +2643 -832
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +3 -36
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/modal-form-example.cjs.entry.js +94 -0
- package/dist/cjs/ptc-bio-card.cjs.entry.js +4 -2
- package/dist/cjs/ptc-card_2.cjs.entry.js +5 -7
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +28 -27
- package/dist/cjs/ptc-countdown.cjs.entry.js +17 -19
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
- package/dist/cjs/ptc-enhanced-product-listing-card.cjs.entry.js +66 -0
- 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_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +789 -5
- package/dist/cjs/ptc-icon-list.cjs.entry.js +6 -3
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +2 -3
- package/dist/cjs/ptc-mobile-select.cjs.entry.js +10 -1
- package/dist/cjs/ptc-office-locations.cjs.entry.js +3 -13
- package/dist/cjs/ptc-para.cjs.entry.js +1 -1
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -2
- 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-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-layout.cjs.entry.js +1 -3
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/ptc-white-paper.cjs.entry.js +10 -10
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/storefront-enhanced-product-list-example.cjs.entry.js +66 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +30 -2
- 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/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +4 -8
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +2 -35
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +26 -0
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +99 -0
- package/dist/collection/components/organism-bundles/{ptc-icon-card-slider-example/ptc-icon-card-slider-example.css → storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.css} +57 -82
- package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.js +63 -0
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -6
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +3 -1
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
- package/dist/collection/components/ptc-container/ptc-container.js +2 -2
- package/dist/collection/components/ptc-countdown/ptc-countdown.js +17 -19
- package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.css +126 -0
- package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.js +112 -0
- 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 +5 -0
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +40 -2
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -24
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -20
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +11 -2
- package/dist/collection/components/ptc-modal/ptc-modal.css +8 -4
- package/dist/collection/components/ptc-modal/ptc-modal.js +47 -28
- package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +4 -15
- package/dist/collection/components/ptc-para/ptc-para.css +3 -0
- 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.css +0 -102
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +4 -6
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +27 -1
- 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-layout/ptc-value-led-layout.js +1 -3
- 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 +9 -9
- package/dist/collection/stories/BackgroundImage.stories.js +42 -20
- package/dist/collection/stories/MobileSelect.stories.js +21 -11
- package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +45 -0
- package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +47 -0
- package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +157 -0
- package/dist/custom-elements/index.d.ts +18 -6
- package/dist/custom-elements/index.js +331 -221
- package/dist/esm/{component-274da230.js → component-9c921cc6.js} +2592 -793
- package/dist/esm/event-jumbotron-example.entry.js +3 -36
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/modal-form-example.entry.js +90 -0
- package/dist/esm/ptc-bio-card.entry.js +4 -2
- package/dist/esm/ptc-card_2.entry.js +5 -7
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-close-icon_2.entry.js +28 -27
- package/dist/esm/ptc-countdown.entry.js +17 -19
- package/dist/esm/ptc-data-lookup.entry.js +1 -2
- package/dist/esm/ptc-enhanced-product-listing-card.entry.js +62 -0
- 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_2.entry.js → ptc-form-checkbox_4.entry.js} +786 -4
- package/dist/esm/ptc-icon-list.entry.js +6 -3
- package/dist/esm/ptc-jumbotron.entry.js +2 -3
- package/dist/esm/ptc-mobile-select.entry.js +10 -1
- package/dist/esm/ptc-office-locations.entry.js +3 -13
- package/dist/esm/ptc-para.entry.js +1 -1
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +10 -2
- 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-tooltip-v2.entry.js +1 -1
- package/dist/esm/ptc-value-led-layout.entry.js +1 -3
- package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
- package/dist/esm/ptc-white-paper.entry.js +11 -11
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/storefront-enhanced-product-list-example.entry.js +62 -0
- package/dist/ptcw-design/media/designer-v6.0.6.svg +30 -2
- package/dist/ptcw-design/p-072a76d3.entry.js +1 -0
- package/dist/ptcw-design/{p-7fb155da.entry.js → p-072aa896.entry.js} +1 -1
- package/dist/ptcw-design/p-08b281d1.entry.js +68 -0
- package/dist/ptcw-design/{p-a791c53a.entry.js → p-0b515839.entry.js} +1 -1
- package/dist/ptcw-design/p-0d223232.entry.js +1 -0
- package/dist/ptcw-design/p-0de4cd11.entry.js +1 -0
- package/dist/ptcw-design/{p-9f194554.entry.js → p-21aa746d.entry.js} +1 -1
- package/dist/ptcw-design/p-32f64f48.entry.js +1 -0
- package/dist/ptcw-design/p-38b7ca02.entry.js +1 -0
- package/dist/ptcw-design/{p-d089dc37.entry.js → p-3dd0ded9.entry.js} +1 -1
- package/dist/ptcw-design/p-42992202.entry.js +1 -0
- package/dist/ptcw-design/{p-4d8f6f46.entry.js → p-445329ed.entry.js} +1 -1
- package/dist/ptcw-design/p-52e6613f.entry.js +1 -0
- package/dist/ptcw-design/p-67c248ec.entry.js +1 -0
- package/dist/ptcw-design/p-72825cf6.entry.js +1 -0
- package/dist/ptcw-design/p-75390f63.entry.js +1 -0
- package/dist/ptcw-design/p-799afee5.entry.js +1 -0
- package/dist/ptcw-design/{p-6aa9ed95.entry.js → p-867a808f.entry.js} +1 -1
- package/dist/ptcw-design/p-8eb89969.entry.js +1 -0
- package/dist/ptcw-design/p-94f99d2d.entry.js +1 -0
- package/dist/ptcw-design/p-9501995f.entry.js +1 -0
- package/dist/ptcw-design/p-a3b57ede.entry.js +1 -0
- package/dist/ptcw-design/p-ae50e218.entry.js +1 -0
- package/dist/ptcw-design/p-b5094974.entry.js +1 -0
- package/dist/ptcw-design/p-baff4d44.entry.js +1 -0
- package/dist/ptcw-design/p-bcab66bf.js +336 -0
- package/dist/ptcw-design/p-bd6af63e.entry.js +1 -0
- package/dist/ptcw-design/{p-18ac526f.entry.js → p-d73cc053.entry.js} +1 -1
- package/dist/ptcw-design/p-de960790.entry.js +1 -0
- package/dist/ptcw-design/p-e6a272d9.entry.js +1 -0
- package/dist/ptcw-design/p-f4eb6d0a.entry.js +1 -0
- package/dist/ptcw-design/p-fe40421e.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.d.ts +0 -2
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
- package/dist/types/components/organism-bundles/{ptc-icon-card-slider-example/ptc-icon-card-slider-example.d.ts → storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.d.ts} +3 -3
- package/dist/types/components/ptc-container/ptc-container.d.ts +1 -1
- package/dist/types/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.d.ts +20 -0
- package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +2 -0
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +0 -1
- package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +1 -1
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +3 -1
- package/dist/types/components/ptc-office-locations/ptc-office-locations.d.ts +0 -1
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +2 -0
- package/dist/types/components/ptc-white-paper/ptc-white-paper.d.ts +1 -0
- package/dist/types/components.d.ts +71 -23
- package/package.json +1 -1
- package/readme.md +5 -1
- package/dist/cjs/component-5b5b6a98.js +0 -1819
- package/dist/cjs/ptc-icon-card-slider-example.cjs.entry.js +0 -82
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -672
- package/dist/cjs/validation-messages-33a4f26b.js +0 -126
- package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.js +0 -77
- package/dist/esm/component-341e4eaa.js +0 -1802
- package/dist/esm/ptc-icon-card-slider-example.entry.js +0 -78
- package/dist/esm/ptc-multi-select_2.entry.js +0 -667
- package/dist/esm/validation-messages-adbb6518.js +0 -124
- package/dist/ptcw-design/p-00e21489.entry.js +0 -1
- package/dist/ptcw-design/p-076efe50.entry.js +0 -68
- package/dist/ptcw-design/p-114d0de7.entry.js +0 -1
- package/dist/ptcw-design/p-15758793.entry.js +0 -1
- package/dist/ptcw-design/p-18a5a338.js +0 -1
- package/dist/ptcw-design/p-1ca8a5bf.entry.js +0 -1
- package/dist/ptcw-design/p-2aa19c11.entry.js +0 -1
- package/dist/ptcw-design/p-2b32297b.entry.js +0 -1
- package/dist/ptcw-design/p-38b782e8.entry.js +0 -1
- package/dist/ptcw-design/p-54f6e1a5.entry.js +0 -1
- package/dist/ptcw-design/p-593b8eff.entry.js +0 -1
- package/dist/ptcw-design/p-73a853fc.entry.js +0 -1
- package/dist/ptcw-design/p-752bba1c.entry.js +0 -1
- package/dist/ptcw-design/p-a58698ca.entry.js +0 -1
- package/dist/ptcw-design/p-ab3d2934.entry.js +0 -1
- package/dist/ptcw-design/p-acdd9a1d.entry.js +0 -1
- package/dist/ptcw-design/p-ad821a01.entry.js +0 -1
- package/dist/ptcw-design/p-bab5bb88.entry.js +0 -1
- package/dist/ptcw-design/p-be533f0d.js +0 -134
- package/dist/ptcw-design/p-bf3bc577.entry.js +0 -1
- package/dist/ptcw-design/p-c1513c3f.js +0 -203
- package/dist/ptcw-design/p-c8f68292.entry.js +0 -1
- package/dist/ptcw-design/p-d5441844.entry.js +0 -1
- package/dist/ptcw-design/p-d66debb3.entry.js +0 -1
- package/dist/ptcw-design/p-e5369c4d.entry.js +0 -1
- package/dist/ptcw-design/p-f9256e3d.entry.js +0 -1
|
@@ -28,7 +28,6 @@ export class PtcJumbotron {
|
|
|
28
28
|
this.blogAuthorQueryHref = "";
|
|
29
29
|
this.blogAuthorQueryTarget = "";
|
|
30
30
|
this.hasCountdown = false;
|
|
31
|
-
this.logo = "";
|
|
32
31
|
this.styles = undefined;
|
|
33
32
|
this.defer = undefined;
|
|
34
33
|
this.hasCtaSlot = undefined;
|
|
@@ -70,7 +69,7 @@ export class PtcJumbotron {
|
|
|
70
69
|
default:
|
|
71
70
|
mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
|
|
72
71
|
}
|
|
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" }),
|
|
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)))));
|
|
74
73
|
}
|
|
75
74
|
getCssClassMap() {
|
|
76
75
|
return {
|
|
@@ -556,24 +555,6 @@ export class PtcJumbotron {
|
|
|
556
555
|
"reflect": false,
|
|
557
556
|
"defaultValue": "false"
|
|
558
557
|
},
|
|
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
|
-
},
|
|
577
558
|
"styles": {
|
|
578
559
|
"type": "string",
|
|
579
560
|
"mutable": false,
|
|
@@ -50,7 +50,7 @@ export class PtcMobileSelect {
|
|
|
50
50
|
let mySelect = new MobileSelect({
|
|
51
51
|
trigger: `#${this.triggerName}`,
|
|
52
52
|
title: `${this.listTitle ? this.listTitle : ''}`,
|
|
53
|
-
wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2'
|
|
53
|
+
wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2'] }],
|
|
54
54
|
position: [0],
|
|
55
55
|
ensureBtnText: this.ensureBtnText,
|
|
56
56
|
cancelBtnText: this.cancelBtnText,
|
|
@@ -59,6 +59,13 @@ export class PtcMobileSelect {
|
|
|
59
59
|
titleColor: 'var(--color-gray-12)',
|
|
60
60
|
onShow: function (_1, _2, context) {
|
|
61
61
|
if (that.selectedId) {
|
|
62
|
+
/*let liEle = context.mobileSelect.querySelectorAll('[data-id]'); // document.querySelectorAll('.selectContainer li');
|
|
63
|
+
liEle.forEach((currentValue, currentIndex) => {
|
|
64
|
+
if (currentValue.getAttribute('data-id') == currentId) {
|
|
65
|
+
storeIndex = currentIndex;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
});*/
|
|
62
69
|
try {
|
|
63
70
|
const item = that.getMobileSelectedItem(context);
|
|
64
71
|
context.locatePosition(0, item.index);
|
|
@@ -69,6 +76,7 @@ export class PtcMobileSelect {
|
|
|
69
76
|
console.log(error);
|
|
70
77
|
// debugger
|
|
71
78
|
}
|
|
79
|
+
//e.locatePosition(0, storeIndex);
|
|
72
80
|
}
|
|
73
81
|
else {
|
|
74
82
|
return;
|
|
@@ -91,6 +99,7 @@ export class PtcMobileSelect {
|
|
|
91
99
|
context.setTriggerInnerText(selectedItem.value);
|
|
92
100
|
context.show();
|
|
93
101
|
}
|
|
102
|
+
//console.log('href: ' + data[0].id + '; indexArr: ' + indexArr);
|
|
94
103
|
}
|
|
95
104
|
}.bind(this),
|
|
96
105
|
});
|
|
@@ -168,7 +177,7 @@ export class PtcMobileSelect {
|
|
|
168
177
|
"optional": false,
|
|
169
178
|
"docs": {
|
|
170
179
|
"tags": [],
|
|
171
|
-
"text": "Wheel Data (Mandatory)\r\neg: data: [{ id: \"1\", value: \"
|
|
180
|
+
"text": "Wheel Data (Mandatory)\r\neg: data: [{ id: \"1\", value: \"\u9644\u8FD1\" }],"
|
|
172
181
|
}
|
|
173
182
|
},
|
|
174
183
|
"selectedId": {
|
|
@@ -82,6 +82,7 @@ ptc-link, ptc-square-card,
|
|
|
82
82
|
align-content: flex-end;
|
|
83
83
|
z-index: 50020;
|
|
84
84
|
transform: translateY(-100%);
|
|
85
|
+
position: relative;
|
|
85
86
|
}
|
|
86
87
|
@media only screen and (min-width: 992px) {
|
|
87
88
|
.wrapper .modal-popup {
|
|
@@ -97,6 +98,9 @@ ptc-link, ptc-square-card,
|
|
|
97
98
|
.wrapper .modal-popup.xl {
|
|
98
99
|
max-width: 64.0625rem;
|
|
99
100
|
}
|
|
101
|
+
.wrapper .modal-popup.fit-content {
|
|
102
|
+
max-width: fit-content;
|
|
103
|
+
}
|
|
100
104
|
.wrapper .modal-popup.max {
|
|
101
105
|
width: calc(100% - 4rem);
|
|
102
106
|
max-width: 75rem;
|
|
@@ -481,10 +485,10 @@ ptc-link, ptc-square-card,
|
|
|
481
485
|
text-decoration-line: underline;
|
|
482
486
|
line-height: var(--ptc-line-height-densest);
|
|
483
487
|
}
|
|
484
|
-
:host .wrapper .bottom-close span:
|
|
485
|
-
color: var(--color-blue-08);
|
|
486
|
-
}
|
|
487
|
-
:host .wrapper .bottom-close:focus-visible {
|
|
488
|
+
:host .wrapper .bottom-close span:focus-visible {
|
|
488
489
|
border-radius: var(--ptc-border-radius-standard);
|
|
489
490
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
491
|
+
}
|
|
492
|
+
:host .wrapper .bottom-close span:hover {
|
|
493
|
+
color: var(--color-blue-08);
|
|
490
494
|
}
|
|
@@ -3,33 +3,37 @@ import { createFocusTrap } from 'focus-trap';
|
|
|
3
3
|
export class PtcModal {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.setReturnFocus = () => {
|
|
6
|
-
|
|
7
|
-
if (!this.lastFocusElement)
|
|
8
|
-
return;
|
|
9
|
-
// Try focusing the last focused element directly
|
|
10
|
-
if (this.lastFocusElement.tabIndex === 0) {
|
|
6
|
+
if (this.lastFocusElement instanceof HTMLElement) {
|
|
11
7
|
this.lastFocusElement.focus();
|
|
12
|
-
return;
|
|
13
8
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
};
|
|
10
|
+
//change it with @Watch
|
|
11
|
+
// componentDidUpdate() {
|
|
12
|
+
// if (this.show) {
|
|
13
|
+
// this.lastFocusElement = document.activeElement as HTMLElement;
|
|
14
|
+
// this.fireOnOpened(this);
|
|
15
|
+
// } else {
|
|
16
|
+
// this.fireOnClosed(this);
|
|
17
|
+
// }
|
|
18
|
+
// }
|
|
19
|
+
this.trackLastFocusedElement = (event) => {
|
|
20
|
+
if (event.key === "Enter") {
|
|
21
|
+
let activeElement = document.activeElement;
|
|
22
|
+
// Traverse shadow DOM to get the innermost focused element
|
|
23
|
+
while (activeElement === null || activeElement === void 0 ? void 0 : activeElement.shadowRoot) {
|
|
24
|
+
activeElement = activeElement.shadowRoot.activeElement;
|
|
25
|
+
}
|
|
26
|
+
if (activeElement instanceof HTMLElement) {
|
|
27
|
+
this.lastFocusElement = activeElement;
|
|
22
28
|
}
|
|
23
|
-
}
|
|
24
|
-
// As a fallback, try to find a focusable child within the element
|
|
25
|
-
const fallbackElement = (_b = (_a = this.lastFocusElement).querySelector) === null || _b === void 0 ? void 0 : _b.call(_a, 'button, [tabindex]:not([tabindex="-1"])');
|
|
26
|
-
if (fallbackElement instanceof HTMLElement) {
|
|
27
|
-
fallbackElement.focus();
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
this.handleKeyPress = (event) => {
|
|
31
32
|
if (event.key === 'Enter' || event.key === ' ' || event.key === 'Tab') {
|
|
32
33
|
this.openedByKeyboard = true;
|
|
34
|
+
if (event.key === 'Enter') {
|
|
35
|
+
this.trackLastFocusedElement(event);
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
38
|
};
|
|
35
39
|
this.handleMouseDown = () => {
|
|
@@ -56,12 +60,13 @@ export class PtcModal {
|
|
|
56
60
|
this.headerOnlyText1 = undefined;
|
|
57
61
|
this.headerOnlyText2 = undefined;
|
|
58
62
|
this.bottomCloseBtn = undefined;
|
|
63
|
+
this.initialFocus = true;
|
|
59
64
|
this.openedByKeyboard = false;
|
|
60
65
|
this.bodyOverflowSetting = undefined;
|
|
61
66
|
}
|
|
62
67
|
onShowChange(newValue) {
|
|
63
68
|
if (newValue) {
|
|
64
|
-
this.lastFocusElement = document.activeElement;
|
|
69
|
+
// this.lastFocusElement = document.activeElement as HTMLElement;
|
|
65
70
|
this.fireOnOpened(this);
|
|
66
71
|
}
|
|
67
72
|
else {
|
|
@@ -156,7 +161,7 @@ export class PtcModal {
|
|
|
156
161
|
}
|
|
157
162
|
componentDidLoad() {
|
|
158
163
|
if (this.show) {
|
|
159
|
-
this.lastFocusElement = document.activeElement;
|
|
164
|
+
// this.lastFocusElement = document.activeElement as HTMLElement;
|
|
160
165
|
this.fireOnOpened(this);
|
|
161
166
|
}
|
|
162
167
|
if (this.showHeaderFooter) {
|
|
@@ -228,16 +233,12 @@ export class PtcModal {
|
|
|
228
233
|
this.trap.deactivate();
|
|
229
234
|
}
|
|
230
235
|
} })));
|
|
231
|
-
let bottomCloseBtnEle = (h("div", {
|
|
236
|
+
let bottomCloseBtnEle = (h("div", { class: "bottom-close", id: "modal-bottom-close", onClick: e => {
|
|
232
237
|
e.preventDefault();
|
|
233
238
|
this.close();
|
|
234
239
|
}, onKeyPress: e => {
|
|
235
240
|
e.preventDefault();
|
|
236
241
|
this.close();
|
|
237
|
-
this.setReturnFocus();
|
|
238
|
-
if (this.trap) {
|
|
239
|
-
this.trap.deactivate();
|
|
240
|
-
}
|
|
241
242
|
} }, h("span", null, this.bottomCloseBtn)));
|
|
242
243
|
if (this.iframeUrl) {
|
|
243
244
|
content = h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: '100%', width: '100%', scrolling: "no", onLoad: this.resizeIframe });
|
|
@@ -332,8 +333,8 @@ export class PtcModal {
|
|
|
332
333
|
"type": "string",
|
|
333
334
|
"mutable": true,
|
|
334
335
|
"complexType": {
|
|
335
|
-
"original": "'sm' | 'md' | 'lg' | 'xl' | 'max' | 'sm-modal'",
|
|
336
|
-
"resolved": "\"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
|
|
336
|
+
"original": "'sm' | 'md' | 'lg' | 'xl' | 'fit-content' | 'max' | 'sm-modal'",
|
|
337
|
+
"resolved": "\"fit-content\" | \"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
|
|
337
338
|
"references": {}
|
|
338
339
|
},
|
|
339
340
|
"required": false,
|
|
@@ -663,6 +664,24 @@ export class PtcModal {
|
|
|
663
664
|
},
|
|
664
665
|
"attribute": "bottom-close-btn",
|
|
665
666
|
"reflect": false
|
|
667
|
+
},
|
|
668
|
+
"initialFocus": {
|
|
669
|
+
"type": "boolean",
|
|
670
|
+
"mutable": false,
|
|
671
|
+
"complexType": {
|
|
672
|
+
"original": "boolean",
|
|
673
|
+
"resolved": "boolean",
|
|
674
|
+
"references": {}
|
|
675
|
+
},
|
|
676
|
+
"required": false,
|
|
677
|
+
"optional": true,
|
|
678
|
+
"docs": {
|
|
679
|
+
"tags": [],
|
|
680
|
+
"text": ""
|
|
681
|
+
},
|
|
682
|
+
"attribute": "initial-focus",
|
|
683
|
+
"reflect": false,
|
|
684
|
+
"defaultValue": "true"
|
|
666
685
|
}
|
|
667
686
|
};
|
|
668
687
|
}
|
|
@@ -18,7 +18,6 @@ export class PtcOfficeLocations {
|
|
|
18
18
|
this.applyText = 'Apply';
|
|
19
19
|
this.clearText = 'Clear';
|
|
20
20
|
this.showMap = false;
|
|
21
|
-
this.cardScroll = false;
|
|
22
21
|
}
|
|
23
22
|
handleResize() {
|
|
24
23
|
this.isMobile = window.innerWidth < 992;
|
|
@@ -32,17 +31,9 @@ export class PtcOfficeLocations {
|
|
|
32
31
|
this.address = event.detail;
|
|
33
32
|
if (!this.isMobile) {
|
|
34
33
|
this.showMap = true;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
mapTop === null || mapTop === void 0 ? void 0 : mapTop.scrollIntoView({ inline: 'nearest', block: 'start' });
|
|
39
|
-
}, 100);
|
|
40
|
-
setTimeout(() => {
|
|
41
|
-
var _a;
|
|
42
|
-
(_a = event.target) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ inline: 'nearest', block: 'center' });
|
|
43
|
-
this.cardScroll = this.showMap;
|
|
44
|
-
mapTop === null || mapTop === void 0 ? void 0 : mapTop.scrollIntoView({ inline: 'nearest', block: 'start' });
|
|
45
|
-
}, 500);
|
|
34
|
+
let mapTop = this.hostEl.shadowRoot.querySelector(".office-location-list-wrapper");
|
|
35
|
+
if (mapTop) {
|
|
36
|
+
mapTop.scrollIntoView({ behavior: 'smooth', inline: 'nearest', block: 'start' });
|
|
46
37
|
}
|
|
47
38
|
}
|
|
48
39
|
}
|
|
@@ -249,7 +240,6 @@ export class PtcOfficeLocations {
|
|
|
249
240
|
}
|
|
250
241
|
toggleMap() {
|
|
251
242
|
this.showMap = !this.showMap;
|
|
252
|
-
this.cardScroll = this.showMap;
|
|
253
243
|
}
|
|
254
244
|
showFirstMap() {
|
|
255
245
|
const nodeList = document.querySelectorAll('ptc-office-location-card');
|
|
@@ -420,8 +410,7 @@ export class PtcOfficeLocations {
|
|
|
420
410
|
"openRegion": {},
|
|
421
411
|
"isMobile": {},
|
|
422
412
|
"address": {},
|
|
423
|
-
"showMap": {}
|
|
424
|
-
"cardScroll": {}
|
|
413
|
+
"showMap": {}
|
|
425
414
|
};
|
|
426
415
|
}
|
|
427
416
|
static get elementRef() { return "hostEl"; }
|
|
@@ -185,8 +185,8 @@ export class PtcPara {
|
|
|
185
185
|
"type": "string",
|
|
186
186
|
"mutable": false,
|
|
187
187
|
"complexType": {
|
|
188
|
-
"original": "'primary-grey' | 'white' | 'gray-darker'",
|
|
189
|
-
"resolved": "\"gray-darker\" | \"primary-grey\" | \"white\"",
|
|
188
|
+
"original": "'primary-grey' | 'primary-green' | 'white' | 'gray-darker'",
|
|
189
|
+
"resolved": "\"gray-darker\" | \"primary-green\" | \"primary-grey\" | \"white\"",
|
|
190
190
|
"references": {}
|
|
191
191
|
},
|
|
192
192
|
"required": false,
|
|
@@ -5602,26 +5602,26 @@ a:focus-visible {
|
|
|
5602
5602
|
border-radius: var(--ptc-border-radius-standard);
|
|
5603
5603
|
}
|
|
5604
5604
|
|
|
5605
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-plm-grey a.light-link {
|
|
5605
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-plm-grey a.light-link {
|
|
5606
5606
|
color: var(--color-blue-04);
|
|
5607
5607
|
margin: -2px;
|
|
5608
5608
|
border: 2px solid transparent;
|
|
5609
5609
|
}
|
|
5610
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
|
|
5610
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
|
|
5611
5611
|
color: var(--color-blue-06);
|
|
5612
5612
|
}
|
|
5613
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
5613
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
5614
5614
|
transition: none;
|
|
5615
5615
|
color: var(--color-blue-07);
|
|
5616
5616
|
}
|
|
5617
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
5617
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
5618
5618
|
color: var(--color-blue-05);
|
|
5619
5619
|
}
|
|
5620
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
|
|
5620
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
|
|
5621
5621
|
color: var(--color-gray-04) !important;
|
|
5622
5622
|
cursor: not-allowed;
|
|
5623
5623
|
}
|
|
5624
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
5624
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
5625
5625
|
border-radius: var(--ptc-border-radius-standard);
|
|
5626
5626
|
border: 2px solid white;
|
|
5627
5627
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
@@ -3164,108 +3164,6 @@ ptc-link, ptc-square-card,
|
|
|
3164
3164
|
margin-top: 44px;
|
|
3165
3165
|
}
|
|
3166
3166
|
|
|
3167
|
-
.preloader-storefront .jumbotron {
|
|
3168
|
-
margin-bottom: -60px;
|
|
3169
|
-
}
|
|
3170
|
-
.preloader-storefront .jumbotron .jumbotron-bg {
|
|
3171
|
-
height: 400px;
|
|
3172
|
-
background-color: var(--color-gray-03);
|
|
3173
|
-
position: relative;
|
|
3174
|
-
}
|
|
3175
|
-
.preloader-storefront .jumbotron .jumbotron-bg .grid-cards-div {
|
|
3176
|
-
position: relative;
|
|
3177
|
-
z-index: 3;
|
|
3178
|
-
}
|
|
3179
|
-
.preloader-storefront .jumbotron .sf-grid {
|
|
3180
|
-
position: relative;
|
|
3181
|
-
top: -104px;
|
|
3182
|
-
height: 100%;
|
|
3183
|
-
width: 100%;
|
|
3184
|
-
margin-bottom: 3rem;
|
|
3185
|
-
}
|
|
3186
|
-
.preloader-storefront .jumbotron .sf-cards-grid {
|
|
3187
|
-
grid-column-gap: 1.5rem;
|
|
3188
|
-
grid-row-gap: 1.5rem;
|
|
3189
|
-
}
|
|
3190
|
-
@media only screen and (min-width: 992px) {
|
|
3191
|
-
.preloader-storefront .jumbotron .sf-cards-grid {
|
|
3192
|
-
grid-column-gap: 2.5rem;
|
|
3193
|
-
grid-row-gap: 2.5rem;
|
|
3194
|
-
}
|
|
3195
|
-
}
|
|
3196
|
-
.preloader-storefront .jumbotron .sf-cards-grid .short-2 {
|
|
3197
|
-
height: 464px;
|
|
3198
|
-
}
|
|
3199
|
-
@media (min-width: 992px) {
|
|
3200
|
-
.preloader-storefront .jumbotron .sf-cards-grid .short-2 {
|
|
3201
|
-
height: 318px;
|
|
3202
|
-
}
|
|
3203
|
-
}
|
|
3204
|
-
.preloader-storefront .jumbotron .sf-cards-grid .short-4 {
|
|
3205
|
-
display: none;
|
|
3206
|
-
}
|
|
3207
|
-
@media (min-width: 992px) {
|
|
3208
|
-
.preloader-storefront .jumbotron .sf-cards-grid .short-4 {
|
|
3209
|
-
display: block;
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
.preloader-storefront .ptc-section {
|
|
3213
|
-
margin-top: 3rem;
|
|
3214
|
-
margin-bottom: 3rem;
|
|
3215
|
-
}
|
|
3216
|
-
.preloader-storefront .promo-banner-block {
|
|
3217
|
-
width: auto;
|
|
3218
|
-
height: 259px;
|
|
3219
|
-
}
|
|
3220
|
-
.preloader-storefront .short-16 {
|
|
3221
|
-
width: 25%;
|
|
3222
|
-
margin-bottom: 1.25rem;
|
|
3223
|
-
}
|
|
3224
|
-
.preloader-storefront .short-11 {
|
|
3225
|
-
width: 60%;
|
|
3226
|
-
margin-bottom: 16px;
|
|
3227
|
-
}
|
|
3228
|
-
.preloader-storefront .grid-wrapper {
|
|
3229
|
-
padding-left: 24px;
|
|
3230
|
-
padding-bottom: 152px;
|
|
3231
|
-
}
|
|
3232
|
-
@media only screen and (min-width: 1200px) {
|
|
3233
|
-
.preloader-storefront .grid-wrapper {
|
|
3234
|
-
padding-left: 0;
|
|
3235
|
-
padding-right: 0;
|
|
3236
|
-
max-width: 1136px;
|
|
3237
|
-
margin-left: auto;
|
|
3238
|
-
margin-right: auto;
|
|
3239
|
-
}
|
|
3240
|
-
}
|
|
3241
|
-
@media only screen and (min-width: 1440px) {
|
|
3242
|
-
.preloader-storefront .grid-wrapper {
|
|
3243
|
-
padding-left: 0;
|
|
3244
|
-
padding-right: 0;
|
|
3245
|
-
max-width: 1200px;
|
|
3246
|
-
margin-left: auto;
|
|
3247
|
-
margin-right: auto;
|
|
3248
|
-
}
|
|
3249
|
-
}
|
|
3250
|
-
.preloader-storefront .short-1 {
|
|
3251
|
-
height: 341px;
|
|
3252
|
-
}
|
|
3253
|
-
.preloader-storefront .cards-grid-2 {
|
|
3254
|
-
display: flex;
|
|
3255
|
-
flex-direction: row;
|
|
3256
|
-
grid-column-gap: 4px;
|
|
3257
|
-
grid-row-gap: 4px;
|
|
3258
|
-
}
|
|
3259
|
-
@media only screen and (min-width: 992px) {
|
|
3260
|
-
.preloader-storefront .cards-grid-2 {
|
|
3261
|
-
grid-column-gap: 20px;
|
|
3262
|
-
grid-row-gap: 20px;
|
|
3263
|
-
}
|
|
3264
|
-
}
|
|
3265
|
-
.preloader-storefront .cards-grid-2 .card {
|
|
3266
|
-
min-width: 270px;
|
|
3267
|
-
}
|
|
3268
|
-
|
|
3269
3167
|
@keyframes pulse {
|
|
3270
3168
|
0% {
|
|
3271
3169
|
opacity: 0.5;
|
|
@@ -78,20 +78,18 @@ export class PtcPreloaderSection {
|
|
|
78
78
|
case 'ppc-skeleton': {
|
|
79
79
|
return (h("div", { class: "preloader-wrapper" }, h("div", { class: "ppc-skeleton-preloader" }, h("div", { class: "ptc-container " }, h("div", { class: "dots-loader" })))));
|
|
80
80
|
}
|
|
81
|
+
case 'search-results': {
|
|
82
|
+
return (h("div", { class: "preloader-wrapper" }, h("div", { class: "preloader-search-results" }, h("div", { class: "ptc-container content-container" }, h("div", { class: "content-container-child" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }))), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" })))));
|
|
83
|
+
}
|
|
81
84
|
case 'news': {
|
|
82
85
|
return (h("div", { class: "preloader-wrapper" }, h("div", { class: "news-skeleton-preloader" }, h("div", { class: "ptc-container ptc-section-standard" }, h("ptc-spacer", { breakpoint: "large", size: "medium" }), h("div", { class: "is-grid has-row-gap-md" }, h("div", { class: "is-col-6-lg skeleton-block thick thick-on-mobile" }), h("div", { class: "is-col-6-lg skeleton-block thick medium-md right" })), h("ptc-spacer", { size: "xxx-large" }), h("ptc-spacer", { size: "medium" }), h("div", { class: "skeleton-block narrow thick center" }), h("ptc-spacer", { size: "medium" }), h("div", { class: "skeleton-block short thin center" }), h("ptc-spacer", { size: "medium" }), h("div", { class: "skeleton-block big-block" }), h("ptc-spacer", { size: "xxx-large" }), h("div", { class: "skeleton-block bold medium" }), h("ptc-spacer", { size: "medium" }), h("div", { class: "is-grid has-row-gap-md has-col-gap-lg" }, h("div", { class: "is-col-8-lg" }, h("div", { class: "is-grid has-col-gap-lg" }, h("div", { class: "is-col-6-md skeleton-block card-block" }), h("div", { class: "is-col-6-md skeleton-block card-block" }), h("div", { class: "is-col-6-md skeleton-block card-block" }), h("div", { class: "is-col-6-md skeleton-block card-block" }))), h("div", { class: "is-col-4-lg skeleton-block big-card-block" })), h("ptc-spacer", { size: "medium" }), h("div", { class: "skeleton-block cta thick center" }), h("ptc-spacer", { size: "xxx-large" }), h("div", { class: "skeleton-block bold medium" }), h("ptc-spacer", { size: "medium" }), h("div", { class: "is-grid has-row-gap-md has-col-gap-lg" }, h("div", { class: "is-col-8-lg" }, h("div", { class: "is-grid has-col-gap-lg" }, h("div", { class: "is-col-6-md skeleton-block card-block" }), h("div", { class: "is-col-6-md skeleton-block card-block" }), h("div", { class: "is-col-6-md skeleton-block card-block" }), h("div", { class: "is-col-6-md skeleton-block card-block" }))), h("div", { class: "is-col-4-lg skeleton-block big-card-block" })), h("ptc-spacer", { size: "medium" }), h("div", { class: "skeleton-block cta thick center" })))));
|
|
83
86
|
}
|
|
84
|
-
case 'resource-center':
|
|
87
|
+
case 'resource-center': {
|
|
85
88
|
return (h("div", { class: "preloader-wrapper resource-center-skeleton-preloader" }, h("div", { class: "skeleton jumbo-image-mobile" }), h("div", { class: "skeleton-jumbotron" }, h("div", { class: "ptc-container" }, h("div", { class: "is-grid has-no-row-gap has-col-gap-lg" }, h("div", { class: "is-col-12 is-col-8-lg" }, h("div", { class: "sekleton" }, h("div", { class: "skeleton-block thin short" }), h("div", { class: "skeleton-block thick" }), h("div", { class: "skeleton-block thick" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "skeleton-block thin" }), h("div", { class: "skeleton-block thin medium" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "cta-wrap" }, h("div", { class: "skeleton-block cta" }), h("div", { class: "skeleton-block cta" }))))))), h("div", { class: 'ptc-container' }, h("div", { class: "is-grid desktop-cards" }, h("div", { class: "is-col-12-xs is-col-3-lg" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thin medium" }), h("div", { class: "skeleton-block bold long" }), h("div", { class: "skeleton-block bold" }), h("div", { class: "skeleton-block bold" }), h("div", { class: "skeleton-block bold" }))), h("div", { class: "is-col-12-xs is-col-9-lg" }, h("div", { class: "is-grid" }, Array.from({ length: 15 }).map(() => (h("div", { class: "is-col-6-sm is-col-4-xl skeleton-block card-block" })))))))));
|
|
86
|
-
case 'search-results': {
|
|
87
|
-
return (h("div", { class: "preloader-wrapper" }, h("div", { class: "preloader-search-results" }, h("div", { class: "ptc-container content-container" }, h("div", { class: "content-container-child" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block medium bold" }), h("div", { class: "skeleton-block thin longest" }), h("div", { class: "skeleton-block thin longer" }), h("div", { class: "skeleton-block thinner small" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }))), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" })))));
|
|
88
89
|
}
|
|
89
90
|
case 'ppc-embedded-form-skeleton': {
|
|
90
91
|
return (h("div", { class: "preloader-wrapper preloader-ppc-embedded-form" }, h("div", { class: "ptc-container" }, h("div", { class: "is-grid grid-1" }, h("div", { class: "is-col-12-xs is-col-12-sm is-col-10-md is-col-7-lg" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block very-bold line-1" }), h("div", { class: "skeleton-block thin line-2" }), h("div", { class: "skeleton-block thin line-3" }), h("div", { class: "skeleton-block thin line-4" }), h("div", { class: "skeleton-block thin line-5" }), h("div", { class: "skeleton-block thin line-6" }), h("div", { class: "skeleton-block thin line-7" }), h("div", { class: "skeleton-block thin line-3" }), h("div", { class: "skeleton-block thin line-4" }), h("div", { class: "skeleton-block thin line-5" }), h("div", { class: "skeleton-block thin line-8" }))), h("div", { class: "is-col-1-lg" }), h("div", { class: "is-col-12-xs is-col-12-sm is-col-4-lg form-block-2" })))));
|
|
91
92
|
}
|
|
92
|
-
case 'storefront': {
|
|
93
|
-
return (h("div", { class: "preloader-wrapper preloader-storefront" }, h("div", { class: "jumbotron " }, h("div", { class: "jumbotron-bg" }), h("div", { class: "sf-grid" }, h("div", { class: "tab-container ptc-container" }, h("div", { class: "is-grid sf-cards-grid" }, h("div", { class: "is-col-12 is-col-6-lg" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thick short-2" }))), h("div", { class: "is-col-12 is-col-6-lg" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thick short-2" }))), h("div", { class: "is-col-12 is-col-6-lg short-4" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thick short-2" }))), h("div", { class: "is-col-12 is-col-6-lg short-4" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thick short-2" }))))))), h("div", { class: "ptc-container ptc-section" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block promo-banner-block" }))), h("div", { class: "ptc-container" }, h("div", { class: "is-col-12" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thick short-16" }), h("div", { class: "skeleton-block thin short-11" })))), h("div", { class: "grid-wrapper" }, h("div", { class: "cards-grid-2" }, h("div", { class: "card" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block short-1" }))), h("div", { class: "card" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block short-1" }))), h("div", { class: "card" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block short-1" }))), h("div", { class: "card" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block short-1" })))))));
|
|
94
|
-
}
|
|
95
93
|
default:
|
|
96
94
|
return (h("div", { class: "ptc-section-standard preload-min-height" }, h("div", { class: "ptc-container" }, h("max-width-container", { "max-width": "960", breakpoint: 1200 }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-header" }, h("div", { class: "skeleton-block bold" }), h("div", { class: "skeleton-block wide bold" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "skeleton-block medium" }), h("div", { class: "skeleton-block narrow" }), h("div", { class: "skeleton-block short" })), h("div", { class: "skeleton-image" }), h("div", { class: "skeleton-text" }, h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block long" }), h("div", { class: "skeleton-block narrow" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block medium" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block long" }), h("div", { class: "skeleton-block medium" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block long" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block medium" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block wide" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block short bold" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block wide" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block medium" })))))));
|
|
97
95
|
}
|
|
@@ -82,4 +82,20 @@ ptc-link, ptc-square-card,
|
|
|
82
82
|
text-decoration: underline;
|
|
83
83
|
text-decoration-color: var(--color-green-07);
|
|
84
84
|
outline: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.light {
|
|
88
|
+
display: inline-block;
|
|
89
|
+
background: rgba(0, 0, 0, 0.54);
|
|
90
|
+
border-radius: 4px;
|
|
91
|
+
padding: 0.5rem 0.75rem;
|
|
92
|
+
padding: 0.25rem 1rem 0.5rem 0.75rem;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
position: relative;
|
|
95
|
+
display: block;
|
|
96
|
+
}
|
|
97
|
+
.light:hover span {
|
|
98
|
+
text-decoration: underline;
|
|
99
|
+
text-decoration-color: var(--color-green-07);
|
|
100
|
+
outline: none;
|
|
85
101
|
}
|
|
@@ -3,10 +3,18 @@ export class PtcPreviousUrl {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.href = undefined;
|
|
5
5
|
this.text = undefined;
|
|
6
|
+
this.theme = 'standard';
|
|
6
7
|
this.styles = undefined;
|
|
7
8
|
}
|
|
8
9
|
render() {
|
|
9
|
-
return (h(Host, null, this.styles && h("style", null, this.styles), h("list-item", { listType: 'breadcrumb', flushBefore: true, "link-href": this.href },
|
|
10
|
+
return (h(Host, null, this.styles && h("style", null, this.styles), h("list-item", { listType: 'breadcrumb', flushBefore: true, "link-href": this.href }, this.theme == 'light' ?
|
|
11
|
+
(h("a", { class: this.getCssClassMap() }, h("ptc-svg-btn", { class: "backarrow", "svg-name": "back-arrow", display: "inline-block" }), h("span", { class: "back-to-videos" }, this.text))) :
|
|
12
|
+
[h("ptc-svg-btn", { class: "backarrow", "svg-name": "back-arrow", display: "inline-block" }), h("a", { class: "back-to-videos" }, this.text)]), h("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
getCssClassMap() {
|
|
15
|
+
return {
|
|
16
|
+
[this.theme]: true
|
|
17
|
+
};
|
|
10
18
|
}
|
|
11
19
|
static get is() { return "ptc-previous-url"; }
|
|
12
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,6 +64,24 @@ export class PtcPreviousUrl {
|
|
|
56
64
|
"attribute": "text",
|
|
57
65
|
"reflect": false
|
|
58
66
|
},
|
|
67
|
+
"theme": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "'standard' | 'light'",
|
|
72
|
+
"resolved": "\"light\" | \"standard\"",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "theme",
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"defaultValue": "'standard'"
|
|
84
|
+
},
|
|
59
85
|
"styles": {
|
|
60
86
|
"type": "string",
|
|
61
87
|
"mutable": false,
|