@ptcwebops/ptcw-design 6.2.18 → 6.2.19-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/cjs/blog-detail-content_2.cjs.entry.js +1 -1
  2. package/dist/cjs/blog-detail-layout.cjs.entry.js +1 -1
  3. package/dist/cjs/blogs-search-section.cjs.entry.js +1 -1
  4. package/dist/cjs/{component-06dda623.js → component-6a178a16.js} +2643 -832
  5. package/dist/cjs/event-jumbotron-example.cjs.entry.js +146 -0
  6. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  7. package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
  8. package/dist/cjs/homepage-toggled-content.cjs.entry.js +1 -1
  9. package/dist/cjs/icon-asset.cjs.entry.js +65 -0
  10. package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
  11. package/dist/cjs/list-item.cjs.entry.js +48 -0
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/modal-form-example.cjs.entry.js +94 -0
  14. package/dist/cjs/most-popular-news.cjs.entry.js +1 -1
  15. package/dist/cjs/my-component.cjs.entry.js +1 -1
  16. package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
  17. package/dist/cjs/ptc-background-video.cjs.entry.js +1 -1
  18. package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
  19. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +47 -0
  20. package/dist/cjs/ptc-button.cjs.entry.js +87 -0
  21. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +155 -0
  22. package/dist/cjs/ptc-card-content.cjs.entry.js +76 -0
  23. package/dist/cjs/ptc-card_2.cjs.entry.js +2 -2
  24. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
  25. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +239 -0
  26. package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
  27. package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
  28. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  29. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
  30. package/dist/cjs/ptc-footer.cjs.entry.js +1 -1
  31. package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +787 -5
  32. package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
  33. package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
  34. package/dist/cjs/ptc-icon-card.cjs.entry.js +8 -2
  35. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +3 -50
  36. package/dist/cjs/ptc-img.cjs.entry.js +133 -0
  37. package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
  38. package/dist/cjs/ptc-link.cjs.entry.js +87 -0
  39. package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
  40. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +1 -1
  41. package/dist/cjs/ptc-para.cjs.entry.js +127 -0
  42. package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
  43. package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -2
  44. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
  45. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  46. package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
  47. package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
  48. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
  49. package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
  50. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
  51. package/dist/cjs/ptc-scroll-button.cjs.entry.js +136 -0
  52. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +7 -2
  53. package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
  54. package/dist/cjs/ptc-sticky-title.cjs.entry.js +1 -1
  55. package/dist/cjs/ptc-title.cjs.entry.js +152 -0
  56. package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
  57. package/dist/cjs/ptc-value-led-layout.cjs.entry.js +1 -1
  58. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
  59. package/dist/cjs/ptc-white-paper.cjs.entry.js +1 -1
  60. package/dist/cjs/ptcw-design.cjs.js +1 -1
  61. package/dist/cjs/{utils-87d7b99f.js → utils-ad441b07.js} +9 -0
  62. package/dist/collection/collection-manifest.json +1 -0
  63. package/dist/collection/components/icon-asset/icon-asset.css +0 -6
  64. package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +30 -2
  65. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +20 -5
  66. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +19 -1
  67. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +26 -0
  68. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +99 -0
  69. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +20 -5
  70. package/dist/collection/components/ptc-button/ptc-button.js +4 -1
  71. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +0 -2
  72. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +20 -5
  73. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +20 -5
  74. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +20 -5
  75. package/dist/collection/components/ptc-footer/ptc-footer-v2.css +14 -1
  76. package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +10 -0
  77. package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +25 -1
  78. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +0 -8
  79. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +2 -67
  80. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +20 -5
  81. package/dist/collection/components/ptc-link/ptc-link.css +8 -0
  82. package/dist/collection/components/ptc-link/ptc-link.js +4 -1
  83. package/dist/collection/components/ptc-modal/ptc-modal.css +4 -0
  84. package/dist/collection/components/ptc-modal/ptc-modal.js +19 -2
  85. package/dist/collection/components/ptc-para/ptc-para.css +3 -0
  86. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  87. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +20 -5
  88. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +26 -48
  89. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +1 -1
  90. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
  91. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +27 -1
  92. package/dist/collection/components/ptc-product-card/ptc-product-card.css +20 -5
  93. package/dist/collection/components/ptc-product-category/ptc-product-category.css +20 -5
  94. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +20 -5
  95. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +20 -5
  96. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +20 -5
  97. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +10 -0
  98. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +24 -1
  99. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +1 -1
  100. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +20 -5
  101. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +1 -1
  102. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +20 -5
  103. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +20 -5
  104. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +7 -0
  105. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +45 -0
  106. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +47 -0
  107. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +157 -0
  108. package/dist/collection/utils/utils.js +8 -0
  109. package/dist/custom-elements/index.d.ts +6 -0
  110. package/dist/custom-elements/index.js +180 -89
  111. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  112. package/dist/esm/blog-detail-layout.entry.js +1 -1
  113. package/dist/esm/blogs-search-section.entry.js +1 -1
  114. package/dist/esm/{component-274da230.js → component-80f298b4.js} +2592 -793
  115. package/dist/esm/event-jumbotron-example.entry.js +142 -0
  116. package/dist/esm/featured-list.entry.js +1 -1
  117. package/dist/esm/homepage-jumbotron.entry.js +1 -1
  118. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  119. package/dist/esm/icon-asset.entry.js +61 -0
  120. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  121. package/dist/esm/list-item.entry.js +44 -0
  122. package/dist/esm/loader.js +1 -1
  123. package/dist/esm/modal-form-example.entry.js +90 -0
  124. package/dist/esm/most-popular-news.entry.js +1 -1
  125. package/dist/esm/my-component.entry.js +1 -1
  126. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  127. package/dist/esm/ptc-background-video.entry.js +1 -1
  128. package/dist/esm/ptc-bio-card.entry.js +1 -1
  129. package/dist/esm/ptc-breadcrumb.entry.js +43 -0
  130. package/dist/esm/ptc-button.entry.js +83 -0
  131. package/dist/esm/ptc-card-bottom_2.entry.js +150 -0
  132. package/dist/esm/ptc-card-content.entry.js +72 -0
  133. package/dist/esm/ptc-card_2.entry.js +2 -2
  134. package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
  135. package/dist/esm/ptc-close-icon_2.entry.js +234 -0
  136. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  137. package/dist/esm/ptc-data-lookup.entry.js +1 -2
  138. package/dist/esm/ptc-featured-list.entry.js +1 -1
  139. package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
  140. package/dist/esm/ptc-footer.entry.js +1 -1
  141. package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +784 -4
  142. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  143. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  144. package/dist/esm/ptc-icon-card.entry.js +9 -3
  145. package/dist/esm/ptc-icon-minimize.entry.js +3 -50
  146. package/dist/esm/ptc-img.entry.js +129 -0
  147. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  148. package/dist/esm/ptc-link.entry.js +83 -0
  149. package/dist/esm/ptc-media-card.entry.js +1 -1
  150. package/dist/esm/ptc-nav-submenu.entry.js +1 -1
  151. package/dist/esm/ptc-para.entry.js +123 -0
  152. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  153. package/dist/esm/ptc-previous-url.entry.js +10 -2
  154. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  155. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  156. package/dist/esm/ptc-product-card.entry.js +1 -1
  157. package/dist/esm/ptc-product-category.entry.js +1 -1
  158. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  159. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  160. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  161. package/dist/esm/ptc-scroll-button.entry.js +132 -0
  162. package/dist/esm/ptc-social-icons-footer.entry.js +7 -2
  163. package/dist/esm/ptc-spacer.entry.js +34 -0
  164. package/dist/esm/ptc-sticky-title.entry.js +1 -1
  165. package/dist/esm/ptc-title.entry.js +148 -0
  166. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  167. package/dist/esm/ptc-value-led-layout.entry.js +1 -1
  168. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  169. package/dist/esm/ptc-white-paper.entry.js +1 -1
  170. package/dist/esm/ptcw-design.js +1 -1
  171. package/dist/esm/{utils-b7c6422e.js → utils-63eab4bd.js} +9 -1
  172. package/dist/ptcw-design/media/designer-v6.0.6.svg +30 -2
  173. package/dist/ptcw-design/p-01075feb.entry.js +1 -0
  174. package/dist/ptcw-design/p-0c69ea52.entry.js +1 -0
  175. package/dist/ptcw-design/{p-1cff585f.entry.js → p-0d806031.entry.js} +1 -1
  176. package/dist/ptcw-design/p-1070f8a3.entry.js +1 -0
  177. package/dist/ptcw-design/{p-c1ebaf0f.entry.js → p-16e70f20.entry.js} +1 -1
  178. package/dist/ptcw-design/{p-999d1c9f.entry.js → p-17f6e145.entry.js} +1 -1
  179. package/dist/ptcw-design/p-257deac0.entry.js +1 -0
  180. package/dist/ptcw-design/p-25a25451.entry.js +1 -0
  181. package/dist/ptcw-design/{p-fce2bd81.entry.js → p-2749c178.entry.js} +1 -1
  182. package/dist/ptcw-design/p-28371371.entry.js +1 -0
  183. package/dist/ptcw-design/{p-34b270c1.entry.js → p-28be539b.entry.js} +1 -1
  184. package/dist/ptcw-design/p-291072b4.entry.js +1 -0
  185. package/dist/ptcw-design/p-2ac5ed9c.entry.js +1 -0
  186. package/dist/ptcw-design/p-34c50b3e.entry.js +1 -0
  187. package/dist/ptcw-design/{p-34610052.entry.js → p-48c33817.entry.js} +1 -1
  188. package/dist/ptcw-design/{p-7e7ebf0a.entry.js → p-49e54079.entry.js} +1 -1
  189. package/dist/ptcw-design/{p-eab1042e.entry.js → p-4ee98a3e.entry.js} +1 -1
  190. package/dist/ptcw-design/p-50d68602.entry.js +1 -0
  191. package/dist/ptcw-design/p-5ef23b5c.entry.js +1 -0
  192. package/dist/ptcw-design/{p-103ec637.entry.js → p-627103d8.entry.js} +1 -1
  193. package/dist/ptcw-design/p-672a349f.js +336 -0
  194. package/dist/ptcw-design/p-69686408.entry.js +1 -0
  195. package/dist/ptcw-design/{p-4c096997.entry.js → p-6a3caf2b.entry.js} +1 -1
  196. package/dist/ptcw-design/{p-52b82ac5.entry.js → p-6f5fecae.entry.js} +1 -1
  197. package/dist/ptcw-design/p-7793babb.entry.js +1 -0
  198. package/dist/ptcw-design/p-77b1221e.js +1 -0
  199. package/dist/ptcw-design/{p-d1857ada.entry.js → p-77cad16c.entry.js} +1 -1
  200. package/dist/ptcw-design/p-799afee5.entry.js +1 -0
  201. package/dist/ptcw-design/p-7fe4d383.entry.js +1 -0
  202. package/dist/ptcw-design/{p-29639cd4.entry.js → p-821f0ff9.entry.js} +1 -1
  203. package/dist/ptcw-design/p-90c4f08b.entry.js +1 -0
  204. package/dist/ptcw-design/p-92d22c78.entry.js +1 -0
  205. package/dist/ptcw-design/p-95187918.entry.js +1 -0
  206. package/dist/ptcw-design/{p-2e8f7a08.entry.js → p-9c1057ce.entry.js} +1 -1
  207. package/dist/ptcw-design/p-9e9ae28c.entry.js +1 -0
  208. package/dist/ptcw-design/p-9fa118a7.entry.js +1 -0
  209. package/dist/ptcw-design/p-a8b6714a.entry.js +1 -0
  210. package/dist/ptcw-design/p-b1ebac6f.entry.js +1 -0
  211. package/dist/ptcw-design/p-b651c1cb.entry.js +1 -0
  212. package/dist/ptcw-design/p-b8ee8699.entry.js +1 -0
  213. package/dist/ptcw-design/p-ba8c58a7.entry.js +1 -0
  214. package/dist/ptcw-design/{p-a3a04f4e.entry.js → p-bb902570.entry.js} +1 -1
  215. package/dist/ptcw-design/p-bf18b622.entry.js +1 -0
  216. package/dist/ptcw-design/p-c01ea76f.entry.js +1 -0
  217. package/dist/ptcw-design/{p-cffebefe.entry.js → p-cbee4653.entry.js} +1 -1
  218. package/dist/ptcw-design/p-d0b980c0.entry.js +1 -0
  219. package/dist/ptcw-design/{p-760507e1.entry.js → p-d2825140.entry.js} +1 -1
  220. package/dist/ptcw-design/p-d2e26642.entry.js +1 -0
  221. package/dist/ptcw-design/{p-2335d57c.entry.js → p-d3229458.entry.js} +1 -1
  222. package/dist/ptcw-design/{p-48183365.entry.js → p-d756db27.entry.js} +1 -1
  223. package/dist/ptcw-design/p-de960790.entry.js +1 -0
  224. package/dist/ptcw-design/{p-df8526a2.entry.js → p-e577ad62.entry.js} +1 -1
  225. package/dist/ptcw-design/{p-d3e5b65c.entry.js → p-ea7369e9.entry.js} +1 -1
  226. package/dist/ptcw-design/{p-e38ed0e3.entry.js → p-eec2f3da.entry.js} +1 -1
  227. package/dist/ptcw-design/p-f8512dc9.entry.js +1 -0
  228. package/dist/ptcw-design/p-fb5fd29f.entry.js +1 -0
  229. package/dist/ptcw-design/p-fc0348a7.entry.js +68 -0
  230. package/dist/ptcw-design/p-fd394e84.entry.js +1 -0
  231. package/dist/ptcw-design/p-fec1acdf.entry.js +1 -0
  232. package/dist/ptcw-design/ptcw-design.css +2 -2
  233. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  234. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
  235. package/dist/types/components/ptc-button/ptc-button.d.ts +1 -0
  236. package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +6 -0
  237. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +0 -2
  238. package/dist/types/components/ptc-link/ptc-link.d.ts +1 -0
  239. package/dist/types/components/ptc-modal/ptc-modal.d.ts +2 -1
  240. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  241. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +2 -0
  242. package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +5 -0
  243. package/dist/types/components.d.ts +35 -6
  244. package/dist/types/utils/utils.d.ts +1 -0
  245. package/package.json +1 -1
  246. package/readme.md +5 -1
  247. package/dist/cjs/component-5b5b6a98.js +0 -1819
  248. package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +0 -1371
  249. package/dist/cjs/ptc-card-bottom.cjs.entry.js +0 -67
  250. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -670
  251. package/dist/cjs/validation-messages-33a4f26b.js +0 -126
  252. package/dist/esm/component-341e4eaa.js +0 -1802
  253. package/dist/esm/event-jumbotron-example_15.entry.js +0 -1353
  254. package/dist/esm/ptc-card-bottom.entry.js +0 -63
  255. package/dist/esm/ptc-multi-select_2.entry.js +0 -665
  256. package/dist/esm/validation-messages-adbb6518.js +0 -124
  257. package/dist/ptcw-design/p-00e21489.entry.js +0 -1
  258. package/dist/ptcw-design/p-058ad9cc.entry.js +0 -1
  259. package/dist/ptcw-design/p-1022ad8b.entry.js +0 -1
  260. package/dist/ptcw-design/p-136a91bf.entry.js +0 -1
  261. package/dist/ptcw-design/p-18a5a338.js +0 -1
  262. package/dist/ptcw-design/p-18f59395.entry.js +0 -1
  263. package/dist/ptcw-design/p-1b7087e7.entry.js +0 -1
  264. package/dist/ptcw-design/p-1ca8a5bf.entry.js +0 -1
  265. package/dist/ptcw-design/p-3f71553e.entry.js +0 -1
  266. package/dist/ptcw-design/p-4e2bb0e0.entry.js +0 -1
  267. package/dist/ptcw-design/p-583608d9.entry.js +0 -1
  268. package/dist/ptcw-design/p-72825cf6.entry.js +0 -1
  269. package/dist/ptcw-design/p-841b807d.js +0 -1
  270. package/dist/ptcw-design/p-863b5b20.entry.js +0 -68
  271. package/dist/ptcw-design/p-8daf00ae.entry.js +0 -1
  272. package/dist/ptcw-design/p-94e78735.entry.js +0 -1
  273. package/dist/ptcw-design/p-9fe0c27d.entry.js +0 -1
  274. package/dist/ptcw-design/p-b436f56d.entry.js +0 -1
  275. package/dist/ptcw-design/p-be533f0d.js +0 -134
  276. package/dist/ptcw-design/p-c1513c3f.js +0 -203
  277. package/dist/ptcw-design/p-c89030e4.entry.js +0 -1
  278. package/dist/ptcw-design/p-d734b373.entry.js +0 -1
  279. package/dist/ptcw-design/p-dc488936.entry.js +0 -1
  280. package/dist/ptcw-design/p-dd73c4d1.entry.js +0 -1
  281. package/dist/ptcw-design/p-e7937ac1.entry.js +0 -1
  282. package/dist/ptcw-design/p-e9a7475b.entry.js +0 -1
  283. package/dist/ptcw-design/p-f05fec22.entry.js +0 -1
