@ptcwebops/ptcw-design 6.3.34 → 6.3.35-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-6a178a16.js} +2643 -832
- package/dist/cjs/embedded-form.cjs.entry.js +1 -1
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +1 -1
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/modal-form-example.cjs.entry.js +94 -0
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-button.cjs.entry.js +3 -5
- package/dist/cjs/ptc-card_2.cjs.entry.js +7 -10
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +6 -2
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +24 -24
- package/dist/cjs/ptc-countdown.cjs.entry.js +10 -7
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +1 -1
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +9 -40
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +3 -18
- package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +803 -39
- package/dist/cjs/ptc-info-tile.cjs.entry.js +1 -2
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -4
- package/dist/cjs/ptc-nav-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +3 -28
- package/dist/cjs/ptc-para.cjs.entry.js +1 -1
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -2
- package/dist/cjs/ptc-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-product-list.cjs.entry.js +0 -4
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +6 -38
- package/dist/cjs/ptc-quote.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 +38 -42
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +0 -9
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +0 -15
- package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +8 -42
- 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 +14 -15
- package/dist/cjs/ptcw-design.cjs.js +1 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/icon-asset/icon-asset.js +1 -1
- package/dist/collection/components/icon-asset/media/{designer-v6.0.7.svg → designer-v6.0.6.svg} +30 -17
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
- package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +0 -1
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
- package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
- 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 +6 -6
- package/dist/collection/components/ptc-button/ptc-button.css +0 -100
- package/dist/collection/components/ptc-button/ptc-button.js +4 -24
- package/dist/collection/components/ptc-card/ptc-card.js +2 -21
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +5 -1
- package/dist/collection/components/ptc-countdown/ptc-countdown.js +10 -7
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +1 -1
- package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.css +1 -1
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +0 -12
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +3 -29
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +13 -34
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +2 -17
- package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +1 -20
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -6
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +0 -3
- package/dist/collection/components/ptc-modal/ptc-modal.css +4 -0
- package/dist/collection/components/ptc-modal/ptc-modal.js +25 -25
- package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +0 -7
- package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +2 -78
- package/dist/collection/components/ptc-para/ptc-para.css +3 -0
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +0 -109
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +4 -6
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +27 -1
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.css +2 -2
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +6 -6
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -6
- package/dist/collection/components/ptc-product-list/ptc-product-list.js +0 -4
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +0 -8
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +5 -37
- package/dist/collection/components/ptc-quote/ptc-quote.js +1 -1
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -6
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -6
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +38 -63
- package/dist/collection/components/ptc-select/ptc-select.js +4 -8
- package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +0 -9
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +0 -15
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +4 -69
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +37 -77
- package/dist/collection/components/ptc-theater-video/ptc-theater-video.css +0 -6
- package/dist/collection/components/ptc-theater-video/ptc-theater-video.js +1 -1
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.css +0 -15
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +9 -67
- package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +3 -8
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -6
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -6
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -6
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +13 -14
- package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +1 -1
- package/dist/collection/stories/Card.stories.js +148 -3
- package/dist/collection/stories/Link.stories.js +13 -25
- package/dist/collection/stories/Paragraph.stories.js +10 -18
- package/dist/collection/stories/Select.stories.js +8 -5
- package/dist/collection/stories/Textfield.stories.js +28 -71
- package/dist/collection/stories/Title.stories.js +16 -28
- 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/validation-messages.js +2 -49
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +407 -577
- package/dist/esm/{component-8c53e377.js → component-80f298b4.js} +2592 -793
- package/dist/esm/embedded-form.entry.js +1 -1
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
- package/dist/esm/loader.js +1 -3
- package/dist/esm/modal-form-example.entry.js +90 -0
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +3 -5
- package/dist/esm/ptc-card_2.entry.js +7 -10
- package/dist/esm/ptc-case-studies-slider.entry.js +6 -2
- package/dist/esm/ptc-close-icon_2.entry.js +24 -24
- package/dist/esm/ptc-countdown.entry.js +10 -7
- package/dist/esm/ptc-data-lookup.entry.js +1 -2
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
- package/dist/esm/ptc-featured-list.entry.js +1 -1
- package/dist/esm/ptc-filter-dropdown_4.entry.js +9 -40
- package/dist/esm/ptc-filter-level-theater.entry.js +3 -18
- package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +801 -39
- package/dist/esm/ptc-info-tile.entry.js +1 -2
- package/dist/esm/ptc-jumbotron.entry.js +1 -4
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-skip-to-content.entry.js +3 -28
- package/dist/esm/ptc-para.entry.js +1 -1
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +10 -2
- package/dist/esm/ptc-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-product-list.entry.js +0 -4
- package/dist/esm/ptc-product-sidebar.entry.js +6 -38
- package/dist/esm/ptc-quote.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 +38 -42
- package/dist/esm/ptc-sticky-icons.entry.js +0 -9
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -16
- package/dist/esm/ptc-theater-video-modal.entry.js +9 -43
- 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 +14 -15
- package/dist/esm/ptcw-design.js +1 -3
- package/dist/ptcw-design/media/{designer-v6.0.7.svg → designer-v6.0.6.svg} +30 -17
- package/dist/ptcw-design/p-0529caaa.entry.js +1 -0
- package/dist/ptcw-design/p-077839d5.entry.js +1 -0
- package/dist/ptcw-design/p-092e50c9.entry.js +1 -0
- package/dist/ptcw-design/{p-a791c53a.entry.js → p-0b515839.entry.js} +1 -1
- package/dist/ptcw-design/p-0e5932f0.entry.js +1 -0
- package/dist/ptcw-design/p-0ef61b44.entry.js +1 -0
- package/dist/ptcw-design/p-1616a1f7.entry.js +1 -0
- package/dist/ptcw-design/p-1e3bf09c.entry.js +1 -0
- package/dist/ptcw-design/p-21aa746d.entry.js +1 -0
- package/dist/ptcw-design/p-282b7d4e.entry.js +1 -0
- package/dist/ptcw-design/p-2a20d4a6.entry.js +1 -0
- package/dist/ptcw-design/{p-24776ca2.entry.js → p-2cc7e2a8.entry.js} +1 -1
- package/dist/ptcw-design/p-32f64f48.entry.js +1 -0
- package/dist/ptcw-design/{p-d089dc37.entry.js → p-3dd0ded9.entry.js} +1 -1
- package/dist/ptcw-design/p-3ee2a531.entry.js +1 -0
- package/dist/ptcw-design/p-445329ed.entry.js +1 -0
- package/dist/ptcw-design/{p-260e573b.entry.js → p-4ca956c1.entry.js} +1 -1
- package/dist/ptcw-design/p-5311c6e1.entry.js +1 -0
- package/dist/ptcw-design/p-58e91cb8.entry.js +1 -0
- package/dist/ptcw-design/p-5db7f70b.entry.js +1 -0
- package/dist/ptcw-design/p-672a349f.js +336 -0
- package/dist/ptcw-design/{p-9e4e21a4.entry.js → p-71360e29.entry.js} +1 -1
- package/dist/ptcw-design/p-75390f63.entry.js +1 -0
- package/dist/ptcw-design/p-799afee5.entry.js +1 -0
- package/dist/ptcw-design/p-7bdf1e64.entry.js +1 -0
- package/dist/ptcw-design/p-7f9ad266.entry.js +1 -0
- package/dist/ptcw-design/p-845d10b5.entry.js +1 -0
- package/dist/ptcw-design/p-85bdb2d5.entry.js +68 -0
- package/dist/ptcw-design/p-8fb48953.entry.js +1 -0
- package/dist/ptcw-design/p-9501995f.entry.js +1 -0
- package/dist/ptcw-design/p-97b9f41b.entry.js +1 -0
- package/dist/ptcw-design/{p-884c335c.entry.js → p-99355e65.entry.js} +1 -1
- package/dist/ptcw-design/{p-27c26d50.entry.js → p-9df7489b.entry.js} +1 -1
- package/dist/ptcw-design/{p-f5d8a3b1.entry.js → p-bab5bb88.entry.js} +1 -1
- package/dist/ptcw-design/p-baff4d44.entry.js +1 -0
- package/dist/ptcw-design/{p-18ac526f.entry.js → p-d73cc053.entry.js} +1 -1
- package/dist/ptcw-design/p-de960790.entry.js +1 -0
- package/dist/ptcw-design/p-e6a272d9.entry.js +1 -0
- package/dist/ptcw-design/p-f1734520.entry.js +1 -0
- package/dist/ptcw-design/{p-0ddf2a09.entry.js → p-f867ebe6.entry.js} +1 -1
- package/dist/ptcw-design/{p-b863b296.entry.js → p-fd87fcd5.entry.js} +1 -1
- package/dist/ptcw-design/p-fe40421e.entry.js +1 -0
- package/dist/ptcw-design/p-fe907670.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/form/modal-from-example/modal-form-example.d.ts +25 -0
- package/dist/types/components/ptc-button/ptc-button.d.ts +1 -2
- package/dist/types/components/ptc-card/ptc-card.d.ts +0 -1
- package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +1 -0
- package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +1 -2
- package/dist/types/components/ptc-form-checkbox/ptc-form-checkbox.d.ts +1 -1
- package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +0 -1
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +0 -1
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -1
- package/dist/types/components/ptc-multi-select/ptc-multi-select.d.ts +1 -1
- package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +0 -6
- 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-product-list/ptc-product-list.d.ts +1 -1
- package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +3 -6
- package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +0 -3
- package/dist/types/components/ptc-select/ptc-select.d.ts +1 -2
- package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +0 -2
- package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +4 -58
- package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +1 -6
- package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +1 -1
- package/dist/types/components/ptc-white-paper/ptc-white-paper.d.ts +1 -1
- package/dist/types/components.d.ts +24 -137
- package/dist/types/utils/validation-messages.d.ts +123 -4
- package/package.json +1 -1
- package/readme.md +5 -1
- package/dist/cjs/component-1b8ad4d2.js +0 -1819
- package/dist/cjs/global-418c14b4.js +0 -33
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -674
- package/dist/cjs/validation-messages-f1d373e7.js +0 -172
- package/dist/collection/global/global.js +0 -7
- package/dist/collection/stories/Jumbotron.stories.js +0 -727
- package/dist/collection/stories/MinimizedFooter.stories.js +0 -18
- package/dist/collection/stories/ResponsiveWrapper.stories.js +0 -21
- package/dist/collection/stories/organisms/ptc/Academic Form/preview.stories.js +0 -22
- package/dist/collection/stories/organisms/ptc/All Products/preview.stories.js +0 -1616
- package/dist/collection/stories/organisms/ptc/Announcement/preview.stories.js +0 -58
- package/dist/collection/stories/organisms/ptc/Background Video/preview.stories.js +0 -58
- package/dist/collection/stories/organisms/ptc/Blog Author Listing/preview.stories.js +0 -32
- package/dist/collection/stories/organisms/ptc/Blog Content/preview.stories.js +0 -317
- package/dist/collection/stories/organisms/ptc/Blog Detail/preview.stories.js +0 -500
- package/dist/collection/stories/organisms/ptc/Blogs Listing Page/preview.stories.js +0 -368
- package/dist/collection/stories/organisms/ptc/Bureau New Dynamic/preview.stories.js +0 -54
- package/dist/collection/stories/organisms/ptc/Case Studies/preview.stories.js +0 -243
- package/dist/collection/stories/organisms/ptc/Case Studies Detail Page/preview.stories.js +0 -456
- package/dist/collection/stories/organisms/ptc/Case Studies Slider/preview.stories.js +0 -384
- package/dist/collection/stories/organisms/ptc/Case Studies Slider New/preview.stories.js +0 -171
- package/dist/collection/stories/organisms/ptc/Clq Modal Quiz/preview.stories.js +0 -100
- package/dist/collection/stories/organisms/ptc/Contact Free Trial Form/preview.stories.js +0 -22
- package/dist/collection/stories/organisms/ptc/Countdown Example/preview.stories.js +0 -29
- package/dist/collection/stories/organisms/ptc/E Store Build Listing/preview.stories.js +0 -543
- package/dist/collection/stories/organisms/ptc/E Store Build Product/preview.stories.js +0 -427
- package/dist/collection/stories/organisms/ptc/Eloqua Library Contact Info/preview.stories.js +0 -168
- package/dist/collection/stories/organisms/ptc/Eloqua Library Visitor PCenter/preview.stories.js +0 -60
- package/dist/collection/stories/organisms/ptc/Eloqua Library Visitor Recipient Id/preview.stories.js +0 -59
- package/dist/collection/stories/organisms/ptc/Embedded Form/preview.stories.js +0 -23
- package/dist/collection/stories/organisms/ptc/Embedded Form Floating/preview.stories.js +0 -165
- package/dist/collection/stories/organisms/ptc/Event Detail/preview.stories.js +0 -16
- package/dist/collection/stories/organisms/ptc/Event Jumbotron/preview.stories.js +0 -470
- package/dist/collection/stories/organisms/ptc/Event Podcast Slider/preview.stories.js +0 -142
- package/dist/collection/stories/organisms/ptc/Events Listing Cards/preview.stories.js +0 -169
- package/dist/collection/stories/organisms/ptc/Events Listing Cards Horizontal/preview.stories.js +0 -169
- package/dist/collection/stories/organisms/ptc/Featured Events Slider/preview.stories.js +0 -165
- package/dist/collection/stories/organisms/ptc/Featured List/preview.stories.js +0 -16
- package/dist/collection/stories/organisms/ptc/Filter Level Theater/preview.stories.js +0 -18
- package/dist/collection/stories/organisms/ptc/Five Card Value Prop/preview.stories.js +0 -64
- package/dist/collection/stories/organisms/ptc/Footer Form/preview.stories.js +0 -18
- package/dist/collection/stories/organisms/ptc/Footer V2/preview.stories.js +0 -138
- package/dist/collection/stories/organisms/ptc/Footer V2 Cn/preview.stories.js +0 -146
- package/dist/collection/stories/organisms/ptc/Form Radio Button/preview.stories.js +0 -42
- package/dist/collection/stories/organisms/ptc/Framed Video 16 9/preview.stories.js +0 -31
- package/dist/collection/stories/organisms/ptc/Homepage Image Feature/preview.stories.js +0 -41
- package/dist/collection/stories/organisms/ptc/Homepage Jumbotron/preview.stories.js +0 -166
- package/dist/collection/stories/organisms/ptc/Homepage Toggled Content/preview.stories.js +0 -227
- package/dist/collection/stories/organisms/ptc/Hub Of Hubs/preview.stories.js +0 -417
- package/dist/collection/stories/organisms/ptc/Intro/preview.stories.js +0 -41
- package/dist/collection/stories/organisms/ptc/Jumbotron/preview.stories.js +0 -431
- package/dist/collection/stories/organisms/ptc/Jumbotron With Logos/preview.stories.js +0 -431
- package/dist/collection/stories/organisms/ptc/Large Bulleted List/preview.stories.js +0 -224
- package/dist/collection/stories/organisms/ptc/Large Bulleted List V2/preview.stories.js +0 -326
- package/dist/collection/stories/organisms/ptc/Listing Filter/preview.stories.js +0 -256
- package/dist/collection/stories/organisms/ptc/Main Nav Product Solutions Tab/preview.stories.js +0 -200
- package/dist/collection/stories/organisms/ptc/Mathcad Start Page/preview.stories.js +0 -100
- package/dist/collection/stories/organisms/ptc/Media Kit Speed Bump/preview.stories.js +0 -39
- package/dist/collection/stories/organisms/ptc/Most Popular News/preview.stories.js +0 -28
- package/dist/collection/stories/organisms/ptc/Mvc Form/preview.stories.js +0 -22
- package/dist/collection/stories/organisms/ptc/New Buttons/preview.stories.js +0 -125
- package/dist/collection/stories/organisms/ptc/Partners Detail/preview.stories.js +0 -151
- package/dist/collection/stories/organisms/ptc/Partners Listing/preview.stories.js +0 -394
- package/dist/collection/stories/organisms/ptc/Pdf Portal/preview.stories.js +0 -140
- package/dist/collection/stories/organisms/ptc/Plm On Demand 1/preview.stories.js +0 -205
- package/dist/collection/stories/organisms/ptc/Plm On Demand 2/preview.stories.js +0 -180
- package/dist/collection/stories/organisms/ptc/Podcast List/preview.stories.js +0 -175
- package/dist/collection/stories/organisms/ptc/Preference Center/preview.stories.js +0 -235
- package/dist/collection/stories/organisms/ptc/Preference Center Exit Page/preview.stories.js +0 -85
- package/dist/collection/stories/organisms/ptc/Preference Center Update Email/preview.stories.js +0 -54
- package/dist/collection/stories/organisms/ptc/Preference Center Update Personal Info/preview.stories.js +0 -59
- package/dist/collection/stories/organisms/ptc/Pricing Packaging Table/preview.stories.js +0 -399
- package/dist/collection/stories/organisms/ptc/Pricing Packaging Table Subnav/preview.stories.js +0 -179
- package/dist/collection/stories/organisms/ptc/Ptc 3 Card Value Prop/preview.stories.js +0 -46
- package/dist/collection/stories/organisms/ptc/Ptc Bio Cards/preview.stories.js +0 -741
- package/dist/collection/stories/organisms/ptc/Ptc Creo Start Page/preview.stories.js +0 -111
- package/dist/collection/stories/organisms/ptc/Ptc Editorial/preview.stories.js +0 -84
- package/dist/collection/stories/organisms/ptc/Ptc Form/preview.stories.js +0 -18
- package/dist/collection/stories/organisms/ptc/Ptc Icon Card Slider/preview.stories.js +0 -121
- package/dist/collection/stories/organisms/ptc/Ptc Icon Component/preview.stories.js +0 -185
- package/dist/collection/stories/organisms/ptc/Ptc Icon Sprites/preview.stories.js +0 -150
- package/dist/collection/stories/organisms/ptc/Ptc Innovator Toggle/preview.stories.js +0 -421
- package/dist/collection/stories/organisms/ptc/Ptc Media Cards/preview.stories.js +0 -133
- package/dist/collection/stories/organisms/ptc/Ptc News Detail/preview.stories.js +0 -142
- package/dist/collection/stories/organisms/ptc/Ptc News Detail Alternate/preview.stories.js +0 -140
- package/dist/collection/stories/organisms/ptc/Ptc Offices/preview.stories.js +0 -405
- package/dist/collection/stories/organisms/ptc/Ptc Readmore V3/preview.stories.js +0 -71
- package/dist/collection/stories/organisms/ptc/Ptc Showcase Card/preview.stories.js +0 -177
- package/dist/collection/stories/organisms/ptc/Ptc Sticky Share Icons/preview.stories.js +0 -184
- package/dist/collection/stories/organisms/ptc/Ptc Subnav V1/preview.stories.js +0 -149
- package/dist/collection/stories/organisms/ptc/Ptc Subnav V2/preview.stories.js +0 -91
- package/dist/collection/stories/organisms/ptc/Ptc Text Copy With Background/preview.stories.js +0 -226
- package/dist/collection/stories/organisms/ptc/Ptc Title Demo/preview.stories.js +0 -24
- package/dist/collection/stories/organisms/ptc/Ptc Tooltip V3/preview.stories.js +0 -85
- package/dist/collection/stories/organisms/ptc/Ptc Two Column Two Media/preview.stories.js +0 -126
- package/dist/collection/stories/organisms/ptc/Read More/preview.stories.js +0 -278
- package/dist/collection/stories/organisms/ptc/Related Cards/preview.stories.js +0 -107
- package/dist/collection/stories/organisms/ptc/Resource Center/preview.stories.js +0 -149
- package/dist/collection/stories/organisms/ptc/Search Result/preview.stories.js +0 -62
- package/dist/collection/stories/organisms/ptc/Search Result News/preview.stories.js +0 -72
- package/dist/collection/stories/organisms/ptc/Searchbar Plm On Demand/preview.stories.js +0 -62
- package/dist/collection/stories/organisms/ptc/Seo Test/preview.stories.js +0 -215
- package/dist/collection/stories/organisms/ptc/Sequential Slider/preview.stories.js +0 -38
- package/dist/collection/stories/organisms/ptc/Sequential Slider Mobile/preview.stories.js +0 -90
- package/dist/collection/stories/organisms/ptc/Shortform Agileworx/preview.stories.js +0 -22
- package/dist/collection/stories/organisms/ptc/Storefront Enhanced Product Listing/preview.stories.js +0 -132
- package/dist/collection/stories/organisms/ptc/Success Path Details Page/preview.stories.js +0 -236
- package/dist/collection/stories/organisms/ptc/Three Column Text/preview.stories.js +0 -75
- package/dist/collection/stories/organisms/ptc/Three Up Text Cards/preview.stories.js +0 -134
- package/dist/collection/stories/organisms/ptc/Two Column Media/preview.stories.js +0 -181
- package/dist/collection/stories/organisms/ptc/Two Column With Toggle/preview.stories.js +0 -549
- package/dist/collection/stories/organisms/ptc/Value Led Resource/preview.stories.js +0 -479
- package/dist/collection/stories/organisms/ptc/Volvo Three Col/preview.stories.js +0 -115
- package/dist/collection/stories/organisms/ptc/Vuforia Quiz/preview.stories.js +0 -26
- package/dist/collection/stories/organisms/ptc/White Paper/preview.stories.js +0 -174
- package/dist/collection/utils/fef-logger.js +0 -23
- package/dist/esm/component-9beac35b.js +0 -1802
- package/dist/esm/global-1a5f28d5.js +0 -31
- package/dist/esm/ptc-multi-select_2.entry.js +0 -669
- package/dist/esm/validation-messages-1379b825.js +0 -169
- package/dist/ptcw-design/p-00e21489.entry.js +0 -1
- package/dist/ptcw-design/p-02822616.entry.js +0 -1
- package/dist/ptcw-design/p-05c29cc2.entry.js +0 -1
- package/dist/ptcw-design/p-0efedf59.js +0 -1
- package/dist/ptcw-design/p-1454ba84.entry.js +0 -1
- package/dist/ptcw-design/p-15a40f78.entry.js +0 -1
- package/dist/ptcw-design/p-18851303.entry.js +0 -1
- package/dist/ptcw-design/p-1feb2812.entry.js +0 -1
- package/dist/ptcw-design/p-352e87c0.entry.js +0 -1
- package/dist/ptcw-design/p-38e5e590.entry.js +0 -1
- package/dist/ptcw-design/p-3b9fbbaa.js +0 -1
- package/dist/ptcw-design/p-3e4ec8ef.entry.js +0 -1
- package/dist/ptcw-design/p-539639ff.entry.js +0 -1
- package/dist/ptcw-design/p-593b8eff.entry.js +0 -1
- package/dist/ptcw-design/p-66ecd7b9.entry.js +0 -1
- package/dist/ptcw-design/p-73a853fc.entry.js +0 -1
- package/dist/ptcw-design/p-78370e3d.entry.js +0 -1
- package/dist/ptcw-design/p-7e8daa35.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-a2c7df64.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-ad821a01.entry.js +0 -1
- package/dist/ptcw-design/p-b6255525.entry.js +0 -1
- package/dist/ptcw-design/p-bb9a879f.entry.js +0 -1
- package/dist/ptcw-design/p-bc146844.entry.js +0 -1
- package/dist/ptcw-design/p-c5f9bafe.entry.js +0 -68
- package/dist/ptcw-design/p-c82eaf9d.entry.js +0 -1
- package/dist/ptcw-design/p-cad4b517.entry.js +0 -1
- package/dist/ptcw-design/p-d6845e91.entry.js +0 -1
- package/dist/ptcw-design/p-ddb898c7.entry.js +0 -1
- package/dist/ptcw-design/p-e3867512.entry.js +0 -1
- package/dist/ptcw-design/p-e6619d63.entry.js +0 -1
- package/dist/ptcw-design/p-f9256e3d.entry.js +0 -1
- package/dist/types/global/global.d.ts +0 -4
- package/dist/types/utils/fef-logger.d.ts +0 -10
|
@@ -76,9 +76,6 @@ export class PtcTextfield {
|
|
|
76
76
|
this.mdcTextfieldComponent.valid = this.customInput.checkValidity();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
async getValidationMessage(type) {
|
|
80
|
-
return ValidationMessages[this.language][type];
|
|
81
|
-
}
|
|
82
79
|
componentWillLoad() {
|
|
83
80
|
this.language = getLanguageFromURL();
|
|
84
81
|
}
|
|
@@ -102,6 +99,9 @@ export class PtcTextfield {
|
|
|
102
99
|
}
|
|
103
100
|
this.setupFocusHandlers();
|
|
104
101
|
}
|
|
102
|
+
getValidationMessage(type) {
|
|
103
|
+
return ValidationMessages[this.language][type];
|
|
104
|
+
}
|
|
105
105
|
getPhoneValidation() {
|
|
106
106
|
if (this.fieldId === 'contact-phone' && this.fieldName === 'phone') {
|
|
107
107
|
if (!this.required && this.inputValue === '') {
|
|
@@ -165,14 +165,14 @@ export class PtcTextfield {
|
|
|
165
165
|
}
|
|
166
166
|
return validationPattern;
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
this.helpertext =
|
|
168
|
+
setHelperText() {
|
|
169
|
+
this.helpertext = this.getValidationMessage('required');
|
|
170
170
|
if ((this.type === 'email' && this.fieldName === 'email') || (this.type === 'email' && this.fieldName === "companyemail")) {
|
|
171
171
|
if (this.customInput.validity.valueMissing) {
|
|
172
|
-
this.helpertext =
|
|
172
|
+
this.helpertext = this.getValidationMessage('email');
|
|
173
173
|
}
|
|
174
174
|
else if (!this.customInput.validity.valid) {
|
|
175
|
-
this.helpertext =
|
|
175
|
+
this.helpertext = this.getValidationMessage('validemail');
|
|
176
176
|
}
|
|
177
177
|
else if (this.customInput.validity.valid) {
|
|
178
178
|
this.helpertext = '';
|
|
@@ -180,33 +180,33 @@ export class PtcTextfield {
|
|
|
180
180
|
}
|
|
181
181
|
else if (this.fieldName === 'firstname') {
|
|
182
182
|
if (this.customInput.validity.valueMissing) {
|
|
183
|
-
this.helpertext =
|
|
183
|
+
this.helpertext = this.getValidationMessage('required');
|
|
184
184
|
}
|
|
185
185
|
else if (this.customInput.validity.patternMismatch) {
|
|
186
|
-
this.helpertext =
|
|
186
|
+
this.helpertext = this.getValidationMessage('firstname');
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
else if (this.fieldName === 'lastname') {
|
|
190
190
|
if (this.customInput.validity.valueMissing) {
|
|
191
|
-
this.helpertext =
|
|
191
|
+
this.helpertext = this.getValidationMessage('required');
|
|
192
192
|
}
|
|
193
193
|
else if (this.customInput.validity.patternMismatch) {
|
|
194
|
-
this.helpertext =
|
|
194
|
+
this.helpertext = this.getValidationMessage('lastname');
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
else if (this.fieldId === 'contact-phone') {
|
|
198
198
|
if (this.iti) {
|
|
199
199
|
if (this.inputValue === '' && this.required) {
|
|
200
|
-
this.helpertext =
|
|
200
|
+
this.helpertext = this.getValidationMessage('tel');
|
|
201
201
|
}
|
|
202
202
|
else if (!this.iti.isValidNumber()) {
|
|
203
|
-
this.helpertext =
|
|
203
|
+
this.helpertext = this.getValidationMessage('validtel');
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
else if (this.fieldId === "confirm-email") {
|
|
208
208
|
if (!this.matchStatus && !!this.customInput.value) {
|
|
209
|
-
this.helpertext =
|
|
209
|
+
this.helpertext = this.getValidationMessage('confirmemail');
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -224,7 +224,6 @@ export class PtcTextfield {
|
|
|
224
224
|
const textFields = document.querySelectorAll('.mdc-text-field');
|
|
225
225
|
textFields.forEach((textField) => {
|
|
226
226
|
const input = textField.querySelector('input');
|
|
227
|
-
const textArea = textField.querySelector('textarea');
|
|
228
227
|
if (input) {
|
|
229
228
|
input.addEventListener('focus', () => {
|
|
230
229
|
if (this.lastInteraction === 'keyboard') {
|
|
@@ -240,21 +239,6 @@ export class PtcTextfield {
|
|
|
240
239
|
textField.classList.remove('keyboard-focus', 'mouse-focus');
|
|
241
240
|
});
|
|
242
241
|
}
|
|
243
|
-
if (textArea) {
|
|
244
|
-
textArea.addEventListener('focus', () => {
|
|
245
|
-
if (this.lastInteraction === 'keyboard') {
|
|
246
|
-
textField.classList.add('keyboard-focus');
|
|
247
|
-
textField.classList.remove('mouse-focus');
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
textField.classList.add('mouse-focus');
|
|
251
|
-
textField.classList.remove('keyboard-focus');
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
textArea.addEventListener('blur', () => {
|
|
255
|
-
textField.classList.remove('keyboard-focus', 'mouse-focus');
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
242
|
});
|
|
259
243
|
}
|
|
260
244
|
render() {
|
|
@@ -265,13 +249,11 @@ export class PtcTextfield {
|
|
|
265
249
|
h("div", { class: `mdc-text-field mdc-text-field--outlined mdc-text-field--no-label
|
|
266
250
|
${this.fieldId === 'contact-phone' ? 'intl-phone-adjustments' : ''}`, ref: mdcTextfield => {
|
|
267
251
|
this.mdcTextfield = mdcTextfield;
|
|
268
|
-
} }, h("span", { class: "mdc-notched-outline ptc-textfield-outline" }, h("span", { class: "mdc-notched-outline__leading" }), h("span", { class: "mdc-notched-outline__trailing" })),
|
|
269
|
-
this.customInput = customInput;
|
|
270
|
-
}, id: this.fieldId, class: this.getInputClassName() }, (this.required ? { required: true } : null), (this.ptcMaxLength ? { maxLength: this.ptcMaxLength } : null), { "aria-controls": this.fieldName, "aria-describedby": this.fieldName, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName, value: this.inputValue, name: this.fieldName, placeholder: this.placeholderText }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null), (this.ignoreBlindSubmit ? { ignoreBlindSubmit: true } : null), { onInput: e => this.handleInput(e) })), this.ptcMaxLength ? (h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null)) : (h("input", Object.assign({ ref: customInput => {
|
|
252
|
+
} }, h("span", { class: "mdc-notched-outline ptc-textfield-outline" }, h("span", { class: "mdc-notched-outline__leading" }), h("span", { class: "mdc-notched-outline__trailing" })), h("input", Object.assign({}, (this.disabled ? { disabled: true } : null), { ref: customInput => {
|
|
271
253
|
this.customInput = customInput;
|
|
272
|
-
}, id: this.fieldId }, (this.getInputClassName() ? { class: this.getInputClassName() } : null), { type: this.type }, (this.required ? { required: true } : null), (this.ptcMaxLength ? {
|
|
254
|
+
}, id: this.fieldId }, (this.getInputClassName() ? { class: this.getInputClassName() } : null), { type: this.type }, (this.required ? { required: true } : null), (this.ptcMaxLength ? { maxlength: this.ptcMaxLength } : null), { "aria-controls": this.fieldName, "aria-describedby": this.fieldName, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName, value: this.inputValue, name: this.fieldName }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null), (this.ignoreBlindSubmit ? { ignoreBlindSubmit: true } : null), { placeholder: this.placeholderText }))),
|
|
273
255
|
h("div", { class: `mdc-text-field-helper-line
|
|
274
|
-
${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.fieldName }, h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_12_1424)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), h("defs", null, h("clipPath", { id: "clip0_12_1424" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.infoText ? h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--info-msg" }, this.infoText) : null,
|
|
256
|
+
${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.fieldName }, h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_12_1424)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), h("defs", null, h("clipPath", { id: "clip0_12_1424" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.infoText ? h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--info-msg" }, this.infoText) : null, this.ptcMaxLength ? (h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null),
|
|
275
257
|
/* Alert message */
|
|
276
258
|
h("div", { class: "ptc-text-field-alert-line" }, !!this.alertText ? (h("div", { class: "mdc-text-field-helper-text--alert-msg" }, h("svg", { class: "alert-msg-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { id: "Info", "clip-path": "url(#clip0_227_7670)" }, h("path", { id: "Vector", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM9 6V13H7V6H9ZM8 5C8.55229 5 9 4.55228 9 4C9 3.44772 8.55229 3 8 3C7.44772 3 7 3.44772 7 4C7 4.55228 7.44772 5 8 5Z", fill: "#197BC0" })), h("defs", null, h("clipPath", { id: "clip0_227_7670" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.alertText)) : null, !!this.alertText && this.alertTextContent ? h("div", { class: "mdc-text-field-helper-text--alert-content-msg" }, this.alertTextContent) : null),
|
|
277
259
|
]) : (h("input", { id: this.fieldId, name: this.fieldName, type: "hidden", "data-eloqua-name": this.ptcDataEloquaName, value: this.inputValue }))));
|
|
@@ -301,7 +283,7 @@ export class PtcTextfield {
|
|
|
301
283
|
"optional": false,
|
|
302
284
|
"docs": {
|
|
303
285
|
"tags": [],
|
|
304
|
-
"text": "
|
|
286
|
+
"text": ""
|
|
305
287
|
},
|
|
306
288
|
"attribute": "field-id",
|
|
307
289
|
"reflect": false
|
|
@@ -318,7 +300,7 @@ export class PtcTextfield {
|
|
|
318
300
|
"optional": false,
|
|
319
301
|
"docs": {
|
|
320
302
|
"tags": [],
|
|
321
|
-
"text": "
|
|
303
|
+
"text": ""
|
|
322
304
|
},
|
|
323
305
|
"attribute": "type",
|
|
324
306
|
"reflect": false,
|
|
@@ -336,7 +318,7 @@ export class PtcTextfield {
|
|
|
336
318
|
"optional": false,
|
|
337
319
|
"docs": {
|
|
338
320
|
"tags": [],
|
|
339
|
-
"text": "
|
|
321
|
+
"text": ""
|
|
340
322
|
},
|
|
341
323
|
"attribute": "required",
|
|
342
324
|
"reflect": false,
|
|
@@ -354,7 +336,7 @@ export class PtcTextfield {
|
|
|
354
336
|
"optional": true,
|
|
355
337
|
"docs": {
|
|
356
338
|
"tags": [],
|
|
357
|
-
"text": "
|
|
339
|
+
"text": ""
|
|
358
340
|
},
|
|
359
341
|
"attribute": "ptc-max-length",
|
|
360
342
|
"reflect": false
|
|
@@ -371,7 +353,7 @@ export class PtcTextfield {
|
|
|
371
353
|
"optional": false,
|
|
372
354
|
"docs": {
|
|
373
355
|
"tags": [],
|
|
374
|
-
"text": "
|
|
356
|
+
"text": ""
|
|
375
357
|
},
|
|
376
358
|
"attribute": "label-text",
|
|
377
359
|
"reflect": false,
|
|
@@ -389,7 +371,7 @@ export class PtcTextfield {
|
|
|
389
371
|
"optional": false,
|
|
390
372
|
"docs": {
|
|
391
373
|
"tags": [],
|
|
392
|
-
"text": "
|
|
374
|
+
"text": ""
|
|
393
375
|
},
|
|
394
376
|
"attribute": "helpertext",
|
|
395
377
|
"reflect": false,
|
|
@@ -407,7 +389,7 @@ export class PtcTextfield {
|
|
|
407
389
|
"optional": false,
|
|
408
390
|
"docs": {
|
|
409
391
|
"tags": [],
|
|
410
|
-
"text": "
|
|
392
|
+
"text": ""
|
|
411
393
|
},
|
|
412
394
|
"attribute": "info-text",
|
|
413
395
|
"reflect": false
|
|
@@ -424,7 +406,7 @@ export class PtcTextfield {
|
|
|
424
406
|
"optional": false,
|
|
425
407
|
"docs": {
|
|
426
408
|
"tags": [],
|
|
427
|
-
"text": "
|
|
409
|
+
"text": ""
|
|
428
410
|
},
|
|
429
411
|
"attribute": "alert-text",
|
|
430
412
|
"reflect": false
|
|
@@ -441,7 +423,7 @@ export class PtcTextfield {
|
|
|
441
423
|
"optional": false,
|
|
442
424
|
"docs": {
|
|
443
425
|
"tags": [],
|
|
444
|
-
"text": "
|
|
426
|
+
"text": ""
|
|
445
427
|
},
|
|
446
428
|
"attribute": "alert-text-content",
|
|
447
429
|
"reflect": false
|
|
@@ -458,7 +440,7 @@ export class PtcTextfield {
|
|
|
458
440
|
"optional": false,
|
|
459
441
|
"docs": {
|
|
460
442
|
"tags": [],
|
|
461
|
-
"text": "
|
|
443
|
+
"text": ""
|
|
462
444
|
},
|
|
463
445
|
"attribute": "disabled",
|
|
464
446
|
"reflect": false,
|
|
@@ -476,7 +458,7 @@ export class PtcTextfield {
|
|
|
476
458
|
"optional": false,
|
|
477
459
|
"docs": {
|
|
478
460
|
"tags": [],
|
|
479
|
-
"text": "
|
|
461
|
+
"text": ""
|
|
480
462
|
},
|
|
481
463
|
"attribute": "field-name",
|
|
482
464
|
"reflect": false,
|
|
@@ -494,7 +476,7 @@ export class PtcTextfield {
|
|
|
494
476
|
"optional": false,
|
|
495
477
|
"docs": {
|
|
496
478
|
"tags": [],
|
|
497
|
-
"text": "
|
|
479
|
+
"text": ""
|
|
498
480
|
},
|
|
499
481
|
"attribute": "ptc-data-eloqua-name",
|
|
500
482
|
"reflect": false
|
|
@@ -511,7 +493,7 @@ export class PtcTextfield {
|
|
|
511
493
|
"optional": false,
|
|
512
494
|
"docs": {
|
|
513
495
|
"tags": [],
|
|
514
|
-
"text": "
|
|
496
|
+
"text": ""
|
|
515
497
|
},
|
|
516
498
|
"attribute": "ptc-data-target-eloqua-name",
|
|
517
499
|
"reflect": false
|
|
@@ -538,14 +520,11 @@ export class PtcTextfield {
|
|
|
538
520
|
"type": "unknown",
|
|
539
521
|
"mutable": false,
|
|
540
522
|
"complexType": {
|
|
541
|
-
"original": "(input: HTMLInputElement
|
|
542
|
-
"resolved": "(input: HTMLInputElement
|
|
523
|
+
"original": "(input: HTMLInputElement) => string",
|
|
524
|
+
"resolved": "(input: HTMLInputElement) => string",
|
|
543
525
|
"references": {
|
|
544
526
|
"HTMLInputElement": {
|
|
545
527
|
"location": "global"
|
|
546
|
-
},
|
|
547
|
-
"HTMLTextAreaElement": {
|
|
548
|
-
"location": "global"
|
|
549
528
|
}
|
|
550
529
|
}
|
|
551
530
|
},
|
|
@@ -553,7 +532,7 @@ export class PtcTextfield {
|
|
|
553
532
|
"optional": false,
|
|
554
533
|
"docs": {
|
|
555
534
|
"tags": [],
|
|
556
|
-
"text": "
|
|
535
|
+
"text": ""
|
|
557
536
|
}
|
|
558
537
|
},
|
|
559
538
|
"ignoreBlindSubmit": {
|
|
@@ -568,7 +547,7 @@ export class PtcTextfield {
|
|
|
568
547
|
"optional": false,
|
|
569
548
|
"docs": {
|
|
570
549
|
"tags": [],
|
|
571
|
-
"text": "
|
|
550
|
+
"text": ""
|
|
572
551
|
},
|
|
573
552
|
"attribute": "ignore-blind-submit",
|
|
574
553
|
"reflect": false,
|
|
@@ -586,7 +565,7 @@ export class PtcTextfield {
|
|
|
586
565
|
"optional": false,
|
|
587
566
|
"docs": {
|
|
588
567
|
"tags": [],
|
|
589
|
-
"text": "
|
|
568
|
+
"text": ""
|
|
590
569
|
},
|
|
591
570
|
"attribute": "placeholder-text",
|
|
592
571
|
"reflect": false
|
|
@@ -603,7 +582,7 @@ export class PtcTextfield {
|
|
|
603
582
|
"optional": false,
|
|
604
583
|
"docs": {
|
|
605
584
|
"tags": [],
|
|
606
|
-
"text": "
|
|
585
|
+
"text": ""
|
|
607
586
|
},
|
|
608
587
|
"attribute": "styles",
|
|
609
588
|
"reflect": false
|
|
@@ -620,7 +599,7 @@ export class PtcTextfield {
|
|
|
620
599
|
"optional": false,
|
|
621
600
|
"docs": {
|
|
622
601
|
"tags": [],
|
|
623
|
-
"text": "
|
|
602
|
+
"text": ""
|
|
624
603
|
},
|
|
625
604
|
"attribute": "textfield-form",
|
|
626
605
|
"reflect": false,
|
|
@@ -669,25 +648,6 @@ export class PtcTextfield {
|
|
|
669
648
|
"text": "",
|
|
670
649
|
"tags": []
|
|
671
650
|
}
|
|
672
|
-
},
|
|
673
|
-
"getValidationMessage": {
|
|
674
|
-
"complexType": {
|
|
675
|
-
"signature": "(type: string) => Promise<string>",
|
|
676
|
-
"parameters": [{
|
|
677
|
-
"tags": [],
|
|
678
|
-
"text": ""
|
|
679
|
-
}],
|
|
680
|
-
"references": {
|
|
681
|
-
"Promise": {
|
|
682
|
-
"location": "global"
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
"return": "Promise<string>"
|
|
686
|
-
},
|
|
687
|
-
"docs": {
|
|
688
|
-
"text": "",
|
|
689
|
-
"tags": []
|
|
690
|
-
}
|
|
691
651
|
}
|
|
692
652
|
};
|
|
693
653
|
}
|
|
@@ -82,14 +82,8 @@ ptc-link, ptc-square-card,
|
|
|
82
82
|
position: relative;
|
|
83
83
|
border-radius: 12px;
|
|
84
84
|
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.24);
|
|
85
|
-
margin-top: 5px;
|
|
86
85
|
cursor: pointer;
|
|
87
86
|
}
|
|
88
|
-
:host .img-wrap:focus-visible {
|
|
89
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
90
|
-
border: 2px solid white;
|
|
91
|
-
outline: 5px solid var(--keyboard-nav-outline);
|
|
92
|
-
}
|
|
93
87
|
:host .img-wrap img {
|
|
94
88
|
max-width: 100%;
|
|
95
89
|
border-radius: 12px;
|
|
@@ -21,7 +21,7 @@ export class PtcTheaterVideo {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { "video-id": this.videoId, "vtag-name": this.vtagName, "modal-type": this.modalType }, h("div", { class: "img-wrap
|
|
24
|
+
return (h(Host, { "video-id": this.videoId, "vtag-name": this.vtagName, "modal-type": this.modalType }, h("div", { class: "img-wrap", onClick: () => this.showCardDetails() }, h("img", { src: this.thumbImg, alt: "" }), h("span", { class: 'card-number' }, this.cardNumber + 1), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "54", height: "56", viewBox: "0 0 54 56", fill: "none" }, h("g", { filter: "url(#filter0_d_214_969)" }, h("path", { d: "M42 20L12 36V4L42 20Z", fill: "white" })), h("defs", null, h("filter", { id: "filter0_d_214_969", x: "0", y: "0", width: "54", height: "56", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "s-rGB" }, h("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }), h("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), h("feOffset", { dy: "8" }), h("feGaussianBlur", { stdDeviation: "6" }), h("feComposite", { in2: "hardAlpha", operator: "out" }), h("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0" }), h("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_214_969" }), h("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_214_969", result: "shape" }))))), h("h3", { class: 'vcard-title' }, this.cardTitle), h("div", { class: "hidden description" }, h("slot", null))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "ptc-theater-video"; }
|
|
27
27
|
static get encapsulation() { return "scoped"; }
|
|
@@ -5712,11 +5712,6 @@ Credits to Dave Berning
|
|
|
5712
5712
|
padding: 8px;
|
|
5713
5713
|
transform: translateX(8px);
|
|
5714
5714
|
}
|
|
5715
|
-
.modal .modal-container .vm-close:focus-visible {
|
|
5716
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
5717
|
-
border: 2px solid white;
|
|
5718
|
-
outline: 5px solid var(--keyboard-nav-outline);
|
|
5719
|
-
}
|
|
5720
5715
|
@media only screen and (min-width: 1200px) {
|
|
5721
5716
|
.modal .modal-container .vm-close {
|
|
5722
5717
|
right: -10px;
|
|
@@ -5745,11 +5740,6 @@ Credits to Dave Berning
|
|
|
5745
5740
|
.modal .modal-container .v-nav button:disabled {
|
|
5746
5741
|
color: var(--color-gray-06);
|
|
5747
5742
|
}
|
|
5748
|
-
.modal .modal-container .v-nav button:focus-visible {
|
|
5749
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
5750
|
-
border: 2px solid white;
|
|
5751
|
-
outline: 5px solid var(--keyboard-nav-outline);
|
|
5752
|
-
}
|
|
5753
5743
|
.modal .modal-container .card-description-content p {
|
|
5754
5744
|
color: var(--color-white);
|
|
5755
5745
|
}
|
|
@@ -5800,11 +5790,6 @@ Credits to Dave Berning
|
|
|
5800
5790
|
margin-right: var(--ptc-element-spacing-04);
|
|
5801
5791
|
margin-top: var(--ptc-element-spacing-04);
|
|
5802
5792
|
}
|
|
5803
|
-
.modal.modal-only-video .modal-wrapper .vm-close:focus-visible {
|
|
5804
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
5805
|
-
border: 2px solid white;
|
|
5806
|
-
outline: 5px solid var(--keyboard-nav-outline);
|
|
5807
|
-
}
|
|
5808
5793
|
.modal.modal-only-video .modal-wrapper .aspect-ratio-container {
|
|
5809
5794
|
width: 100%;
|
|
5810
5795
|
height: 100%;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
|
-
import { createFocusTrap } from 'focus-trap';
|
|
3
2
|
export class PtcTheaterVideoModal {
|
|
4
3
|
constructor() {
|
|
5
4
|
this.cards = undefined;
|
|
@@ -7,48 +6,22 @@ export class PtcTheaterVideoModal {
|
|
|
7
6
|
this.currentCardIndex = 0;
|
|
8
7
|
this.filteredTagName = undefined;
|
|
9
8
|
this.modalType = undefined;
|
|
10
|
-
this.focusCardElement = undefined;
|
|
11
9
|
}
|
|
12
|
-
|
|
10
|
+
// @Listen('filterCliked', { target: 'document' })
|
|
11
|
+
// handleFilterClick(event: CustomEvent) {
|
|
12
|
+
// const filters = event.detail;
|
|
13
|
+
// this.filteredTagName = filters['selected-tag'].trim();
|
|
14
|
+
// }
|
|
15
|
+
async updateData(data, currentModalIndex) {
|
|
13
16
|
// debugger
|
|
14
17
|
this.cards = data;
|
|
15
|
-
this.focusCardElement = cardElement;
|
|
16
18
|
this.currentCardIndex = currentModalIndex;
|
|
17
19
|
this.modalType = this.cards[this.currentCardIndex].modalType;
|
|
18
20
|
this.showModal = true;
|
|
19
|
-
setTimeout(() => {
|
|
20
|
-
const closebtn = this.hostEl.querySelector('.vm-close');
|
|
21
|
-
closebtn === null || closebtn === void 0 ? void 0 : closebtn.focus();
|
|
22
|
-
const modalDescWrap = this.hostEl.querySelector('.video-modal-description');
|
|
23
|
-
if (modalDescWrap) {
|
|
24
|
-
modalDescWrap.scrollHeight > modalDescWrap.clientHeight
|
|
25
|
-
? modalDescWrap.setAttribute('tabindex', '0')
|
|
26
|
-
: modalDescWrap.removeAttribute('tabindex');
|
|
27
|
-
}
|
|
28
|
-
}, 200);
|
|
29
|
-
setTimeout(() => {
|
|
30
|
-
this.trap = createFocusTrap(this.modalPopUpRef, {
|
|
31
|
-
escapeDeactivates: true,
|
|
32
|
-
clickOutsideDeactivates: true,
|
|
33
|
-
returnFocusOnDeactivate: true,
|
|
34
|
-
onActivate: () => {
|
|
35
|
-
this.trap.pause();
|
|
36
|
-
},
|
|
37
|
-
onDeactivate: () => {
|
|
38
|
-
this.closeCardModal();
|
|
39
|
-
this.trap.deactivate();
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
this.trap.activate();
|
|
43
|
-
}, 200);
|
|
44
21
|
}
|
|
45
22
|
closeCardModal() {
|
|
46
23
|
this.showModal = false;
|
|
47
24
|
this.cards = [];
|
|
48
|
-
setTimeout(() => {
|
|
49
|
-
let focusDiv = this.focusCardElement.querySelector('.img-wrap');
|
|
50
|
-
focusDiv === null || focusDiv === void 0 ? void 0 : focusDiv.focus();
|
|
51
|
-
}, 200);
|
|
52
25
|
}
|
|
53
26
|
showNextCard() {
|
|
54
27
|
if (this.currentCardIndex < this.cards.length - 1) {
|
|
@@ -89,13 +62,7 @@ export class PtcTheaterVideoModal {
|
|
|
89
62
|
}
|
|
90
63
|
render() {
|
|
91
64
|
return (h(Host, null, h("slot", null), this.showModal &&
|
|
92
|
-
(this.modalType != 'only-video' ? (h("div", { class: "modal",
|
|
93
|
-
if (e.key === 'Enter')
|
|
94
|
-
this.closeCardModal();
|
|
95
|
-
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, h("g", { "clip-path": "url(#clip0_214_927)" }, h("path", { d: "M18 2.8125L15.1875 0L9 6.1875L2.8125 0L0 2.8125L6.1875 9L0 15.1875L2.8125 18L9 11.8125L15.1875 18L18 15.1875L11.8125 9L18 2.8125Z", fill: "white" })), h("defs", null, h("clipPath", { id: "clip0_214_927" }, h("rect", { width: "18", height: "18", fill: "white" })))))), h("div", { class: "is-grid has-col-gap-xl has-row-gap-lg" }, h("div", { class: 'is-col is-col-7-lg' }, h("div", { class: "v-modal-left" }, h("div", { class: 'v-nav' }, h("button", { onClick: () => this.showPrevCard(), disabled: this.currentCardIndex === 0 }, "Previous Video"), h("div", { class: 'v-number' }, ' ', this.currentCardIndex + 1, " of ", this.cards.length), h("button", { onClick: () => this.showNextCard(), disabled: this.currentCardIndex === this.cards.length - 1 }, "Next Video")), h("div", { class: 'aspect-ratio-container ' }, h("div", { class: 'video-container' }, h("video-js", { id: "bcPlayer", "data-account": "1532789042001", "data-player": "HknUe20R", "data-embed": "default", "data-video-id": this.cards[this.currentCardIndex].videoId, controls: "", "data-application-id": "", class: `dpm-vj-${this.currentCardIndex} video-js vjs-fills` }))), h("div", { class: "card-description-content" }, h("ptc-title", { type: "h3", "title-size": "large", "title-color": "white", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", styles: ".is-standard{margin-top:14px !important}" }, this.cards[this.currentCardIndex].title), h("ptc-para", { "font-size": "medium", "font-weight": "w-4", "para-color": "white", "para-margin": "margin-3", "para-line-h": "line-height-p", innerHTML: this.cards[this.currentCardIndex].cardDescription })))), h("div", { class: 'is-col is-col-5-lg' }, h("div", { class: "video-modal-description" }, h("div", { innerHTML: this.cards[this.currentCardIndex].descriptionModal }))))))) : (h("div", { class: "modal modal-only-video", ref: el => (this.modalPopUpRef = el) }, h("div", { class: "modal-wrapper" }, h("div", { onClick: () => this.closeCardModal(), class: 'vm-close mf-listen', tabIndex: 0, onKeyDown: (e) => {
|
|
96
|
-
if (e.key === 'Enter')
|
|
97
|
-
this.closeCardModal();
|
|
98
|
-
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, h("g", { "clip-path": "url(#clip0_214_927)" }, h("path", { d: "M18 2.8125L15.1875 0L9 6.1875L2.8125 0L0 2.8125L6.1875 9L0 15.1875L2.8125 18L9 11.8125L15.1875 18L18 15.1875L11.8125 9L18 2.8125Z", fill: "white" })), h("defs", null, h("clipPath", { id: "clip0_214_927" }, h("rect", { width: "18", height: "18", fill: "white" }))))), h("div", { class: 'aspect-ratio-container ' }, h("div", { class: 'video-container' }, h("video-js", { id: "bcPlayer", "data-account": "1532789042001", "data-player": "HknUe20R", "data-embed": "default", "data-video-id": this.cards[this.currentCardIndex].videoId, controls: "", "data-application-id": "", class: `dpm-vj-${this.currentCardIndex} video-js vjs-fills` })))))))));
|
|
65
|
+
(this.modalType != 'only-video' ? (h("div", { class: "modal" }, h("div", { class: "modal-container ptc-container" }, h("div", { class: "vm-close-container" }, h("div", { onClick: () => this.closeCardModal(), class: 'vm-close' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, h("g", { "clip-path": "url(#clip0_214_927)" }, h("path", { d: "M18 2.8125L15.1875 0L9 6.1875L2.8125 0L0 2.8125L6.1875 9L0 15.1875L2.8125 18L9 11.8125L15.1875 18L18 15.1875L11.8125 9L18 2.8125Z", fill: "white" })), h("defs", null, h("clipPath", { id: "clip0_214_927" }, h("rect", { width: "18", height: "18", fill: "white" })))))), h("div", { class: "is-grid has-col-gap-xl has-row-gap-lg" }, h("div", { class: 'is-col is-col-7-lg' }, h("div", { class: "v-modal-left" }, h("div", { class: 'v-nav' }, h("button", { onClick: () => this.showPrevCard(), disabled: this.currentCardIndex === 0 }, "Previous Video"), h("div", { class: 'v-number' }, ' ', this.currentCardIndex + 1, " of ", this.cards.length), h("button", { onClick: () => this.showNextCard(), disabled: this.currentCardIndex === this.cards.length - 1 }, "Next Video")), h("div", { class: 'aspect-ratio-container ' }, h("div", { class: 'video-container' }, h("video-js", { id: "bcPlayer", "data-account": "1532789042001", "data-player": "HknUe20R", "data-embed": "default", "data-video-id": this.cards[this.currentCardIndex].videoId, controls: "", "data-application-id": "", class: `dpm-vj-${this.currentCardIndex} video-js vjs-fills` }))), h("div", { class: "card-description-content" }, h("ptc-title", { type: "h3", "title-size": "large", "title-color": "white", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", styles: ".is-standard{margin-top:14px !important}" }, this.cards[this.currentCardIndex].title), h("ptc-para", { "font-size": "medium", "font-weight": "w-4", "para-color": "white", "para-margin": "margin-3", "para-line-h": "line-height-p", innerHTML: this.cards[this.currentCardIndex].cardDescription })))), h("div", { class: 'is-col is-col-5-lg' }, h("div", { class: "video-modal-description" }, h("div", { innerHTML: this.cards[this.currentCardIndex].descriptionModal }))))))) : (h("div", { class: "modal modal-only-video" }, h("div", { class: "modal-wrapper" }, h("div", { onClick: () => this.closeCardModal(), class: 'vm-close' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, h("g", { "clip-path": "url(#clip0_214_927)" }, h("path", { d: "M18 2.8125L15.1875 0L9 6.1875L2.8125 0L0 2.8125L6.1875 9L0 15.1875L2.8125 18L9 11.8125L15.1875 18L18 15.1875L11.8125 9L18 2.8125Z", fill: "white" })), h("defs", null, h("clipPath", { id: "clip0_214_927" }, h("rect", { width: "18", height: "18", fill: "white" }))))), h("div", { class: 'aspect-ratio-container ' }, h("div", { class: 'video-container' }, h("video-js", { id: "bcPlayer", "data-account": "1532789042001", "data-player": "HknUe20R", "data-embed": "default", "data-video-id": this.cards[this.currentCardIndex].videoId, controls: "", "data-application-id": "", class: `dpm-vj-${this.currentCardIndex} video-js vjs-fills` })))))))));
|
|
99
66
|
}
|
|
100
67
|
static get is() { return "ptc-theater-video-modal"; }
|
|
101
68
|
static get encapsulation() { return "scoped"; }
|
|
@@ -115,49 +82,24 @@ export class PtcTheaterVideoModal {
|
|
|
115
82
|
"showModal": {},
|
|
116
83
|
"currentCardIndex": {},
|
|
117
84
|
"filteredTagName": {},
|
|
118
|
-
"modalType": {}
|
|
119
|
-
"focusCardElement": {}
|
|
85
|
+
"modalType": {}
|
|
120
86
|
};
|
|
121
87
|
}
|
|
122
|
-
static get events() {
|
|
123
|
-
return [{
|
|
124
|
-
"method": "modalClosed",
|
|
125
|
-
"name": "modalClosed",
|
|
126
|
-
"bubbles": true,
|
|
127
|
-
"cancelable": true,
|
|
128
|
-
"composed": true,
|
|
129
|
-
"docs": {
|
|
130
|
-
"tags": [],
|
|
131
|
-
"text": ""
|
|
132
|
-
},
|
|
133
|
-
"complexType": {
|
|
134
|
-
"original": "any",
|
|
135
|
-
"resolved": "any",
|
|
136
|
-
"references": {}
|
|
137
|
-
}
|
|
138
|
-
}];
|
|
139
|
-
}
|
|
140
88
|
static get methods() {
|
|
141
89
|
return {
|
|
142
90
|
"updateData": {
|
|
143
91
|
"complexType": {
|
|
144
|
-
"signature": "(data: any, currentModalIndex: any
|
|
92
|
+
"signature": "(data: any, currentModalIndex: any) => Promise<void>",
|
|
145
93
|
"parameters": [{
|
|
146
94
|
"tags": [],
|
|
147
95
|
"text": ""
|
|
148
96
|
}, {
|
|
149
97
|
"tags": [],
|
|
150
98
|
"text": ""
|
|
151
|
-
}, {
|
|
152
|
-
"tags": [],
|
|
153
|
-
"text": ""
|
|
154
99
|
}],
|
|
155
100
|
"references": {
|
|
156
101
|
"Promise": {
|
|
157
102
|
"location": "global"
|
|
158
|
-
},
|
|
159
|
-
"HTMLElement": {
|
|
160
|
-
"location": "global"
|
|
161
103
|
}
|
|
162
104
|
},
|
|
163
105
|
"return": "Promise<void>"
|
|
@@ -52,12 +52,7 @@ export class PtcTheaterVideoPlaylist {
|
|
|
52
52
|
this.cardElements.forEach((cardElement, index) => {
|
|
53
53
|
this.cards.push(this.setCardData(cardElement, index));
|
|
54
54
|
cardElement.addEventListener('click', () => {
|
|
55
|
-
this.showCardDetails(index
|
|
56
|
-
});
|
|
57
|
-
cardElement.addEventListener('keydown', (e) => {
|
|
58
|
-
if (e.key === 'Enter') {
|
|
59
|
-
this.showCardDetails(index, cardElement);
|
|
60
|
-
}
|
|
55
|
+
this.showCardDetails(index);
|
|
61
56
|
});
|
|
62
57
|
});
|
|
63
58
|
}
|
|
@@ -92,12 +87,12 @@ export class PtcTheaterVideoPlaylist {
|
|
|
92
87
|
};
|
|
93
88
|
return cardData;
|
|
94
89
|
}
|
|
95
|
-
showCardDetails(index
|
|
90
|
+
showCardDetails(index) {
|
|
96
91
|
this.currentCardIndex = index;
|
|
97
92
|
// this.showModal = true;
|
|
98
93
|
const modalElement = document.querySelector('ptc-theater-video-modal');
|
|
99
94
|
if (modalElement) {
|
|
100
|
-
modalElement.updateData(this.cards, this.currentCardIndex
|
|
95
|
+
modalElement.updateData(this.cards, this.currentCardIndex);
|
|
101
96
|
}
|
|
102
97
|
}
|
|
103
98
|
render() {
|
|
@@ -82,26 +82,26 @@ 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, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-plm-grey a.light-link {
|
|
85
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-plm-grey a.light-link {
|
|
86
86
|
color: var(--color-blue-04);
|
|
87
87
|
margin: -2px;
|
|
88
88
|
border: 2px solid transparent;
|
|
89
89
|
}
|
|
90
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
|
|
90
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
|
|
91
91
|
color: var(--color-blue-06);
|
|
92
92
|
}
|
|
93
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
93
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
94
94
|
transition: none;
|
|
95
95
|
color: var(--color-blue-07);
|
|
96
96
|
}
|
|
97
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
97
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
98
98
|
color: var(--color-blue-05);
|
|
99
99
|
}
|
|
100
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
|
|
100
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
|
|
101
101
|
color: var(--color-gray-04) !important;
|
|
102
102
|
cursor: not-allowed;
|
|
103
103
|
}
|
|
104
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
104
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
105
105
|
border-radius: var(--ptc-border-radius-standard);
|
|
106
106
|
border: 2px solid white;
|
|
107
107
|
outline: 5px solid var(--keyboard-nav-outline);
|