@ptcwebops/ptcw-design 6.2.14 → 6.2.15-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/blog-detail-content_2.cjs.entry.js +1 -1
- package/dist/cjs/blog-detail-layout.cjs.entry.js +1 -1
- package/dist/cjs/blogs-search-section.cjs.entry.js +1 -1
- package/dist/cjs/{component-35540bfb.js → component-4dd13907.js} +2643 -832
- package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +1369 -0
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/homepage-toggled-content.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/most-popular-news.cjs.entry.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/ptc-background-video.cjs.entry.js +1 -1
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +46 -0
- package/dist/cjs/ptc-card_2.cjs.entry.js +1 -13
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +15 -20
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
- 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-footer.cjs.entry.js +1 -1
- package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +788 -6
- package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
- package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-card.cjs.entry.js +8 -2
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-submenu.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-pricing-packaging-table.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-card.cjs.entry.js +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-social-icons-footer.cjs.entry.js +7 -2
- 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-white-paper.cjs.entry.js +1 -7
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/{utils-87d7b99f.js → utils-ad441b07.js} +9 -0
- package/dist/collection/collection-manifest.json +1 -0
- 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 +20 -5
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +19 -1
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +31 -17
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +48 -8
- 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/ptc-bio-card/ptc-bio-card.css +20 -5
- package/dist/collection/components/ptc-button/ptc-button.js +4 -1
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +16 -0
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +20 -0
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +20 -5
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +50 -19
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +20 -5
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +20 -5
- package/dist/collection/components/ptc-footer/ptc-footer-v2.css +14 -1
- package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +10 -0
- package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +25 -1
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +20 -5
- package/dist/collection/components/ptc-link/ptc-link.css +8 -0
- package/dist/collection/components/ptc-link/ptc-link.js +4 -12
- package/dist/collection/components/ptc-modal/ptc-modal.css +66 -0
- package/dist/collection/components/ptc-modal/ptc-modal.js +81 -4
- 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 +20 -5
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +0 -680
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +0 -12
- 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 +20 -5
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +20 -5
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +20 -5
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +20 -5
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +20 -5
- package/dist/collection/components/ptc-scroll-button/ptc-scroll-button.js +94 -3
- package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +10 -0
- package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +24 -1
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +1 -1
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +20 -5
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +20 -5
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +20 -5
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +0 -6
- package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +7 -0
- 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/collection/utils/utils.js +8 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +269 -100
- 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-8c53e377.js → component-9c921cc6.js} +2592 -793
- package/dist/esm/event-jumbotron-example_15.entry.js +1351 -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/loader.js +1 -1
- package/dist/esm/modal-form-example.entry.js +90 -0
- 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-card-bottom.entry.js +42 -0
- package/dist/esm/ptc-card_2.entry.js +1 -13
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +15 -20
- package/dist/esm/ptc-data-lookup.entry.js +1 -2
- 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-footer.entry.js +1 -1
- package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +785 -5
- 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 +9 -3
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-nav-submenu.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-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 +7 -2
- 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-white-paper.entry.js +1 -7
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-1bbe0c30.js → utils-ff65c75b.js} +9 -1
- package/dist/ptcw-design/media/designer-v6.0.6.svg +30 -2
- package/dist/ptcw-design/{p-1cff585f.entry.js → p-0d806031.entry.js} +1 -1
- package/dist/ptcw-design/{p-4fc9c83b.entry.js → p-11e0edaf.entry.js} +1 -1
- package/dist/ptcw-design/p-1b257420.entry.js +1 -0
- package/dist/ptcw-design/p-257deac0.entry.js +1 -0
- package/dist/ptcw-design/{p-fce2bd81.entry.js → p-2749c178.entry.js} +1 -1
- package/dist/ptcw-design/p-2ac5ed9c.entry.js +1 -0
- package/dist/ptcw-design/{p-942850e0.entry.js → p-2c6fc745.entry.js} +1 -1
- package/dist/ptcw-design/p-34c50b3e.entry.js +1 -0
- package/dist/ptcw-design/p-36007a57.entry.js +1 -0
- package/dist/ptcw-design/p-50d68602.entry.js +1 -0
- package/dist/ptcw-design/p-56a2a9dc.entry.js +1 -0
- package/dist/ptcw-design/p-58f138a3.entry.js +1 -0
- package/dist/ptcw-design/p-5ef23b5c.entry.js +1 -0
- package/dist/ptcw-design/{p-f07e64f2.entry.js → p-6d3326da.entry.js} +1 -1
- package/dist/ptcw-design/p-72df6678.entry.js +1 -0
- package/dist/ptcw-design/{p-d1857ada.entry.js → p-77cad16c.entry.js} +1 -1
- package/dist/ptcw-design/p-799afee5.entry.js +1 -0
- package/dist/ptcw-design/{p-990bcbc4.entry.js → p-7a9611b4.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ac7e3ce.entry.js → p-808ec62a.entry.js} +1 -1
- package/dist/ptcw-design/p-8872161f.js +1 -0
- package/dist/ptcw-design/p-90c4f08b.entry.js +1 -0
- package/dist/ptcw-design/p-95187918.entry.js +1 -0
- package/dist/ptcw-design/p-9e915e82.entry.js +1 -0
- package/dist/ptcw-design/p-a2caf246.entry.js +68 -0
- package/dist/ptcw-design/p-a2d9831c.entry.js +1 -0
- package/dist/ptcw-design/p-a3b57ede.entry.js +1 -0
- package/dist/ptcw-design/{p-65f19054.entry.js → p-ae970a60.entry.js} +1 -1
- package/dist/ptcw-design/p-b1ebac6f.entry.js +1 -0
- package/dist/ptcw-design/p-ba8c58a7.entry.js +1 -0
- package/dist/ptcw-design/{p-a3a04f4e.entry.js → p-bb902570.entry.js} +1 -1
- package/dist/ptcw-design/p-bcab66bf.js +336 -0
- package/dist/ptcw-design/{p-4036055e.entry.js → p-c37a3bd2.entry.js} +1 -1
- package/dist/ptcw-design/{p-717d3a75.entry.js → p-c66b8926.entry.js} +1 -1
- package/dist/ptcw-design/{p-56a4c6d4.entry.js → p-c95f423e.entry.js} +1 -1
- package/dist/ptcw-design/{p-dee4bb6c.entry.js → p-d10cb999.entry.js} +1 -1
- package/dist/ptcw-design/p-d2e26642.entry.js +1 -0
- package/dist/ptcw-design/{p-48183365.entry.js → p-d756db27.entry.js} +1 -1
- package/dist/ptcw-design/{p-873c711b.entry.js → p-d9abe7e8.entry.js} +1 -1
- package/dist/ptcw-design/{p-53f49500.entry.js → p-da82dc93.entry.js} +1 -1
- package/dist/ptcw-design/p-de960790.entry.js +1 -0
- package/dist/ptcw-design/{p-deebd138.entry.js → p-e3f8e5d5.entry.js} +1 -1
- package/dist/ptcw-design/{p-b4564411.entry.js → p-e4000363.entry.js} +1 -1
- package/dist/ptcw-design/{p-d3e5b65c.entry.js → p-ea7369e9.entry.js} +1 -1
- package/dist/ptcw-design/p-f8512dc9.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 +5 -3
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
- package/dist/types/components/ptc-button/ptc-button.d.ts +1 -0
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +2 -0
- package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +3 -2
- package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +6 -0
- package/dist/types/components/ptc-link/ptc-link.d.ts +1 -0
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +5 -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-scroll-button/ptc-scroll-button.d.ts +12 -0
- package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +5 -0
- package/dist/types/components.d.ts +60 -4
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +5 -1
- package/dist/cjs/component-1b8ad4d2.js +0 -1819
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -127
- package/dist/cjs/icon-asset.cjs.entry.js +0 -65
- package/dist/cjs/list-item.cjs.entry.js +0 -48
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
- package/dist/cjs/ptc-button.cjs.entry.js +0 -84
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -132
- package/dist/cjs/ptc-card-content.cjs.entry.js +0 -68
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -213
- package/dist/cjs/ptc-img.cjs.entry.js +0 -133
- package/dist/cjs/ptc-link.cjs.entry.js +0 -95
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -670
- package/dist/cjs/ptc-para.cjs.entry.js +0 -127
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -84
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-title.cjs.entry.js +0 -152
- package/dist/cjs/validation-messages-33a4f26b.js +0 -126
- package/dist/esm/component-9beac35b.js +0 -1802
- package/dist/esm/event-jumbotron-example.entry.js +0 -123
- package/dist/esm/icon-asset.entry.js +0 -61
- package/dist/esm/list-item.entry.js +0 -44
- package/dist/esm/ptc-breadcrumb.entry.js +0 -43
- package/dist/esm/ptc-button.entry.js +0 -80
- package/dist/esm/ptc-card-bottom_2.entry.js +0 -127
- package/dist/esm/ptc-card-content.entry.js +0 -64
- package/dist/esm/ptc-close-icon_2.entry.js +0 -208
- package/dist/esm/ptc-img.entry.js +0 -129
- package/dist/esm/ptc-link.entry.js +0 -91
- package/dist/esm/ptc-multi-select_2.entry.js +0 -665
- package/dist/esm/ptc-para.entry.js +0 -123
- package/dist/esm/ptc-scroll-button.entry.js +0 -80
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-title.entry.js +0 -148
- package/dist/esm/validation-messages-adbb6518.js +0 -124
- package/dist/ptcw-design/p-00e21489.entry.js +0 -1
- package/dist/ptcw-design/p-0b8a73e1.entry.js +0 -68
- package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
- package/dist/ptcw-design/p-1022ad8b.entry.js +0 -1
- package/dist/ptcw-design/p-136a91bf.entry.js +0 -1
- package/dist/ptcw-design/p-18a5a338.js +0 -1
- package/dist/ptcw-design/p-18f59395.entry.js +0 -1
- package/dist/ptcw-design/p-1b7087e7.entry.js +0 -1
- package/dist/ptcw-design/p-25a25451.entry.js +0 -1
- package/dist/ptcw-design/p-2a672c0e.entry.js +0 -1
- package/dist/ptcw-design/p-2cfcba27.entry.js +0 -1
- package/dist/ptcw-design/p-2e19248b.entry.js +0 -1
- package/dist/ptcw-design/p-2e8f7a08.entry.js +0 -1
- package/dist/ptcw-design/p-3f71553e.entry.js +0 -1
- package/dist/ptcw-design/p-4e2bb0e0.entry.js +0 -1
- package/dist/ptcw-design/p-583608d9.entry.js +0 -1
- package/dist/ptcw-design/p-5d885144.entry.js +0 -1
- package/dist/ptcw-design/p-5dae4f30.entry.js +0 -1
- package/dist/ptcw-design/p-7793babb.entry.js +0 -1
- package/dist/ptcw-design/p-8daf00ae.entry.js +0 -1
- package/dist/ptcw-design/p-98426799.js +0 -203
- package/dist/ptcw-design/p-98844b50.js +0 -134
- package/dist/ptcw-design/p-9e9ae28c.entry.js +0 -1
- package/dist/ptcw-design/p-a870cd4a.entry.js +0 -1
- package/dist/ptcw-design/p-ad87bdab.js +0 -1
- package/dist/ptcw-design/p-b35ad9ee.entry.js +0 -1
- package/dist/ptcw-design/p-b3bbd17d.entry.js +0 -1
- package/dist/ptcw-design/p-b6e5379a.entry.js +0 -1
- package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
- package/dist/ptcw-design/p-bb15d7e5.entry.js +0 -1
- package/dist/ptcw-design/p-cbfe46ce.entry.js +0 -1
- package/dist/ptcw-design/p-d734b373.entry.js +0 -1
- package/dist/ptcw-design/p-dc488936.entry.js +0 -1
- package/dist/ptcw-design/p-dd73c4d1.entry.js +0 -1
- package/dist/ptcw-design/p-e614999d.entry.js +0 -1
- package/dist/ptcw-design/p-e7937ac1.entry.js +0 -1
- package/dist/ptcw-design/p-e9a7475b.entry.js +0 -1
- package/dist/ptcw-design/p-fcad5568.entry.js +0 -1
|
@@ -4,7 +4,7 @@ export class EventJumbotronExample {
|
|
|
4
4
|
this.startX = 0;
|
|
5
5
|
this.scrollLeft = 0;
|
|
6
6
|
this.updateContainerClass = () => {
|
|
7
|
-
if (this.
|
|
7
|
+
if (this.isDesktop) {
|
|
8
8
|
this.sliderWrapper.classList.add('ptc-container', 'u-paddingRight-flush', 'u-paddingLeft-flush');
|
|
9
9
|
this.disableDragging();
|
|
10
10
|
}
|
|
@@ -30,20 +30,30 @@ export class EventJumbotronExample {
|
|
|
30
30
|
this.stopDragging = () => {
|
|
31
31
|
this.isMouseDown = false;
|
|
32
32
|
};
|
|
33
|
+
this.closeActiveModal = () => {
|
|
34
|
+
document.querySelectorAll('ptc-modal').forEach((modal) => {
|
|
35
|
+
if (modal.show)
|
|
36
|
+
modal.show = false;
|
|
37
|
+
});
|
|
38
|
+
};
|
|
33
39
|
this.cards = [];
|
|
40
|
+
this.modalBtnCloseText = "Close";
|
|
34
41
|
this.activePanel = null;
|
|
35
42
|
this.isDragging = false;
|
|
36
43
|
this.isMouseDown = false;
|
|
37
|
-
this.
|
|
44
|
+
this.isDesktop = window.innerWidth >= 992;
|
|
45
|
+
}
|
|
46
|
+
onScreenStatusChange() {
|
|
47
|
+
!this.isDesktop && this.closeActiveModal();
|
|
38
48
|
}
|
|
39
49
|
handleCardClick(cardIndex) {
|
|
40
50
|
const card = this.slider.children[cardIndex];
|
|
41
51
|
const panelID = `panel-${cardIndex}`;
|
|
42
52
|
const panel = document.getElementById(panelID);
|
|
43
|
-
if (this.
|
|
53
|
+
if (this.isDesktop && panel) {
|
|
44
54
|
this.showPanel(card, panel);
|
|
45
55
|
}
|
|
46
|
-
else if (!this.
|
|
56
|
+
else if (!this.isDesktop) {
|
|
47
57
|
if (!this.isDragging) {
|
|
48
58
|
const modal = document.getElementById(`modal-${cardIndex}`);
|
|
49
59
|
console.log('open: ' + modal.id);
|
|
@@ -60,10 +70,13 @@ export class EventJumbotronExample {
|
|
|
60
70
|
c.classList.add('hidden');
|
|
61
71
|
});
|
|
62
72
|
panel.style.display = 'block';
|
|
73
|
+
panel.style.width = `calc(100% - ${card.getBoundingClientRect().width}px`;
|
|
74
|
+
this.arrowButtons = document.querySelectorAll('ptc-scroll-button');
|
|
63
75
|
setTimeout(() => {
|
|
64
76
|
panel.style.transform = `translateX(${card.offsetWidth}px)`;
|
|
65
77
|
panel.classList.add('visible');
|
|
66
78
|
card.classList.add('active');
|
|
79
|
+
this.arrowButtons.forEach(button => button.initVisibility());
|
|
67
80
|
this.activePanel = panel.id;
|
|
68
81
|
}, 100);
|
|
69
82
|
}
|
|
@@ -94,21 +107,24 @@ export class EventJumbotronExample {
|
|
|
94
107
|
['mouseup', 'mouseleave'].forEach(event => this.slider.removeEventListener(event, this.stopDragging));
|
|
95
108
|
}
|
|
96
109
|
componentDidLoad() {
|
|
110
|
+
// const cardOverlays = document.querySelectorAll('overlay');
|
|
97
111
|
this.sliderWrapper = document.querySelector('.jumbotron-cards-wrapper');
|
|
98
112
|
this.slider = document.querySelector('.jumbotron-cards');
|
|
99
113
|
this.updateContainerClass();
|
|
100
114
|
window.addEventListener('resize', () => {
|
|
101
|
-
this.
|
|
115
|
+
this.isDesktop = window.innerWidth >= 992;
|
|
102
116
|
this.updateContainerClass();
|
|
117
|
+
this.activePanel && this.closePanel(this.activePanel);
|
|
103
118
|
});
|
|
119
|
+
// cardOverlays.forEach( (ele=> {(ele as HTMLPtcOverlayElement).setOverlayColorValue('linear-gradient(0deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.70) 100%)')}))
|
|
104
120
|
}
|
|
105
121
|
render() {
|
|
106
122
|
const modalContentSlots = Array.from(this.el.querySelectorAll('template'));
|
|
107
123
|
return [
|
|
108
124
|
h("div", { class: {
|
|
109
125
|
'event-jumbotron': true,
|
|
110
|
-
'ptc-container': this.
|
|
111
|
-
} }, h("div", { class: "jumbotron-cards-wrapper" }, h("div", { class: "jumbotron-cards" }, this.cards.map((card, index) => (h("div", { class: "card", onClick: () => this.handleCardClick(index), "data-panel": `panel-${index}` }, h("ptc-img", { "border-radius": "radius-standard", "image-type": "smart-bg", "img-url": card.cardBg, "load-mode": "lazy-bg", styles: "ptc-img{position: absolute; width: 100%; height: 100%; z-index: 0}" }), h("
|
|
126
|
+
'ptc-container': this.isDesktop,
|
|
127
|
+
} }, h("div", { class: "jumbotron-cards-wrapper" }, h("div", { class: "jumbotron-cards" }, this.cards.map((card, index) => (h("div", { class: "card", onClick: () => this.handleCardClick(index), "data-panel": `panel-${index}` }, h("ptc-img", { "border-radius": "radius-standard", "image-type": "smart-bg", "img-url": card.cardBg, "load-mode": "lazy-bg", styles: "ptc-img{position: absolute; width: 100%; height: 100%; z-index: 0}" }), h("div", { class: "text-wrapper" }, h("h3", { class: "card-title" }, card.title, ' ', h("span", null, card.description)), !this.activePanel && [h("div", { innerHTML: card.panelContent })]))))), this.cards.map((_, index) => (h("div", { id: `panel-${index}`, class: "panel" }, h("button", { tabindex: "-1", class: "close-panel", onClick: () => this.closePanel(`panel-${index}`), "aria-label": "Close panel" }, h("ptc-close-icon", null)), h("slot", { name: `panel-content-${index}` })))), !this.isDesktop && this.cards.map((_, index) => (h("ptc-modal", { id: `modal-${index}`, show: false, "close-on-blur": true, "modal-type": "event-listing", "custom-class": "event-mobile-modal", headerOnlyText1: this.cards[index].title, headerOnlyText2: this.cards[index].description, headerOnlyBg: this.cards[index].cardBg, bottomCloseBtn: this.modalBtnCloseText }, h("div", { innerHTML: modalContentSlots[index].innerHTML })))))),
|
|
112
128
|
h("div", { class: "white-placeholder" }),
|
|
113
129
|
];
|
|
114
130
|
}
|
|
@@ -141,6 +157,24 @@ export class EventJumbotronExample {
|
|
|
141
157
|
"text": ""
|
|
142
158
|
},
|
|
143
159
|
"defaultValue": "[]"
|
|
160
|
+
},
|
|
161
|
+
"modalBtnCloseText": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"mutable": false,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "string",
|
|
166
|
+
"resolved": "string",
|
|
167
|
+
"references": {}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": ""
|
|
174
|
+
},
|
|
175
|
+
"attribute": "modal-btn-close-text",
|
|
176
|
+
"reflect": false,
|
|
177
|
+
"defaultValue": "\"Close\""
|
|
144
178
|
}
|
|
145
179
|
};
|
|
146
180
|
}
|
|
@@ -149,8 +183,14 @@ export class EventJumbotronExample {
|
|
|
149
183
|
"activePanel": {},
|
|
150
184
|
"isDragging": {},
|
|
151
185
|
"isMouseDown": {},
|
|
152
|
-
"
|
|
186
|
+
"isDesktop": {}
|
|
153
187
|
};
|
|
154
188
|
}
|
|
155
189
|
static get elementRef() { return "el"; }
|
|
190
|
+
static get watchers() {
|
|
191
|
+
return [{
|
|
192
|
+
"propName": "isDesktop",
|
|
193
|
+
"methodName": "onScreenStatusChange"
|
|
194
|
+
}];
|
|
195
|
+
}
|
|
156
196
|
}
|
package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.form-wrapper {
|
|
6
|
+
width: 371px;
|
|
7
|
+
display: flex;
|
|
8
|
+
border-radius: 3px;
|
|
9
|
+
background: #FFF;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: center;
|
|
12
|
+
padding: 0px 32px;
|
|
13
|
+
|
|
14
|
+
@media only screen and (min-width: 360px) and (max-width: 479.55px) {
|
|
15
|
+
max-width: 360px;
|
|
16
|
+
width: 360px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.button-wrapper {
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: flex-end;
|
|
22
|
+
gap: 20px;
|
|
23
|
+
margin-top: 48px;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
export class PtcForm {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.formData = {
|
|
5
|
+
email: '',
|
|
6
|
+
firstName: '',
|
|
7
|
+
lastName: '',
|
|
8
|
+
company: '',
|
|
9
|
+
country: '',
|
|
10
|
+
phone: '',
|
|
11
|
+
inquiryReason: '',
|
|
12
|
+
howhearselfreport: '',
|
|
13
|
+
policyChecked: false,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
// private countryEle: HTMLPtcSelectElement;
|
|
17
|
+
// private inquiryreasonEle: HTMLPtcTextfieldElement;
|
|
18
|
+
// private howhearselfreport: HTMLPtcTextfieldElement;
|
|
19
|
+
componentDidLoad() {
|
|
20
|
+
this.formButton = this.el.querySelector('.form-submit');
|
|
21
|
+
this.formButton.addEventListener('click', this.handleSubmit.bind(this));
|
|
22
|
+
//get Email
|
|
23
|
+
this.emailEle = this.el.querySelector('ptc-textfield[field-id="contact-email"]');
|
|
24
|
+
this.firstNameEle = this.el.querySelector('ptc-textfield[field-id="contact-firstname"]');
|
|
25
|
+
this.lastNameEle = this.el.querySelector('ptc-textfield[field-id="contact-lastname"]');
|
|
26
|
+
this.companyEle = this.el.querySelector('ptc-textfield[field-id="company"]');
|
|
27
|
+
this.phoneEle = this.el.querySelector('ptc-textfield[field-id="contact-phone"]');
|
|
28
|
+
// this.countryEle = this.el.querySelector('ptc-select[field-id="contact-country"]')
|
|
29
|
+
// this.inquiryreasonEle = this.el.querySelector('ptc-textfield[field-id="contact-inquiry"]')
|
|
30
|
+
// this.howhearselfreport = this.el.querySelector('ptc-textfield[field-id="self-reporting"]')
|
|
31
|
+
}
|
|
32
|
+
handleInputChange(field, value) {
|
|
33
|
+
this.formData = Object.assign(Object.assign({}, this.formData), { [field]: value });
|
|
34
|
+
}
|
|
35
|
+
handleSubmit(event) {
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
this.formData.email = this.emailEle.inputValue;
|
|
38
|
+
this.formData.firstName = this.firstNameEle.inputValue;
|
|
39
|
+
this.formData.lastName = this.lastNameEle.inputValue;
|
|
40
|
+
this.formData.company = this.companyEle.inputValue;
|
|
41
|
+
this.formData.phone = this.phoneEle.inputValue;
|
|
42
|
+
// this.formData.country = this.countryEle.inputValue;
|
|
43
|
+
// this.formData.inquiryReason= this.inquiryreasonEle.inputValue;
|
|
44
|
+
// this.formData.howhearselfreport = this.howhearselfreport.inputValue;
|
|
45
|
+
// console.log("get form Data: " + this.formData.email)
|
|
46
|
+
if (this.isValid()) {
|
|
47
|
+
const formSubmitEvent = new CustomEvent('formSubmit', {
|
|
48
|
+
detail: this.formData,
|
|
49
|
+
bubbles: true,
|
|
50
|
+
});
|
|
51
|
+
this.el.dispatchEvent(formSubmitEvent);
|
|
52
|
+
console.log('Form Submitted: ' + this.formData);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
console.log('Form validation failed');
|
|
56
|
+
console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
isValid() {
|
|
60
|
+
const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
|
|
61
|
+
const invalidLength = document.querySelectorAll('.invalid-field').length;
|
|
62
|
+
// console.log('invalid fields length: ' + invalidLength), check the select field
|
|
63
|
+
return (email !== '' &&
|
|
64
|
+
phone !== '' &&
|
|
65
|
+
firstName !== '' &&
|
|
66
|
+
lastName !== '' &&
|
|
67
|
+
company !== '' &&
|
|
68
|
+
country !== '' &&
|
|
69
|
+
inquiryReason !== '' &&
|
|
70
|
+
howhearselfreport != '' &&
|
|
71
|
+
policyChecked &&
|
|
72
|
+
invalidLength === 0);
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
const multiSelectItems = [
|
|
76
|
+
{ text: 'Item 1', selected: false, ptcDataEloquaName: 'item_1', ptcDataTargetEloquaName: 'item_target-1' },
|
|
77
|
+
{ text: 'Item 2', selected: false, ptcDataEloquaName: 'item_2', ptcDataTargetEloquaName: 'item_target-2' },
|
|
78
|
+
{ text: 'Item 3', selected: false, ptcDataEloquaName: 'item_3', ptcDataTargetEloquaName: 'item_target-3' }
|
|
79
|
+
];
|
|
80
|
+
return (h(Host, null, h("div", { class: "ptc-container u-flex u-flex-justify-center" }, h("div", { class: "form-wrapper" }, h("ptc-title", { "seo-compatibility-mode": true, "text-align": "left", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false", "title-size": "medium" }, h("h2", null, "PTC\u2019s PLM application suite combines the power of Windchill, the industry\u2019s #1 PLM software with Thingworx")), h("ptc-spacer", { size: "x-small", breakpoint: "small" }), h("ptc-spacer", { size: "small", breakpoint: "x-small" }), h("ptc-para", { "seo-compatibility-mode": true, "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-style": "main", "para-line-h": "line-height-densest" }, "PTC\u2019s market-leading, purpose-built IIoT platform. The suite offers a mix of Packages, Add-Ons, and Apps to best suit your business needs:"), h("ptc-spacer", { size: "x-small", breakpoint: "small" }), h("ptc-spacer", { size: "small", breakpoint: "x-small" }), h("max-width-container", { "max-width": "277", breakpoint: 480 }, h("ptc-title", { type: "h2", "text-align": "", "title-size": "x-small", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-6", "is-plm-hub": "false" }, "Please fill out the form and a PTC sales representative will be in touch."), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "small", size: "small" })), h("form", { onSubmit: event => this.handleSubmit(event) }, h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", "field-name": "firstname" }), h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", "field-name": "lastname" }), h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", "field-name": "company" }), h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "email" }), h("ptc-textfield", { "field-id": "company-email", "label-text": "Company Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "companyemail" }), h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", "field-name": "country" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item placehoder-li", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Select a country")), h("li", { class: "mdc-list-item", "data-value": "USA" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "USA")), h("li", { class: "mdc-list-item", "data-value": "Canada" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Canada")), h("li", { class: "mdc-list-item", "data-value": "China" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "China")))), h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", "field-name": "phone" }), h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", "field-name": "inquiryreason", "field-id": "contact-inquiry" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "Please select a value" }, h("span", { class: "mdc-list-item__ripple" })), h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), h("li", { class: "mdc-list-item", "data-value": "CAD" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), h("ptc-multi-select", { items: multiSelectItems, "is-required": 'true' }), h("ptc-textfield", { "field-id": "Self-Reporting", "label-text": "How can we help you?*", type: "text", "ptc-data-eloqua-name": "HowHearSelfReport", "ptc-max-length": "100", "field-name": "howhearselfreport" }), h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "test" }), h("div", { class: "button-wrapper" }, h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Submit"), h("ptc-button", { class: "form-close", color: "ptc-tertiary", type: "button", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Cancel")))))));
|
|
81
|
+
}
|
|
82
|
+
static get is() { return "modal-form-example"; }
|
|
83
|
+
static get originalStyleUrls() {
|
|
84
|
+
return {
|
|
85
|
+
"$": ["modal-form-example.css"]
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
static get styleUrls() {
|
|
89
|
+
return {
|
|
90
|
+
"$": ["modal-form-example.css"]
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
static get states() {
|
|
94
|
+
return {
|
|
95
|
+
"formData": {}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
static get elementRef() { return "el"; }
|
|
99
|
+
}
|
|
@@ -82,23 +82,38 @@ a:focus-visible {
|
|
|
82
82
|
border-radius: var(--ptc-border-radius-standard);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-plm-grey a.light-link {
|
|
85
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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), .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), .background-plm-grey a.light-link {
|
|
86
86
|
color: var(--color-blue-04);
|
|
87
|
+
margin: -2px;
|
|
88
|
+
border: 2px solid transparent;
|
|
87
89
|
}
|
|
88
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-plm-grey a.light-link:visited {
|
|
90
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):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):visited, .background-plm-grey a.light-link:visited {
|
|
89
91
|
color: var(--color-blue-06);
|
|
90
92
|
}
|
|
91
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
93
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
92
94
|
transition: none;
|
|
93
95
|
color: var(--color-blue-07);
|
|
94
96
|
}
|
|
95
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
97
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
96
98
|
color: var(--color-blue-05);
|
|
97
99
|
}
|
|
98
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-plm-grey a.light-link.disabled {
|
|
100
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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).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).disabled, .background-plm-grey a.light-link.disabled {
|
|
99
101
|
color: var(--color-gray-04) !important;
|
|
100
102
|
cursor: not-allowed;
|
|
101
103
|
}
|
|
104
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):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):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
105
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
106
|
+
border: 2px solid white;
|
|
107
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
108
|
+
}
|
|
109
|
+
.light-links .podcast-cta-section a, .background-grey-10 .podcast-cta-section a, .background-plm-grey .podcast-cta-section a {
|
|
110
|
+
border: 2px solid transparent;
|
|
111
|
+
}
|
|
112
|
+
.light-links .podcast-cta-section a:focus-visible, .background-grey-10 .podcast-cta-section a:focus-visible, .background-plm-grey .podcast-cta-section a:focus-visible {
|
|
113
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
114
|
+
border: 2px solid white;
|
|
115
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
116
|
+
}
|
|
102
117
|
|
|
103
118
|
.ptc-link {
|
|
104
119
|
color: var(--color-gray-10);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
|
-
import { getSeoTagType } from '../../utils/utils';
|
|
2
|
+
import { getSeoTagType, CheckDarkFocusState } from '../../utils/utils';
|
|
3
3
|
export class PtcButton {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.disabled = false;
|
|
@@ -27,6 +27,9 @@ export class PtcButton {
|
|
|
27
27
|
clickEventHandler() {
|
|
28
28
|
this.clickEvent.emit();
|
|
29
29
|
}
|
|
30
|
+
componentWillLoad() {
|
|
31
|
+
CheckDarkFocusState(this, this.el);
|
|
32
|
+
}
|
|
30
33
|
seoCompRender() {
|
|
31
34
|
const classMap = this.getCssClassMap();
|
|
32
35
|
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
@@ -164,11 +164,21 @@ ptc-link, ptc-square-card,
|
|
|
164
164
|
border-radius: var(--ptc-border-radius-large);
|
|
165
165
|
transition: background var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
166
166
|
}
|
|
167
|
+
:host(.extra-tall) a:focus-visible {
|
|
168
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
169
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
170
|
+
}
|
|
167
171
|
|
|
168
172
|
:host(.color-outlined) {
|
|
169
173
|
position: relative;
|
|
170
174
|
border-radius: var(--ptc-border-radius-large);
|
|
171
175
|
}
|
|
176
|
+
:host(.color-outlined) a:focus-visible {
|
|
177
|
+
box-shadow: 0 0 0 5px var(--keyboard-nav-outline);
|
|
178
|
+
border-radius: var(--ptc-border-radius-standard) !important;
|
|
179
|
+
display: block;
|
|
180
|
+
outline: none;
|
|
181
|
+
}
|
|
172
182
|
|
|
173
183
|
:host(.card-video-p) {
|
|
174
184
|
padding: var(--ptc-element-spacing-05);
|
|
@@ -253,4 +263,10 @@ ptc-link, ptc-square-card,
|
|
|
253
263
|
border-radius: var(--ptc-border-radius-standard) !important;
|
|
254
264
|
display: block;
|
|
255
265
|
outline: none;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:host(.disabled) a {
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
cursor: default;
|
|
271
|
+
text-decoration: none;
|
|
256
272
|
}
|
|
@@ -7,6 +7,7 @@ export class PtcCardPlm {
|
|
|
7
7
|
this.linkTarget = '_self';
|
|
8
8
|
this.isLoading = false;
|
|
9
9
|
this.trackerId = undefined;
|
|
10
|
+
this.disabled = false;
|
|
10
11
|
this.styles = undefined;
|
|
11
12
|
this.darkFocusState = false;
|
|
12
13
|
}
|
|
@@ -48,6 +49,7 @@ export class PtcCardPlm {
|
|
|
48
49
|
getCssClassMap() {
|
|
49
50
|
return {
|
|
50
51
|
[this.cardType]: this.cardType ? true : false,
|
|
52
|
+
['disabled']: this.disabled,
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
emitHeight() {
|
|
@@ -192,6 +194,24 @@ export class PtcCardPlm {
|
|
|
192
194
|
"attribute": "tracker-id",
|
|
193
195
|
"reflect": false
|
|
194
196
|
},
|
|
197
|
+
"disabled": {
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"mutable": false,
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "boolean",
|
|
202
|
+
"resolved": "boolean",
|
|
203
|
+
"references": {}
|
|
204
|
+
},
|
|
205
|
+
"required": false,
|
|
206
|
+
"optional": true,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": "Disable links"
|
|
210
|
+
},
|
|
211
|
+
"attribute": "disabled",
|
|
212
|
+
"reflect": false,
|
|
213
|
+
"defaultValue": "false"
|
|
214
|
+
},
|
|
195
215
|
"styles": {
|
|
196
216
|
"type": "string",
|
|
197
217
|
"mutable": false,
|
|
@@ -781,23 +781,38 @@ a:focus-visible {
|
|
|
781
781
|
border-radius: var(--ptc-border-radius-standard);
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-plm-grey a.light-link {
|
|
784
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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), .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), .background-plm-grey a.light-link {
|
|
785
785
|
color: var(--color-blue-04);
|
|
786
|
+
margin: -2px;
|
|
787
|
+
border: 2px solid transparent;
|
|
786
788
|
}
|
|
787
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-plm-grey a.light-link:visited {
|
|
789
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):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):visited, .background-plm-grey a.light-link:visited {
|
|
788
790
|
color: var(--color-blue-06);
|
|
789
791
|
}
|
|
790
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
792
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
791
793
|
transition: none;
|
|
792
794
|
color: var(--color-blue-07);
|
|
793
795
|
}
|
|
794
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
796
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
795
797
|
color: var(--color-blue-05);
|
|
796
798
|
}
|
|
797
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-plm-grey a.light-link.disabled {
|
|
799
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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).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).disabled, .background-plm-grey a.light-link.disabled {
|
|
798
800
|
color: var(--color-gray-04) !important;
|
|
799
801
|
cursor: not-allowed;
|
|
800
802
|
}
|
|
803
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):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):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
804
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
805
|
+
border: 2px solid white;
|
|
806
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
807
|
+
}
|
|
808
|
+
.light-links .podcast-cta-section a, .background-grey-10 .podcast-cta-section a, .background-plm-grey .podcast-cta-section a {
|
|
809
|
+
border: 2px solid transparent;
|
|
810
|
+
}
|
|
811
|
+
.light-links .podcast-cta-section a:focus-visible, .background-grey-10 .podcast-cta-section a:focus-visible, .background-plm-grey .podcast-cta-section a:focus-visible {
|
|
812
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
813
|
+
border: 2px solid white;
|
|
814
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
815
|
+
}
|
|
801
816
|
|
|
802
817
|
.ptc-link {
|
|
803
818
|
color: var(--color-gray-10);
|
|
@@ -8,6 +8,7 @@ export class PtcCollapseList {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
this.data = undefined;
|
|
10
10
|
this.searchText = undefined;
|
|
11
|
+
this.listOpened = false;
|
|
11
12
|
this.showSearchBar = true;
|
|
12
13
|
this.header = undefined;
|
|
13
14
|
this.trackerId = undefined;
|
|
@@ -20,6 +21,7 @@ export class PtcCollapseList {
|
|
|
20
21
|
this.placeholderText = undefined;
|
|
21
22
|
this.debounceUpdateDelay = undefined;
|
|
22
23
|
this.allowMultiSelect = true;
|
|
24
|
+
this.expandFirstItem = false;
|
|
23
25
|
}
|
|
24
26
|
componentWillLoad() {
|
|
25
27
|
this.loadListItems();
|
|
@@ -40,20 +42,18 @@ export class PtcCollapseList {
|
|
|
40
42
|
});
|
|
41
43
|
};
|
|
42
44
|
this.debouncedUpdatedEvent = debounce(event, this.debounceUpdateDelay, this);
|
|
43
|
-
this.
|
|
45
|
+
if (this.expandFirstItem) {
|
|
46
|
+
this.firstItemExpand();
|
|
47
|
+
}
|
|
44
48
|
}
|
|
45
|
-
|
|
49
|
+
firstItemExpand() {
|
|
46
50
|
var _a;
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
ulElement.style.maxHeight = `${ulElement.scrollHeight}px`;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
});
|
|
51
|
+
const firstItem = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.level-1');
|
|
52
|
+
firstItem === null || firstItem === void 0 ? void 0 : firstItem.classList.add('expanded');
|
|
53
|
+
const ulElement = firstItem === null || firstItem === void 0 ? void 0 : firstItem.querySelector('ul');
|
|
54
|
+
if (ulElement) {
|
|
55
|
+
ulElement.style.maxHeight = `${ulElement.scrollHeight}px`;
|
|
56
|
+
}
|
|
57
57
|
}
|
|
58
58
|
componentDidUpdate() {
|
|
59
59
|
this.viewUpdated.emit({
|
|
@@ -127,8 +127,6 @@ export class PtcCollapseList {
|
|
|
127
127
|
newItem.searchBoxPlaceholder = z.placeholderText;
|
|
128
128
|
newItem.tooltip = z.tooltip;
|
|
129
129
|
this.setUpCategory(newItem.category, newItem.allowMultiSelect);
|
|
130
|
-
// Ensure listOpened is set based on is-list-opened attribute
|
|
131
|
-
newItem.listOpened = z.hasOwnProperty('listOpened');
|
|
132
130
|
}
|
|
133
131
|
if (z.collapseListItem) {
|
|
134
132
|
newItem.children = new Array();
|
|
@@ -165,7 +163,7 @@ export class PtcCollapseList {
|
|
|
165
163
|
collapseAllFirstLevelItems(exclude) {
|
|
166
164
|
let items = this.el.shadowRoot.querySelectorAll('.level-1');
|
|
167
165
|
items.forEach((z) => {
|
|
168
|
-
if (z.classList.contains('expanded') && z != exclude) {
|
|
166
|
+
if (z.classList.contains('expanded') && z != exclude && !this.listOpened) {
|
|
169
167
|
z.classList.remove('expanded');
|
|
170
168
|
}
|
|
171
169
|
});
|
|
@@ -410,10 +408,7 @@ export class PtcCollapseList {
|
|
|
410
408
|
expandable = false;
|
|
411
409
|
}
|
|
412
410
|
}
|
|
413
|
-
return (h("li", { id: z.trackerId, class:
|
|
414
|
-
[levelClass]: true,
|
|
415
|
-
listOpen: z.listOpened
|
|
416
|
-
} }, getLink(z, icon, level, expandable, selectable), z.children ? renderLevel(z.children, level + 1, searchOptions) : ''));
|
|
411
|
+
return (h("li", { id: z.trackerId, class: levelClass }, getLink(z, icon, level, expandable, selectable), z.children ? renderLevel(z.children, level + 1, searchOptions) : ''));
|
|
417
412
|
})));
|
|
418
413
|
};
|
|
419
414
|
let getLink = (item, icon, level, expandable, selectable) => {
|
|
@@ -470,6 +465,24 @@ export class PtcCollapseList {
|
|
|
470
465
|
}
|
|
471
466
|
static get properties() {
|
|
472
467
|
return {
|
|
468
|
+
"listOpened": {
|
|
469
|
+
"type": "boolean",
|
|
470
|
+
"mutable": false,
|
|
471
|
+
"complexType": {
|
|
472
|
+
"original": "boolean",
|
|
473
|
+
"resolved": "boolean",
|
|
474
|
+
"references": {}
|
|
475
|
+
},
|
|
476
|
+
"required": false,
|
|
477
|
+
"optional": false,
|
|
478
|
+
"docs": {
|
|
479
|
+
"tags": [],
|
|
480
|
+
"text": ""
|
|
481
|
+
},
|
|
482
|
+
"attribute": "list-opened",
|
|
483
|
+
"reflect": false,
|
|
484
|
+
"defaultValue": "false"
|
|
485
|
+
},
|
|
473
486
|
"showSearchBar": {
|
|
474
487
|
"type": "boolean",
|
|
475
488
|
"mutable": false,
|
|
@@ -592,6 +605,24 @@ export class PtcCollapseList {
|
|
|
592
605
|
"attribute": "allow-multi-select",
|
|
593
606
|
"reflect": false,
|
|
594
607
|
"defaultValue": "true"
|
|
608
|
+
},
|
|
609
|
+
"expandFirstItem": {
|
|
610
|
+
"type": "boolean",
|
|
611
|
+
"mutable": false,
|
|
612
|
+
"complexType": {
|
|
613
|
+
"original": "boolean",
|
|
614
|
+
"resolved": "boolean",
|
|
615
|
+
"references": {}
|
|
616
|
+
},
|
|
617
|
+
"required": false,
|
|
618
|
+
"optional": false,
|
|
619
|
+
"docs": {
|
|
620
|
+
"tags": [],
|
|
621
|
+
"text": ""
|
|
622
|
+
},
|
|
623
|
+
"attribute": "expand-first-item",
|
|
624
|
+
"reflect": false,
|
|
625
|
+
"defaultValue": "false"
|
|
595
626
|
}
|
|
596
627
|
};
|
|
597
628
|
}
|
|
@@ -82,23 +82,38 @@ a:focus-visible {
|
|
|
82
82
|
border-radius: var(--ptc-border-radius-standard);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-plm-grey a.light-link {
|
|
85
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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), .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), .background-plm-grey a.light-link {
|
|
86
86
|
color: var(--color-blue-04);
|
|
87
|
+
margin: -2px;
|
|
88
|
+
border: 2px solid transparent;
|
|
87
89
|
}
|
|
88
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-plm-grey a.light-link:visited {
|
|
90
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):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):visited, .background-plm-grey a.light-link:visited {
|
|
89
91
|
color: var(--color-blue-06);
|
|
90
92
|
}
|
|
91
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
93
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
92
94
|
transition: none;
|
|
93
95
|
color: var(--color-blue-07);
|
|
94
96
|
}
|
|
95
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form 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):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
97
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
96
98
|
color: var(--color-blue-05);
|
|
97
99
|
}
|
|
98
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-plm-grey a.light-link.disabled {
|
|
100
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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).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).disabled, .background-plm-grey a.light-link.disabled {
|
|
99
101
|
color: var(--color-gray-04) !important;
|
|
100
102
|
cursor: not-allowed;
|
|
101
103
|
}
|
|
104
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section 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):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):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
105
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
106
|
+
border: 2px solid white;
|
|
107
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
108
|
+
}
|
|
109
|
+
.light-links .podcast-cta-section a, .background-grey-10 .podcast-cta-section a, .background-plm-grey .podcast-cta-section a {
|
|
110
|
+
border: 2px solid transparent;
|
|
111
|
+
}
|
|
112
|
+
.light-links .podcast-cta-section a:focus-visible, .background-grey-10 .podcast-cta-section a:focus-visible, .background-plm-grey .podcast-cta-section a:focus-visible {
|
|
113
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
114
|
+
border: 2px solid white;
|
|
115
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
116
|
+
}
|
|
102
117
|
|
|
103
118
|
.ptc-link {
|
|
104
119
|
color: var(--color-gray-10);
|