@ptcwebops/ptcw-design 6.3.22-beta → 6.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/component-1b8ad4d2.js +1819 -0
- package/dist/cjs/{component-4dd13907.js → component-35540bfb.js} +1494 -3305
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/global-92142fb4.js +28 -0
- 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/list-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -1
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +16 -1
- package/dist/cjs/ptc-bio-card.cjs.entry.js +20 -5
- package/dist/cjs/ptc-card_2.cjs.entry.js +10 -5
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +2 -6
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +32 -17
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-enhanced-product-listing-card.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 +40 -9
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +18 -3
- package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +5 -787
- package/dist/cjs/ptc-icon-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-info-tile.cjs.entry.js +2 -1
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +670 -0
- package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +28 -3
- 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 +2 -10
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +9 -11
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-list.cjs.entry.js +11 -1
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +38 -6
- 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 +90 -32
- package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +42 -8
- 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 +6 -10
- package/dist/cjs/ptcw-design.cjs.js +2 -1
- package/dist/cjs/tab-header.cjs.entry.js +1 -1
- package/dist/cjs/validation-messages-33a4f26b.js +126 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +2 -30
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
- package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +1 -0
- package/dist/collection/components/list-item/list-item.css +4 -0
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
- package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.css +4 -0
- package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +15 -0
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +10 -6
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +19 -4
- 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 +1 -5
- package/dist/collection/components/ptc-container/ptc-container.js +2 -2
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +1 -1
- package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.css +16 -0
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +12 -0
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +29 -3
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +34 -13
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +17 -2
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +3 -0
- package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +20 -1
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -6
- package/dist/collection/components/ptc-modal/ptc-modal.css +0 -4
- package/dist/collection/components/ptc-modal/ptc-modal.js +50 -18
- package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +7 -0
- package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +78 -2
- package/dist/collection/components/ptc-para/ptc-para.css +0 -3
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +419 -0
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +9 -4
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -27
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +9 -11
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +10 -6
- package/dist/collection/components/ptc-product-card/ptc-product-card.js +1 -1
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
- package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.css +8 -0
- package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +1 -1
- 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 +11 -1
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +12 -0
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +37 -5
- 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.css +1 -2
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +113 -33
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +19 -19
- package/dist/collection/components/ptc-theater-video/ptc-theater-video.css +6 -0
- 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 +15 -0
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +67 -9
- package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +8 -3
- 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 +5 -9
- package/dist/collection/components/tab-header/tab-header.js +1 -1
- package/dist/collection/global/global.js +3 -0
- package/dist/collection/stories/Card.stories.js +3 -148
- package/dist/collection/stories/Jumbotron.stories.js +727 -0
- package/dist/collection/stories/Link.stories.js +25 -13
- package/dist/collection/stories/Paragraph.stories.js +18 -10
- package/dist/collection/stories/Select.stories.js +5 -8
- package/dist/collection/stories/Textfield.stories.js +71 -28
- package/dist/collection/stories/Title.stories.js +28 -16
- package/dist/collection/utils/fef-logger.js +23 -0
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +424 -251
- package/dist/esm/{component-9c921cc6.js → component-8c53e377.js} +1482 -3281
- package/dist/esm/component-9beac35b.js +1802 -0
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/global-c58db4a9.js +26 -0
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
- package/dist/esm/list-item.entry.js +1 -1
- package/dist/esm/loader.js +2 -1
- package/dist/esm/ptc-back-to-top.entry.js +16 -1
- package/dist/esm/ptc-bio-card.entry.js +20 -5
- package/dist/esm/ptc-card_2.entry.js +10 -5
- package/dist/esm/ptc-case-studies-slider.entry.js +2 -6
- package/dist/esm/ptc-close-icon_2.entry.js +32 -17
- package/dist/esm/ptc-data-lookup.entry.js +2 -1
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-enhanced-product-listing-card.entry.js +1 -1
- package/dist/esm/ptc-featured-list.entry.js +1 -1
- package/dist/esm/ptc-filter-dropdown_4.entry.js +40 -9
- package/dist/esm/ptc-filter-level-theater.entry.js +18 -3
- package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +4 -784
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-info-tile.entry.js +2 -1
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +665 -0
- package/dist/esm/ptc-nav-skip-to-content.entry.js +28 -3
- 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 +2 -10
- package/dist/esm/ptc-pricing-packaging-table.entry.js +9 -11
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-product-card.entry.js +2 -2
- package/dist/esm/ptc-product-category.entry.js +1 -1
- package/dist/esm/ptc-product-dropdown.entry.js +2 -2
- package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
- package/dist/esm/ptc-product-list.entry.js +11 -1
- package/dist/esm/ptc-product-sidebar.entry.js +38 -6
- 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 +90 -32
- package/dist/esm/ptc-theater-video-modal.entry.js +43 -9
- 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 +6 -10
- package/dist/esm/ptcw-design.js +2 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/esm/validation-messages-adbb6518.js +124 -0
- package/dist/ptcw-design/media/designer-v6.0.6.svg +2 -30
- package/dist/ptcw-design/p-00e21489.entry.js +1 -0
- package/dist/ptcw-design/p-02822616.entry.js +1 -0
- package/dist/ptcw-design/p-05c29cc2.entry.js +1 -0
- package/dist/ptcw-design/{p-f867ebe6.entry.js → p-0ddf2a09.entry.js} +1 -1
- package/dist/ptcw-design/p-13e338a5.entry.js +1 -0
- package/dist/ptcw-design/p-1454ba84.entry.js +1 -0
- package/dist/ptcw-design/p-18851303.entry.js +1 -0
- package/dist/ptcw-design/p-18a5a338.js +1 -0
- package/dist/ptcw-design/{p-d73cc053.entry.js → p-18ac526f.entry.js} +1 -1
- package/dist/ptcw-design/p-1feb2812.entry.js +1 -0
- package/dist/ptcw-design/{p-2cc7e2a8.entry.js → p-24776ca2.entry.js} +1 -1
- package/dist/ptcw-design/p-352e87c0.entry.js +1 -0
- package/dist/ptcw-design/p-38e5e590.entry.js +1 -0
- package/dist/ptcw-design/p-4737a0f6.entry.js +1 -0
- package/dist/ptcw-design/p-4ca956c1.entry.js +1 -0
- package/dist/ptcw-design/p-593b8eff.entry.js +1 -0
- package/dist/ptcw-design/p-66ecd7b9.entry.js +1 -0
- package/dist/ptcw-design/{p-48c5eab8.entry.js → p-68ed2afe.entry.js} +1 -1
- package/dist/ptcw-design/p-73a853fc.entry.js +1 -0
- package/dist/ptcw-design/{p-0529caaa.entry.js → p-752bba1c.entry.js} +1 -1
- package/dist/ptcw-design/p-75431fa1.entry.js +1 -0
- package/dist/ptcw-design/{p-b570e9a5.entry.js → p-757954b2.entry.js} +1 -1
- package/dist/ptcw-design/p-98426799.js +203 -0
- package/dist/ptcw-design/p-98844b50.js +134 -0
- package/dist/ptcw-design/p-a2c7df64.entry.js +1 -0
- package/dist/ptcw-design/p-a36f147a.js +1 -0
- package/dist/ptcw-design/p-a58698ca.entry.js +1 -0
- package/dist/ptcw-design/{p-0b515839.entry.js → p-a791c53a.entry.js} +1 -1
- package/dist/ptcw-design/p-acdd9a1d.entry.js +1 -0
- package/dist/ptcw-design/p-ad821a01.entry.js +1 -0
- package/dist/ptcw-design/p-b6255525.entry.js +1 -0
- package/dist/ptcw-design/p-b7fa9f2c.entry.js +1 -0
- package/dist/ptcw-design/p-b963ec8c.entry.js +68 -0
- package/dist/ptcw-design/p-bb9a879f.entry.js +1 -0
- package/dist/ptcw-design/p-bf84ecc0.entry.js +1 -0
- package/dist/ptcw-design/p-c82eaf9d.entry.js +1 -0
- package/dist/ptcw-design/p-cad4b517.entry.js +1 -0
- package/dist/ptcw-design/{p-3dd0ded9.entry.js → p-d089dc37.entry.js} +1 -1
- package/dist/ptcw-design/p-d6845e91.entry.js +1 -0
- package/dist/ptcw-design/p-db1dcce0.entry.js +1 -0
- package/dist/ptcw-design/p-ddb898c7.entry.js +1 -0
- package/dist/ptcw-design/{p-7793babb.entry.js → p-e3b1af2b.entry.js} +1 -1
- package/dist/ptcw-design/p-e6619d63.entry.js +1 -0
- package/dist/ptcw-design/p-f9256e3d.entry.js +1 -0
- package/dist/ptcw-design/p-fbd9c8fc.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/ptc-bio-card/ptc-bio-card.d.ts +1 -1
- package/dist/types/components/ptc-container/ptc-container.d.ts +1 -1
- package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +2 -1
- package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +1 -0
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +2 -2
- package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +6 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
- package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +1 -1
- package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +6 -3
- package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +12 -5
- package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +54 -0
- package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +6 -1
- package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +1 -1
- package/dist/types/components.d.ts +132 -22
- package/dist/types/global/global.d.ts +4 -0
- package/dist/types/utils/fef-logger.d.ts +10 -0
- package/package.json +6 -2
- package/readme.md +1 -5
- package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -99
- package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
- package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
- package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
- package/dist/esm/modal-form-example.entry.js +0 -90
- package/dist/ptcw-design/p-072a76d3.entry.js +0 -1
- package/dist/ptcw-design/p-0d223232.entry.js +0 -1
- package/dist/ptcw-design/p-0de4cd11.entry.js +0 -1
- package/dist/ptcw-design/p-21aa746d.entry.js +0 -1
- package/dist/ptcw-design/p-282b7d4e.entry.js +0 -1
- package/dist/ptcw-design/p-32f64f48.entry.js +0 -1
- package/dist/ptcw-design/p-3dac861d.entry.js +0 -1
- package/dist/ptcw-design/p-3ee2a531.entry.js +0 -1
- package/dist/ptcw-design/p-445329ed.entry.js +0 -1
- package/dist/ptcw-design/p-4b192f5e.entry.js +0 -1
- package/dist/ptcw-design/p-4f93c631.entry.js +0 -1
- package/dist/ptcw-design/p-5311c6e1.entry.js +0 -1
- package/dist/ptcw-design/p-58e91cb8.entry.js +0 -1
- package/dist/ptcw-design/p-5db7f70b.entry.js +0 -1
- package/dist/ptcw-design/p-67c248ec.entry.js +0 -1
- package/dist/ptcw-design/p-71fbb799.entry.js +0 -1
- package/dist/ptcw-design/p-75390f63.entry.js +0 -1
- package/dist/ptcw-design/p-799afee5.entry.js +0 -1
- package/dist/ptcw-design/p-7bdf1e64.entry.js +0 -1
- package/dist/ptcw-design/p-8038bf31.entry.js +0 -1
- package/dist/ptcw-design/p-9501995f.entry.js +0 -1
- package/dist/ptcw-design/p-97b9f41b.entry.js +0 -1
- package/dist/ptcw-design/p-99ee8a0e.entry.js +0 -1
- package/dist/ptcw-design/p-9d612f1f.entry.js +0 -1
- package/dist/ptcw-design/p-a89b986a.entry.js +0 -68
- package/dist/ptcw-design/p-b50f71dd.entry.js +0 -1
- package/dist/ptcw-design/p-baff4d44.entry.js +0 -1
- package/dist/ptcw-design/p-bcab66bf.js +0 -336
- package/dist/ptcw-design/p-c788f16f.entry.js +0 -1
- package/dist/ptcw-design/p-de960790.entry.js +0 -1
- package/dist/ptcw-design/p-e6a272d9.entry.js +0 -1
- package/dist/ptcw-design/p-f1734520.entry.js +0 -1
- package/dist/ptcw-design/p-fe40421e.entry.js +0 -1
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
|
@@ -172,8 +172,6 @@ export namespace Components {
|
|
|
172
172
|
*/
|
|
173
173
|
"styles"?: string;
|
|
174
174
|
}
|
|
175
|
-
interface ModalFormExample {
|
|
176
|
-
}
|
|
177
175
|
interface MostPopularNews {
|
|
178
176
|
"topTitle": string;
|
|
179
177
|
}
|
|
@@ -688,7 +686,7 @@ export namespace Components {
|
|
|
688
686
|
"backgroundColor": 'white' | 'gray';
|
|
689
687
|
"containerType": 'large' | 'none' | '';
|
|
690
688
|
"elevation": 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
691
|
-
"spacing": 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | '
|
|
689
|
+
"spacing": 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large';
|
|
692
690
|
"styles"?: string;
|
|
693
691
|
}
|
|
694
692
|
interface PtcCountdown {
|
|
@@ -1028,6 +1026,7 @@ export namespace Components {
|
|
|
1028
1026
|
* (optional) Injected CSS Styles
|
|
1029
1027
|
*/
|
|
1030
1028
|
"styles"?: string;
|
|
1029
|
+
"target": string;
|
|
1031
1030
|
"trackerId"?: string;
|
|
1032
1031
|
"variant": 'image' | 'text';
|
|
1033
1032
|
}
|
|
@@ -1263,6 +1262,7 @@ export namespace Components {
|
|
|
1263
1262
|
* Sets if popup should overlay
|
|
1264
1263
|
*/
|
|
1265
1264
|
"fixed"?: boolean;
|
|
1265
|
+
"focusBackElement": any;
|
|
1266
1266
|
"headerOnlyBg"?: string;
|
|
1267
1267
|
"headerOnlyText1"?: string;
|
|
1268
1268
|
"headerOnlyText2"?: string;
|
|
@@ -1305,7 +1305,7 @@ export namespace Components {
|
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Sets if popup should close if click on outside
|
|
1307
1307
|
*/
|
|
1308
|
-
"size"?: 'sm' | 'md' | 'lg' | 'xl' | '
|
|
1308
|
+
"size"?: 'sm' | 'md' | 'lg' | 'xl' | 'max' | 'sm-modal';
|
|
1309
1309
|
/**
|
|
1310
1310
|
* (optional) Injected CSS Styles
|
|
1311
1311
|
*/
|
|
@@ -1394,8 +1394,11 @@ export namespace Components {
|
|
|
1394
1394
|
interface PtcNavPills {
|
|
1395
1395
|
}
|
|
1396
1396
|
interface PtcNavSkipToContent {
|
|
1397
|
+
"appendSelector": string;
|
|
1397
1398
|
"buttonText": string;
|
|
1398
1399
|
"sectionId": string;
|
|
1400
|
+
"xOffset": number;
|
|
1401
|
+
"yOffset": number;
|
|
1399
1402
|
}
|
|
1400
1403
|
interface PtcNavSlider {
|
|
1401
1404
|
/**
|
|
@@ -1560,7 +1563,7 @@ export namespace Components {
|
|
|
1560
1563
|
/**
|
|
1561
1564
|
* Paragraph Color
|
|
1562
1565
|
*/
|
|
1563
|
-
"paraColor": 'primary-grey' | '
|
|
1566
|
+
"paraColor": 'primary-grey' | 'white' | 'gray-darker';
|
|
1564
1567
|
/**
|
|
1565
1568
|
* line height
|
|
1566
1569
|
*/
|
|
@@ -1724,7 +1727,6 @@ export namespace Components {
|
|
|
1724
1727
|
*/
|
|
1725
1728
|
"styles"?: string;
|
|
1726
1729
|
"text": string | undefined;
|
|
1727
|
-
"theme": 'standard' | 'light';
|
|
1728
1730
|
}
|
|
1729
1731
|
interface PtcPricingAddOnCard {
|
|
1730
1732
|
/**
|
|
@@ -2051,6 +2053,7 @@ export namespace Components {
|
|
|
2051
2053
|
* Query selector of page footer above which the related card rail will unstick
|
|
2052
2054
|
*/
|
|
2053
2055
|
"footerQuerySelector": string;
|
|
2056
|
+
"isVisible": boolean;
|
|
2054
2057
|
"railTitle": string;
|
|
2055
2058
|
}
|
|
2056
2059
|
interface PtcResponsiveWrapper {
|
|
@@ -2454,25 +2457,79 @@ export namespace Components {
|
|
|
2454
2457
|
"type": 'text-copy-with-background' | 'hero-footer-cta' | 'tab-cta-with-background' | 'case-studies';
|
|
2455
2458
|
}
|
|
2456
2459
|
interface PtcTextfield {
|
|
2460
|
+
/**
|
|
2461
|
+
* Alert Text
|
|
2462
|
+
*/
|
|
2457
2463
|
"alertText": string;
|
|
2464
|
+
/**
|
|
2465
|
+
* Alert Text Content
|
|
2466
|
+
*/
|
|
2458
2467
|
"alertTextContent": string;
|
|
2468
|
+
/**
|
|
2469
|
+
* Custom Validation - String
|
|
2470
|
+
*/
|
|
2459
2471
|
"customValidation": (input: HTMLInputElement) => string;
|
|
2472
|
+
/**
|
|
2473
|
+
* Disable the field
|
|
2474
|
+
*/
|
|
2460
2475
|
"disabled": boolean;
|
|
2476
|
+
/**
|
|
2477
|
+
* ID
|
|
2478
|
+
*/
|
|
2461
2479
|
"fieldId": string;
|
|
2480
|
+
/**
|
|
2481
|
+
* input "name" value. e.g.: 'phone', 'email', 'firstname', 'lastname'
|
|
2482
|
+
*/
|
|
2462
2483
|
"fieldName": string;
|
|
2484
|
+
/**
|
|
2485
|
+
* Validation text (red)
|
|
2486
|
+
*/
|
|
2463
2487
|
"helpertext": string;
|
|
2488
|
+
/**
|
|
2489
|
+
* Ignore Blind Submit?
|
|
2490
|
+
*/
|
|
2464
2491
|
"ignoreBlindSubmit": boolean;
|
|
2492
|
+
/**
|
|
2493
|
+
* Info Text (black)
|
|
2494
|
+
*/
|
|
2465
2495
|
"infoText": string;
|
|
2466
2496
|
"inputValue": string;
|
|
2497
|
+
/**
|
|
2498
|
+
* Label Text
|
|
2499
|
+
*/
|
|
2467
2500
|
"labelText": string;
|
|
2501
|
+
/**
|
|
2502
|
+
* Place holder Text
|
|
2503
|
+
*/
|
|
2468
2504
|
"placeholderText": string;
|
|
2505
|
+
/**
|
|
2506
|
+
* Eloqua Data Name (for the eloqua)
|
|
2507
|
+
*/
|
|
2469
2508
|
"ptcDataEloquaName": string;
|
|
2509
|
+
/**
|
|
2510
|
+
* Eloqua Target Data Name (for the eloqua)
|
|
2511
|
+
*/
|
|
2470
2512
|
"ptcDataTargetEloquaName": string;
|
|
2513
|
+
/**
|
|
2514
|
+
* Text counter limit
|
|
2515
|
+
*/
|
|
2471
2516
|
"ptcMaxLength"?: number;
|
|
2517
|
+
/**
|
|
2518
|
+
* Is this a mandatory field?
|
|
2519
|
+
*/
|
|
2472
2520
|
"required": boolean;
|
|
2521
|
+
/**
|
|
2522
|
+
* Inject styles for customization
|
|
2523
|
+
*/
|
|
2473
2524
|
"styles": string;
|
|
2474
2525
|
"syncCountry": (countryCode: string) => Promise<void>;
|
|
2526
|
+
/**
|
|
2527
|
+
* Text Field Form
|
|
2528
|
+
*/
|
|
2475
2529
|
"textfieldForm": 'default' | 'email-signup';
|
|
2530
|
+
/**
|
|
2531
|
+
* text, button, email, file and etc. This value triggers different validation
|
|
2532
|
+
*/
|
|
2476
2533
|
"type": string;
|
|
2477
2534
|
"validateTextField": () => Promise<void>;
|
|
2478
2535
|
}
|
|
@@ -2486,7 +2543,7 @@ export namespace Components {
|
|
|
2486
2543
|
"vtagName"?: string;
|
|
2487
2544
|
}
|
|
2488
2545
|
interface PtcTheaterVideoModal {
|
|
2489
|
-
"updateData": (data: any, currentModalIndex: any) => Promise<void>;
|
|
2546
|
+
"updateData": (data: any, currentModalIndex: any, cardElement?: HTMLElement) => Promise<void>;
|
|
2490
2547
|
}
|
|
2491
2548
|
interface PtcTheaterVideoPlaylist {
|
|
2492
2549
|
"cardElements": any;
|
|
@@ -2950,6 +3007,10 @@ export interface PtcTheaterVideoCustomEvent<T> extends CustomEvent<T> {
|
|
|
2950
3007
|
detail: T;
|
|
2951
3008
|
target: HTMLPtcTheaterVideoElement;
|
|
2952
3009
|
}
|
|
3010
|
+
export interface PtcTheaterVideoModalCustomEvent<T> extends CustomEvent<T> {
|
|
3011
|
+
detail: T;
|
|
3012
|
+
target: HTMLPtcTheaterVideoModalElement;
|
|
3013
|
+
}
|
|
2953
3014
|
export interface PtcWhitePaperCustomEvent<T> extends CustomEvent<T> {
|
|
2954
3015
|
detail: T;
|
|
2955
3016
|
target: HTMLPtcWhitePaperElement;
|
|
@@ -3121,12 +3182,6 @@ declare global {
|
|
|
3121
3182
|
prototype: HTMLMaxWidthContainerElement;
|
|
3122
3183
|
new (): HTMLMaxWidthContainerElement;
|
|
3123
3184
|
};
|
|
3124
|
-
interface HTMLModalFormExampleElement extends Components.ModalFormExample, HTMLStencilElement {
|
|
3125
|
-
}
|
|
3126
|
-
var HTMLModalFormExampleElement: {
|
|
3127
|
-
prototype: HTMLModalFormExampleElement;
|
|
3128
|
-
new (): HTMLModalFormExampleElement;
|
|
3129
|
-
};
|
|
3130
3185
|
interface HTMLMostPopularNewsElement extends Components.MostPopularNews, HTMLStencilElement {
|
|
3131
3186
|
}
|
|
3132
3187
|
var HTMLMostPopularNewsElement: {
|
|
@@ -4049,7 +4104,6 @@ declare global {
|
|
|
4049
4104
|
"jumbotron-sub-mune": HTMLJumbotronSubMuneElement;
|
|
4050
4105
|
"list-item": HTMLListItemElement;
|
|
4051
4106
|
"max-width-container": HTMLMaxWidthContainerElement;
|
|
4052
|
-
"modal-form-example": HTMLModalFormExampleElement;
|
|
4053
4107
|
"most-popular-news": HTMLMostPopularNewsElement;
|
|
4054
4108
|
"my-component": HTMLMyComponentElement;
|
|
4055
4109
|
"news-search-result": HTMLNewsSearchResultElement;
|
|
@@ -4373,8 +4427,6 @@ declare namespace LocalJSX {
|
|
|
4373
4427
|
*/
|
|
4374
4428
|
"styles"?: string;
|
|
4375
4429
|
}
|
|
4376
|
-
interface ModalFormExample {
|
|
4377
|
-
}
|
|
4378
4430
|
interface MostPopularNews {
|
|
4379
4431
|
"topTitle"?: string;
|
|
4380
4432
|
}
|
|
@@ -4907,7 +4959,7 @@ declare namespace LocalJSX {
|
|
|
4907
4959
|
"backgroundColor"?: 'white' | 'gray';
|
|
4908
4960
|
"containerType"?: 'large' | 'none' | '';
|
|
4909
4961
|
"elevation"?: 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
4910
|
-
"spacing"?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | '
|
|
4962
|
+
"spacing"?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large';
|
|
4911
4963
|
"styles"?: string;
|
|
4912
4964
|
}
|
|
4913
4965
|
interface PtcCountdown {
|
|
@@ -5255,6 +5307,7 @@ declare namespace LocalJSX {
|
|
|
5255
5307
|
* (optional) Injected CSS Styles
|
|
5256
5308
|
*/
|
|
5257
5309
|
"styles"?: string;
|
|
5310
|
+
"target"?: string;
|
|
5258
5311
|
"trackerId"?: string;
|
|
5259
5312
|
"variant"?: 'image' | 'text';
|
|
5260
5313
|
}
|
|
@@ -5491,6 +5544,7 @@ declare namespace LocalJSX {
|
|
|
5491
5544
|
* Sets if popup should overlay
|
|
5492
5545
|
*/
|
|
5493
5546
|
"fixed"?: boolean;
|
|
5547
|
+
"focusBackElement"?: any;
|
|
5494
5548
|
"headerOnlyBg"?: string;
|
|
5495
5549
|
"headerOnlyText1"?: string;
|
|
5496
5550
|
"headerOnlyText2"?: string;
|
|
@@ -5538,7 +5592,7 @@ declare namespace LocalJSX {
|
|
|
5538
5592
|
/**
|
|
5539
5593
|
* Sets if popup should close if click on outside
|
|
5540
5594
|
*/
|
|
5541
|
-
"size"?: 'sm' | 'md' | 'lg' | 'xl' | '
|
|
5595
|
+
"size"?: 'sm' | 'md' | 'lg' | 'xl' | 'max' | 'sm-modal';
|
|
5542
5596
|
/**
|
|
5543
5597
|
* (optional) Injected CSS Styles
|
|
5544
5598
|
*/
|
|
@@ -5630,8 +5684,11 @@ declare namespace LocalJSX {
|
|
|
5630
5684
|
interface PtcNavPills {
|
|
5631
5685
|
}
|
|
5632
5686
|
interface PtcNavSkipToContent {
|
|
5687
|
+
"appendSelector"?: string;
|
|
5633
5688
|
"buttonText"?: string;
|
|
5634
5689
|
"sectionId"?: string;
|
|
5690
|
+
"xOffset"?: number;
|
|
5691
|
+
"yOffset"?: number;
|
|
5635
5692
|
}
|
|
5636
5693
|
interface PtcNavSlider {
|
|
5637
5694
|
/**
|
|
@@ -5802,7 +5859,7 @@ declare namespace LocalJSX {
|
|
|
5802
5859
|
/**
|
|
5803
5860
|
* Paragraph Color
|
|
5804
5861
|
*/
|
|
5805
|
-
"paraColor"?: 'primary-grey' | '
|
|
5862
|
+
"paraColor"?: 'primary-grey' | 'white' | 'gray-darker';
|
|
5806
5863
|
/**
|
|
5807
5864
|
* line height
|
|
5808
5865
|
*/
|
|
@@ -5964,7 +6021,6 @@ declare namespace LocalJSX {
|
|
|
5964
6021
|
*/
|
|
5965
6022
|
"styles"?: string;
|
|
5966
6023
|
"text"?: string | undefined;
|
|
5967
|
-
"theme"?: 'standard' | 'light';
|
|
5968
6024
|
}
|
|
5969
6025
|
interface PtcPricingAddOnCard {
|
|
5970
6026
|
/**
|
|
@@ -6312,6 +6368,7 @@ declare namespace LocalJSX {
|
|
|
6312
6368
|
* Query selector of page footer above which the related card rail will unstick
|
|
6313
6369
|
*/
|
|
6314
6370
|
"footerQuerySelector"?: string;
|
|
6371
|
+
"isVisible"?: boolean;
|
|
6315
6372
|
"railTitle"?: string;
|
|
6316
6373
|
}
|
|
6317
6374
|
interface PtcResponsiveWrapper {
|
|
@@ -6717,24 +6774,78 @@ declare namespace LocalJSX {
|
|
|
6717
6774
|
"type"?: 'text-copy-with-background' | 'hero-footer-cta' | 'tab-cta-with-background' | 'case-studies';
|
|
6718
6775
|
}
|
|
6719
6776
|
interface PtcTextfield {
|
|
6777
|
+
/**
|
|
6778
|
+
* Alert Text
|
|
6779
|
+
*/
|
|
6720
6780
|
"alertText"?: string;
|
|
6781
|
+
/**
|
|
6782
|
+
* Alert Text Content
|
|
6783
|
+
*/
|
|
6721
6784
|
"alertTextContent"?: string;
|
|
6785
|
+
/**
|
|
6786
|
+
* Custom Validation - String
|
|
6787
|
+
*/
|
|
6722
6788
|
"customValidation"?: (input: HTMLInputElement) => string;
|
|
6789
|
+
/**
|
|
6790
|
+
* Disable the field
|
|
6791
|
+
*/
|
|
6723
6792
|
"disabled"?: boolean;
|
|
6793
|
+
/**
|
|
6794
|
+
* ID
|
|
6795
|
+
*/
|
|
6724
6796
|
"fieldId"?: string;
|
|
6797
|
+
/**
|
|
6798
|
+
* input "name" value. e.g.: 'phone', 'email', 'firstname', 'lastname'
|
|
6799
|
+
*/
|
|
6725
6800
|
"fieldName"?: string;
|
|
6801
|
+
/**
|
|
6802
|
+
* Validation text (red)
|
|
6803
|
+
*/
|
|
6726
6804
|
"helpertext"?: string;
|
|
6805
|
+
/**
|
|
6806
|
+
* Ignore Blind Submit?
|
|
6807
|
+
*/
|
|
6727
6808
|
"ignoreBlindSubmit"?: boolean;
|
|
6809
|
+
/**
|
|
6810
|
+
* Info Text (black)
|
|
6811
|
+
*/
|
|
6728
6812
|
"infoText"?: string;
|
|
6729
6813
|
"inputValue"?: string;
|
|
6814
|
+
/**
|
|
6815
|
+
* Label Text
|
|
6816
|
+
*/
|
|
6730
6817
|
"labelText"?: string;
|
|
6818
|
+
/**
|
|
6819
|
+
* Place holder Text
|
|
6820
|
+
*/
|
|
6731
6821
|
"placeholderText"?: string;
|
|
6822
|
+
/**
|
|
6823
|
+
* Eloqua Data Name (for the eloqua)
|
|
6824
|
+
*/
|
|
6732
6825
|
"ptcDataEloquaName"?: string;
|
|
6826
|
+
/**
|
|
6827
|
+
* Eloqua Target Data Name (for the eloqua)
|
|
6828
|
+
*/
|
|
6733
6829
|
"ptcDataTargetEloquaName"?: string;
|
|
6830
|
+
/**
|
|
6831
|
+
* Text counter limit
|
|
6832
|
+
*/
|
|
6734
6833
|
"ptcMaxLength"?: number;
|
|
6834
|
+
/**
|
|
6835
|
+
* Is this a mandatory field?
|
|
6836
|
+
*/
|
|
6735
6837
|
"required"?: boolean;
|
|
6838
|
+
/**
|
|
6839
|
+
* Inject styles for customization
|
|
6840
|
+
*/
|
|
6736
6841
|
"styles"?: string;
|
|
6842
|
+
/**
|
|
6843
|
+
* Text Field Form
|
|
6844
|
+
*/
|
|
6737
6845
|
"textfieldForm"?: 'default' | 'email-signup';
|
|
6846
|
+
/**
|
|
6847
|
+
* text, button, email, file and etc. This value triggers different validation
|
|
6848
|
+
*/
|
|
6738
6849
|
"type"?: string;
|
|
6739
6850
|
}
|
|
6740
6851
|
interface PtcTheaterVideo {
|
|
@@ -6748,6 +6859,7 @@ declare namespace LocalJSX {
|
|
|
6748
6859
|
"vtagName"?: string;
|
|
6749
6860
|
}
|
|
6750
6861
|
interface PtcTheaterVideoModal {
|
|
6862
|
+
"onModalClosed"?: (event: PtcTheaterVideoModalCustomEvent<any>) => void;
|
|
6751
6863
|
}
|
|
6752
6864
|
interface PtcTheaterVideoPlaylist {
|
|
6753
6865
|
"cardElements"?: any;
|
|
@@ -7050,7 +7162,6 @@ declare namespace LocalJSX {
|
|
|
7050
7162
|
"jumbotron-sub-mune": JumbotronSubMune;
|
|
7051
7163
|
"list-item": ListItem;
|
|
7052
7164
|
"max-width-container": MaxWidthContainer;
|
|
7053
|
-
"modal-form-example": ModalFormExample;
|
|
7054
7165
|
"most-popular-news": MostPopularNews;
|
|
7055
7166
|
"my-component": MyComponent;
|
|
7056
7167
|
"news-search-result": NewsSearchResult;
|
|
@@ -7233,7 +7344,6 @@ declare module "@stencil/core" {
|
|
|
7233
7344
|
"jumbotron-sub-mune": LocalJSX.JumbotronSubMune & JSXBase.HTMLAttributes<HTMLJumbotronSubMuneElement>;
|
|
7234
7345
|
"list-item": LocalJSX.ListItem & JSXBase.HTMLAttributes<HTMLListItemElement>;
|
|
7235
7346
|
"max-width-container": LocalJSX.MaxWidthContainer & JSXBase.HTMLAttributes<HTMLMaxWidthContainerElement>;
|
|
7236
|
-
"modal-form-example": LocalJSX.ModalFormExample & JSXBase.HTMLAttributes<HTMLModalFormExampleElement>;
|
|
7237
7347
|
"most-popular-news": LocalJSX.MostPopularNews & JSXBase.HTMLAttributes<HTMLMostPopularNewsElement>;
|
|
7238
7348
|
"my-component": LocalJSX.MyComponent & JSXBase.HTMLAttributes<HTMLMyComponentElement>;
|
|
7239
7349
|
"news-search-result": LocalJSX.NewsSearchResult & JSXBase.HTMLAttributes<HTMLNewsSearchResultElement>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class PTCLogger {
|
|
2
|
+
private prefix;
|
|
3
|
+
private format;
|
|
4
|
+
log(message: any, ...args: any[]): void;
|
|
5
|
+
info(message: any, ...args: any[]): void;
|
|
6
|
+
warn(message: any, ...args: any[]): void;
|
|
7
|
+
error(message: any, ...args: any[]): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ptcLogger: PTCLogger;
|
|
10
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptcwebops/ptcw-design",
|
|
3
|
-
"version": "6.3.22
|
|
3
|
+
"version": "6.3.22",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
"storybook": "storybook dev -p 6006",
|
|
28
28
|
"build-storybook": "storybook build",
|
|
29
29
|
"generate-story": "node scripts/storyGenerator",
|
|
30
|
-
"generate-unit-tests": "node scripts/unitTestGenerator"
|
|
30
|
+
"generate-unit-tests": "node scripts/unitTestGenerator",
|
|
31
|
+
"start:tailwind": "npx tailwindcss -i ./src/global/tailwindcss/input.css -o ./src/global/tailwindcss/output.css --watch",
|
|
32
|
+
"start:tailwind-stencil": "npx tailwindcss -i ./src/global/tailwindcss/input.css -o ./src/global/tailwindcss/output.css && npm run start",
|
|
33
|
+
"build:tailwind-stencil": "npx tailwindcss -i ./src/global/tailwindcss/input.css -o ./src/global/tailwindcss/output.css --minify && npm run build"
|
|
31
34
|
},
|
|
32
35
|
"dependencies": {
|
|
33
36
|
"@daveberning/griddle": "^0.3.0",
|
|
@@ -68,6 +71,7 @@
|
|
|
68
71
|
"react-dom": "^18.2.0",
|
|
69
72
|
"stencil-inline-svg": "^1.1.0",
|
|
70
73
|
"storybook": "^7.1.0-alpha.29",
|
|
74
|
+
"tailwindcss": "^3.4.17",
|
|
71
75
|
"util": "^0.12.5",
|
|
72
76
|
"yargs": "^17.7.2"
|
|
73
77
|
},
|
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# PTC Design 6.3.22
|
|
3
|
+
# PTC Design 6.3.22
|
|
4
4
|
|
|
5
5
|
The site is the place for documentation on PTC Design System
|
|
6
6
|
|
|
@@ -17,7 +17,3 @@ To build the site from the source, ensure you're using the most recent versions
|
|
|
17
17
|
- puppeteer 10.0.0
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
|
-
|
|
21
|
-
## Release notes
|
|
22
|
-
|
|
23
|
-
TODO: figure out how to do release notes with npm
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const modalFormExampleCss = ":host {\r\n display: block;\r\n}\r\n\r\n.form-wrapper {\r\n width: 371px;\r\n display: flex;\r\n border-radius: 3px;\r\n background: #FFF;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 0px 32px;\r\n\r\n @media only screen and (min-width: 360px) and (max-width: 479.55px) {\r\n max-width: 360px;\r\n width: 360px;\r\n }\r\n\r\n .button-wrapper {\r\n display: flex;\r\n justify-content: flex-end;\r\n gap: 20px;\r\n margin-top: 48px;\r\n flex-wrap: wrap;\r\n }\r\n}\r\n";
|
|
8
|
-
|
|
9
|
-
const PtcForm = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.formData = {
|
|
13
|
-
email: '',
|
|
14
|
-
firstName: '',
|
|
15
|
-
lastName: '',
|
|
16
|
-
company: '',
|
|
17
|
-
country: '',
|
|
18
|
-
phone: '',
|
|
19
|
-
inquiryReason: '',
|
|
20
|
-
howhearselfreport: '',
|
|
21
|
-
policyChecked: false,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
// private countryEle: HTMLPtcSelectElement;
|
|
25
|
-
// private inquiryreasonEle: HTMLPtcTextfieldElement;
|
|
26
|
-
// private howhearselfreport: HTMLPtcTextfieldElement;
|
|
27
|
-
componentDidLoad() {
|
|
28
|
-
this.formButton = this.el.querySelector('.form-submit');
|
|
29
|
-
this.formButton.addEventListener('click', this.handleSubmit.bind(this));
|
|
30
|
-
//get Email
|
|
31
|
-
this.emailEle = this.el.querySelector('ptc-textfield[field-id="contact-email"]');
|
|
32
|
-
this.firstNameEle = this.el.querySelector('ptc-textfield[field-id="contact-firstname"]');
|
|
33
|
-
this.lastNameEle = this.el.querySelector('ptc-textfield[field-id="contact-lastname"]');
|
|
34
|
-
this.companyEle = this.el.querySelector('ptc-textfield[field-id="company"]');
|
|
35
|
-
this.phoneEle = this.el.querySelector('ptc-textfield[field-id="contact-phone"]');
|
|
36
|
-
// this.countryEle = this.el.querySelector('ptc-select[field-id="contact-country"]')
|
|
37
|
-
// this.inquiryreasonEle = this.el.querySelector('ptc-textfield[field-id="contact-inquiry"]')
|
|
38
|
-
// this.howhearselfreport = this.el.querySelector('ptc-textfield[field-id="self-reporting"]')
|
|
39
|
-
}
|
|
40
|
-
handleInputChange(field, value) {
|
|
41
|
-
this.formData = Object.assign(Object.assign({}, this.formData), { [field]: value });
|
|
42
|
-
}
|
|
43
|
-
handleSubmit(event) {
|
|
44
|
-
event.preventDefault();
|
|
45
|
-
this.formData.email = this.emailEle.inputValue;
|
|
46
|
-
this.formData.firstName = this.firstNameEle.inputValue;
|
|
47
|
-
this.formData.lastName = this.lastNameEle.inputValue;
|
|
48
|
-
this.formData.company = this.companyEle.inputValue;
|
|
49
|
-
this.formData.phone = this.phoneEle.inputValue;
|
|
50
|
-
// this.formData.country = this.countryEle.inputValue;
|
|
51
|
-
// this.formData.inquiryReason= this.inquiryreasonEle.inputValue;
|
|
52
|
-
// this.formData.howhearselfreport = this.howhearselfreport.inputValue;
|
|
53
|
-
// console.log("get form Data: " + this.formData.email)
|
|
54
|
-
if (this.isValid()) {
|
|
55
|
-
const formSubmitEvent = new CustomEvent('formSubmit', {
|
|
56
|
-
detail: this.formData,
|
|
57
|
-
bubbles: true,
|
|
58
|
-
});
|
|
59
|
-
this.el.dispatchEvent(formSubmitEvent);
|
|
60
|
-
console.log('Form Submitted: ' + this.formData);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
console.log('Form validation failed');
|
|
64
|
-
console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
isValid() {
|
|
68
|
-
const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
|
|
69
|
-
const invalidLength = document.querySelectorAll('.invalid-field').length;
|
|
70
|
-
// console.log('invalid fields length: ' + invalidLength), check the select field
|
|
71
|
-
return (email !== '' &&
|
|
72
|
-
phone !== '' &&
|
|
73
|
-
firstName !== '' &&
|
|
74
|
-
lastName !== '' &&
|
|
75
|
-
company !== '' &&
|
|
76
|
-
country !== '' &&
|
|
77
|
-
inquiryReason !== '' &&
|
|
78
|
-
howhearselfreport != '' &&
|
|
79
|
-
policyChecked &&
|
|
80
|
-
invalidLength === 0);
|
|
81
|
-
}
|
|
82
|
-
render() {
|
|
83
|
-
const multiSelectItems = [
|
|
84
|
-
{ text: 'Item 1', selected: false, ptcDataEloquaName: 'item_1', ptcDataTargetEloquaName: 'item_target-1' },
|
|
85
|
-
{ text: 'Item 2', selected: false, ptcDataEloquaName: 'item_2', ptcDataTargetEloquaName: 'item_target-2' },
|
|
86
|
-
{ text: 'Item 3', selected: false, ptcDataEloquaName: 'item_3', ptcDataTargetEloquaName: 'item_target-3' }
|
|
87
|
-
];
|
|
88
|
-
return (index.h(index.Host, null, index.h("div", { class: "ptc-container u-flex u-flex-justify-center" }, index.h("div", { class: "form-wrapper" }, index.h("ptc-title", { "seo-compatibility-mode": true, "text-align": "left", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false", "title-size": "medium" }, index.h("h2", null, "PTC\u2019s PLM application suite combines the power of Windchill, the industry\u2019s #1 PLM software with Thingworx")), index.h("ptc-spacer", { size: "x-small", breakpoint: "small" }), index.h("ptc-spacer", { size: "small", breakpoint: "x-small" }), index.h("ptc-para", { "seo-compatibility-mode": true, "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-style": "main", "para-line-h": "line-height-densest" }, "PTC\u2019s market-leading, purpose-built IIoT platform. The suite offers a mix of Packages, Add-Ons, and Apps to best suit your business needs:"), index.h("ptc-spacer", { size: "x-small", breakpoint: "small" }), index.h("ptc-spacer", { size: "small", breakpoint: "x-small" }), index.h("max-width-container", { "max-width": "277", breakpoint: 480 }, index.h("ptc-title", { type: "h2", "text-align": "", "title-size": "x-small", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-6", "is-plm-hub": "false" }, "Please fill out the form and a PTC sales representative will be in touch."), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" })), index.h("form", { onSubmit: event => this.handleSubmit(event) }, index.h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", "field-name": "firstname" }), index.h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", "field-name": "lastname" }), index.h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", "field-name": "company" }), index.h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "email" }), index.h("ptc-textfield", { "field-id": "company-email", "label-text": "Company Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "companyemail" }), index.h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", "field-name": "country" }, index.h("ul", { class: "mdc-list" }, index.h("li", { class: "mdc-list-item placehoder-li", "data-value": "" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Select a country")), index.h("li", { class: "mdc-list-item", "data-value": "USA" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "USA")), index.h("li", { class: "mdc-list-item", "data-value": "Canada" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Canada")), index.h("li", { class: "mdc-list-item", "data-value": "China" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "China")))), index.h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", "field-name": "phone" }), index.h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", "field-name": "inquiryreason", "field-id": "contact-inquiry" }, index.h("ul", { class: "mdc-list" }, index.h("li", { class: "mdc-list-item", "data-value": "Please select a value" }, index.h("span", { class: "mdc-list-item__ripple" })), index.h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), index.h("li", { class: "mdc-list-item", "data-value": "CAD" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), index.h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), index.h("ptc-multi-select", { items: multiSelectItems, "is-required": 'true' }), index.h("ptc-textfield", { "field-id": "Self-Reporting", "label-text": "How can we help you?*", type: "text", "ptc-data-eloqua-name": "HowHearSelfReport", "ptc-max-length": "100", "field-name": "howhearselfreport" }), index.h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "test" }), index.h("div", { class: "button-wrapper" }, index.h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Submit"), index.h("ptc-button", { class: "form-close", color: "ptc-tertiary", type: "button", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Cancel")))))));
|
|
89
|
-
}
|
|
90
|
-
get el() { return index.getElement(this); }
|
|
91
|
-
};
|
|
92
|
-
PtcForm.style = modalFormExampleCss;
|
|
93
|
-
|
|
94
|
-
exports.modal_form_example = PtcForm;
|
package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.form-wrapper {
|
|
6
|
-
width: 371px;
|
|
7
|
-
display: flex;
|
|
8
|
-
border-radius: 3px;
|
|
9
|
-
background: #FFF;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
align-items: center;
|
|
12
|
-
padding: 0px 32px;
|
|
13
|
-
|
|
14
|
-
@media only screen and (min-width: 360px) and (max-width: 479.55px) {
|
|
15
|
-
max-width: 360px;
|
|
16
|
-
width: 360px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.button-wrapper {
|
|
20
|
-
display: flex;
|
|
21
|
-
justify-content: flex-end;
|
|
22
|
-
gap: 20px;
|
|
23
|
-
margin-top: 48px;
|
|
24
|
-
flex-wrap: wrap;
|
|
25
|
-
}
|
|
26
|
-
}
|