@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.
Files changed (274) hide show
  1. package/dist/cjs/component-1b8ad4d2.js +1819 -0
  2. package/dist/cjs/{component-4dd13907.js → component-35540bfb.js} +1494 -3305
  3. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  4. package/dist/cjs/global-92142fb4.js +28 -0
  5. package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
  6. package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +1 -1
  7. package/dist/cjs/list-item.cjs.entry.js +1 -1
  8. package/dist/cjs/loader.cjs.js +2 -1
  9. package/dist/cjs/ptc-back-to-top.cjs.entry.js +16 -1
  10. package/dist/cjs/ptc-bio-card.cjs.entry.js +20 -5
  11. package/dist/cjs/ptc-card_2.cjs.entry.js +10 -5
  12. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +2 -6
  13. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +32 -17
  14. package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
  15. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
  16. package/dist/cjs/ptc-enhanced-product-listing-card.cjs.entry.js +1 -1
  17. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  18. package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +40 -9
  19. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +18 -3
  20. package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +5 -787
  21. package/dist/cjs/ptc-icon-list.cjs.entry.js +1 -1
  22. package/dist/cjs/ptc-info-tile.cjs.entry.js +2 -1
  23. package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
  24. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +670 -0
  25. package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +28 -3
  26. package/dist/cjs/ptc-para.cjs.entry.js +1 -1
  27. package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
  28. package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -10
  29. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +9 -11
  30. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  31. package/dist/cjs/ptc-product-card.cjs.entry.js +2 -2
  32. package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
  33. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +2 -2
  34. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
  35. package/dist/cjs/ptc-product-list.cjs.entry.js +11 -1
  36. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +38 -6
  37. package/dist/cjs/ptc-quote.cjs.entry.js +1 -1
  38. package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
  39. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
  40. package/dist/cjs/ptc-related-card-rail.cjs.entry.js +90 -32
  41. package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +42 -8
  42. package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
  43. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
  44. package/dist/cjs/ptc-white-paper.cjs.entry.js +6 -10
  45. package/dist/cjs/ptcw-design.cjs.js +2 -1
  46. package/dist/cjs/tab-header.cjs.entry.js +1 -1
  47. package/dist/cjs/validation-messages-33a4f26b.js +126 -0
  48. package/dist/collection/collection-manifest.json +2 -2
  49. package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +2 -30
  50. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
  51. package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +1 -0
  52. package/dist/collection/components/list-item/list-item.css +4 -0
  53. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
  54. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.css +4 -0
  55. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +15 -0
  56. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +10 -6
  57. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +19 -4
  58. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
  59. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +1 -5
  60. package/dist/collection/components/ptc-container/ptc-container.js +2 -2
  61. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +1 -1
  62. package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.css +16 -0
  63. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
  64. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +12 -0
  65. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +29 -3
  66. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +34 -13
  67. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +17 -2
  68. package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +3 -0
  69. package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +20 -1
  70. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -6
  71. package/dist/collection/components/ptc-modal/ptc-modal.css +0 -4
  72. package/dist/collection/components/ptc-modal/ptc-modal.js +50 -18
  73. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +7 -0
  74. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +78 -2
  75. package/dist/collection/components/ptc-para/ptc-para.css +0 -3
  76. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  77. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
  78. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +419 -0
  79. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +9 -4
  80. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
  81. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -27
  82. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +9 -11
  83. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
  84. package/dist/collection/components/ptc-product-card/ptc-product-card.css +10 -6
  85. package/dist/collection/components/ptc-product-card/ptc-product-card.js +1 -1
  86. package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
  87. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.css +8 -0
  88. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +1 -1
  89. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -6
  90. package/dist/collection/components/ptc-product-list/ptc-product-list.js +11 -1
  91. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +12 -0
  92. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +37 -5
  93. package/dist/collection/components/ptc-quote/ptc-quote.js +1 -1
  94. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -6
  95. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -6
  96. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.css +1 -2
  97. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +113 -33
  98. package/dist/collection/components/ptc-textfield/ptc-textfield.js +19 -19
  99. package/dist/collection/components/ptc-theater-video/ptc-theater-video.css +6 -0
  100. package/dist/collection/components/ptc-theater-video/ptc-theater-video.js +1 -1
  101. package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.css +15 -0
  102. package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +67 -9
  103. package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +8 -3
  104. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -6
  105. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -6
  106. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -6
  107. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +5 -9
  108. package/dist/collection/components/tab-header/tab-header.js +1 -1
  109. package/dist/collection/global/global.js +3 -0
  110. package/dist/collection/stories/Card.stories.js +3 -148
  111. package/dist/collection/stories/Jumbotron.stories.js +727 -0
  112. package/dist/collection/stories/Link.stories.js +25 -13
  113. package/dist/collection/stories/Paragraph.stories.js +18 -10
  114. package/dist/collection/stories/Select.stories.js +5 -8
  115. package/dist/collection/stories/Textfield.stories.js +71 -28
  116. package/dist/collection/stories/Title.stories.js +28 -16
  117. package/dist/collection/utils/fef-logger.js +23 -0
  118. package/dist/custom-elements/index.d.ts +0 -6
  119. package/dist/custom-elements/index.js +424 -251
  120. package/dist/esm/{component-9c921cc6.js → component-8c53e377.js} +1482 -3281
  121. package/dist/esm/component-9beac35b.js +1802 -0
  122. package/dist/esm/featured-list.entry.js +1 -1
  123. package/dist/esm/global-c58db4a9.js +26 -0
  124. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  125. package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
  126. package/dist/esm/list-item.entry.js +1 -1
  127. package/dist/esm/loader.js +2 -1
  128. package/dist/esm/ptc-back-to-top.entry.js +16 -1
  129. package/dist/esm/ptc-bio-card.entry.js +20 -5
  130. package/dist/esm/ptc-card_2.entry.js +10 -5
  131. package/dist/esm/ptc-case-studies-slider.entry.js +2 -6
  132. package/dist/esm/ptc-close-icon_2.entry.js +32 -17
  133. package/dist/esm/ptc-data-lookup.entry.js +2 -1
  134. package/dist/esm/ptc-dynamic-card.entry.js +1 -1
  135. package/dist/esm/ptc-enhanced-product-listing-card.entry.js +1 -1
  136. package/dist/esm/ptc-featured-list.entry.js +1 -1
  137. package/dist/esm/ptc-filter-dropdown_4.entry.js +40 -9
  138. package/dist/esm/ptc-filter-level-theater.entry.js +18 -3
  139. package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +4 -784
  140. package/dist/esm/ptc-icon-list.entry.js +1 -1
  141. package/dist/esm/ptc-info-tile.entry.js +2 -1
  142. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  143. package/dist/esm/ptc-multi-select_2.entry.js +665 -0
  144. package/dist/esm/ptc-nav-skip-to-content.entry.js +28 -3
  145. package/dist/esm/ptc-para.entry.js +1 -1
  146. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  147. package/dist/esm/ptc-previous-url.entry.js +2 -10
  148. package/dist/esm/ptc-pricing-packaging-table.entry.js +9 -11
  149. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  150. package/dist/esm/ptc-product-card.entry.js +2 -2
  151. package/dist/esm/ptc-product-category.entry.js +1 -1
  152. package/dist/esm/ptc-product-dropdown.entry.js +2 -2
  153. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  154. package/dist/esm/ptc-product-list.entry.js +11 -1
  155. package/dist/esm/ptc-product-sidebar.entry.js +38 -6
  156. package/dist/esm/ptc-quote.entry.js +1 -1
  157. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  158. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  159. package/dist/esm/ptc-related-card-rail.entry.js +90 -32
  160. package/dist/esm/ptc-theater-video-modal.entry.js +43 -9
  161. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  162. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  163. package/dist/esm/ptc-white-paper.entry.js +6 -10
  164. package/dist/esm/ptcw-design.js +2 -1
  165. package/dist/esm/tab-header.entry.js +1 -1
  166. package/dist/esm/validation-messages-adbb6518.js +124 -0
  167. package/dist/ptcw-design/media/designer-v6.0.6.svg +2 -30
  168. package/dist/ptcw-design/p-00e21489.entry.js +1 -0
  169. package/dist/ptcw-design/p-02822616.entry.js +1 -0
  170. package/dist/ptcw-design/p-05c29cc2.entry.js +1 -0
  171. package/dist/ptcw-design/{p-f867ebe6.entry.js → p-0ddf2a09.entry.js} +1 -1
  172. package/dist/ptcw-design/p-13e338a5.entry.js +1 -0
  173. package/dist/ptcw-design/p-1454ba84.entry.js +1 -0
  174. package/dist/ptcw-design/p-18851303.entry.js +1 -0
  175. package/dist/ptcw-design/p-18a5a338.js +1 -0
  176. package/dist/ptcw-design/{p-d73cc053.entry.js → p-18ac526f.entry.js} +1 -1
  177. package/dist/ptcw-design/p-1feb2812.entry.js +1 -0
  178. package/dist/ptcw-design/{p-2cc7e2a8.entry.js → p-24776ca2.entry.js} +1 -1
  179. package/dist/ptcw-design/p-352e87c0.entry.js +1 -0
  180. package/dist/ptcw-design/p-38e5e590.entry.js +1 -0
  181. package/dist/ptcw-design/p-4737a0f6.entry.js +1 -0
  182. package/dist/ptcw-design/p-4ca956c1.entry.js +1 -0
  183. package/dist/ptcw-design/p-593b8eff.entry.js +1 -0
  184. package/dist/ptcw-design/p-66ecd7b9.entry.js +1 -0
  185. package/dist/ptcw-design/{p-48c5eab8.entry.js → p-68ed2afe.entry.js} +1 -1
  186. package/dist/ptcw-design/p-73a853fc.entry.js +1 -0
  187. package/dist/ptcw-design/{p-0529caaa.entry.js → p-752bba1c.entry.js} +1 -1
  188. package/dist/ptcw-design/p-75431fa1.entry.js +1 -0
  189. package/dist/ptcw-design/{p-b570e9a5.entry.js → p-757954b2.entry.js} +1 -1
  190. package/dist/ptcw-design/p-98426799.js +203 -0
  191. package/dist/ptcw-design/p-98844b50.js +134 -0
  192. package/dist/ptcw-design/p-a2c7df64.entry.js +1 -0
  193. package/dist/ptcw-design/p-a36f147a.js +1 -0
  194. package/dist/ptcw-design/p-a58698ca.entry.js +1 -0
  195. package/dist/ptcw-design/{p-0b515839.entry.js → p-a791c53a.entry.js} +1 -1
  196. package/dist/ptcw-design/p-acdd9a1d.entry.js +1 -0
  197. package/dist/ptcw-design/p-ad821a01.entry.js +1 -0
  198. package/dist/ptcw-design/p-b6255525.entry.js +1 -0
  199. package/dist/ptcw-design/p-b7fa9f2c.entry.js +1 -0
  200. package/dist/ptcw-design/p-b963ec8c.entry.js +68 -0
  201. package/dist/ptcw-design/p-bb9a879f.entry.js +1 -0
  202. package/dist/ptcw-design/p-bf84ecc0.entry.js +1 -0
  203. package/dist/ptcw-design/p-c82eaf9d.entry.js +1 -0
  204. package/dist/ptcw-design/p-cad4b517.entry.js +1 -0
  205. package/dist/ptcw-design/{p-3dd0ded9.entry.js → p-d089dc37.entry.js} +1 -1
  206. package/dist/ptcw-design/p-d6845e91.entry.js +1 -0
  207. package/dist/ptcw-design/p-db1dcce0.entry.js +1 -0
  208. package/dist/ptcw-design/p-ddb898c7.entry.js +1 -0
  209. package/dist/ptcw-design/{p-7793babb.entry.js → p-e3b1af2b.entry.js} +1 -1
  210. package/dist/ptcw-design/p-e6619d63.entry.js +1 -0
  211. package/dist/ptcw-design/p-f9256e3d.entry.js +1 -0
  212. package/dist/ptcw-design/p-fbd9c8fc.entry.js +1 -0
  213. package/dist/ptcw-design/ptcw-design.css +2 -2
  214. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  215. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +1 -1
  216. package/dist/types/components/ptc-container/ptc-container.d.ts +1 -1
  217. package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +2 -1
  218. package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +1 -0
  219. package/dist/types/components/ptc-modal/ptc-modal.d.ts +2 -2
  220. package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +6 -0
  221. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  222. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
  223. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +1 -1
  224. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +6 -3
  225. package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +12 -5
  226. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +54 -0
  227. package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +6 -1
  228. package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +1 -1
  229. package/dist/types/components.d.ts +132 -22
  230. package/dist/types/global/global.d.ts +4 -0
  231. package/dist/types/utils/fef-logger.d.ts +10 -0
  232. package/package.json +6 -2
  233. package/readme.md +1 -5
  234. package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
  235. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
  236. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -99
  237. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
  238. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
  239. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
  240. package/dist/esm/modal-form-example.entry.js +0 -90
  241. package/dist/ptcw-design/p-072a76d3.entry.js +0 -1
  242. package/dist/ptcw-design/p-0d223232.entry.js +0 -1
  243. package/dist/ptcw-design/p-0de4cd11.entry.js +0 -1
  244. package/dist/ptcw-design/p-21aa746d.entry.js +0 -1
  245. package/dist/ptcw-design/p-282b7d4e.entry.js +0 -1
  246. package/dist/ptcw-design/p-32f64f48.entry.js +0 -1
  247. package/dist/ptcw-design/p-3dac861d.entry.js +0 -1
  248. package/dist/ptcw-design/p-3ee2a531.entry.js +0 -1
  249. package/dist/ptcw-design/p-445329ed.entry.js +0 -1
  250. package/dist/ptcw-design/p-4b192f5e.entry.js +0 -1
  251. package/dist/ptcw-design/p-4f93c631.entry.js +0 -1
  252. package/dist/ptcw-design/p-5311c6e1.entry.js +0 -1
  253. package/dist/ptcw-design/p-58e91cb8.entry.js +0 -1
  254. package/dist/ptcw-design/p-5db7f70b.entry.js +0 -1
  255. package/dist/ptcw-design/p-67c248ec.entry.js +0 -1
  256. package/dist/ptcw-design/p-71fbb799.entry.js +0 -1
  257. package/dist/ptcw-design/p-75390f63.entry.js +0 -1
  258. package/dist/ptcw-design/p-799afee5.entry.js +0 -1
  259. package/dist/ptcw-design/p-7bdf1e64.entry.js +0 -1
  260. package/dist/ptcw-design/p-8038bf31.entry.js +0 -1
  261. package/dist/ptcw-design/p-9501995f.entry.js +0 -1
  262. package/dist/ptcw-design/p-97b9f41b.entry.js +0 -1
  263. package/dist/ptcw-design/p-99ee8a0e.entry.js +0 -1
  264. package/dist/ptcw-design/p-9d612f1f.entry.js +0 -1
  265. package/dist/ptcw-design/p-a89b986a.entry.js +0 -68
  266. package/dist/ptcw-design/p-b50f71dd.entry.js +0 -1
  267. package/dist/ptcw-design/p-baff4d44.entry.js +0 -1
  268. package/dist/ptcw-design/p-bcab66bf.js +0 -336
  269. package/dist/ptcw-design/p-c788f16f.entry.js +0 -1
  270. package/dist/ptcw-design/p-de960790.entry.js +0 -1
  271. package/dist/ptcw-design/p-e6a272d9.entry.js +0 -1
  272. package/dist/ptcw-design/p-f1734520.entry.js +0 -1
  273. package/dist/ptcw-design/p-fe40421e.entry.js +0 -1
  274. 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' | 'xxx-large' | 'xxx-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' | 'fit-content' | 'max' | 'sm-modal';
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' | 'primary-green' | 'white' | 'gray-darker';
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' | 'xxx-large' | 'xxx-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' | 'fit-content' | 'max' | 'sm-modal';
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' | 'primary-green' | 'white' | 'gray-darker';
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,4 @@
1
+ declare global {
2
+ var ptcLogger: any;
3
+ }
4
+ export {};
@@ -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-beta",
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
  ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)
2
2
 
3
- # PTC Design 6.3.22-beta
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;
@@ -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
- }