@ptcwebops/ptcw-design 6.2.6-beta → 6.2.6

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 (261) 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-4dd13907.js → component-06dda623.js} +1494 -3305
  5. package/dist/cjs/component-5b5b6a98.js +1819 -0
  6. package/dist/cjs/event-jumbotron-example_16.cjs.entry.js +1315 -0
  7. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  8. package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
  9. package/dist/cjs/homepage-toggled-content.cjs.entry.js +1 -1
  10. package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/most-popular-news.cjs.entry.js +1 -1
  13. package/dist/cjs/my-component.cjs.entry.js +1 -1
  14. package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
  15. package/dist/cjs/ptc-background-video.cjs.entry.js +1 -1
  16. package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
  17. package/dist/cjs/ptc-card-bottom.cjs.entry.js +46 -0
  18. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
  19. package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
  20. package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
  21. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  22. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
  23. package/dist/cjs/ptc-footer.cjs.entry.js +1 -1
  24. package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +5 -787
  25. package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
  26. package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
  27. package/dist/cjs/ptc-icon-card.cjs.entry.js +2 -8
  28. package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
  29. package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
  30. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +670 -0
  31. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +1 -1
  32. package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
  33. package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -10
  34. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
  35. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  36. package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
  37. package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
  38. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
  39. package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
  40. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
  41. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +2 -7
  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 +1 -1
  45. package/dist/cjs/ptcw-design.cjs.js +1 -1
  46. package/dist/cjs/{utils-ad441b07.js → utils-87d7b99f.js} +0 -9
  47. package/dist/cjs/validation-messages-33a4f26b.js +126 -0
  48. package/dist/collection/collection-manifest.json +0 -1
  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 +5 -20
  51. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +1 -19
  52. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +5 -20
  53. package/dist/collection/components/ptc-button/ptc-button.js +1 -4
  54. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +5 -20
  55. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +5 -20
  56. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +5 -20
  57. package/dist/collection/components/ptc-footer/ptc-footer-v2.css +1 -14
  58. package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +0 -10
  59. package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +1 -25
  60. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +5 -20
  61. package/dist/collection/components/ptc-link/ptc-link.css +0 -8
  62. package/dist/collection/components/ptc-link/ptc-link.js +1 -4
  63. package/dist/collection/components/ptc-modal/ptc-modal.css +0 -4
  64. package/dist/collection/components/ptc-modal/ptc-modal.js +2 -2
  65. package/dist/collection/components/ptc-para/ptc-para.css +0 -3
  66. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  67. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +5 -20
  68. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
  69. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -27
  70. package/dist/collection/components/ptc-product-card/ptc-product-card.css +5 -20
  71. package/dist/collection/components/ptc-product-category/ptc-product-category.css +5 -20
  72. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +5 -20
  73. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +5 -20
  74. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +5 -20
  75. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +0 -10
  76. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +1 -24
  77. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +5 -20
  78. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +5 -20
  79. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +5 -20
  80. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +0 -7
  81. package/dist/collection/utils/utils.js +0 -8
  82. package/dist/custom-elements/index.d.ts +0 -6
  83. package/dist/custom-elements/index.js +31 -152
  84. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  85. package/dist/esm/blog-detail-layout.entry.js +1 -1
  86. package/dist/esm/blogs-search-section.entry.js +1 -1
  87. package/dist/esm/{component-9c921cc6.js → component-274da230.js} +1482 -3281
  88. package/dist/esm/component-341e4eaa.js +1802 -0
  89. package/dist/esm/event-jumbotron-example_16.entry.js +1296 -0
  90. package/dist/esm/featured-list.entry.js +1 -1
  91. package/dist/esm/homepage-jumbotron.entry.js +1 -1
  92. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  93. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  94. package/dist/esm/loader.js +1 -1
  95. package/dist/esm/most-popular-news.entry.js +1 -1
  96. package/dist/esm/my-component.entry.js +1 -1
  97. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  98. package/dist/esm/ptc-background-video.entry.js +1 -1
  99. package/dist/esm/ptc-bio-card.entry.js +1 -1
  100. package/dist/esm/ptc-card-bottom.entry.js +42 -0
  101. package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
  102. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  103. package/dist/esm/ptc-data-lookup.entry.js +2 -1
  104. package/dist/esm/ptc-featured-list.entry.js +1 -1
  105. package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
  106. package/dist/esm/ptc-footer.entry.js +1 -1
  107. package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +4 -784
  108. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  109. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  110. package/dist/esm/ptc-icon-card.entry.js +3 -9
  111. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  112. package/dist/esm/ptc-media-card.entry.js +1 -1
  113. package/dist/esm/ptc-multi-select_2.entry.js +665 -0
  114. package/dist/esm/ptc-nav-submenu.entry.js +1 -1
  115. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  116. package/dist/esm/ptc-previous-url.entry.js +2 -10
  117. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  118. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  119. package/dist/esm/ptc-product-card.entry.js +1 -1
  120. package/dist/esm/ptc-product-category.entry.js +1 -1
  121. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  122. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  123. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  124. package/dist/esm/ptc-social-icons-footer.entry.js +2 -7
  125. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  126. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  127. package/dist/esm/ptc-white-paper.entry.js +1 -1
  128. package/dist/esm/ptcw-design.js +1 -1
  129. package/dist/esm/{utils-63eab4bd.js → utils-b7c6422e.js} +1 -9
  130. package/dist/esm/validation-messages-adbb6518.js +124 -0
  131. package/dist/ptcw-design/media/designer-v6.0.6.svg +2 -30
  132. package/dist/ptcw-design/p-00e21489.entry.js +1 -0
  133. package/dist/ptcw-design/{p-72df6678.entry.js → p-085e82b8.entry.js} +1 -1
  134. package/dist/ptcw-design/{p-627103d8.entry.js → p-103ec637.entry.js} +1 -1
  135. package/dist/ptcw-design/p-136a91bf.entry.js +1 -0
  136. package/dist/ptcw-design/{p-bbc706df.entry.js → p-14e53256.entry.js} +1 -1
  137. package/dist/ptcw-design/p-18a5a338.js +1 -0
  138. package/dist/ptcw-design/p-18f59395.entry.js +1 -0
  139. package/dist/ptcw-design/p-1b7087e7.entry.js +1 -0
  140. package/dist/ptcw-design/p-1ca8a5bf.entry.js +1 -0
  141. package/dist/ptcw-design/{p-0d806031.entry.js → p-1cff585f.entry.js} +1 -1
  142. package/dist/ptcw-design/{p-d3229458.entry.js → p-2335d57c.entry.js} +1 -1
  143. package/dist/ptcw-design/{p-821f0ff9.entry.js → p-29639cd4.entry.js} +1 -1
  144. package/dist/ptcw-design/{p-48c33817.entry.js → p-34610052.entry.js} +1 -1
  145. package/dist/ptcw-design/{p-28be539b.entry.js → p-34b270c1.entry.js} +1 -1
  146. package/dist/ptcw-design/p-3f71553e.entry.js +1 -0
  147. package/dist/ptcw-design/p-419e260c.entry.js +68 -0
  148. package/dist/ptcw-design/{p-d756db27.entry.js → p-48183365.entry.js} +1 -1
  149. package/dist/ptcw-design/{p-6a3caf2b.entry.js → p-4c096997.entry.js} +1 -1
  150. package/dist/ptcw-design/p-4e2bb0e0.entry.js +1 -0
  151. package/dist/ptcw-design/{p-6f5fecae.entry.js → p-52b82ac5.entry.js} +1 -1
  152. package/dist/ptcw-design/p-583608d9.entry.js +1 -0
  153. package/dist/ptcw-design/{p-d2825140.entry.js → p-760507e1.entry.js} +1 -1
  154. package/dist/ptcw-design/p-78be481f.entry.js +1 -0
  155. package/dist/ptcw-design/{p-49e54079.entry.js → p-7e7ebf0a.entry.js} +1 -1
  156. package/dist/ptcw-design/p-841b807d.js +1 -0
  157. package/dist/ptcw-design/p-8daf00ae.entry.js +1 -0
  158. package/dist/ptcw-design/{p-17f6e145.entry.js → p-999d1c9f.entry.js} +1 -1
  159. package/dist/ptcw-design/p-a2d9831c.entry.js +1 -0
  160. package/dist/ptcw-design/{p-bb902570.entry.js → p-a3a04f4e.entry.js} +1 -1
  161. package/dist/ptcw-design/p-be533f0d.js +134 -0
  162. package/dist/ptcw-design/p-c1513c3f.js +203 -0
  163. package/dist/ptcw-design/{p-cbee4653.entry.js → p-cffebefe.entry.js} +1 -1
  164. package/dist/ptcw-design/{p-77cad16c.entry.js → p-d1857ada.entry.js} +1 -1
  165. package/dist/ptcw-design/{p-ea7369e9.entry.js → p-d3e5b65c.entry.js} +1 -1
  166. package/dist/ptcw-design/p-d734b373.entry.js +1 -0
  167. package/dist/ptcw-design/p-dc488936.entry.js +1 -0
  168. package/dist/ptcw-design/p-dd73c4d1.entry.js +1 -0
  169. package/dist/ptcw-design/{p-e577ad62.entry.js → p-df8526a2.entry.js} +1 -1
  170. package/dist/ptcw-design/{p-eec2f3da.entry.js → p-e38ed0e3.entry.js} +1 -1
  171. package/dist/ptcw-design/p-e7937ac1.entry.js +1 -0
  172. package/dist/ptcw-design/p-e9a7475b.entry.js +1 -0
  173. package/dist/ptcw-design/{p-4ee98a3e.entry.js → p-eab1042e.entry.js} +1 -1
  174. package/dist/ptcw-design/p-f05fec22.entry.js +1 -0
  175. package/dist/ptcw-design/p-f317864a.entry.js +1 -0
  176. package/dist/ptcw-design/{p-2749c178.entry.js → p-fce2bd81.entry.js} +1 -1
  177. package/dist/ptcw-design/ptcw-design.css +2 -2
  178. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  179. package/dist/types/components/ptc-button/ptc-button.d.ts +0 -1
  180. package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +0 -6
  181. package/dist/types/components/ptc-link/ptc-link.d.ts +0 -1
  182. package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -1
  183. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  184. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
  185. package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +0 -5
  186. package/dist/types/components.d.ts +4 -35
  187. package/dist/types/utils/utils.d.ts +0 -1
  188. package/package.json +1 -1
  189. package/readme.md +1 -1
  190. package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -127
  191. package/dist/cjs/icon-asset.cjs.entry.js +0 -65
  192. package/dist/cjs/list-item.cjs.entry.js +0 -48
  193. package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
  194. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
  195. package/dist/cjs/ptc-button.cjs.entry.js +0 -87
  196. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -132
  197. package/dist/cjs/ptc-card-content.cjs.entry.js +0 -68
  198. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -211
  199. package/dist/cjs/ptc-img.cjs.entry.js +0 -133
  200. package/dist/cjs/ptc-link.cjs.entry.js +0 -98
  201. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -34
  202. package/dist/cjs/ptc-para.cjs.entry.js +0 -127
  203. package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -81
  204. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  205. package/dist/cjs/ptc-title.cjs.entry.js +0 -152
  206. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
  207. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -99
  208. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
  209. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
  210. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
  211. package/dist/esm/event-jumbotron-example.entry.js +0 -123
  212. package/dist/esm/icon-asset.entry.js +0 -61
  213. package/dist/esm/list-item.entry.js +0 -44
  214. package/dist/esm/modal-form-example.entry.js +0 -90
  215. package/dist/esm/ptc-breadcrumb.entry.js +0 -43
  216. package/dist/esm/ptc-button.entry.js +0 -83
  217. package/dist/esm/ptc-card-bottom_2.entry.js +0 -127
  218. package/dist/esm/ptc-card-content.entry.js +0 -64
  219. package/dist/esm/ptc-close-icon_2.entry.js +0 -206
  220. package/dist/esm/ptc-img.entry.js +0 -129
  221. package/dist/esm/ptc-link.entry.js +0 -94
  222. package/dist/esm/ptc-overlay.entry.js +0 -30
  223. package/dist/esm/ptc-para.entry.js +0 -123
  224. package/dist/esm/ptc-scroll-button.entry.js +0 -77
  225. package/dist/esm/ptc-spacer.entry.js +0 -34
  226. package/dist/esm/ptc-title.entry.js +0 -148
  227. package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
  228. package/dist/ptcw-design/p-1070f8a3.entry.js +0 -1
  229. package/dist/ptcw-design/p-1d068cc2.entry.js +0 -68
  230. package/dist/ptcw-design/p-257deac0.entry.js +0 -1
  231. package/dist/ptcw-design/p-25a25451.entry.js +0 -1
  232. package/dist/ptcw-design/p-2ac5ed9c.entry.js +0 -1
  233. package/dist/ptcw-design/p-34c50b3e.entry.js +0 -1
  234. package/dist/ptcw-design/p-40160817.entry.js +0 -1
  235. package/dist/ptcw-design/p-50d68602.entry.js +0 -1
  236. package/dist/ptcw-design/p-5d885144.entry.js +0 -1
  237. package/dist/ptcw-design/p-5ef23b5c.entry.js +0 -1
  238. package/dist/ptcw-design/p-6c2b4fb8.entry.js +0 -1
  239. package/dist/ptcw-design/p-7793babb.entry.js +0 -1
  240. package/dist/ptcw-design/p-77b1221e.js +0 -1
  241. package/dist/ptcw-design/p-799afee5.entry.js +0 -1
  242. package/dist/ptcw-design/p-8b3ebdff.entry.js +0 -1
  243. package/dist/ptcw-design/p-90c4f08b.entry.js +0 -1
  244. package/dist/ptcw-design/p-92d22c78.entry.js +0 -1
  245. package/dist/ptcw-design/p-95187918.entry.js +0 -1
  246. package/dist/ptcw-design/p-9a6bd91f.entry.js +0 -1
  247. package/dist/ptcw-design/p-9e9ae28c.entry.js +0 -1
  248. package/dist/ptcw-design/p-a3b57ede.entry.js +0 -1
  249. package/dist/ptcw-design/p-b3bbd17d.entry.js +0 -1
  250. package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
  251. package/dist/ptcw-design/p-ba8c58a7.entry.js +0 -1
  252. package/dist/ptcw-design/p-bcab66bf.js +0 -336
  253. package/dist/ptcw-design/p-bf18b622.entry.js +0 -1
  254. package/dist/ptcw-design/p-c01ea76f.entry.js +0 -1
  255. package/dist/ptcw-design/p-d2e26642.entry.js +0 -1
  256. package/dist/ptcw-design/p-de960790.entry.js +0 -1
  257. package/dist/ptcw-design/p-e90fbbad.entry.js +0 -1
  258. package/dist/ptcw-design/p-f65adb71.entry.js +0 -1
  259. package/dist/ptcw-design/p-f8512dc9.entry.js +0 -1
  260. package/dist/ptcw-design/p-fd394e84.entry.js +0 -1
  261. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