@@ -0,0 +1,99 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcForm {
3
+ constructor() {
4
+ this.formData = {
5
+ email: '',
6
+ firstName: '',
7
+ lastName: '',
8
+ company: '',
9
+ country: '',
10
+ phone: '',
11
+ inquiryReason: '',
12
+ howhearselfreport: '',
13
+ policyChecked: false,
14
+ };
15
+ }
16
+ // private countryEle: HTMLPtcSelectElement;
17
+ // private inquiryreasonEle: HTMLPtcTextfieldElement;
18
+ // private howhearselfreport: HTMLPtcTextfieldElement;
19
+ componentDidLoad() {
20
+ this.formButton = this.el.querySelector('.form-submit');
21
+ this.formButton.addEventListener('click', this.handleSubmit.bind(this));
22
+ //get Email
23
+ this.emailEle = this.el.querySelector('ptc-textfield[field-id="contact-email"]');
24
+ this.firstNameEle = this.el.querySelector('ptc-textfield[field-id="contact-firstname"]');
25
+ this.lastNameEle = this.el.querySelector('ptc-textfield[field-id="contact-lastname"]');
26
+ this.companyEle = this.el.querySelector('ptc-textfield[field-id="company"]');
27
+ this.phoneEle = this.el.querySelector('ptc-textfield[field-id="contact-phone"]');
28
+ // this.countryEle = this.el.querySelector('ptc-select[field-id="contact-country"]')
29
+ // this.inquiryreasonEle = this.el.querySelector('ptc-textfield[field-id="contact-inquiry"]')
30
+ // this.howhearselfreport = this.el.querySelector('ptc-textfield[field-id="self-reporting"]')
31
+ }
32
+ handleInputChange(field, value) {
33
+ this.formData = Object.assign(Object.assign({}, this.formData), { [field]: value });
34
+ }
35
+ handleSubmit(event) {
36
+ event.preventDefault();
37
+ this.formData.email = this.emailEle.inputValue;
38
+ this.formData.firstName = this.firstNameEle.inputValue;
39
+ this.formData.lastName = this.lastNameEle.inputValue;
40
+ this.formData.company = this.companyEle.inputValue;
41
+ this.formData.phone = this.phoneEle.inputValue;
42
+ // this.formData.country = this.countryEle.inputValue;
43
+ // this.formData.inquiryReason= this.inquiryreasonEle.inputValue;
44
+ // this.formData.howhearselfreport = this.howhearselfreport.inputValue;
45
+ // console.log("get form Data: " + this.formData.email)
46
+ if (this.isValid()) {
47
+ const formSubmitEvent = new CustomEvent('formSubmit', {
48
+ detail: this.formData,
49
+ bubbles: true,
50
+ });
51
+ this.el.dispatchEvent(formSubmitEvent);
52
+ console.log('Form Submitted: ' + this.formData);
53
+ }
54
+ else {
55
+ console.log('Form validation failed');
56
+ console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone);
57
+ }
58
+ }
59
+ isValid() {
60
+ const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
61
+ const invalidLength = document.querySelectorAll('.invalid-field').length;
62
+ // console.log('invalid fields length: ' + invalidLength), check the select field
63
+ return (email !== '' &&
64
+ phone !== '' &&
65
+ firstName !== '' &&
66
+ lastName !== '' &&
67
+ company !== '' &&
68
+ country !== '' &&
69
+ inquiryReason !== '' &&
70
+ howhearselfreport != '' &&
71
+ policyChecked &&
72
+ invalidLength === 0);
73
+ }
74
+ render() {
75
+ const multiSelectItems = [
76
+ { text: 'Item 1', selected: false, ptcDataEloquaName: 'item_1', ptcDataTargetEloquaName: 'item_target-1' },
77
+ { text: 'Item 2', selected: false, ptcDataEloquaName: 'item_2', ptcDataTargetEloquaName: 'item_target-2' },
78
+ { text: 'Item 3', selected: false, ptcDataEloquaName: 'item_3', ptcDataTargetEloquaName: 'item_target-3' }
79
+ ];
80
+ return (h(Host, null, h("div", { class: "ptc-container u-flex u-flex-justify-center" }, h("div", { class: "form-wrapper" }, h("ptc-title", { "seo-compatibility-mode": true, "text-align": "left", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false", "title-size": "medium" }, h("h2", null, "PTC\u2019s PLM application suite combines the power of Windchill, the industry\u2019s #1 PLM software with Thingworx")), h("ptc-spacer", { size: "x-small", breakpoint: "small" }), h("ptc-spacer", { size: "small", breakpoint: "x-small" }), h("ptc-para", { "seo-compatibility-mode": true, "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-style": "main", "para-line-h": "line-height-densest" }, "PTC\u2019s market-leading, purpose-built IIoT platform. The suite offers a mix of Packages, Add-Ons, and Apps to best suit your business needs:"), h("ptc-spacer", { size: "x-small", breakpoint: "small" }), h("ptc-spacer", { size: "small", breakpoint: "x-small" }), h("max-width-container", { "max-width": "277", breakpoint: 480 }, h("ptc-title", { type: "h2", "text-align": "", "title-size": "x-small", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-6", "is-plm-hub": "false" }, "Please fill out the form and a PTC sales representative will be in touch."), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "small", size: "small" })), h("form", { onSubmit: event => this.handleSubmit(event) }, h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", "field-name": "firstname" }), h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", "field-name": "lastname" }), h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", "field-name": "company" }), h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "email" }), h("ptc-textfield", { "field-id": "company-email", "label-text": "Company Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "companyemail" }), h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", "field-name": "country" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item placehoder-li", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Select a country")), h("li", { class: "mdc-list-item", "data-value": "USA" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "USA")), h("li", { class: "mdc-list-item", "data-value": "Canada" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Canada")), h("li", { class: "mdc-list-item", "data-value": "China" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "China")))), h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", "field-name": "phone" }), h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", "field-name": "inquiryreason", "field-id": "contact-inquiry" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "Please select a value" }, h("span", { class: "mdc-list-item__ripple" })), h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), h("li", { class: "mdc-list-item", "data-value": "CAD" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), h("ptc-multi-select", { items: multiSelectItems, "is-required": 'true' }), h("ptc-textfield", { "field-id": "Self-Reporting", "label-text": "How can we help you?*", type: "text", "ptc-data-eloqua-name": "HowHearSelfReport", "ptc-max-length": "100", "field-name": "howhearselfreport" }), h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "test" }), h("div", { class: "button-wrapper" }, h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Submit"), h("ptc-button", { class: "form-close", color: "ptc-tertiary", type: "button", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Cancel")))))));
81
+ }
82
+ static get is() { return "modal-form-example"; }
83
+ static get originalStyleUrls() {
84
+ return {
85
+ "$": ["modal-form-example.css"]
86
+ };
87
+ }
88
+ static get styleUrls() {
89
+ return {
90
+ "$": ["modal-form-example.css"]
91
+ };
92
+ }
93
+ static get states() {
94
+ return {
95
+ "formData": {}
96
+ };
97
+ }
98
+ static get elementRef() { return "el"; }
99
+ }
@@ -82,23 +82,38 @@ a:focus-visible {
82
82
  border-radius: var(--ptc-border-radius-standard);
83
83
  }
84
84
 
85
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-plm-grey a.light-link {
85
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .background-plm-grey a.light-link {
86
86
  color: var(--color-blue-04);
87
+ margin: -2px;
88
+ border: 2px solid transparent;
87
89
  }
88
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-plm-grey a.light-link:visited {
90
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .background-plm-grey a.light-link:visited {
89
91
  color: var(--color-blue-06);
90
92
  }
91
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
93
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
92
94
  transition: none;
93
95
  color: var(--color-blue-07);
94
96
  }
95
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
97
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
96
98
  color: var(--color-blue-05);
97
99
  }
98
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-plm-grey a.light-link.disabled {
100
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .background-plm-grey a.light-link.disabled {
99
101
  color: var(--color-gray-04) !important;
100
102
  cursor: not-allowed;
101
103
  }
104
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .background-plm-grey a.light-link:focus-visible {
105
+ border-radius: var(--ptc-border-radius-standard);
106
+ border: 2px solid white;
107
+ outline: 5px solid var(--keyboard-nav-outline);
108
+ }
109
+ .light-links .podcast-cta-section a, .background-grey-10 .podcast-cta-section a, .background-plm-grey .podcast-cta-section a {
110
+ border: 2px solid transparent;
111
+ }
112
+ .light-links .podcast-cta-section a:focus-visible, .background-grey-10 .podcast-cta-section a:focus-visible, .background-plm-grey .podcast-cta-section a:focus-visible {
113
+ border-radius: var(--ptc-border-radius-standard);
114
+ border: 2px solid white;
115
+ outline: 5px solid var(--keyboard-nav-outline);
116
+ }
102
117
 
103
118
  .ptc-link {
104
119
  color: var(--color-gray-10);
@@ -1,5 +1,5 @@
1
1
  import { h, Host } from '@stencil/core';
2
- import { getSeoTagType } from '../../utils/utils';
2
+ import { getSeoTagType, CheckDarkFocusState } from '../../utils/utils';
3
3
  export class PtcButton {
4
4
  constructor() {
5
5
  this.disabled = false;
@@ -27,6 +27,9 @@ export class PtcButton {
27
27
  clickEventHandler() {
28
28
  this.clickEvent.emit();
29
29
  }
30
+ componentWillLoad() {
31
+ CheckDarkFocusState(this, this.el);
32
+ }
30
33
  seoCompRender() {
31
34
  const classMap = this.getCssClassMap();
32
35
  const Tag = !!this.linkHref ? 'a' : 'button';
@@ -166,7 +166,6 @@ ptc-link, ptc-square-card,
166
166
  }
167
167
  :host(.extra-tall) a:focus-visible {
168
168
  border-radius: var(--ptc-border-radius-standard);
169
- border: 2px solid white;
170
169
  outline: 5px solid var(--keyboard-nav-outline);
171
170
  }
172
171
 
@@ -177,7 +176,6 @@ ptc-link, ptc-square-card,
177
176
  :host(.color-outlined) a:focus-visible {
178
177
  box-shadow: 0 0 0 5px var(--keyboard-nav-outline);
179
178
  border-radius: var(--ptc-border-radius-standard) !important;
180
- border: 2px solid white;
181
179
  display: block;
182
180
  outline: none;
183
181
  }
@@ -781,23 +781,38 @@ a:focus-visible {
781
781
  border-radius: var(--ptc-border-radius-standard);
782
782
  }
783
783
 
784
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-plm-grey a.light-link {
784
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .background-plm-grey a.light-link {
785
785
  color: var(--color-blue-04);
786
+ margin: -2px;
787
+ border: 2px solid transparent;
786
788
  }
787
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-plm-grey a.light-link:visited {
789
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .background-plm-grey a.light-link:visited {
788
790
  color: var(--color-blue-06);
789
791
  }
790
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
792
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
791
793
  transition: none;
792
794
  color: var(--color-blue-07);
793
795
  }
794
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
796
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
795
797
  color: var(--color-blue-05);
796
798
  }
797
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-plm-grey a.light-link.disabled {
799
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .background-plm-grey a.light-link.disabled {
798
800
  color: var(--color-gray-04) !important;
799
801
  cursor: not-allowed;
800
802
  }
803
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .background-plm-grey a.light-link:focus-visible {
804
+ border-radius: var(--ptc-border-radius-standard);
805
+ border: 2px solid white;
806
+ outline: 5px solid var(--keyboard-nav-outline);
807
+ }
808
+ .light-links .podcast-cta-section a, .background-grey-10 .podcast-cta-section a, .background-plm-grey .podcast-cta-section a {
809
+ border: 2px solid transparent;
810
+ }
811
+ .light-links .podcast-cta-section a:focus-visible, .background-grey-10 .podcast-cta-section a:focus-visible, .background-plm-grey .podcast-cta-section a:focus-visible {
812
+ border-radius: var(--ptc-border-radius-standard);
813
+ border: 2px solid white;
814
+ outline: 5px solid var(--keyboard-nav-outline);
815
+ }
801
816
 
802
817
  .ptc-link {
803
818
  color: var(--color-gray-10);
@@ -82,23 +82,38 @@ a:focus-visible {
82
82
  border-radius: var(--ptc-border-radius-standard);
83
83
  }
84
84
 
85
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-plm-grey a.light-link {
85
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .background-plm-grey a.light-link {
86
86
  color: var(--color-blue-04);
87
+ margin: -2px;
88
+ border: 2px solid transparent;
87
89
  }
88
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-plm-grey a.light-link:visited {
90
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .background-plm-grey a.light-link:visited {
89
91
  color: var(--color-blue-06);
90
92
  }
91
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
93
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
92
94
  transition: none;
93
95
  color: var(--color-blue-07);
94
96
  }
95
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
97
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
96
98
  color: var(--color-blue-05);
97
99
  }
98
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-plm-grey a.light-link.disabled {
100
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .background-plm-grey a.light-link.disabled {
99
101
  color: var(--color-gray-04) !important;
100
102
  cursor: not-allowed;
101
103
  }
104
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .background-plm-grey a.light-link:focus-visible {
105
+ border-radius: var(--ptc-border-radius-standard);
106
+ border: 2px solid white;
107
+ outline: 5px solid var(--keyboard-nav-outline);
108
+ }
109
+ .light-links .podcast-cta-section a, .background-grey-10 .podcast-cta-section a, .background-plm-grey .podcast-cta-section a {
110
+ border: 2px solid transparent;
111
+ }
112
+ .light-links .podcast-cta-section a:focus-visible, .background-grey-10 .podcast-cta-section a:focus-visible, .background-plm-grey .podcast-cta-section a:focus-visible {
113
+ border-radius: var(--ptc-border-radius-standard);
114
+ border: 2px solid white;
115
+ outline: 5px solid var(--keyboard-nav-outline);
116
+ }
102
117
 
103
118
  .ptc-link {
104
119
  color: var(--color-gray-10);
@@ -139,23 +139,38 @@ a:focus-visible {
139
139
  border-radius: var(--ptc-border-radius-standard);
140
140
  }
141
141
 
142
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a), .background-plm-grey a.light-link {
142
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a), .background-plm-grey a.light-link {
143
143
  color: var(--color-blue-04);
144
+ margin: -2px;
145
+ border: 2px solid transparent;
144
146
  }
145
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited, .background-plm-grey a.light-link:visited {
147
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited, .background-plm-grey a.light-link:visited {
146
148
  color: var(--color-blue-06);
147
149
  }
148
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
150
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
149
151
  transition: none;
150
152
  color: var(--color-blue-07);
151
153
  }
152
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
154
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
153
155
  color: var(--color-blue-05);
154
156
  }
155
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a).disabled, .background-plm-grey a.light-link.disabled {
157
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a).disabled, .background-plm-grey a.light-link.disabled {
156
158
  color: var(--color-gray-04) !important;
157
159
  cursor: not-allowed;
158
160
  }
161
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a):focus-visible, .background-plm-grey a.light-link:focus-visible {
162
+ border-radius: var(--ptc-border-radius-standard);
163
+ border: 2px solid white;
164
+ outline: 5px solid var(--keyboard-nav-outline);
165
+ }
166
+ .light-links .podcast-cta-section a, .background-grey-10 .podcast-cta-section a, .background-plm-grey .podcast-cta-section a {
167
+ border: 2px solid transparent;
168
+ }
169
+ .light-links .podcast-cta-section a:focus-visible, .background-grey-10 .podcast-cta-section a:focus-visible, .background-plm-grey .podcast-cta-section a:focus-visible {
170
+ border-radius: var(--ptc-border-radius-standard);
171
+ border: 2px solid white;
172
+ outline: 5px solid var(--keyboard-nav-outline);
173
+ }
159
174
 
160
175
  .ptc-link {
161
176
  color: var(--color-gray-10);
@@ -67,11 +67,12 @@ ptc-footer ul {
67
67
  list-style: none;
68
68
  }
69
69
  ptc-footer ul li a {
70
+ margin: -2px;
71
+ border: 2px solid transparent;
70
72
  text-decoration: underline;
71
73
  text-underline-offset: 6px;
72
74
  text-decoration-thickness: 1px;
73
75
  text-decoration-color: transparent;
74
- border-bottom: none;
75
76
  transition: text-decoration var(--ptc-transition-medium) var(--ptc-ease-inout);
76
77
  color: var(--color-white) !important;
77
78
  }
@@ -87,6 +88,11 @@ ptc-footer ul li a:active {
87
88
  transition: none;
88
89
  text-decoration-color: var(--color-gray-04);
89
90
  }
91
+ ptc-footer ul li a:focus-visible {
92
+ border-radius: var(--ptc-border-radius-standard);
93
+ border: 2px solid white;
94
+ outline: 5px solid var(--keyboard-nav-outline);
95
+ }
90
96
  ptc-footer .gap-20 {
91
97
  grid-column-gap: 20px;
92
98
  grid-row-gap: 20px;
@@ -237,11 +243,18 @@ ptc-footer .footer-bottom ul li, ptc-footer .footer-bottom ol li {
237
243
  font-size: var(--ptc-font-size-xx-small);
238
244
  }
239
245
  ptc-footer .footer-bottom .logo {
246
+ margin: -2px;
240
247
  margin-bottom: var(--ptc-element-spacing-06);
241
248
  }
242
249
  ptc-footer .footer-bottom .logo a {
250
+ border: 2px solid transparent;
243
251
  display: inline-block;
244
252
  }
253
+ ptc-footer .footer-bottom .logo a:focus-visible {
254
+ border-radius: var(--ptc-border-radius-standard);
255
+ border: 2px solid white;
256
+ outline: 5px solid var(--keyboard-nav-outline);
257
+ }
245
258
  ptc-footer .footer-bottom .logo .footer-ptc-logo {
246
259
  width: 78px;
247
260
  height: 28px;
@@ -71,6 +71,7 @@ ptc-link, ptc-square-card,
71
71
  padding: 20px;
72
72
  background-color: var(--color-gray-10);
73
73
  border-radius: var(--ptc-border-radius-standard);
74
+ border: 2px solid transparent;
74
75
  align-items: center;
75
76
  text-decoration: none;
76
77
  text-align: center;
@@ -109,6 +110,15 @@ ptc-link, ptc-square-card,
109
110
  :host a span {
110
111
  display: block;
111
112
  }
113
+ :host a:focus-visible {
114
+ border-radius: var(--ptc-border-radius-standard);
115
+ outline: 5px solid var(--keyboard-nav-outline);
116
+ }
117
+ :host .dark-bg a:focus-visible {
118
+ border-radius: var(--ptc-border-radius-standard);
119
+ border: 2px solid white;
120
+ outline: 5px solid var(--keyboard-nav-outline);
121
+ }
112
122
  :host .card-icon {
113
123
  width: 2rem;
114
124
  height: 2rem;
@@ -1,12 +1,17 @@
1
1
  import { Host, h } from '@stencil/core';
2
+ import { CheckDarkFocusState } from '../../utils/utils';
2
3
  export class PtcIconCard {
3
4
  constructor() {
4
5
  this.cardHref = undefined;
5
6
  this.target = undefined;
6
7
  this.trackerId = undefined;
8
+ this.darkFocusState = false;
9
+ }
10
+ componentWillLoad() {
11
+ CheckDarkFocusState(this, this.el, '.light-links,ptc-footer');
7
12
  }
8
13
  render() {
9
- return (h(Host, null, h("div", { id: this.trackerId, class: "tracker-div mf-listen" }, h("a", { href: this.cardHref, target: this.target }, h("div", null, h("span", { class: 'card-icon' }, h("slot", null)), h("div", { class: 'card-title' }, h("slot", { name: 'card-title' })))))));
14
+ return (h(Host, null, h("div", { id: this.trackerId, class: this.darkFocusState ? `tracker-div mf-listen dark-bg` : `tracker-div mf-listenstandard-bg` }, h("a", { href: this.cardHref, target: this.target }, h("div", null, h("span", { class: 'card-icon' }, h("slot", null)), h("div", { class: 'card-title' }, h("slot", { name: 'card-title' })))))));
10
15
  }
11
16
  static get is() { return "ptc-icon-card"; }
12
17
  static get encapsulation() { return "shadow"; }
@@ -72,7 +77,26 @@ export class PtcIconCard {
72
77
  },
73
78
  "attribute": "tracker-id",
74
79
  "reflect": false
80
+ },
81
+ "darkFocusState": {
82
+ "type": "boolean",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "boolean",
86
+ "resolved": "boolean",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Add dark-focus-state property where button is present on dark backgrounds"
94
+ },
95
+ "attribute": "dark-focus-state",
96
+ "reflect": false,
97
+ "defaultValue": "false"
75
98
  }
76
99
  };
77
100
  }
101
+ static get elementRef() { return "el"; }
78
102
  }
@@ -125,12 +125,4 @@ ptc-link, ptc-square-card,
125
125
  }
126
126
  .ptc-icon-minimize .header .icon:active icon-asset {
127
127
  outline: none !important;
128
- }
129
- .ptc-icon-minimize .checkbox-icon .icon:focus-visible {
130
- border-radius: var(--ptc-border-radius-standard);
131
- outline: 5px solid var(--keyboard-nav-outline);
132
- margin-right: 5px;
133
- }
134
- .ptc-icon-minimize .checkbox-icon .icon:focus-visible icon-asset {
135
- outline: none !important;
136
128
  }
@@ -12,7 +12,6 @@ export class PtcIconMinimize {
12
12
  this.listType = "default";
13
13
  this.dataRefineValue = undefined;
14
14
  this.trackerId = undefined;
15
- this.tabIndexValue = 0;
16
15
  }
17
16
  componentWillLoad() {
18
17
  this.timeStamp = Date.now().toString();
@@ -22,20 +21,11 @@ export class PtcIconMinimize {
22
21
  if (this.opened && !content.style.maxHeight) {
23
22
  content.style.maxHeight = content.scrollHeight + "px";
24
23
  }
25
- if (!this.opened) {
26
- this.setTabIndex();
27
- }
28
24
  }
29
25
  dropdownToggle() {
30
26
  this.opened = !this.opened;
31
- this.setTabIndex();
32
- }
33
- setTabIndex() {
34
27
  var checkList = this.host.querySelector(".fitler-check-list");
35
28
  var checkListModal = this.host.querySelector(".fitler-check-list-modal");
36
- if (checkList == null) {
37
- checkList = this.host.querySelector(".filter-checkbox-list");
38
- }
39
29
  if (checkList) {
40
30
  var checkBoxesList = checkList.querySelectorAll("ptc-checkbox");
41
31
  if (checkBoxesList) {
@@ -45,26 +35,6 @@ export class PtcIconMinimize {
45
35
  }
46
36
  });
47
37
  }
48
- var checkBoxesIconList = checkList.querySelectorAll("ptc-icon-minimize");
49
- if (checkBoxesIconList) {
50
- checkBoxesIconList.forEach(item => {
51
- if (item.shadowRoot.querySelector(".icon")) {
52
- this.opened ? item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "0") :
53
- item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "-1");
54
- var childrenCheckBoxesList = item.querySelectorAll("ptc-checkbox");
55
- if (childrenCheckBoxesList) {
56
- childrenCheckBoxesList.forEach(childitem => {
57
- if (childitem.shadowRoot.querySelector("label")) {
58
- childitem.shadowRoot.querySelector("label").tabIndex = item.opened ? 0 : -1;
59
- }
60
- });
61
- }
62
- }
63
- });
64
- }
65
- }
66
- if (checkListModal == null) {
67
- checkListModal = this.host.querySelector(".filter-check-list-modal");
68
38
  }
69
39
  if (checkListModal) {
70
40
  var checkBoxesListModal = checkListModal.querySelectorAll("ptc-checkbox");
@@ -75,23 +45,6 @@ export class PtcIconMinimize {
75
45
  }
76
46
  });
77
47
  }
78
- var checkBoxesModelIconList = checkListModal.querySelectorAll("ptc-icon-minimize");
79
- if (checkBoxesModelIconList) {
80
- checkBoxesModelIconList.forEach(item => {
81
- if (item.shadowRoot.querySelector(".icon")) {
82
- this.opened ? item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "0") :
83
- item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "-1");
84
- var childrenCheckBoxesList = item.querySelectorAll("ptc-checkbox");
85
- if (childrenCheckBoxesList) {
86
- childrenCheckBoxesList.forEach(childitem => {
87
- if (childitem.shadowRoot.querySelector("label")) {
88
- childitem.shadowRoot.querySelector("label").tabIndex = item.opened ? 0 : -1;
89
- }
90
- });
91
- }
92
- }
93
- });
94
- }
95
48
  }
96
49
  }
97
50
  getScrollHeight() {
@@ -138,9 +91,9 @@ export class PtcIconMinimize {
138
91
  let scrollHeight = this.getScrollHeight();
139
92
  let icon = this.opened ? 'minus' : 'plus';
140
93
  return (h("div", { class: 'ptc-icon-minimize' }, this.listType == "default" ?
141
- h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: this.tabIndexValue }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
94
+ h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: 0 }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
142
95
  : this.listType == "checkbox" ?
143
- h("div", { class: "header checkbox-icon" }, h("div", { class: "title" }, h("ptc-checkbox", { checked: "unchecked", "data-refine": this.dataRefineValue, "input-name": "", value: this.heading, tabIndex: this.tabIndexValue }, this.heading)), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: this.tabIndexValue }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
96
+ h("div", { class: "header" }, h("div", { class: "title" }, h("ptc-checkbox", { checked: "unchecked", "data-refine": this.dataRefineValue, "input-name": "", value: this.heading }, this.heading)), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: 0 }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
144
97
  : null, h("div", { class: "content", style: scrollHeight }, h("slot", null))));
145
98
  }
146
99
  static get is() { return "ptc-icon-minimize"; }
@@ -243,24 +196,6 @@ export class PtcIconMinimize {
243
196
  },
244
197
  "attribute": "tracker-id",
245
198
  "reflect": false
246
- },
247
- "tabIndexValue": {
248
- "type": "number",
249
- "mutable": false,
250
- "complexType": {
251
- "original": "number",
252
- "resolved": "number",
253
- "references": {}
254
- },
255
- "required": false,
256
- "optional": false,
257
- "docs": {
258
- "tags": [],
259
- "text": ""
260
- },
261
- "attribute": "tab-index-value",
262
- "reflect": false,
263
- "defaultValue": "0"
264
199
  }
265
200
  };
266
201
  }