@ptcwebops/ptcw-design 6.2.23 → 6.2.25-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-35540bfb.js → component-4dd13907.js} +2643 -832
- package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +1431 -0
- package/dist/cjs/event-podcast-slider-example.cjs.entry.js +7 -13
- 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-announcement.cjs.entry.js +2 -2
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +67 -0
- package/dist/cjs/ptc-card_2.cjs.entry.js +3 -8
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
- package/dist/cjs/ptc-date.cjs.entry.js +1 -1
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-tag_2.cjs.entry.js +0 -15
- package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +786 -4
- package/dist/cjs/ptc-icon-component.cjs.entry.js +2 -45
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +3 -50
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-minimized-nav.cjs.entry.js +1 -2
- package/dist/cjs/ptc-nav-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-news.cjs.entry.js +3 -2
- 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-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-related-card-rail.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- 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 +6 -13
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +2 -9
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +3 -25
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +1 -3
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +16 -19
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.js +30 -12
- 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-announcement/ptc-announcement.css +0 -6
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +1 -1
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -13
- package/dist/collection/components/ptc-card/ptc-card.css +0 -1
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -13
- package/dist/collection/components/ptc-close-icon/ptc-close-icon.js +1 -1
- package/dist/collection/components/ptc-date/ptc-date.css +0 -4
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -13
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +6 -13
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +0 -12
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +1 -44
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +0 -8
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +2 -67
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +8 -16
- package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +1 -19
- package/dist/collection/components/ptc-modal/ptc-modal.css +6 -13
- package/dist/collection/components/ptc-modal/ptc-modal.js +99 -27
- package/dist/collection/components/ptc-news/ptc-news.css +0 -5
- package/dist/collection/components/ptc-news/ptc-news.js +19 -1
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +0 -29
- 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 -13
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +23 -174
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +1 -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-pricing-tabs/ptc-pricing-tabs.css +2 -3
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +6 -13
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -13
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -13
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -13
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -13
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +1 -1
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -13
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -13
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -13
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +1 -1
- package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.css +2 -9
- package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +1 -1
- 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 +6 -0
- package/dist/custom-elements/index.js +234 -201
- 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 +1413 -0
- package/dist/esm/event-podcast-slider-example.entry.js +7 -13
- 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-announcement.entry.js +2 -2
- 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 +63 -0
- package/dist/esm/ptc-card_2.entry.js +3 -8
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +1 -2
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-featured-list.entry.js +1 -1
- package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
- package/dist/esm/ptc-filter-tag_2.entry.js +0 -15
- package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +784 -4
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- package/dist/esm/ptc-icon-component.entry.js +2 -45
- package/dist/esm/ptc-icon-minimize.entry.js +3 -50
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-minimized-nav.entry.js +1 -2
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-slider.entry.js +1 -1
- package/dist/esm/ptc-news.entry.js +3 -2
- 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 +2 -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-related-card-rail.entry.js +1 -1
- package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-63eab4bd.js → utils-ff65c75b.js} +1 -1
- package/dist/ptcw-design/media/designer-v6.0.6.svg +30 -2
- package/dist/ptcw-design/p-06d75880.entry.js +1 -0
- package/dist/ptcw-design/{p-d3ac3758.entry.js → p-071a6109.entry.js} +1 -1
- package/dist/ptcw-design/p-0fdfd4ad.entry.js +68 -0
- package/dist/ptcw-design/{p-c01ea76f.entry.js → p-1b257420.entry.js} +1 -1
- package/dist/ptcw-design/p-257deac0.entry.js +1 -0
- package/dist/ptcw-design/p-2657df50.entry.js +1 -0
- package/dist/ptcw-design/{p-4d8f6f46.entry.js → p-2749c178.entry.js} +1 -1
- package/dist/ptcw-design/p-2ac5ed9c.entry.js +1 -0
- package/dist/ptcw-design/{p-4ee98a3e.entry.js → p-2c6fc745.entry.js} +1 -1
- package/dist/ptcw-design/{p-d089dc37.entry.js → p-34c50b3e.entry.js} +1 -1
- package/dist/ptcw-design/{p-fd394e84.entry.js → p-36007a57.entry.js} +1 -1
- package/dist/ptcw-design/p-370cbbdd.entry.js +1 -0
- package/dist/ptcw-design/{p-eddadb5a.entry.js → p-3db38765.entry.js} +1 -1
- package/dist/ptcw-design/p-40b8c884.entry.js +1 -0
- package/dist/ptcw-design/p-50d68602.entry.js +1 -0
- package/dist/ptcw-design/p-5ef23b5c.entry.js +1 -0
- package/dist/ptcw-design/p-69686408.entry.js +1 -0
- package/dist/ptcw-design/{p-cbee4653.entry.js → p-6d3326da.entry.js} +1 -1
- package/dist/ptcw-design/p-799afee5.entry.js +1 -0
- package/dist/ptcw-design/{p-6f5fecae.entry.js → p-7a9611b4.entry.js} +1 -1
- package/dist/ptcw-design/{p-eec2f3da.entry.js → p-808ec62a.entry.js} +1 -1
- package/dist/ptcw-design/p-85c29073.entry.js +1 -0
- package/dist/ptcw-design/{p-77b1221e.js → p-8872161f.js} +1 -1
- package/dist/ptcw-design/p-8fbe5eed.entry.js +1 -0
- package/dist/ptcw-design/p-90c4f08b.entry.js +1 -0
- package/dist/ptcw-design/p-9c1057ce.entry.js +1 -0
- package/dist/ptcw-design/p-9fe0c27d.entry.js +1 -0
- package/dist/ptcw-design/p-a3b57ede.entry.js +1 -0
- package/dist/ptcw-design/{p-d361afd1.entry.js → p-a808d399.entry.js} +1 -1
- package/dist/ptcw-design/{p-17f6e145.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-bb902570.entry.js +1 -0
- package/dist/ptcw-design/p-bcab66bf.js +336 -0
- package/dist/ptcw-design/{p-821f0ff9.entry.js → p-c37a3bd2.entry.js} +1 -1
- package/dist/ptcw-design/{p-d3229458.entry.js → p-c66b8926.entry.js} +1 -1
- package/dist/ptcw-design/{p-6a3caf2b.entry.js → p-c95f423e.entry.js} +1 -1
- package/dist/ptcw-design/{p-627103d8.entry.js → p-d10cb999.entry.js} +1 -1
- package/dist/ptcw-design/p-d2e26642.entry.js +1 -0
- package/dist/ptcw-design/p-d7275289.entry.js +1 -0
- package/dist/ptcw-design/{p-18ac526f.entry.js → p-d756db27.entry.js} +1 -1
- package/dist/ptcw-design/{p-48c33817.entry.js → p-d9abe7e8.entry.js} +1 -1
- package/dist/ptcw-design/{p-e577ad62.entry.js → p-da82dc93.entry.js} +1 -1
- package/dist/ptcw-design/p-de960790.entry.js +1 -0
- package/dist/ptcw-design/{p-16e70f20.entry.js → p-e0b873d0.entry.js} +1 -1
- package/dist/ptcw-design/p-e346b320.entry.js +1 -0
- package/dist/ptcw-design/{p-9df7489b.entry.js → p-e372dc5b.entry.js} +1 -1
- package/dist/ptcw-design/{p-49e54079.entry.js → p-e3f8e5d5.entry.js} +1 -1
- package/dist/ptcw-design/{p-28be539b.entry.js → p-e4000363.entry.js} +1 -1
- package/dist/ptcw-design/{p-3ddb6c50.entry.js → p-e89ce54f.entry.js} +1 -1
- package/dist/ptcw-design/{p-a791c53a.entry.js → p-ea7369e9.entry.js} +1 -1
- package/dist/ptcw-design/p-f4699d4e.entry.js +1 -0
- 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-podcast-slider-example/event-podcast-slider-example.d.ts +1 -0
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
- package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +0 -5
- package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +0 -2
- package/dist/types/components/ptc-minimized-nav/ptc-minimized-nav.d.ts +0 -1
- package/dist/types/components/ptc-mobile-select/mobile-select/dist/mobile-select.d.ts +209 -0
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +10 -3
- package/dist/types/components/ptc-news/ptc-news.d.ts +4 -0
- package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +0 -3
- 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.d.ts +31 -9
- package/dist/types/utils/eloqua.d.ts +9 -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 -148
- 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 -87
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -156
- package/dist/cjs/ptc-card-content.cjs.entry.js +0 -76
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -222
- package/dist/cjs/ptc-img.cjs.entry.js +0 -133
- package/dist/cjs/ptc-link.cjs.entry.js +0 -87
- 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 -136
- 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 -144
- 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 -83
- package/dist/esm/ptc-card-bottom_2.entry.js +0 -151
- package/dist/esm/ptc-card-content.entry.js +0 -72
- package/dist/esm/ptc-close-icon_2.entry.js +0 -217
- package/dist/esm/ptc-img.entry.js +0 -129
- package/dist/esm/ptc-link.entry.js +0 -83
- 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 -132
- 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-01075feb.entry.js +0 -1
- package/dist/ptcw-design/p-04ff81ef.entry.js +0 -1
- package/dist/ptcw-design/p-0c69ea52.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-25a25451.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-4a7505ba.entry.js +0 -1
- package/dist/ptcw-design/p-51a45b13.entry.js +0 -1
- package/dist/ptcw-design/p-593b8eff.entry.js +0 -1
- package/dist/ptcw-design/p-5dae4f30.entry.js +0 -1
- package/dist/ptcw-design/p-6433c9d2.entry.js +0 -1
- package/dist/ptcw-design/p-71a20700.entry.js +0 -1
- package/dist/ptcw-design/p-73a853fc.entry.js +0 -1
- package/dist/ptcw-design/p-759f6457.entry.js +0 -1
- package/dist/ptcw-design/p-7793babb.entry.js +0 -1
- package/dist/ptcw-design/p-7fe4d383.entry.js +0 -1
- package/dist/ptcw-design/p-8e8c7a3a.entry.js +0 -1
- package/dist/ptcw-design/p-92d22c78.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-99355e65.entry.js +0 -1
- package/dist/ptcw-design/p-9f194554.entry.js +0 -1
- package/dist/ptcw-design/p-a412ff0a.entry.js +0 -1
- package/dist/ptcw-design/p-a58698ca.entry.js +0 -1
- package/dist/ptcw-design/p-acdd9a1d.entry.js +0 -1
- package/dist/ptcw-design/p-ad718ee1.entry.js +0 -1
- package/dist/ptcw-design/p-ad821a01.entry.js +0 -1
- package/dist/ptcw-design/p-b209c116.entry.js +0 -1
- package/dist/ptcw-design/p-b436f56d.entry.js +0 -1
- package/dist/ptcw-design/p-b651c1cb.entry.js +0 -1
- package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
- package/dist/ptcw-design/p-bf18b622.entry.js +0 -1
- package/dist/ptcw-design/p-d2f37084.entry.js +0 -1
- package/dist/ptcw-design/p-d3e2a446.entry.js +0 -1
- package/dist/ptcw-design/p-d74ccb19.entry.js +0 -1
- package/dist/ptcw-design/p-dd02e4d6.entry.js +0 -68
- package/dist/ptcw-design/p-f3d54454.entry.js +0 -1
- package/dist/ptcw-design/p-f9256e3d.entry.js +0 -1
|
@@ -875,20 +875,12 @@ ptc-link, ptc-square-card,
|
|
|
875
875
|
width: 44px;
|
|
876
876
|
height: 44px;
|
|
877
877
|
}
|
|
878
|
-
:host .swiper-container .swiper-button-next:focus-visible {
|
|
879
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
880
|
-
outline: 5px solid var(--keyboard-nav-outline);
|
|
881
|
-
}
|
|
882
878
|
:host .swiper-container .swiper-button-prev {
|
|
883
879
|
left: 0;
|
|
884
880
|
top: 84px;
|
|
885
881
|
height: 44px;
|
|
886
882
|
width: 44px;
|
|
887
883
|
}
|
|
888
|
-
:host .swiper-container .swiper-button-prev:focus-visible {
|
|
889
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
890
|
-
outline: 5px solid var(--keyboard-nav-outline);
|
|
891
|
-
}
|
|
892
884
|
:host .ptc-link {
|
|
893
885
|
font-size: var(--ptc-font-size-small);
|
|
894
886
|
font-weight: var(--ptc-font-weight-extrabold);
|
|
@@ -903,10 +895,6 @@ ptc-link, ptc-square-card,
|
|
|
903
895
|
:host .ptc-link:hover {
|
|
904
896
|
color: var(--color-green-06);
|
|
905
897
|
}
|
|
906
|
-
:host .ptc-link:focus-visible {
|
|
907
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
908
|
-
outline: 5px solid var(--keyboard-nav-outline);
|
|
909
|
-
}
|
|
910
898
|
:host .ptc-link:visited {
|
|
911
899
|
color: var(--color-gray-10);
|
|
912
900
|
}
|
|
@@ -15,13 +15,11 @@ export class PtcIconComponent {
|
|
|
15
15
|
this.renderSlides();
|
|
16
16
|
setTimeout(() => {
|
|
17
17
|
this.initSlider();
|
|
18
|
-
this.setUpTabIndex();
|
|
19
18
|
}, 200);
|
|
20
19
|
}
|
|
21
20
|
componentDidUpdate() {
|
|
22
21
|
setTimeout(() => {
|
|
23
22
|
this.initSlider();
|
|
24
|
-
this.setUpTabIndex();
|
|
25
23
|
}, 200);
|
|
26
24
|
}
|
|
27
25
|
renderSlides() {
|
|
@@ -31,7 +29,6 @@ export class PtcIconComponent {
|
|
|
31
29
|
slidesList.forEach((node) => {
|
|
32
30
|
const slideElement = document.createElement('div');
|
|
33
31
|
slideElement.classList.add('swiper-slide');
|
|
34
|
-
slideElement.querySelectorAll("a").forEach(item => item.tabIndex = -1);
|
|
35
32
|
let cloneNode = node.cloneNode(true);
|
|
36
33
|
slideElement.appendChild(cloneNode);
|
|
37
34
|
swiperWrapper.appendChild(slideElement);
|
|
@@ -56,10 +53,6 @@ export class PtcIconComponent {
|
|
|
56
53
|
nextEl: this.swiperButtonNextRef,
|
|
57
54
|
prevEl: this.swiperButtonPrevRef,
|
|
58
55
|
},
|
|
59
|
-
// keyboard: {
|
|
60
|
-
// enabled: true,
|
|
61
|
-
// onlyInViewport: true
|
|
62
|
-
// }
|
|
63
56
|
});
|
|
64
57
|
}
|
|
65
58
|
}
|
|
@@ -78,44 +71,8 @@ export class PtcIconComponent {
|
|
|
78
71
|
this.iconSwiper = null;
|
|
79
72
|
}
|
|
80
73
|
}
|
|
81
|
-
onNextBtnClick(e) {
|
|
82
|
-
let btn = e.currentTarget;
|
|
83
|
-
e.preventDefault();
|
|
84
|
-
if (btn && !btn.classList.contains('disabled')) {
|
|
85
|
-
this.iconSwiper.slideNext();
|
|
86
|
-
this.setUpTabIndex();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
onPrevBtnClick(e) {
|
|
90
|
-
let btn = e.currentTarget;
|
|
91
|
-
e.preventDefault();
|
|
92
|
-
if (btn && !btn.classList.contains('disabled')) {
|
|
93
|
-
this.iconSwiper.slidePrev();
|
|
94
|
-
this.setUpTabIndex();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
onPrevBtnKeydown(e) {
|
|
98
|
-
if (e.key === "Enter") {
|
|
99
|
-
this.onPrevBtnClick(e);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
onNextBtnKeydown(e) {
|
|
103
|
-
if (e.key === "Enter") {
|
|
104
|
-
this.onNextBtnClick(e);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
setUpTabIndex() {
|
|
108
|
-
if (this.iconSwiper) {
|
|
109
|
-
if (this.iconSwiper.slides) {
|
|
110
|
-
this.iconSwiper.slides.forEach(i => i.querySelectorAll("a").forEach(item => item.tabIndex = -1));
|
|
111
|
-
if (this.iconSwiper.slides[this.iconSwiper.activeIndex].querySelectorAll("a")) {
|
|
112
|
-
this.iconSwiper.slides[this.iconSwiper.activeIndex].querySelectorAll("a").forEach(item => item.tabIndex = 0);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
74
|
render() {
|
|
118
|
-
return (h(Host, { class: this.isMobile ? 'mobileView' : 'desktopView' }, h("div", { class: "icon-component-row" }, h("slot", null)), h("div", { class: "swiper-container", ref: el => this.swiperWrapperRef = el }, h("div", { class: "swiper-
|
|
75
|
+
return (h(Host, { class: this.isMobile ? 'mobileView' : 'desktopView' }, h("div", { class: "icon-component-row" }, h("slot", null)), h("div", { class: "swiper-container", ref: el => this.swiperWrapperRef = el }, h("div", { class: "swiper-wrapper" }), h("div", { class: "swiper-pagination", ref: el => this.swiperPaginationRef = el }), h("div", { class: "swiper-button-next", ref: el => this.swiperButtonNextRef = el }, h("svg", { width: "20", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.75 17.25L8 10L0.75 2.75L3.375 0.125L13.25 10L3.375 19.875L0.75 17.25Z", fill: "#323B42" }))), h("div", { class: "swiper-button-prev", ref: el => this.swiperButtonPrevRef = el }, h("svg", { width: "20", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M13.25 2.75L6 10L13.25 17.25L10.625 19.875L0.749999 10L10.625 0.125L13.25 2.75Z", fill: "#323B42" }))))));
|
|
119
76
|
}
|
|
120
77
|
static get is() { return "ptc-icon-component"; }
|
|
121
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -125,12 +125,4 @@ ptc-link, ptc-square-card,
|
|
|
125
125
|
}
|
|
126
126
|
.ptc-icon-minimize .header .icon:active icon-asset {
|
|
127
127
|
outline: none !important;
|
|
128
|
-
}
|
|
129
|
-
.ptc-icon-minimize .checkbox-icon .icon:focus-visible {
|
|
130
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
131
|
-
outline: 5px solid var(--keyboard-nav-outline);
|
|
132
|
-
margin-right: 5px;
|
|
133
|
-
}
|
|
134
|
-
.ptc-icon-minimize .checkbox-icon .icon:focus-visible icon-asset {
|
|
135
|
-
outline: none !important;
|
|
136
128
|
}
|
|
@@ -12,7 +12,6 @@ export class PtcIconMinimize {
|
|
|
12
12
|
this.listType = "default";
|
|
13
13
|
this.dataRefineValue = undefined;
|
|
14
14
|
this.trackerId = undefined;
|
|
15
|
-
this.tabIndexValue = 0;
|
|
16
15
|
}
|
|
17
16
|
componentWillLoad() {
|
|
18
17
|
this.timeStamp = Date.now().toString();
|
|
@@ -22,20 +21,11 @@ export class PtcIconMinimize {
|
|
|
22
21
|
if (this.opened && !content.style.maxHeight) {
|
|
23
22
|
content.style.maxHeight = content.scrollHeight + "px";
|
|
24
23
|
}
|
|
25
|
-
if (!this.opened) {
|
|
26
|
-
this.setTabIndex();
|
|
27
|
-
}
|
|
28
24
|
}
|
|
29
25
|
dropdownToggle() {
|
|
30
26
|
this.opened = !this.opened;
|
|
31
|
-
this.setTabIndex();
|
|
32
|
-
}
|
|
33
|
-
setTabIndex() {
|
|
34
27
|
var checkList = this.host.querySelector(".fitler-check-list");
|
|
35
28
|
var checkListModal = this.host.querySelector(".fitler-check-list-modal");
|
|
36
|
-
if (checkList == null) {
|
|
37
|
-
checkList = this.host.querySelector(".filter-checkbox-list");
|
|
38
|
-
}
|
|
39
29
|
if (checkList) {
|
|
40
30
|
var checkBoxesList = checkList.querySelectorAll("ptc-checkbox");
|
|
41
31
|
if (checkBoxesList) {
|
|
@@ -45,26 +35,6 @@ export class PtcIconMinimize {
|
|
|
45
35
|
}
|
|
46
36
|
});
|
|
47
37
|
}
|
|
48
|
-
var checkBoxesIconList = checkList.querySelectorAll("ptc-icon-minimize");
|
|
49
|
-
if (checkBoxesIconList) {
|
|
50
|
-
checkBoxesIconList.forEach(item => {
|
|
51
|
-
if (item.shadowRoot.querySelector(".icon")) {
|
|
52
|
-
this.opened ? item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "0") :
|
|
53
|
-
item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "-1");
|
|
54
|
-
var childrenCheckBoxesList = item.querySelectorAll("ptc-checkbox");
|
|
55
|
-
if (childrenCheckBoxesList) {
|
|
56
|
-
childrenCheckBoxesList.forEach(childitem => {
|
|
57
|
-
if (childitem.shadowRoot.querySelector("label")) {
|
|
58
|
-
childitem.shadowRoot.querySelector("label").tabIndex = item.opened ? 0 : -1;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
if (checkListModal == null) {
|
|
67
|
-
checkListModal = this.host.querySelector(".filter-check-list-modal");
|
|
68
38
|
}
|
|
69
39
|
if (checkListModal) {
|
|
70
40
|
var checkBoxesListModal = checkListModal.querySelectorAll("ptc-checkbox");
|
|
@@ -75,23 +45,6 @@ export class PtcIconMinimize {
|
|
|
75
45
|
}
|
|
76
46
|
});
|
|
77
47
|
}
|
|
78
|
-
var checkBoxesModelIconList = checkListModal.querySelectorAll("ptc-icon-minimize");
|
|
79
|
-
if (checkBoxesModelIconList) {
|
|
80
|
-
checkBoxesModelIconList.forEach(item => {
|
|
81
|
-
if (item.shadowRoot.querySelector(".icon")) {
|
|
82
|
-
this.opened ? item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "0") :
|
|
83
|
-
item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "-1");
|
|
84
|
-
var childrenCheckBoxesList = item.querySelectorAll("ptc-checkbox");
|
|
85
|
-
if (childrenCheckBoxesList) {
|
|
86
|
-
childrenCheckBoxesList.forEach(childitem => {
|
|
87
|
-
if (childitem.shadowRoot.querySelector("label")) {
|
|
88
|
-
childitem.shadowRoot.querySelector("label").tabIndex = item.opened ? 0 : -1;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
48
|
}
|
|
96
49
|
}
|
|
97
50
|
getScrollHeight() {
|
|
@@ -138,9 +91,9 @@ export class PtcIconMinimize {
|
|
|
138
91
|
let scrollHeight = this.getScrollHeight();
|
|
139
92
|
let icon = this.opened ? 'minus' : 'plus';
|
|
140
93
|
return (h("div", { class: 'ptc-icon-minimize' }, this.listType == "default" ?
|
|
141
|
-
h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex:
|
|
94
|
+
h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: 0 }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
|
|
142
95
|
: this.listType == "checkbox" ?
|
|
143
|
-
h("div", { class: "header
|
|
96
|
+
h("div", { class: "header" }, h("div", { class: "title" }, h("ptc-checkbox", { checked: "unchecked", "data-refine": this.dataRefineValue, "input-name": "", value: this.heading }, this.heading)), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: 0 }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
|
|
144
97
|
: null, h("div", { class: "content", style: scrollHeight }, h("slot", null))));
|
|
145
98
|
}
|
|
146
99
|
static get is() { return "ptc-icon-minimize"; }
|
|
@@ -243,24 +196,6 @@ export class PtcIconMinimize {
|
|
|
243
196
|
},
|
|
244
197
|
"attribute": "tracker-id",
|
|
245
198
|
"reflect": false
|
|
246
|
-
},
|
|
247
|
-
"tabIndexValue": {
|
|
248
|
-
"type": "number",
|
|
249
|
-
"mutable": false,
|
|
250
|
-
"complexType": {
|
|
251
|
-
"original": "number",
|
|
252
|
-
"resolved": "number",
|
|
253
|
-
"references": {}
|
|
254
|
-
},
|
|
255
|
-
"required": false,
|
|
256
|
-
"optional": false,
|
|
257
|
-
"docs": {
|
|
258
|
-
"tags": [],
|
|
259
|
-
"text": ""
|
|
260
|
-
},
|
|
261
|
-
"attribute": "tab-index-value",
|
|
262
|
-
"reflect": false,
|
|
263
|
-
"defaultValue": "0"
|
|
264
199
|
}
|
|
265
200
|
};
|
|
266
201
|
}
|
|
@@ -1151,16 +1151,15 @@ ptc-preloader-section.min-height {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
1153
|
ptc-nav-submenu {
|
|
1154
|
-
margin-top: 6px;
|
|
1155
1154
|
border-left: 2px solid transparent;
|
|
1156
1155
|
border-right: 2px solid transparent;
|
|
1157
|
-
border-bottom: 2px solid transparent;
|
|
1158
1156
|
}
|
|
1159
1157
|
ptc-nav-submenu:focus-visible, ptc-nav-submenu:focus {
|
|
1160
|
-
margin-top: 4px;
|
|
1161
1158
|
border-radius: var(--ptc-border-radius-standard);
|
|
1162
1159
|
border: 2px solid white;
|
|
1163
1160
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
1161
|
+
margin-top: -2px;
|
|
1162
|
+
margin-bottom: -2px;
|
|
1164
1163
|
}
|
|
1165
1164
|
|
|
1166
1165
|
a {
|
|
@@ -1191,26 +1190,26 @@ a:focus-visible {
|
|
|
1191
1190
|
border-radius: var(--ptc-border-radius-standard);
|
|
1192
1191
|
}
|
|
1193
1192
|
|
|
1194
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
1193
|
+
.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 {
|
|
1195
1194
|
color: var(--color-blue-04);
|
|
1196
1195
|
margin: -2px;
|
|
1197
1196
|
border: 2px solid transparent;
|
|
1198
1197
|
}
|
|
1199
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
1198
|
+
.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 {
|
|
1200
1199
|
color: var(--color-blue-06);
|
|
1201
1200
|
}
|
|
1202
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
1201
|
+
.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 {
|
|
1203
1202
|
transition: none;
|
|
1204
1203
|
color: var(--color-blue-07);
|
|
1205
1204
|
}
|
|
1206
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
1205
|
+
.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 {
|
|
1207
1206
|
color: var(--color-blue-05);
|
|
1208
1207
|
}
|
|
1209
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
1208
|
+
.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 {
|
|
1210
1209
|
color: var(--color-gray-04) !important;
|
|
1211
1210
|
cursor: not-allowed;
|
|
1212
1211
|
}
|
|
1213
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
1212
|
+
.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 {
|
|
1214
1213
|
border-radius: var(--ptc-border-radius-standard);
|
|
1215
1214
|
border: 2px solid white;
|
|
1216
1215
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
@@ -1268,13 +1267,6 @@ a:focus-visible {
|
|
|
1268
1267
|
color: var(--color-green-06);
|
|
1269
1268
|
}
|
|
1270
1269
|
|
|
1271
|
-
.vjs-social-share-links a {
|
|
1272
|
-
color: var(--color-white);
|
|
1273
|
-
}
|
|
1274
|
-
.vjs-social-share-links a:hover {
|
|
1275
|
-
color: var(--color-white);
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
1270
|
:host {
|
|
1279
1271
|
display: block;
|
|
1280
1272
|
}
|
|
@@ -5,10 +5,9 @@ export class PtcMinimizedNav {
|
|
|
5
5
|
this.imgSrc = '';
|
|
6
6
|
this.imgAlt = 'PTC';
|
|
7
7
|
this.navType = 'minimized-header';
|
|
8
|
-
this.trackerId = undefined;
|
|
9
8
|
}
|
|
10
9
|
render() {
|
|
11
|
-
return (h(Host, null, this.navType == 'minimized-header' ? (h("div", { class: "minimized-header" }, h("div", { class: "header" }, h("div", { class: "ptc-container" }, h("a", { class: "mini-navbar-logo
|
|
10
|
+
return (h(Host, null, this.navType == 'minimized-header' ? (h("div", { class: "minimized-header mf-listen" }, h("div", { class: "header" }, h("div", { class: "ptc-container" }, h("a", { class: "mini-navbar-logo", href: this.linkUrl, tabindex: "0" }, h("img", { src: this.imgSrc, alt: this.imgAlt })))))) : null, this.navType == 'minimized-footer' ? (h("div", { class: "ptc-min-footer mini-footer" }, h("div", { class: "min-footer-copyright-wrapper" }, h("ul", { class: "min-footer-nav-list min-footer-copyright-list" }, h("slot", null))))) : null));
|
|
12
11
|
}
|
|
13
12
|
static get is() { return "ptc-minimized-nav"; }
|
|
14
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -95,23 +94,6 @@ export class PtcMinimizedNav {
|
|
|
95
94
|
"attribute": "nav-type",
|
|
96
95
|
"reflect": false,
|
|
97
96
|
"defaultValue": "'minimized-header'"
|
|
98
|
-
},
|
|
99
|
-
"trackerId": {
|
|
100
|
-
"type": "string",
|
|
101
|
-
"mutable": false,
|
|
102
|
-
"complexType": {
|
|
103
|
-
"original": "string",
|
|
104
|
-
"resolved": "string",
|
|
105
|
-
"references": {}
|
|
106
|
-
},
|
|
107
|
-
"required": false,
|
|
108
|
-
"optional": true,
|
|
109
|
-
"docs": {
|
|
110
|
-
"tags": [],
|
|
111
|
-
"text": ""
|
|
112
|
-
},
|
|
113
|
-
"attribute": "tracker-id",
|
|
114
|
-
"reflect": false
|
|
115
97
|
}
|
|
116
98
|
};
|
|
117
99
|
}
|
|
@@ -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;
|
|
@@ -425,8 +429,6 @@ ptc-link, ptc-square-card,
|
|
|
425
429
|
transform: translateY(-100%);
|
|
426
430
|
border-radius: var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px 0px;
|
|
427
431
|
align-items: center;
|
|
428
|
-
padding: var(--ptc-element-spacing-06);
|
|
429
|
-
box-sizing: border-box;
|
|
430
432
|
}
|
|
431
433
|
:host .wrapper .event-list-header::before {
|
|
432
434
|
content: "";
|
|
@@ -438,19 +440,10 @@ ptc-link, ptc-square-card,
|
|
|
438
440
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);
|
|
439
441
|
z-index: 1;
|
|
440
442
|
}
|
|
441
|
-
:host .wrapper .event-list-header + .close {
|
|
442
|
-
margin-top: 0px;
|
|
443
|
-
margin-right: 0px;
|
|
444
|
-
width: 40px;
|
|
445
|
-
height: 40px;
|
|
446
|
-
display: flex;
|
|
447
|
-
justify-content: center;
|
|
448
|
-
align-items: center;
|
|
449
|
-
}
|
|
450
443
|
:host .wrapper .event-list-header .text-wrapper {
|
|
451
444
|
display: flex;
|
|
452
|
-
|
|
453
|
-
|
|
445
|
+
padding: var(--ptc-element-spacing-06);
|
|
446
|
+
gap: 0.5em;
|
|
454
447
|
}
|
|
455
448
|
:host .wrapper .event-list-header .text-wrapper span {
|
|
456
449
|
display: inline-block;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class PtcModal {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.handleKeyPress = (event) => {
|
|
5
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
6
|
+
this.openedByKeyboard = true;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
this.handleMouseDown = () => {
|
|
10
|
+
this.openedByKeyboard = false;
|
|
11
|
+
};
|
|
4
12
|
this.iframeUrl = undefined;
|
|
5
13
|
this.size = 'sm';
|
|
6
14
|
this.customClass = undefined;
|
|
@@ -22,6 +30,8 @@ export class PtcModal {
|
|
|
22
30
|
this.headerOnlyText1 = undefined;
|
|
23
31
|
this.headerOnlyText2 = undefined;
|
|
24
32
|
this.bottomCloseBtn = undefined;
|
|
33
|
+
this.initialFocus = true;
|
|
34
|
+
this.openedByKeyboard = false;
|
|
25
35
|
this.bodyOverflowSetting = undefined;
|
|
26
36
|
}
|
|
27
37
|
fireOnClosed(modal) {
|
|
@@ -34,6 +44,23 @@ export class PtcModal {
|
|
|
34
44
|
const wrapperEle = this.el.shadowRoot.querySelector('.wrapper');
|
|
35
45
|
wrapperEle && wrapperEle.focus();
|
|
36
46
|
}, 100);
|
|
47
|
+
if (this.openedByKeyboard) {
|
|
48
|
+
this.initialFocus &&
|
|
49
|
+
setTimeout(() => {
|
|
50
|
+
this.setInitialFocus();
|
|
51
|
+
}, 150);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
this.openedByKeyboard = false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
connectedCallback() {
|
|
58
|
+
document.addEventListener('keydown', this.handleKeyPress);
|
|
59
|
+
document.addEventListener('mousedown', this.handleMouseDown);
|
|
60
|
+
}
|
|
61
|
+
disconnectedCallback() {
|
|
62
|
+
document.removeEventListener('keydown', this.handleKeyPress);
|
|
63
|
+
document.removeEventListener('mousedown', this.handleMouseDown);
|
|
37
64
|
}
|
|
38
65
|
componentWillLoad() {
|
|
39
66
|
let body = document.querySelector('body');
|
|
@@ -108,14 +135,17 @@ export class PtcModal {
|
|
|
108
135
|
var scrollHeight = body.scrollHeight;
|
|
109
136
|
var scrollTop = body.scrollTop;
|
|
110
137
|
var offset = body.offsetHeight;
|
|
111
|
-
if (height < scrollHeight) {
|
|
112
|
-
|
|
138
|
+
if (height < scrollHeight) {
|
|
139
|
+
//has scrollbar
|
|
140
|
+
if (scrollTop > 0) {
|
|
141
|
+
//can scroll up
|
|
113
142
|
modal.classList.add('scroll-top');
|
|
114
143
|
}
|
|
115
144
|
else {
|
|
116
145
|
modal.classList.remove('scroll-top');
|
|
117
146
|
}
|
|
118
|
-
if (offset + scrollTop < scrollHeight) {
|
|
147
|
+
if (offset + scrollTop < scrollHeight) {
|
|
148
|
+
//can scroll down
|
|
119
149
|
modal.classList.add('scroll-bottom');
|
|
120
150
|
}
|
|
121
151
|
else {
|
|
@@ -127,52 +157,75 @@ export class PtcModal {
|
|
|
127
157
|
close() {
|
|
128
158
|
this.show = false;
|
|
129
159
|
}
|
|
160
|
+
setInitialFocus() {
|
|
161
|
+
var _a, _b, _c;
|
|
162
|
+
const firstFocusableElement = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button, a, input, select, textarea, [tabindex]:not([tabindex="-1"]), ptc-close-icon');
|
|
163
|
+
const closeIcon = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('ptc-close-icon');
|
|
164
|
+
const closeSvg = (_c = closeIcon === null || closeIcon === void 0 ? void 0 : closeIcon.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('svg');
|
|
165
|
+
if (closeSvg) {
|
|
166
|
+
closeSvg.focus();
|
|
167
|
+
}
|
|
168
|
+
else if (firstFocusableElement) {
|
|
169
|
+
firstFocusableElement.focus();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
130
172
|
render() {
|
|
131
173
|
let content;
|
|
132
174
|
let overlay;
|
|
133
175
|
let type = this.iframeUrl ? 'frame' : 'html';
|
|
134
|
-
let closebtn = (h("div", { class: "close", id: "modal-close" }, h("ptc-close-icon", { onClick:
|
|
135
|
-
|
|
176
|
+
let closebtn = (h("div", { class: "close", id: "modal-close" }, h("ptc-close-icon", { onClick: e => {
|
|
177
|
+
e.preventDefault();
|
|
178
|
+
this.close();
|
|
179
|
+
}, onKeyPress: e => {
|
|
180
|
+
e.preventDefault();
|
|
181
|
+
this.close();
|
|
182
|
+
} })));
|
|
183
|
+
let bottomCloseBtnEle = (h("div", { class: "bottom-close", id: "modal-bottom-close", onClick: e => {
|
|
184
|
+
e.preventDefault();
|
|
185
|
+
this.close();
|
|
186
|
+
}, onKeyPress: e => {
|
|
187
|
+
e.preventDefault();
|
|
188
|
+
this.close();
|
|
189
|
+
} }, h("span", null, this.bottomCloseBtn)));
|
|
136
190
|
if (this.iframeUrl) {
|
|
137
|
-
content =
|
|
191
|
+
content = h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: '100%', width: '100%', scrolling: "no", onLoad: this.resizeIframe });
|
|
138
192
|
}
|
|
139
193
|
else {
|
|
140
194
|
if (this.showHeaderFooter) {
|
|
141
|
-
content =
|
|
195
|
+
content = h("slot", { name: "body" });
|
|
142
196
|
}
|
|
143
197
|
else {
|
|
144
|
-
content =
|
|
198
|
+
content = h("slot", null);
|
|
145
199
|
}
|
|
146
200
|
}
|
|
147
201
|
if (this.overlay) {
|
|
148
202
|
if (this.closeOnBlur) {
|
|
149
|
-
overlay = h("div", { class: "overlay", onClick:
|
|
203
|
+
overlay = h("div", { class: "overlay", onClick: _ => this.close() });
|
|
150
204
|
}
|
|
151
205
|
else {
|
|
152
206
|
overlay = h("div", { class: "overlay" });
|
|
153
207
|
}
|
|
154
208
|
}
|
|
155
|
-
return (h(Host, { class: this.getCssClassMap() }, this.styles && h("style", null, this.styles), h("div", { class: `wrapper ${this.show ?
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
bottomCloseBtnEle
|
|
166
|
-
] : null))));
|
|
209
|
+
return (h(Host, { class: this.getCssClassMap() }, this.styles && h("style", null, this.styles), h("div", { class: `wrapper ${this.show ? 'show' : 'hide'} ${this.fixed ? 'fixed' : ''} ` }, overlay, h("div", { class: `modal-popup ${this.customClass ? this.customClass : ''} ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} ` }, this.modalType === 'event-listing' && this.headerOnlyBg
|
|
210
|
+
? [
|
|
211
|
+
h("div", { class: "event-list-header" }, h("ptc-img", { "img-url": this.headerOnlyBg, "image-type": "smart-img", styles: ".ptc-img{border-radius: var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px 0px;}" }), h("div", { class: "text-wrapper" }, h("span", null, this.headerOnlyText1 ? this.headerOnlyText1 : ''), h("span", null, this.headerOnlyText2 ? this.headerOnlyText2 : ''))),
|
|
212
|
+
]
|
|
213
|
+
: null, this.showHeaderFooter
|
|
214
|
+
? [
|
|
215
|
+
h("div", { class: "modal-header" }, h("slot", { name: "header" }), closebtn),
|
|
216
|
+
h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
|
|
217
|
+
h("div", { class: "modal-footer" }, h("slot", { name: "footer" })),
|
|
218
|
+
]
|
|
219
|
+
: [closebtn, h("div", { class: "modal-body" }, content)], this.modalType === 'event-listing' && this.bottomCloseBtn ? [bottomCloseBtnEle] : null))));
|
|
167
220
|
}
|
|
168
221
|
getCssClassMap() {
|
|
169
222
|
return {
|
|
170
|
-
[
|
|
171
|
-
[
|
|
172
|
-
[
|
|
223
|
+
['no-container']: this.hideContainer,
|
|
224
|
+
['bio-modal']: this.isBioModal,
|
|
225
|
+
['enclose-modal']: !this.isBioModal && this.keepInViewport,
|
|
173
226
|
[this.borderRadius]: true,
|
|
174
227
|
[this.modalType]: true,
|
|
175
|
-
['vh-center']: this.vhCenter
|
|
228
|
+
['vh-center']: this.vhCenter,
|
|
176
229
|
};
|
|
177
230
|
}
|
|
178
231
|
async showModal() {
|
|
@@ -227,8 +280,8 @@ export class PtcModal {
|
|
|
227
280
|
"type": "string",
|
|
228
281
|
"mutable": true,
|
|
229
282
|
"complexType": {
|
|
230
|
-
"original": "'sm' | 'md' | 'lg' | 'xl' | 'max'| 'sm-modal'",
|
|
231
|
-
"resolved": "\"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
|
|
283
|
+
"original": "'sm' | 'md' | 'lg' | 'xl' | 'fit-content' | 'max'| 'sm-modal'",
|
|
284
|
+
"resolved": "\"fit-content\" | \"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
|
|
232
285
|
"references": {}
|
|
233
286
|
},
|
|
234
287
|
"required": false,
|
|
@@ -558,12 +611,31 @@ export class PtcModal {
|
|
|
558
611
|
},
|
|
559
612
|
"attribute": "bottom-close-btn",
|
|
560
613
|
"reflect": false
|
|
614
|
+
},
|
|
615
|
+
"initialFocus": {
|
|
616
|
+
"type": "boolean",
|
|
617
|
+
"mutable": false,
|
|
618
|
+
"complexType": {
|
|
619
|
+
"original": "boolean",
|
|
620
|
+
"resolved": "boolean",
|
|
621
|
+
"references": {}
|
|
622
|
+
},
|
|
623
|
+
"required": false,
|
|
624
|
+
"optional": true,
|
|
625
|
+
"docs": {
|
|
626
|
+
"tags": [],
|
|
627
|
+
"text": ""
|
|
628
|
+
},
|
|
629
|
+
"attribute": "initial-focus",
|
|
630
|
+
"reflect": false,
|
|
631
|
+
"defaultValue": "true"
|
|
561
632
|
}
|
|
562
633
|
};
|
|
563
634
|
}
|
|
564
635
|
static get states() {
|
|
565
636
|
return {
|
|
566
637
|
"overlayHeight": {},
|
|
638
|
+
"openedByKeyboard": {},
|
|
567
639
|
"bodyOverflowSetting": {}
|
|
568
640
|
};
|
|
569
641
|
}
|