@@ -1,99 +0,0 @@
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
- }
@@ -1,45 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'Organisms/E-Support Organisms/Case Tracker'
5
-
6
- }
7
- const CaseTracker = args => {
8
- return html `
9
-
10
- <ptc-spacer></ptc-spacer>
11
- <ptc-spacer></ptc-spacer>
12
- <ptc-spacer></ptc-spacer>
13
- <div class="ptc-container is-grid">
14
- <div class="is-col-12 is-col-6-md">
15
- <ptc-title upperline="none">Case Tracker - Authorized Use Only</ptc-title>
16
- <ptc-spacer></ptc-spacer>
17
- <ptc-spacer></ptc-spacer>
18
- <ptc-para>If you want to use this application on behalf of a customer use this search from to lookup the customer record. When you have found the customer hit the Next > button</ptc-para>
19
- <ptc-textfield field-id="contact-email" label-text="Customer Name" type="text" ptc-data-eloqua-name="C_EmailAddress" field-name="email"></ptc-textfield>
20
- <ptc-textfield field-id="contact-email" label-text="Customer Number" type="text" ptc-data-eloqua-name="C_EmailAddress" field-name="email"></ptc-textfield>
21
- <ptc-button color="ptc-quaternary" disabled="false" link-href="https://www.ptc.com" link-title="PTC" rel="undefined" tab-nav="0" target="_self" text-align="undefined" type="button">Search</ptc-button>
22
- <ptc-button color="ptc-quaternary" disabled="false" link-href="https://www.ptc.com" link-title="PTC" rel="undefined" tab-nav="0" target="_self" text-align="undefined" type="button">Next</ptc-button>
23
- </div>
24
- <div class="is-col-12 is-col-2-md">
25
-
26
- </div>
27
- <div class="is-col-12 is-col-3-md">
28
- <ptc-spacer></ptc-spacer>
29
- <ptc-spacer></ptc-spacer>
30
- <ptc-spacer></ptc-spacer>
31
- <ptc-spacer></ptc-spacer>
32
- <div style="border: solid; padding: 5px;">
33
- <ptc-title upperline="none" type="h3">search tips</ptc-title>
34
- <ul>
35
- <li>You can use this search form to use this application on behalf of a customer.</li>
36
- <li>You can use this search form to use this application on behalf of a customer.</li>
37
- </ul>
38
- </div>
39
- </div>
40
-
41
-
42
- </div>
43
- `;}
44
-
45
- export const Preview = CaseTracker.bind();
@@ -1,47 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'Organisms/E-Support Organisms/Support Article'
5
-
6
- }
7
- const ArticlePage = args => {
8
- return html `
9
-
10
- <div class="ptc-container">
11
-
12
- <ptc-title upperline="" type="h4" title-color="grey">How to run Apache, Tomcat, Windchill Directory Server </ptc-title>
13
- <ptc-para>Modified: 23-Nov-2023 | LastSeen: 17-Jun-2024
14
- <ptc-dropdown label="Available in:" listitems="" theme="support">
15
- <item selected="" label="English"></item>
16
- <item label="English"></item>
17
- <item label="English"></item>
18
-
19
- </ptc-dropdown>
20
-
21
- </ptc-para>
22
-
23
- <div style="background-color: rgb(238, 238, 238);; padding:2px">
24
- <ptc-title type="h5" upperline="">Public</ptc-title>
25
- <ptc-para >
26
- Created by Steven Jin and improved by Mi Yeon Grace Jin, Amit Deshpande, Hideyuki Akiyama, Lily Liu, Arshad Imam, Luis Barbosa, Feng Xiang Cliff Tian, Swapnil Deshmukh, Kellan Chen, Teresa Man, Chao Max Wang, Saurabh Ghewande, Mahesh Lomate, Aditya Chaure, Tsutomu Seki, Salesforce Data Manipulation User, Steven Jin, Shirley Yang
27
- Customer Views: 24559 | Useful Ratings (Customers): 118 | Useful Ratings (PTC): 45 | Cases Solved: 154
28
- </ptc-para>
29
-
30
- </div>
31
- <ptc-spacer></ptc-spacer>
32
- <ptc-spacer></ptc-spacer>
33
- <div>
34
- <ptc-title upperline="" type="h4">Description</ptc-title>
35
- <hr style="color:green">
36
- <ptc-para>
37
- <ul>
38
- <li>How to run Apache HTTP Server, Tomcat, WindchillDS and, Windchill as a Windows service</li>
39
- <li>How to run Apache HTTP Server, Tomcat, WindchillDS and, Windchill as a Windows service</li>
40
- <li>How to run Apache HTTP Server, Tomcat, WindchillDS and, Windchill as a Windows service</li>
41
- </ul>
42
- </ptc-para>
43
- </div>
44
- </div>
45
- `;}
46
-
47
- export const Preview = ArticlePage.bind();
@@ -1,157 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'Organisms/E-Support Organisms/Support Page'
5
-
6
- }
7
- const SupportPage = args => {
8
- return html `
9
-
10
- <ptc-spacer></ptc-spacer>
11
- <ptc-spacer></ptc-spacer>
12
- <ptc-spacer></ptc-spacer>
13
- <ptc-spacer></ptc-spacer>
14
- <div class="ptc-container is-grid has-col-gap green-container">
15
- <div class="is-col-12 is-col-7-md search-container">
16
-
17
- <ptc-spacer></ptc-spacer>
18
- <ptc-spacer></ptc-spacer>
19
- <ptc-spacer></ptc-spacer>
20
- <ptc-title type="h2" text-align="center" title-size="x-large" title-color="white" upperline="no-upperline" title-display="inline-block" title-shadow="" title-height="densest" title-margin="margin-3" title-weight="w-8" is-plm-hub="false">
21
- Search the Knowledge Base
22
- </ptc-title>
23
- <ptc-search-field placeholder-label="Search Technical Support Documentation and Articles" ></ptc-search-field>
24
- </div>
25
- <div class="is-col-12 is-col-5-md form-section">
26
- <ptc-title upperline="none">Popular Tasks</ptc-title>
27
- <!-- <ul> -->
28
- <ptc-link>Product Pages</ptc-link>
29
- <ptc-link>Product Pages</ptc-link>
30
- <ptc-link>Product Pages</ptc-link>
31
- <ptc-link>Product Pages</ptc-link>
32
-
33
- </div>
34
- </div>
35
-
36
- <ptc-spacer></ptc-spacer>
37
- <ptc-spacer></ptc-spacer>
38
-
39
- <div class="ptc-container is-grid has-col-gap link-container ">
40
- <div class="is-col-1"></div>
41
- <div class="is-col-2 links"><ptc-link>Support</ptc-link>
42
- <button class="btn" role="button" >
43
- <span class="arrow">
44
- <icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
45
- </span>
46
- </button>
47
- </div>
48
- <div class="is-col-2 llinks"><ptc-link>Manage and monitor software</ptc-link>
49
- <button class="btn" role="button" >
50
- <span class="arrow">
51
- <icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
52
- </span>
53
- </button>
54
- </div>
55
- <div class="is-col-2 llinks"><ptc-link>Learn</ptc-link>
56
- <button class="btn" role="button" >
57
- <span class="arrow">
58
- <icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
59
- </span>
60
- </button>
61
- </div>
62
- <div class="is-col-2 llinks"><ptc-link>Service and Expertise</ptc-link>
63
- <button class="btn" role="button" >
64
- <span class="arrow">
65
- <icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
66
- </span>
67
- </button>
68
- </div>
69
- <div class="is-col-2 llinks"><ptc-link>PTC Partner Network</ptc-link>
70
- <button class="btn" role="button" >
71
- <span class="arrow">
72
- <icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
73
- </span>
74
- </button>
75
- </div>
76
- <div class="is-col-1 links"></div>
77
- </div>
78
- <style>
79
-
80
-
81
- .btn {
82
- display: none;
83
- padding: 10px;
84
- font-size: 16px;
85
- font-weight: 500;
86
- border: none;
87
- background-color: transparent;
88
- cursor: pointer;
89
- align-items: center;
90
- span {
91
- margin-right: 8px;
92
- align-items: center;
93
- }
94
-
95
-
96
-
97
- }
98
-
99
- .llinks:hover .btn {
100
- display: block;
101
-
102
-
103
- }
104
-
105
- .links:hover .btn {
106
- display: flex;
107
- }
108
- .green-container {
109
- background-color:#b3dda4 ;
110
- padding: 10px;
111
- .search-container{
112
- background-color: #00890B;
113
- padding:10px;
114
- align-items: center;
115
- }
116
- .form-section {
117
- background-color: white;
118
- padding: 10px;
119
-
120
- ptc-link {
121
- padding: 5px;
122
- }
123
- }
124
- }
125
- .links {
126
- align-content: center;
127
- text-align: center;
128
- padding-bottom: 16px;
129
- align-items: center;
130
- display: flex;
131
- flex-direction: column;
132
- align-items: center;
133
- justify-content: space-between;
134
- }
135
-
136
- .llinks {
137
- align-content: center;
138
- text-align: center;
139
- padding-bottom: 16px;
140
- border-left: solid 2px #b3dda4;
141
- padding: 10px;
142
- display: flex;
143
- flex-direction: column;
144
- align-items: center;
145
- justify-content: space-between;
146
-
147
- }
148
- .link-container {
149
- border-bottom: solid 2px #b3dda4;
150
- /* margin: 15px; */
151
- }
152
-
153
-
154
- </style>
155
- `;}
156
-
157
- export const Preview = SupportPage.bind();
@@ -1,123 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-c83db688.js';
2
-
3
- const eventJumbotronExampleCss = "h1.sc-event-jumbotron-example,h2.sc-event-jumbotron-example,h3.sc-event-jumbotron-example,h4.sc-event-jumbotron-example,h5.sc-event-jumbotron-example,h6.sc-event-jumbotron-example,p.sc-event-jumbotron-example,ul.sc-event-jumbotron-example,li.sc-event-jumbotron-example,ptc-subnav.sc-event-jumbotron-example,ptc-tab-list.sc-event-jumbotron-example,ptc-link.sc-event-jumbotron-example,ptc-square-card.sc-event-jumbotron-example,.hyphenate-text.sc-event-jumbotron-example,ptc-footer.sc-event-jumbotron-example{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-event-jumbotron-example,h2.sc-event-jumbotron-example,h3.sc-event-jumbotron-example,h4.sc-event-jumbotron-example,h5.sc-event-jumbotron-example,h6.sc-event-jumbotron-example,p.sc-event-jumbotron-example,ul.sc-event-jumbotron-example,li.sc-event-jumbotron-example,ptc-subnav.sc-event-jumbotron-example,ptc-tab-list.sc-event-jumbotron-example,ptc-link.sc-event-jumbotron-example,ptc-square-card.sc-event-jumbotron-example,.hyphenate-text.sc-event-jumbotron-example,ptc-footer.sc-event-jumbotron-example{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.sc-event-jumbotron-example-h{display:block;position:relative}.event-jumbotron.sc-event-jumbotron-example{margin-bottom:3rem;width:100%}.white-placeholder.sc-event-jumbotron-example{position:absolute;height:130px;width:100%;background-color:#F3f3f3;bottom:0px}.jumbotron-cards-wrapper.sc-event-jumbotron-example{z-index:1;position:relative;display:flex;flex-direction:column}.jumbotron-cards.sc-event-jumbotron-example{display:flex;gap:16px;overflow-x:auto;padding:0 24px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;cursor:grab}.jumbotron-cards.sc-event-jumbotron-example::-webkit-scrollbar{display:none}.jumbotron-cards.dragging.sc-event-jumbotron-example{cursor:grabbing}.card.sc-event-jumbotron-example{flex:0 0 auto;width:250px;height:414px;background:transparent;border-radius:var(--ptc-border-radius-standard);display:flex;justify-content:center;align-items:center;text-align:center;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1);flex-direction:column;padding:24px;position:relative}.text-wrapper.sc-event-jumbotron-example{align-self:flex-start;text-align:left}.card-title.sc-event-jumbotron-example{color:var(--color-white);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-x-large);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);position:relative;z-index:2;margin-top:0;margin-bottom:var(--ptc-element-spacing-06)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-weight:var(--ptc-font-weight-medium);display:block}.cta-all.sc-event-jumbotron-example{margin-right:20px}.panel.sc-event-jumbotron-example{display:none;visibility:hidden}@media only screen and (min-width: 992px){.cta-group.sc-event-jumbotron-example{margin-bottom:88px}.jumbotron-cards.sc-event-jumbotron-example{overflow-x:visible;justify-content:space-between;cursor:auto;transition:transform 0.3s ease-in-out}.card.sc-event-jumbotron-example{width:218px;height:530px;padding:24px;cursor:pointer}.card.hidden.sc-event-jumbotron-example{opacity:0;pointer-events:none}.card.active.sc-event-jumbotron-example{border-top-right-radius:0px;border-bottom-right-radius:0px}.panel.sc-event-jumbotron-example{visibility:hidden;opacity:0;position:absolute;top:0;left:0;width:726px;height:530px;padding:40px;background:var(--color-white);border-radius:var(--ptc-border-radius-standard);box-shadow:0 2px 8px rgba(0, 0, 0, 0.1);transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;z-index:10}.panel.visible.sc-event-jumbotron-example{visibility:visible;opacity:1;border-top-left-radius:0px;border-bottom-left-radius:0px}.close-panel.sc-event-jumbotron-example{position:absolute;top:0px;right:0px;background:var(--color-white);border:none;text-align:center;cursor:pointer;padding:0px;margin:5px}}@media only screen and (min-width: 1200px){.card.sc-event-jumbotron-example{width:260px}.card-title.sc-event-jumbotron-example{font-size:32px}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-size:32px}.panel.sc-event-jumbotron-example{width:876px}}@media only screen and (min-width: 1440px){.card.sc-event-jumbotron-example{width:270px}.panel.sc-event-jumbotron-example{width:930px}}";
4
-
5
- const EventJumbotronExample = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.startX = 0;
9
- this.scrollLeft = 0;
10
- this.updateContainerClass = () => {
11
- if (this.screenStatus.isDesktop) {
12
- this.sliderWrapper.classList.add('ptc-container', 'u-paddingRight-flush', 'u-paddingLeft-flush');
13
- this.disableDragging();
14
- }
15
- else {
16
- this.sliderWrapper.classList.remove('ptc-container', 'u-paddingRight-flush', 'u-paddingLeft-flush');
17
- this.enableDragging();
18
- }
19
- };
20
- this.startDragging = (e) => {
21
- this.isMouseDown = true;
22
- this.isDragging = false;
23
- this.startX = e.pageX;
24
- this.scrollLeft = this.slider.scrollLeft;
25
- };
26
- this.performDragging = (e) => {
27
- if (!this.isMouseDown)
28
- return;
29
- const x = e.pageX - this.slider.offsetLeft;
30
- const walk = x - this.startX;
31
- this.isDragging = Math.abs(walk) > 5;
32
- this.slider.scrollLeft = this.scrollLeft - walk;
33
- };
34
- this.stopDragging = () => {
35
- this.isMouseDown = false;
36
- };
37
- this.cards = [];
38
- this.activePanel = null;
39
- this.isDragging = false;
40
- this.isMouseDown = false;
41
- this.screenStatus = { isDesktop: window.innerWidth >= 992 };
42
- }
43
- handleCardClick(cardIndex) {
44
- const card = this.slider.children[cardIndex];
45
- const panelID = `panel-${cardIndex}`;
46
- const panel = document.getElementById(panelID);
47
- if (this.screenStatus.isDesktop && panel) {
48
- this.showPanel(card, panel);
49
- }
50
- else if (!this.screenStatus.isDesktop) {
51
- if (!this.isDragging) {
52
- const modal = document.getElementById(`modal-${cardIndex}`);
53
- console.log('open: ' + modal.id);
54
- modal.show = true;
55
- }
56
- }
57
- }
58
- showPanel(card, panel) {
59
- if (this.activePanel)
60
- return;
61
- this.slider.style.transform = `translateX(-${card.offsetLeft}px)`;
62
- Array.from(this.slider.children).forEach(c => {
63
- if (c !== card)
64
- c.classList.add('hidden');
65
- });
66
- panel.style.display = 'block';
67
- setTimeout(() => {
68
- panel.style.transform = `translateX(${card.offsetWidth}px)`;
69
- panel.classList.add('visible');
70
- card.classList.add('active');
71
- this.activePanel = panel.id;
72
- }, 100);
73
- }
74
- closePanel(panelId) {
75
- const panel = document.getElementById(panelId);
76
- if (panel) {
77
- panel.classList.remove('visible');
78
- panel.addEventListener('transitionend', () => {
79
- if (!panel.classList.contains('visible')) {
80
- panel.style.display = 'none';
81
- }
82
- }, { once: true });
83
- }
84
- this.activePanel = null;
85
- this.slider.style.transform = 'translateX(0)';
86
- Array.from(this.slider.children).forEach(card => {
87
- card.classList.remove('hidden', 'active');
88
- });
89
- }
90
- enableDragging() {
91
- this.slider.addEventListener('mousedown', this.startDragging);
92
- this.slider.addEventListener('mousemove', this.performDragging);
93
- ['mouseup', 'mouseleave'].forEach(event => this.slider.addEventListener(event, this.stopDragging));
94
- }
95
- disableDragging() {
96
- this.slider.removeEventListener('mousedown', this.startDragging);
97
- this.slider.removeEventListener('mousemove', this.performDragging);
98
- ['mouseup', 'mouseleave'].forEach(event => this.slider.removeEventListener(event, this.stopDragging));
99
- }
100
- componentDidLoad() {
101
- this.sliderWrapper = document.querySelector('.jumbotron-cards-wrapper');
102
- this.slider = document.querySelector('.jumbotron-cards');
103
- this.updateContainerClass();
104
- window.addEventListener('resize', () => {
105
- this.screenStatus.isDesktop = window.innerWidth >= 992;
106
- this.updateContainerClass();
107
- });
108
- }
109
- render() {
110
- const modalContentSlots = Array.from(this.el.querySelectorAll('template'));
111
- return [
112
- h("div", { class: {
113
- 'event-jumbotron': true,
114
- 'ptc-container': this.screenStatus.isDesktop,
115
- } }, h("div", { class: "jumbotron-cards-wrapper" }, h("div", { class: "jumbotron-cards" }, this.cards.map((card, index) => (h("div", { class: "card", onClick: () => this.handleCardClick(index), "data-panel": `panel-${index}` }, h("ptc-img", { "border-radius": "radius-standard", "image-type": "smart-bg", "img-url": card.cardBg, "load-mode": "lazy-bg", styles: "ptc-img{position: absolute; width: 100%; height: 100%; z-index: 0}" }), h("ptc-overlay", { "border-radius": "radius-standard", "filter-color": "black-4", "overlay-z-index": "z-index-auto", styles: "" }), h("div", { class: "text-wrapper" }, h("h3", { class: "card-title" }, card.title, h("span", null, card.description)), h("div", { innerHTML: card.panelContent })))))), this.cards.map((_, index) => (h("div", { id: `panel-${index}`, class: "panel" }, h("button", { tabindex: "-1", class: "close-panel", onClick: () => this.closePanel(`panel-${index}`), "aria-label": "Close panel" }, h("ptc-close-icon", null)), h("slot", { name: `panel-content-${index}` })))), this.cards.map((_, index) => (h("ptc-modal", { id: `modal-${index}`, show: false, "close-on-blur": true, "modal-type": "event-listing" }, h("div", { innerHTML: modalContentSlots[index].innerHTML })))))),
116
- h("div", { class: "white-placeholder" }),
117
- ];
118
- }
119
- get el() { return getElement(this); }
120
- };
121
- EventJumbotronExample.style = eventJumbotronExampleCss;
122
-
123
- export { EventJumbotronExample as event_jumbotron_example };
@@ -1,61 +0,0 @@
1
- import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host } from './index-c83db688.js';
2
-
3
- const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}svg.micro.sc-icon-asset{width:calc(var(--ptc-font-size-x-small) / 2);height:calc(var(--ptc-font-size-x-small) / 2)}svg.xxx-small.sc-icon-asset{width:var(--ptc-font-size-xxx-small);height:var(--ptc-font-size-xxx-small)}svg.xx-small.sc-icon-asset{width:var(--ptc-font-size-xx-small);height:var(--ptc-font-size-xx-small)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.medium.sc-icon-asset{width:var(--ptc-font-size-medium);height:var(--ptc-font-size-medium)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.xxx-large.sc-icon-asset{width:var(--ptc-font-size-xxx-large);height:var(--ptc-font-size-xxx-large)}svg.xxxx-large.sc-icon-asset{width:var(--ptc-font-size-xxxx-large);height:var(--ptc-font-size-xxxx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.white.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.black.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-green-07)}svg.ptc-green.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-green-07)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-06)}svg.light-gray.sc-icon-asset{fill:var(--color-gray-05)}svg.light-gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-05)}svg.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}svg[tabIndex=\"0\"].sc-icon-asset:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}";
4
-
5
- const IconAsset = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.ready = createEvent(this, "ready", 7);
9
- this.regularSprite = getAssetPath('./media/regular.svg');
10
- this.solidSprite = getAssetPath('./media/solid.svg');
11
- this.brandSprite = getAssetPath('./media/brands.svg');
12
- this.ptcSprite = getAssetPath('./media/designer-v6.0.6.svg');
13
- this.name = undefined;
14
- this.size = 'xx-small';
15
- this.type = 'regular';
16
- this.spin = '';
17
- this.pulse = '';
18
- this.color = 'default';
19
- this.isMobileSelect = undefined;
20
- this.injectedStyle = undefined;
21
- this.focusOn = false;
22
- this.trackerId = "";
23
- }
24
- componentDidLoad() {
25
- this.ready.emit({
26
- 'regular-icons': this.regularSprite,
27
- 'sold-icons': this.solidSprite,
28
- 'brand-icons': this.brandSprite,
29
- 'ptc-icons': this.ptcSprite
30
- });
31
- }
32
- render() {
33
- const classMap = this.getCssClassMap();
34
- if (this.type == 'brands') {
35
- return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.brandSprite}#${this.name}` }))));
36
- }
37
- else if (this.type == 'solid') {
38
- return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.solidSprite}#${this.name}` }))));
39
- }
40
- else if (this.type == 'ptc') {
41
- return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap, "aria-hidden": this.isMobileSelect && "true", tabindex: this.focusOn ? 0 : -1, id: this.trackerId }, h("use", { href: `${this.ptcSprite}#${this.name}` }))));
42
- }
43
- else {
44
- return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.regularSprite}#${this.name}` }))));
45
- }
46
- }
47
- getCssClassMap() {
48
- return {
49
- [this.size]: true,
50
- [this.spin]: true,
51
- [this.pulse]: true,
52
- [this.color]: true,
53
- ['ismobileselect']: this.isMobileSelect ? true : false,
54
- ['mf-listen']: this.trackerId !== "" ? true : false
55
- };
56
- }
57
- static get assetsDirs() { return ["media"]; }
58
- };
59
- IconAsset.style = iconAssetCss;
60
-
61
- export { IconAsset as icon_asset };
@@ -1,44 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
2
-
3
- const listItemCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host(.list-primary){display:block}:host(.flush-before) li::before{content:\"\" !important}:host(.breadcrumb){display:inline-block}:host(.breadcrumb) li{position:relative;display:inline-block;color:var(--color-white);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);display:flex;align-items:baseline}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0;margin-left:2px}:host(.breadcrumb) li a.item-link{color:var(--color-white);font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}:host(.breadcrumb) li a.item-link:focus-visible{transition:none;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);padding-bottom:5px;padding-right:5px}:host(.breadcrumb-center) li{display:inline}:host(.list-green){display:block;margin-bottom:16px}:host(.list-green) li a{font-size:var(--ptc-font-size-xx-small);color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:var(--color-green-04);font-weight:var(--ptc-font-weight-bold);transition:color var(--ptc-transition-medium) var(--ptc-ease-inout);line-height:var(--ptc-line-height-p);text-underline-offset:4px}:host(.list-green) li a:hover{color:var(--color-green-04)}:host(:not(.flush-before)) li::before{margin-right:2px}:host(.list-footer) li{display:inline-block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);font-style:normal;font-stretch:normal;line-height:var(--ptc-line-height-denser);letter-spacing:normal;color:var(--color-white);margin:0 0.5rem}:host(.list-footer) li a{color:var(--color-white-grey);border-bottom:1px solid transparent;display:inline-block;text-decoration:none}:host(.list-footer) li a:hover,:host(.list-footer) li a:focus{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey);transition:border var(--ptc-ease-inout) var(--ptc-transition-medium)}:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey)}:host(.list-footer) li a:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}:host(.list-footer) li a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);transition:none !important;border-color:white !important}:host(.white) li{color:var(--color-white)}:host(.white) li a.item-link{color:var(--color-white)}:host(.light-gray) li{color:var(--color-gray-01)}:host(.light-gray) li a.item-link{color:var(--color-gray-01)}:host(.primary-gray) li{color:var(--color-gray-10)}:host(.primary-gray) li a.item-link{color:var(--color-gray-10)}:host(.list-underline) li{color:var(--color-gray-10);list-style:none;text-decoration:underline 1px solid;text-underline-offset:2px;line-height:var(--ptc-line-height-p)}:host(.list-underline) li a{display:inline-block;padding:4px 0}:host(.list-underline) li a.item-link{color:var(--color-gray-10)}:host li .has-before-home-icon{display:block}@media only screen and (min-width: 480px){:host li .has-before-home-icon{display:none}}";
4
-
5
- const ListItem = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.listType = 'list-primary';
9
- this.linkHref = undefined;
10
- this.flushBefore = false;
11
- this.linkTarget = '_self';
12
- this.hasBeforeHomeIcon = false;
13
- this.trackerId = undefined;
14
- this.color = undefined;
15
- this.styles = undefined;
16
- this.ariaLabel = '';
17
- }
18
- render() {
19
- const classMap = this.getCssClassMap();
20
- return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("li", { id: this.trackerId }, this.linkHref ? (h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {}), (this.ariaLabel !== '' ? { 'aria-label': this.ariaLabel } : {}), { tabindex: "0" }), h("slot", null))) : (h("slot", null)))));
21
- }
22
- getCssClassMap() {
23
- let bcEnable = false;
24
- if (this.hostElement && this.hostElement.parentElement) {
25
- try {
26
- bcEnable = (this.hostElement.parentElement.classList.contains('center') && this.hostElement.parentElement.tagName === 'PTC-BREADCRUMB');
27
- }
28
- catch (err) {
29
- console.log(err);
30
- }
31
- }
32
- return {
33
- [this.listType]: true,
34
- ['flush-before']: this.flushBefore ? true : false,
35
- [this.color]: !!this.color ? true : false,
36
- ['breadcrumb-center']: bcEnable,
37
- ['mf-listen']: true
38
- };
39
- }
40
- get hostElement() { return getElement(this); }
41
- };
42
- ListItem.style = listItemCss;
43
-
44
- export { ListItem as list_item };