@ptcwebops/ptcw-design 0.7.9 → 0.8.1

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 (305) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/dropdown-item.cjs.entry.js +10 -10
  3. package/dist/cjs/icon-asset.cjs.entry.js +42 -42
  4. package/dist/cjs/list-item.cjs.entry.js +19 -19
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/lottie-player.cjs.entry.js +354 -354
  7. package/dist/cjs/my-component.cjs.entry.js +15 -15
  8. package/dist/cjs/ptc-accordion-item.cjs.entry.js +83 -83
  9. package/dist/cjs/ptc-accordion.cjs.entry.js +35 -35
  10. package/dist/cjs/ptc-announcement.cjs.entry.js +52 -52
  11. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +12 -12
  12. package/dist/cjs/ptc-button.cjs.entry.js +35 -35
  13. package/dist/cjs/ptc-card-bottom.cjs.entry.js +36 -34
  14. package/dist/cjs/ptc-card-content.cjs.entry.js +40 -38
  15. package/dist/cjs/ptc-card-wrapper.cjs.entry.js +46 -0
  16. package/dist/cjs/ptc-card_6.cjs.entry.js +439 -427
  17. package/dist/cjs/ptc-checkbox.cjs.entry.js +33 -33
  18. package/dist/cjs/ptc-collapse-list.cjs.entry.js +346 -346
  19. package/dist/cjs/ptc-container.cjs.entry.js +32 -32
  20. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  21. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +47 -47
  22. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
  23. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  24. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  25. package/dist/cjs/ptc-hero.cjs.entry.js +19 -17
  26. package/dist/cjs/ptc-icon-list.cjs.entry.js +20 -20
  27. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +36 -36
  28. package/dist/cjs/ptc-link.cjs.entry.js +29 -27
  29. package/dist/cjs/ptc-list.cjs.entry.js +50 -50
  30. package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
  31. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
  32. package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
  33. package/dist/cjs/ptc-mobile-select.cjs.entry.js +53 -54
  34. package/dist/cjs/ptc-modal.cjs.entry.js +143 -137
  35. package/dist/cjs/ptc-overlay.cjs.entry.js +21 -21
  36. package/dist/cjs/ptc-pagenation.cjs.entry.js +105 -105
  37. package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -10
  38. package/dist/cjs/ptc-pricing-block.cjs.entry.js +16 -16
  39. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  40. package/dist/cjs/ptc-readmore_2.cjs.entry.js +59 -69
  41. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  42. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  43. package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
  44. package/dist/cjs/ptc-span.cjs.entry.js +18 -18
  45. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  46. package/dist/cjs/ptc-svg-btn.cjs.entry.js +73 -73
  47. package/dist/cjs/ptc-tab-list.cjs.entry.js +125 -125
  48. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +21 -21
  49. package/dist/cjs/ptc-title.cjs.entry.js +65 -65
  50. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  51. package/dist/cjs/ptcw-design.cjs.js +1 -1
  52. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  53. package/dist/cjs/tab-header.cjs.entry.js +46 -46
  54. package/dist/cjs/{utils-2ac2a528.js → utils-5245e89c.js} +79 -79
  55. package/dist/collection/collection-manifest.json +1 -1
  56. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  57. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  58. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  59. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  60. package/dist/collection/components/icon-asset/media/designer.svg +379 -379
  61. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  62. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  63. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  64. package/dist/collection/components/list-item/list-item.js +107 -107
  65. package/dist/collection/components/my-component/my-component.css +3 -3
  66. package/dist/collection/components/my-component/my-component.js +82 -82
  67. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
  68. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
  69. package/dist/collection/components/ptc-announcement/ptc-announcement.css +9 -1
  70. package/dist/collection/components/ptc-announcement/ptc-announcement.js +239 -239
  71. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +22 -22
  72. package/dist/collection/components/ptc-button/ptc-button.css +4 -4
  73. package/dist/collection/components/ptc-button/ptc-button.js +264 -264
  74. package/dist/collection/components/ptc-card/ptc-card.js +312 -312
  75. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +25 -0
  76. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -114
  77. package/dist/collection/components/ptc-card-content/ptc-card-content.css +57 -0
  78. package/dist/collection/components/ptc-card-content/ptc-card-content.js +137 -118
  79. package/dist/collection/components/{ptc-card-plm/ptc-card-plm.css → ptc-card-wrapper/ptc-card-wrapper.css} +27 -0
  80. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +151 -0
  81. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +118 -118
  82. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +570 -570
  83. package/dist/collection/components/ptc-container/ptc-container.js +120 -120
  84. package/dist/collection/components/ptc-date/ptc-date.js +190 -190
  85. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  86. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  87. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +183 -183
  88. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
  89. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  90. package/dist/collection/components/ptc-hero/ptc-hero.css +12 -0
  91. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -67
  92. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  93. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +126 -126
  94. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +87 -87
  95. package/dist/collection/components/ptc-img/ptc-img.js +296 -296
  96. package/dist/collection/components/ptc-link/ptc-link.css +36 -0
  97. package/dist/collection/components/ptc-link/ptc-link.js +203 -184
  98. package/dist/collection/components/ptc-list/ptc-list.js +100 -100
  99. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  100. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
  101. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
  102. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
  103. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -209
  104. package/dist/collection/components/ptc-modal/ptc-modal.js +347 -341
  105. package/dist/collection/components/ptc-overlay/ptc-overlay.css +4 -0
  106. package/dist/collection/components/ptc-overlay/ptc-overlay.js +105 -105
  107. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +322 -322
  108. package/dist/collection/components/ptc-para/ptc-para.css +37 -0
  109. package/dist/collection/components/ptc-para/ptc-para.js +232 -186
  110. package/dist/collection/components/ptc-picture/ptc-picture.js +452 -452
  111. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +60 -60
  112. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +49 -49
  113. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  114. package/dist/collection/components/ptc-readmore/ptc-readmore.js +129 -129
  115. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  116. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  117. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  118. package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
  119. package/dist/collection/components/ptc-spacer/ptc-spacer.css +322 -322
  120. package/dist/collection/components/ptc-spacer/ptc-spacer.js +96 -96
  121. package/dist/collection/components/ptc-span/ptc-span.js +87 -87
  122. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  123. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +72 -72
  124. package/dist/collection/components/ptc-tab-list/ptc-tab-list.css +2 -2
  125. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +155 -155
  126. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +7 -1
  127. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +123 -123
  128. package/dist/collection/components/ptc-title/ptc-title.js +291 -291
  129. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +153 -163
  130. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  131. package/dist/collection/components/tab-content/tab-content.js +84 -84
  132. package/dist/collection/components/tab-header/tab-header.css +1 -0
  133. package/dist/collection/components/tab-header/tab-header.js +136 -136
  134. package/dist/collection/index.js +1 -1
  135. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  136. package/dist/collection/media/svg-imgs/close.svg +10 -10
  137. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  138. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  139. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  140. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  141. package/dist/collection/media/svg-imgs/union.svg +3 -3
  142. package/dist/collection/utils/component.js +3 -3
  143. package/dist/collection/utils/interfaces.js +11 -11
  144. package/dist/collection/utils/utils.js +81 -81
  145. package/dist/custom-elements/index.d.ts +4 -4
  146. package/dist/custom-elements/index.js +3226 -3195
  147. package/dist/esm/dropdown-item.entry.js +10 -10
  148. package/dist/esm/icon-asset.entry.js +42 -42
  149. package/dist/esm/list-item.entry.js +19 -19
  150. package/dist/esm/loader.js +1 -1
  151. package/dist/esm/lottie-player.entry.js +354 -354
  152. package/dist/esm/my-component.entry.js +15 -15
  153. package/dist/esm/polyfills/core-js.js +0 -0
  154. package/dist/esm/polyfills/dom.js +0 -0
  155. package/dist/esm/polyfills/es5-html-element.js +0 -0
  156. package/dist/esm/polyfills/index.js +0 -0
  157. package/dist/esm/polyfills/system.js +0 -0
  158. package/dist/esm/ptc-accordion-item.entry.js +83 -83
  159. package/dist/esm/ptc-accordion.entry.js +35 -35
  160. package/dist/esm/ptc-announcement.entry.js +52 -52
  161. package/dist/esm/ptc-breadcrumb.entry.js +12 -12
  162. package/dist/esm/ptc-button.entry.js +35 -35
  163. package/dist/esm/ptc-card-bottom.entry.js +36 -34
  164. package/dist/esm/ptc-card-content.entry.js +40 -38
  165. package/dist/esm/ptc-card-wrapper.entry.js +42 -0
  166. package/dist/esm/ptc-card_6.entry.js +439 -427
  167. package/dist/esm/ptc-checkbox.entry.js +33 -33
  168. package/dist/esm/ptc-collapse-list.entry.js +346 -346
  169. package/dist/esm/ptc-container.entry.js +32 -32
  170. package/dist/esm/ptc-dropdown.entry.js +64 -64
  171. package/dist/esm/ptc-dynamic-card.entry.js +47 -47
  172. package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
  173. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  174. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  175. package/dist/esm/ptc-hero.entry.js +19 -17
  176. package/dist/esm/ptc-icon-list.entry.js +20 -20
  177. package/dist/esm/ptc-icon-minimize.entry.js +36 -36
  178. package/dist/esm/ptc-link.entry.js +29 -27
  179. package/dist/esm/ptc-list.entry.js +50 -50
  180. package/dist/esm/ptc-lottie.entry.js +10 -10
  181. package/dist/esm/ptc-minimized-footer.entry.js +8 -8
  182. package/dist/esm/ptc-minimized-header.entry.js +11 -11
  183. package/dist/esm/ptc-mobile-select.entry.js +53 -54
  184. package/dist/esm/ptc-modal.entry.js +143 -137
  185. package/dist/esm/ptc-overlay.entry.js +21 -21
  186. package/dist/esm/ptc-pagenation.entry.js +105 -105
  187. package/dist/esm/ptc-previous-url.entry.js +10 -10
  188. package/dist/esm/ptc-pricing-block.entry.js +16 -16
  189. package/dist/esm/ptc-quote.entry.js +23 -23
  190. package/dist/esm/ptc-readmore_2.entry.js +59 -69
  191. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  192. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  193. package/dist/esm/ptc-social-share.entry.js +59 -59
  194. package/dist/esm/ptc-span.entry.js +18 -18
  195. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  196. package/dist/esm/ptc-svg-btn.entry.js +73 -73
  197. package/dist/esm/ptc-tab-list.entry.js +125 -125
  198. package/dist/esm/ptc-text-copy-with-background.entry.js +21 -21
  199. package/dist/esm/ptc-title.entry.js +65 -65
  200. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  201. package/dist/esm/ptcw-design.js +1 -1
  202. package/dist/esm/tab-content.entry.js +27 -27
  203. package/dist/esm/tab-header.entry.js +46 -46
  204. package/dist/esm/{utils-2dbb41dc.js → utils-646cc62f.js} +79 -79
  205. package/dist/ptcw-design/media/brands.svg +1381 -1381
  206. package/dist/ptcw-design/media/designer.svg +379 -379
  207. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  208. package/dist/ptcw-design/media/regular.svg +463 -463
  209. package/dist/ptcw-design/media/solid.svg +3013 -3013
  210. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  211. package/dist/ptcw-design/{p-9fc7f308.entry.js → p-0aa91ac2.entry.js} +1 -1
  212. package/dist/ptcw-design/{p-b701bbc0.entry.js → p-14d6a40c.entry.js} +1 -1
  213. package/dist/ptcw-design/p-1b0d15aa.entry.js +1 -0
  214. package/dist/ptcw-design/p-2aeb4687.entry.js +1 -0
  215. package/dist/ptcw-design/p-2ca0340b.entry.js +1 -0
  216. package/dist/ptcw-design/{p-5005c698.entry.js → p-482a8bc9.entry.js} +1 -1
  217. package/dist/ptcw-design/p-557e8e2a.entry.js +1 -0
  218. package/dist/ptcw-design/{p-3db835e4.entry.js → p-5f782173.entry.js} +1 -1
  219. package/dist/ptcw-design/{p-6b1fdce6.entry.js → p-67af0abd.entry.js} +1 -1
  220. package/dist/ptcw-design/p-7ddea860.entry.js +1 -0
  221. package/dist/ptcw-design/{p-c9a71b4c.entry.js → p-82472007.entry.js} +1 -1
  222. package/dist/ptcw-design/{p-8b197833.entry.js → p-867c711f.entry.js} +1 -1
  223. package/dist/ptcw-design/p-88fc4011.entry.js +1 -0
  224. package/dist/ptcw-design/p-9b34acfa.entry.js +1 -0
  225. package/dist/ptcw-design/p-a14a99ce.entry.js +1 -0
  226. package/dist/ptcw-design/{p-d910c9d6.entry.js → p-c095d100.entry.js} +1 -1
  227. package/dist/ptcw-design/{p-e38a57ce.entry.js → p-f9694131.entry.js} +1 -1
  228. package/dist/ptcw-design/ptcw-design.css +1 -1
  229. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  230. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  231. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  232. package/dist/types/components/list-item/list-item.d.ts +8 -8
  233. package/dist/types/components/my-component/my-component.d.ts +16 -16
  234. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  235. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  236. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -51
  237. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
  238. package/dist/types/components/ptc-button/ptc-button.d.ts +56 -56
  239. package/dist/types/components/ptc-card/ptc-card.d.ts +62 -62
  240. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  241. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +16 -15
  242. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +18 -0
  243. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +11 -11
  244. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  245. package/dist/types/components/ptc-container/ptc-container.d.ts +12 -12
  246. package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
  247. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  248. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +24 -24
  249. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  250. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  251. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -12
  252. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  253. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  254. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +9 -9
  255. package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
  256. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -36
  257. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  258. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  259. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  260. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  261. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -40
  262. package/dist/types/components/ptc-modal/ptc-modal.d.ts +59 -59
  263. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +20 -20
  264. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +27 -27
  265. package/dist/types/components/ptc-para/ptc-para.d.ts +43 -34
  266. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  267. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -5
  268. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +5 -5
  269. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  270. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +27 -27
  271. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  272. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  273. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
  274. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  275. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  276. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  277. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +12 -12
  278. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +15 -15
  279. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +25 -25
  280. package/dist/types/components/ptc-title/ptc-title.d.ts +50 -50
  281. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +34 -34
  282. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  283. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  284. package/dist/types/components/tab-header/tab-header.d.ts +14 -14
  285. package/dist/types/components.d.ts +169 -59
  286. package/dist/types/global.d.ts +1072 -1072
  287. package/dist/types/index.d.ts +1 -1
  288. package/dist/types/utils/component.d.ts +1 -1
  289. package/dist/types/utils/interfaces.d.ts +31 -31
  290. package/dist/types/utils/utils.d.ts +4 -4
  291. package/package.json +61 -61
  292. package/readme.md +11 -11
  293. package/dist/cjs/ptc-card-plm.cjs.entry.js +0 -30
  294. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +0 -104
  295. package/dist/esm/ptc-card-plm.entry.js +0 -26
  296. package/dist/ptcw-design/p-1e80c01f.entry.js +0 -1
  297. package/dist/ptcw-design/p-311bbf66.entry.js +0 -1
  298. package/dist/ptcw-design/p-4de70656.entry.js +0 -1
  299. package/dist/ptcw-design/p-5105d9e5.entry.js +0 -1
  300. package/dist/ptcw-design/p-5dbf98a9.entry.js +0 -1
  301. package/dist/ptcw-design/p-9311ee3f.entry.js +0 -1
  302. package/dist/ptcw-design/p-a0f25c98.entry.js +0 -1
  303. package/dist/ptcw-design/p-a4900673.entry.js +0 -1
  304. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +0 -8
  305. /package/dist/ptcw-design/{p-5e98555a.js → p-e121ff2a.js} +0 -0
@@ -6,454 +6,466 @@ const index = require('./index-8745a0a3.js');
6
6
 
7
7
  const ptcCardCss = ":host{display:block}:host(.lottie-card) .card-border{box-shadow:var(--ptc-shadow-small);border:1px solid var(--color-gray-03);border-radius:10px;position:relative;overflow:hidden}:host(.lottie-card) .card-border::after{content:\"\";height:40%;width:4px;position:absolute;top:30%;right:-2px;background-color:var(--color-green-06);z-index:2;display:block}:host(.lottie-card) .card-border:hover{box-shadow:var(--ptc-shadow-x-large)}:host(.lottie-card) .card-border:hover .card-body h3{border-bottom:2px solid var(--color-green-07)}:host(.lottie-card) .card-layout{display:block}@media only screen and (min-width: 768px){:host(.lottie-card) .card-layout{display:flex;flex-flow:nowrap row;justify-content:center}}:host(.lottie-card) .link-wrapper{outline:none;text-decoration:none}:host(.lottie-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.lottie-card) .card-media{flex-basis:40%;border-right:1px solid var(--color-gray-03);display:flex}:host(.lottie-card) .card-body{flex-basis:60%;align-self:center;padding:0 30px 10px}:host(.lottie-card) .card-body h3{display:inline-block;line-height:var(--ptc-line-height-densest);color:var(--color-gray-10);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);border-bottom:2px solid transparent;margin-bottom:var(--ptc-element-spacing-02)}:host(.simple-card) .card-layout{display:block}:host(.simple-card) .link-wrapper{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover .card-body h3::before{width:100%}:host(.simple-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){margin-left:var(--ptc-element-spacing-04)}:host(.simple-card) .card-body h3{color:var(--color-gray-10);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-black);line-height:var(--ptc-line-height-dense);position:relative;margin-bottom:var(--ptc-element-spacing-02);display:inline-block}:host(.simple-card) .card-body h3::before{display:block;position:absolute;content:\"\";width:var(--ptc-element-spacing-07);border-bottom:2px solid var(--color-green-06);bottom:1px;transition:width var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.simple-card) ::slotted([slot=slot-after-heading]){margin-left:var(--ptc-element-spacing-01);transition:margin-left var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) .card-border{overflow:hidden;filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 3px 6px);width:100%}:host(.clip-edge-card) .card-border:hover{filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 6px 12px)}:host(.clip-edge-card) .card-layout{display:block}:host(.clip-edge-card) .link-wrapper{outline:none;text-decoration:none}:host(.clip-edge-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.clip-edge-card) .card-media{position:relative;width:100%;height:124px;overflow:hidden;border-radius:var(--ptc-border-radius-standard)}:host(.clip-edge-card) .card-body{transform:translateY(calc((-1) * var(--ptc-element-spacing-04)));overflow:hidden;width:calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-04));font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10);clip-path:var(--ptc-clip-path-bottom-right);background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard);padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-03) var(--ptc-element-spacing-04)}:host(.clip-edge-card) .card-body h3{display:inline-block;margin:0px;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10);text-decoration:none;border-bottom:2px solid transparent;transition:border-bottom var(--ptc-transition-medium) var(--ptc-ease-inout), margin var(--ptc-transition-medium) var(--ptc-ease-inout);margin:var(--ptc-element-spacing-03) 0 var(--ptc-element-spacing-03) 0}:host(.clip-edge-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-ease-inout), opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) ::slotted([slot=slot-image]){display:block;width:100%;height:100%;transform:scale(1);transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);transform-origin:top center}:host(.clip-edge-card) ::slotted([slot=slot-after-heading]){position:absolute;top:var(--ptc-element-spacing-03);left:var(--ptc-element-spacing-04);opacity:1;transform:scale(1);height:44px;transform-origin:bottom center;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) ::slotted([slot=slot-before-heading]){display:block;opacity:0;height:24px;transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) .link-wrapper:hover .card-body h3{border-bottom:2px solid var(--color-green-06)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:60px;opacity:1}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-image]){transform:scale(1.1)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){opacity:0;transform:scale(0);height:0}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-before-heading]){opacity:1}:host(.hightlight-card) .card-border{width:100%;border-radius:var(--ptc-border-radius-standard);overflow:hidden}:host(.hightlight-card) .card-border:hover .card-media{transform:scale(1.1)}:host(.hightlight-card) .card-layout{display:block;position:relative}:host(.hightlight-card) .link-wrapper{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:96px;opacity:1}@media only screen and (min-width: 768px){:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 992px){:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-06)}}@media only screen and (min-width: 1440px){:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-05)}}:host(.hightlight-card) .card-media{width:100%;height:auto;min-height:450px;position:relative;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);transition-delay:var(--ptc-delay-5)}:host(.hightlight-card) .card-body{position:absolute;bottom:0;top:auto;left:0;right:auto;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-07);background-color:var(--color-white);box-sizing:border-box}:host(.hightlight-card) .card-body h3{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-bold);color:var(--color-gray-10);margin:var(--ptc-element-spacing-04) 0}:host(.hightlight-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-ease-inout), opacity var(--ptc-transition-fast) var(--ptc-ease-inout);transition-delay:var(--ptc-delay-5)}:host(.horizontal-card){margin-bottom:var(--ptc-layout-spacing-02)}:host(.horizontal-card) .card-layout{position:relative}@media only screen and (min-width: 768px){:host(.horizontal-card) .card-layout{display:grid;grid-template-columns:42% 58%;direction:ltr;grid-auto-rows:1fr}}:host(.horizontal-card) .link-wrapper{outline:none;text-decoration:none;transition:var(--ptc-transition-slow) linear}:host(.horizontal-card) .link-wrapper:hover{box-shadow:var(--ptc-shadow-large);transition:var(--ptc-transition-slow) linear;background-color:var(--color-white)}:host(.horizontal-card) .link-wrapper:hover h3{border-color:var(--color-green-06);transition:var(--ptc-transition-slow) linear}:host(.horizontal-card) .card-media{display:flex;align-self:center}:host(.horizontal-card) .card-body{padding:var(--ptc-element-spacing-05) var(--ptc-element-spacing-04)}@media only screen and (min-width: 768px){:host(.horizontal-card) .card-body{padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-07)}}:host(.horizontal-card) .card-body h3{margin-top:0;font-size:var(--ptc-font-size-x-small);color:var(--color-gray-10);border-bottom:1px solid transparent;padding-bottom:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-02);transition:var(--ptc-transition-slow) linear}:host(.horizontal-card) ::slotted([slot=slot-image]){box-shadow:var(--ptc-shadow-medium);width:100%}:host(.listing-card) .card-border{width:325px;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:487px;display:flex;flex-direction:row;margin-bottom:0.5rem}:host(.listing-card) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.listing-card) .card-border:hover .card-media{background:var(--color-white)}:host(.listing-card) .card-border:hover .card-media .smart-img{background:var(--color-white)}@media (min-width: 480px){:host(.listing-card) .card-border{width:432px;height:487px}}@media (min-width: 768px){:host(.listing-card) .card-border{margin-left:4px;margin-right:4px;width:348px;height:456px}}@media (min-width: 992px){:host(.listing-card) .card-border{width:288px;height:440px}}@media (min-width: 1200px){:host(.listing-card) .card-border{width:260px;height:420px}}@media (min-width: 1440px){:host(.listing-card) .card-border{width:260px;height:420px}}:host(.listing-card) .card-layout{display:block;position:relative;width:100%;height:100%}:host(.listing-card) .link-wrapper{outline:none;text-decoration:none}:host(.listing-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.listing-card) .card-media{width:100%;height:288px;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}:host(.listing-card) .card-media .smart-img{height:288px}@media (min-width: 768px){:host(.listing-card) .card-media .smart-img{height:232px}}@media (min-width: 992px){:host(.listing-card) .card-media .smart-img{height:192px}}@media (min-width: 1200px){:host(.listing-card) .card-media .smart-img{height:170px}}@media (min-width: 768px){:host(.listing-card) .card-media{height:232px}}@media (min-width: 992px){:host(.listing-card) .card-media{height:192px}}@media (min-width: 1200px){:host(.listing-card) .card-media{height:170px}}:host(.listing-card) .card-body{padding:16px 20px 0px 20px}:host(.listing-card) .card-body .card-date-text{display:flex;flex-direction:row}:host(.listing-card) .card-body .card-date-text p{font-size:var(--ptc-font-size-xx-small);font-weight:400;line-height:19px;color:#282F35;margin-bottom:16px;display:inline-block;margin-top:0rem}:host(.listing-card) .card-body .small{font-size:var(--ptc-font-size-x-small);font-weight:400;line-height:19px;color:#282F35;margin-bottom:16px;display:inline-block}:host(.listing-card) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);line-height:21px;color:var(--color-gray-11);margin-bottom:14px;margin-top:0rem}:host(.listing-card) ::slotted([slot=slot-date]){font-weight:400;font-size:16px;line-height:19px;color:#282F35;margin-bottom:16px;display:inline-block}:host(.listing-card) ::slotted([slot=slot-description]){font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:400;font-size:1rem;line-height:19px;color:var(--color-gray-11);margin-bottom:39px}:host(.listing-card-horizontal) .card-border{width:325px;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:220px}:host(.listing-card-horizontal) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.listing-card-horizontal) .card-border:hover .card-media{background:var(--color-white)}:host(.listing-card-horizontal) .card-border:hover .card-media .smart-img{background:var(--color-white)}@media (min-width: 480px){:host(.listing-card-horizontal) .card-border{width:432px;height:178px}}@media (min-width: 768px){:host(.listing-card-horizontal) .card-border{width:704px;height:184px}}@media (min-width: 992px){:host(.listing-card-horizontal) .card-border{width:688px;height:166px}}@media (min-width: 1200px){:host(.listing-card-horizontal) .card-border{width:779px;height:170px}}:host(.listing-card-horizontal) .card-layout{display:flex;flex-direction:row;width:325px;height:220px}@media (min-width: 480px){:host(.listing-card-horizontal) .card-layout{width:432px;height:178px}}@media (min-width: 768px){:host(.listing-card-horizontal) .card-layout{width:704px;height:184px}}@media (min-width: 992px){:host(.listing-card-horizontal) .card-layout{width:688px;height:166px}}@media (min-width: 1200px){:host(.listing-card-horizontal) .card-layout{width:779px;height:170px}}:host(.listing-card-horizontal) .link-wrapper{outline:none;text-decoration:none}:host(.listing-card-horizontal) .link-wrapper:hover{outline:none;text-decoration:none}:host(.listing-card-horizontal) .card-media{width:325px;height:224px;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium);display:none}:host(.listing-card-horizontal) .card-media .smart-img{height:224px;width:325px}@media (min-width: 768px){:host(.listing-card-horizontal) .card-media .smart-img{width:275px;height:184px}}@media (min-width: 992px){:host(.listing-card-horizontal) .card-media .smart-img{width:224px;height:166px}}@media (min-width: 1200px){:host(.listing-card-horizontal) .card-media .smart-img{width:260px;height:170px}}@media (min-width: 768px){:host(.listing-card-horizontal) .card-media{display:block;width:275px;height:184px}}@media (min-width: 992px){:host(.listing-card-horizontal) .card-media{width:224px;height:166px}}@media (min-width: 1200px){:host(.listing-card-horizontal) .card-media{width:260px;height:170px}}:host(.listing-card-horizontal) .card-body{padding:16px 24px 0px 24px}@media only screen and (min-width: 768px){:host(.listing-card-horizontal) .card-body{width:505px}}@media only screen and (min-width: 1440px){:host(.listing-card-horizontal) .card-body{padding:24px 38px 0px 31px}}:host(.listing-card-horizontal) .card-body .card-date-text{display:flex;flex-direction:row}:host(.listing-card-horizontal) .card-body .card-date-text p{font-size:var(--ptc-font-size-xx-small);font-weight:400;line-height:19px;color:#282F35;margin-bottom:12px;display:inline-block;margin-top:0rem;margin-block-start:0rem}@media only screen and (min-width: 1200px){:host(.listing-card-horizontal) .card-body .card-date-text p{margin-bottom:20px}}@media only screen and (min-width: 1440px){:host(.listing-card-horizontal) .card-body .card-date-text p{margin-bottom:24px}}@media only screen and (min-width: 1600px){:host(.listing-card-horizontal) .card-body .card-date-text p{margin-bottom:32px}}:host(.listing-card-horizontal) .card-body .small{font-weight:400;font-size:16px;line-height:19px;color:#282F35;margin-bottom:12px;display:inline-block}@media (min-width: 992px){:host(.listing-card-horizontal) .card-body .small{margin-bottom:4px}}@media (min-width: 1200px){:host(.listing-card-horizontal) .card-body .small{margin-bottom:8px}}:host(.listing-card-horizontal) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:19px;color:var(--color-gray-11);margin-bottom:8px;margin-top:0rem}@media (min-width: 768px){:host(.listing-card-horizontal) .card-body h3{margin-bottom:16px}}@media (min-width: 992px){:host(.listing-card-horizontal) .card-body h3{margin-bottom:12px}}@media (min-width: 1200px){:host(.listing-card-horizontal) .card-body h3{margin-bottom:16px}}@media only screen and (min-width: 768px){:host(.listing-card-horizontal) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);line-height:21px;color:var(--color-gray-11);margin-bottom:8px;margin-top:0rem}}:host(.listing-card-horizontal) ::slotted([slot=slot-description]){font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:400;font-size:1rem;line-height:19px;color:var(--color-gray-11);margin-bottom:19px;margin-top:0rem;margin-block-start:0rem}:host(.listing-card-horizontal) ::slotted([slot=slot-description]) p{margin-block-start:0rem}@media only screen and (min-width: 768px){:host(.listing-card-horizontal) ::slotted([slot=slot-description]){font-weight:400;font-size:14px;line-height:16px}}:host(.resource-center-card) .card-border{width:325px;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:442px;display:flex;flex-direction:row;margin-bottom:1rem}:host(.resource-center-card) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.resource-center-card) .card-border:hover .card-media{background:var(--color-white)}:host(.resource-center-card) .card-border:hover .card-media .smart-img{background:var(--color-white)}@media (min-width: 480px){:host(.resource-center-card) .card-border{width:433px;height:442px}}@media (min-width: 768px){:host(.resource-center-card) .card-border{width:336px;height:396px}}@media (min-width: 992px){:host(.resource-center-card) .card-border{width:287px;height:396px}}@media (min-width: 1200px){:host(.resource-center-card) .card-border{width:260px;height:396px}}@media (min-width: 1440px){:host(.resource-center-card) .card-border{width:260px;height:396px}}@media only screen and (min-width: 768px){:host(.resource-center-card) .card-border{margin-left:4px;margin-right:4px}}:host(.resource-center-card) .card-layout{display:block;position:relative}:host(.resource-center-card) .card-layout .ribbon-text{position:absolute;top:0;left:0;margin-right:100px;margin-top:24px;background-color:var(--color-white);padding:4px 24px;max-width:80%;font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);color:var(--color-gray-11);border-radius:0px 3px 3px 0px;box-shadow:var(--ptc-shadow-small)}:host(.resource-center-card) .link-wrapper{outline:none;text-decoration:none}:host(.resource-center-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.resource-center-card) .card-media{width:100%;height:250px;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}:host(.resource-center-card) .card-media .smart-img{height:250px}@media (min-width: 480px){:host(.resource-center-card) .card-media .smart-img{height:285px}}@media (min-width: 768px){:host(.resource-center-card) .card-media .smart-img{height:221px}}@media (min-width: 992px){:host(.resource-center-card) .card-media .smart-img{height:189px}}@media (min-width: 1200px){:host(.resource-center-card) .card-media .smart-img{height:173px}}@media (min-width: 1440px){:host(.resource-center-card) .card-media .smart-img{height:173px}}@media (min-width: 480px){:host(.resource-center-card) .card-media{height:285px}}@media (min-width: 768px){:host(.resource-center-card) .card-media{height:221px}}@media (min-width: 992px){:host(.resource-center-card) .card-media{height:189px}}@media (min-width: 1200px){:host(.resource-center-card) .card-media{height:173px}}@media (min-width: 1440px){:host(.resource-center-card) .card-media{height:173px}}:host(.resource-center-card) .card-body{padding:14px 20px 0px 20px}:host(.resource-center-card) .card-body .small{font-size:var(--ptc-font-size-x-small);font-weight:400;line-height:19px;color:#282F35;margin-bottom:24px;display:inline-block}:host(.resource-center-card) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);line-height:21px;color:var(--color-gray-11);margin-bottom:12px;margin-top:0rem}:host(.resource-center-card) ::slotted([slot=slot-description]){font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:400;font-size:1rem;line-height:19px;color:var(--color-gray-11);margin-bottom:39px}:host(.case-studies-card) .card-border{width:320px;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:447px;display:flex;flex-direction:row;margin-bottom:1rem}:host(.case-studies-card) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.case-studies-card) .card-border:hover .card-media{background:var(--color-white)}:host(.case-studies-card) .card-border:hover .card-media .smart-img{background:var(--color-white)}@media (min-width: 480px){:host(.case-studies-card) .card-border{width:431px;height:536px}}@media (min-width: 768px){:host(.case-studies-card) .card-border{width:335px;height:452px}}@media (min-width: 992px){:host(.case-studies-card) .card-border{width:288px;height:452px}}@media (min-width: 1200px){:host(.case-studies-card) .card-border{width:260px;height:452px}}@media (min-width: 1440px){:host(.case-studies-card) .card-border{width:260px;height:452px}}@media only screen and (min-width: 768px){:host(.case-studies-card) .card-border{margin-left:4px;margin-right:4px}}:host(.case-studies-card) .card-layout{display:block;position:relative}:host(.case-studies-card) .link-wrapper{outline:none;text-decoration:none}:host(.case-studies-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.case-studies-card) .card-media{width:100%;height:200px;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}:host(.case-studies-card) .card-media .smart-img{width:100%;height:200px}@media (min-width: 480px){:host(.case-studies-card) .card-media .smart-img{height:286px}}@media (min-width: 768px){:host(.case-studies-card) .card-media .smart-img{height:224px}}@media (min-width: 992px){:host(.case-studies-card) .card-media .smart-img{height:192px}}@media (min-width: 1200px){:host(.case-studies-card) .card-media .smart-img{height:173px}}@media (min-width: 1440px){:host(.case-studies-card) .card-media .smart-img{height:170px}}@media (min-width: 480px){:host(.case-studies-card) .card-media{height:286px}}@media (min-width: 768px){:host(.case-studies-card) .card-media{height:224px}}@media (min-width: 992px){:host(.case-studies-card) .card-media{height:192px}}@media (min-width: 1200px){:host(.case-studies-card) .card-media{height:173px}}@media (min-width: 1440px){:host(.case-studies-card) .card-media{height:170px}}:host(.case-studies-card) .card-body .card-logo-container{padding:8px 20px;border-bottom:1px solid #E4E7E9}:host(.case-studies-card) .card-body .card-logo-none{padding-top:16px}:host(.case-studies-card) .card-body .card-logo{max-width:280px;width:auto;height:40px;object-fit:cover;border:1px solid #E4E7E9;margin-bottom:8px}:host(.case-studies-card) .card-body .small{font-size:var(--ptc-font-size-x-small);font-weight:400;line-height:19px;color:#282F35;margin-bottom:24px;display:inline-block}:host(.case-studies-card) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);line-height:21px;color:var(--color-gray-11);margin:8px 20px 12px 20px}:host(.case-studies-card) ::slotted([slot=slot-date]){font-weight:400;font-size:16px;line-height:19px;color:#282F35;margin-bottom:24px;display:inline-block}:host(.case-studies-card) ::slotted([slot=slot-description]){font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:400;font-size:1rem;line-height:19px;color:var(--color-gray-11);margin:0px 20px 39px 20px}.ptc-h3.uppercase{text-transform:uppercase}.ptc-h3.capitalize{text-transform:capitalize}.ptc-h3.lowercase{text-transform:lowercase}.ptc-h3.none{text-transform:none}";
8
8
 
9
- const PtcCard = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.cardType = 'custom-card';
13
- this.cardHref = undefined;
14
- this.target = '_self';
15
- this.rel = undefined;
16
- this.hasImage = false;
17
- this.hasVideo = false;
18
- this.hasLottie = false;
19
- this.heading = undefined;
20
- this.headingTransform = 'none';
21
- this.cardDate = undefined;
22
- this.styles = undefined;
23
- this.ribbonText = undefined;
24
- this.eventType = undefined;
25
- this.cardLogo = undefined;
26
- }
27
- render() {
28
- const Tag = !!this.cardHref ? 'a' : 'div';
29
- const classMap = this.getCssClassMap();
30
- return (index.h(index.Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), this.styles && index.h("style", null, this.styles), index.h("div", { class: "card-border", part: "border-wrapper" }, index.h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.ribbonText ? { rel: this.ribbonText } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? index.h("slot", { name: this.getMediaSlot() }) : null)) : null, !!this.ribbonText && this.cardType == 'resource-center-card' ? index.h("div", { class: "ribbon-text" }, `${this.ribbonText}`) : null, index.h("div", { class: "card-body", part: "body-wrapper" }, !!this.cardDate && (this.cardType === 'listing-card' || this.cardType === 'listing-card-horizontal') ?
31
- index.h("div", { class: "card-date-text" }, ...!!this.eventType ? index.h("span", { class: "small" }, `${this.cardDate}`, "\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A0", `${this.eventType}`) : index.h("span", { class: "small" }, `${this.cardDate}`)) : null, this.cardType === 'case-studies-card' ? Object.assign({}, !!this.cardLogo ? index.h("div", { class: "card-logo-container" }, index.h("ptc-picture", { alt: "", "object-fit": "cover", "max-width": "280", src: this.cardLogo, height: "40" })) : index.h("div", { class: "card-logo-none" })) : null, index.h("slot", { name: "slot-before-heading" }), !!this.heading
32
- ? [
33
- index.h("h3", { class: `ptc-h3 ${this.headingTransform}`, part: "card-heading" }, this.heading),
34
- index.h("slot", { name: "slot-after-heading" }),
35
- ]
36
- : null, index.h("slot", { name: "slot-description" }), !!this.cardDate && this.cardType !== 'listing-card' && this.cardType !== 'listing-card-horizontal' && this.cardType !== 'hightlight-card' ? index.h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{color:#40434a;font-size:var(--ptc-font-size-x-small);margin-top:var(--ptc-element-spacing-06);display:inline-block;}" }) : null)))));
37
- }
38
- getCssClassMap() {
39
- return {
40
- ['card-layout']: true,
41
- ['link-wrapper']: !!this.cardType ? true : false,
42
- };
43
- }
44
- getMediaSlot() {
45
- if (this.hasLottie) {
46
- return 'slot-lottie';
47
- }
48
- else if (this.hasVideo) {
49
- return 'slot-video';
50
- }
51
- else if (this.hasImage) {
52
- return 'slot-image';
53
- }
54
- else {
55
- return null;
56
- }
57
- }
58
- };
9
+ const PtcCard = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.cardType = 'custom-card';
13
+ this.cardHref = undefined;
14
+ this.target = '_self';
15
+ this.rel = undefined;
16
+ this.hasImage = false;
17
+ this.hasVideo = false;
18
+ this.hasLottie = false;
19
+ this.heading = undefined;
20
+ this.headingTransform = 'none';
21
+ this.cardDate = undefined;
22
+ this.styles = undefined;
23
+ this.ribbonText = undefined;
24
+ this.eventType = undefined;
25
+ this.cardLogo = undefined;
26
+ }
27
+ render() {
28
+ const Tag = !!this.cardHref ? 'a' : 'div';
29
+ const classMap = this.getCssClassMap();
30
+ return (index.h(index.Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), this.styles && index.h("style", null, this.styles), index.h("div", { class: "card-border", part: "border-wrapper" }, index.h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.ribbonText ? { rel: this.ribbonText } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? index.h("slot", { name: this.getMediaSlot() }) : null)) : null, !!this.ribbonText && this.cardType == 'resource-center-card' ? index.h("div", { class: "ribbon-text" }, `${this.ribbonText}`) : null, index.h("div", { class: "card-body", part: "body-wrapper" }, !!this.cardDate && (this.cardType === 'listing-card' || this.cardType === 'listing-card-horizontal') ?
31
+ index.h("div", { class: "card-date-text" }, !!this.eventType ? index.h("span", { class: "small" }, `${this.cardDate}`, "\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A0", `${this.eventType}`) : index.h("span", { class: "small" }, `${this.cardDate}`)) : null, this.cardType === 'case-studies-card' ? Object.assign({}, !!this.cardLogo ? index.h("div", { class: "card-logo-container" }, index.h("ptc-picture", { alt: "", "object-fit": "cover", "max-width": "280", src: this.cardLogo, height: "40" })) : index.h("div", { class: "card-logo-none" })) : null, index.h("slot", { name: "slot-before-heading" }), !!this.heading
32
+ ? [
33
+ index.h("h3", { class: `ptc-h3 ${this.headingTransform}`, part: "card-heading" }, this.heading),
34
+ index.h("slot", { name: "slot-after-heading" }),
35
+ ]
36
+ : null, index.h("slot", { name: "slot-description" }), !!this.cardDate && this.cardType !== 'listing-card' && this.cardType !== 'listing-card-horizontal' && this.cardType !== 'hightlight-card' ? (index.h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{color:#40434a;font-size:var(--ptc-font-size-x-small);margin-top:var(--ptc-element-spacing-06);display:inline-block;}" })) : null)))));
37
+ }
38
+ getCssClassMap() {
39
+ return {
40
+ ['card-layout']: true,
41
+ ['link-wrapper']: !!this.cardType ? true : false,
42
+ };
43
+ }
44
+ getMediaSlot() {
45
+ if (this.hasLottie) {
46
+ return 'slot-lottie';
47
+ }
48
+ else if (this.hasVideo) {
49
+ return 'slot-video';
50
+ }
51
+ else if (this.hasImage) {
52
+ return 'slot-image';
53
+ }
54
+ else {
55
+ return null;
56
+ }
57
+ }
58
+ };
59
59
  PtcCard.style = ptcCardCss;
60
60
 
61
61
  const ptcDateCss = ":host{display:block}:host(.small) span{font-size:var(--ptc-font-size-xx-small)}:host(.medium) span{font-size:var(--ptc-font-size-x-small)}:host(.primary-grey){color:var(--color-primary-gray-new)}:host(.white) span{color:var(--color-white)}:host(.date-m-top){margin-top:var(--ptc-element-spacing-01)}";
62
62
 
63
- const PtcDate = class {
64
- constructor(hostRef) {
65
- index.registerInstance(this, hostRef);
66
- this.year = 1900;
67
- this.month = 0;
68
- this.day = 1;
69
- this.country = 'en-US';
70
- this.dateString = undefined;
71
- this.dateColor = undefined;
72
- this.dateStyles = undefined;
73
- this.dataSize = 'small';
74
- }
75
- render() {
76
- // const newDate = new Date(this.year, this.month, this.day);
77
- const classMap = this.getCssClassMap();
78
- return (index.h(index.Host, { class: classMap }, this.dateStyles && index.h("style", null, this.dateStyles), index.h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
79
- }
80
- getCssClassMap() {
81
- return {
82
- [this.dateColor]: !!this.dateColor ? true : false,
83
- [this.dataSize]: !!this.dataSize ? true : false,
84
- };
85
- }
86
- getDate() {
87
- if (this.dateString) {
88
- let newDate = new Date(this.dateString.replace(/-/g, '/'));
89
- return newDate;
90
- }
91
- else {
92
- return new Date(this.year, this.month - 1, this.day);
93
- }
94
- }
95
- };
63
+ const PtcDate = class {
64
+ constructor(hostRef) {
65
+ index.registerInstance(this, hostRef);
66
+ this.year = 1900;
67
+ this.month = 0;
68
+ this.day = 1;
69
+ this.country = 'en-US';
70
+ this.dateString = undefined;
71
+ this.dateColor = undefined;
72
+ this.dateStyles = undefined;
73
+ this.dataSize = 'small';
74
+ }
75
+ render() {
76
+ // const newDate = new Date(this.year, this.month, this.day);
77
+ const classMap = this.getCssClassMap();
78
+ return (index.h(index.Host, { class: classMap }, this.dateStyles && index.h("style", null, this.dateStyles), index.h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
79
+ }
80
+ getCssClassMap() {
81
+ return {
82
+ [this.dateColor]: !!this.dateColor ? true : false,
83
+ [this.dataSize]: !!this.dataSize ? true : false,
84
+ };
85
+ }
86
+ getDate() {
87
+ if (this.dateString) {
88
+ let newDate = new Date(this.dateString.replace(/-/g, '/'));
89
+ return newDate;
90
+ }
91
+ else {
92
+ return new Date(this.year, this.month - 1, this.day);
93
+ }
94
+ }
95
+ };
96
96
  PtcDate.style = ptcDateCss;
97
97
 
98
- let ResponsiveBgVariables = {
99
- envs: ['xs', 'sm', 'md', 'lg'],
100
- selector: '.ptc-img',
101
- interval: 250
102
- };
103
- let ResponsivePictureVariables = {
104
- envs: ['xs', 'sm', 'md', 'lg'],
105
- selector: '.ptc-picture',
106
- interval: 250
98
+ let ResponsiveBgVariables = {
99
+ envs: ['xs', 'sm', 'md', 'lg'],
100
+ selector: '.ptc-img',
101
+ interval: 250
102
+ };
103
+ let ResponsivePictureVariables = {
104
+ envs: ['xs', 'sm', 'md', 'lg'],
105
+ selector: '.ptc-picture',
106
+ interval: 250
107
107
  };
108
108
 
109
109
  const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}";
110
110
 
111
- const PtcImg = class {
112
- constructor(hostRef) {
113
- index.registerInstance(this, hostRef);
114
- this.sizeXs = '510x340';
115
- this.sizeSm = '1240x496';
116
- this.sizeMd = '1366x500';
117
- this.sizeLg = '1920x1080';
118
- this.imgUrl = undefined;
119
- this.imageType = 'smart-bg';
120
- this.borderRadius = '';
121
- this.loadMode = 'lazy-bg';
122
- }
123
- /**
124
- * Image Z Index
125
- */
126
- // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
127
- WindowResize() {
128
- this.setResponsiveBg();
129
- }
130
- render() {
131
- const classMap = this.getCssClassMap();
132
- return (index.h(index.Host, null, index.h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? index.h("slot", null) : null)));
133
- }
134
- componentDidLoad() {
135
- this.addIntersectionObserver();
136
- this.setResponsiveBg();
137
- }
138
- componentWillUpdate() {
139
- // console.log('componentWillUpdate!');
140
- this.addIntersectionObserver();
141
- this.setResponsiveBg();
142
- }
143
- //responsive image
144
- setResponsiveBg() {
145
- // Define local variables
146
- let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
147
- // console.log('current breakpoint: ' + currentBreakpoint);
148
- // Loop through all target elements
149
- for (var i = 0, len = backgrounds.length; i < len; i++) {
150
- // Set current variables
151
- el = backgrounds[i];
152
- elData = el.getAttribute('data-' + currentBreakpoint);
153
- // If the data attribute exists, set the background
154
- if (elData !== null) {
155
- el.style.backgroundImage = "url('" + elData + "')";
156
- }
157
- else {
158
- if (typeof console == 'object') {
159
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
160
- }
161
- }
162
- }
163
- }
164
- //lazy loading
165
- addIntersectionObserver() {
166
- if (!this.imgUrl) {
167
- console.log('no image!');
168
- return;
169
- }
170
- if ('IntersectionObserver' in window) {
171
- let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
172
- let bgObserver = new IntersectionObserver(entries => {
173
- entries.forEach(entry => {
174
- if (entry.isIntersecting) {
175
- const image = entry.target;
176
- image.classList.remove('lazy-bg');
177
- // console.log('loaded');
178
- bgObserver.unobserve(image);
179
- }
180
- });
181
- });
182
- lazyLoadBgs.forEach(image => {
183
- bgObserver.observe(image);
184
- });
185
- }
186
- }
187
- getCssClassMap() {
188
- return {
189
- [this.imageType]: true,
190
- 'ptc-img': true,
191
- [this.borderRadius]: true,
192
- [this.loadMode]: true,
193
- // [this.imageZIndex] : true
194
- };
195
- }
196
- getCurrentBreakPoints() {
197
- // Define local variables
198
- let doc = window.document, temp = doc.createElement('div'), env;
199
- // Append test node
200
- doc.body.appendChild(temp);
201
- // Loop through breakpoints
202
- for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
203
- env = ResponsiveBgVariables.envs[i];
204
- // Add classes
205
- temp.className = 'hidden-' + env;
206
- // Found breakpoint
207
- if (temp.offsetParent === null) {
208
- // Remove our test node
209
- doc.body.removeChild(temp);
210
- // Return current breakpoint
211
- return env;
212
- }
213
- }
214
- // Breakpoint not found, try fallback
215
- doc.body.removeChild(temp);
216
- return this.getFallbackBreakpoint();
217
- }
218
- getFallbackBreakpoint() {
219
- if (window.matchMedia('(min-width: 992px)').matches) {
220
- return 'lg';
221
- }
222
- else if (window.matchMedia('(min-width: 768px)').matches) {
223
- return 'md';
224
- }
225
- else if (window.matchMedia('(min-width: 576px)').matches) {
226
- return 'sm';
227
- }
228
- else {
229
- return 'xs';
230
- }
231
- }
232
- get el() { return index.getElement(this); }
233
- };
111
+ const PtcImg = class {
112
+ constructor(hostRef) {
113
+ index.registerInstance(this, hostRef);
114
+ this.sizeXs = '510x340';
115
+ this.sizeSm = '1240x496';
116
+ this.sizeMd = '1366x500';
117
+ this.sizeLg = '1920x1080';
118
+ this.imgUrl = undefined;
119
+ this.imageType = 'smart-bg';
120
+ this.borderRadius = '';
121
+ this.loadMode = 'lazy-bg';
122
+ }
123
+ /**
124
+ * Image Z Index
125
+ */
126
+ // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
127
+ WindowResize() {
128
+ this.setResponsiveBg();
129
+ }
130
+ render() {
131
+ const classMap = this.getCssClassMap();
132
+ return (index.h(index.Host, null, index.h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? index.h("slot", null) : null)));
133
+ }
134
+ componentDidLoad() {
135
+ this.addIntersectionObserver();
136
+ this.setResponsiveBg();
137
+ }
138
+ componentWillUpdate() {
139
+ // console.log('componentWillUpdate!');
140
+ this.addIntersectionObserver();
141
+ this.setResponsiveBg();
142
+ }
143
+ //responsive image
144
+ setResponsiveBg() {
145
+ // Define local variables
146
+ let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
147
+ // console.log('current breakpoint: ' + currentBreakpoint);
148
+ // Loop through all target elements
149
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
150
+ // Set current variables
151
+ el = backgrounds[i];
152
+ elData = el.getAttribute('data-' + currentBreakpoint);
153
+ // If the data attribute exists, set the background
154
+ if (elData !== null) {
155
+ el.style.backgroundImage = "url('" + elData + "')";
156
+ }
157
+ else {
158
+ if (typeof console == 'object') {
159
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
160
+ }
161
+ }
162
+ }
163
+ }
164
+ //lazy loading
165
+ addIntersectionObserver() {
166
+ if (!this.imgUrl) {
167
+ console.log('no image!');
168
+ return;
169
+ }
170
+ if ('IntersectionObserver' in window) {
171
+ let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
172
+ let bgObserver = new IntersectionObserver(entries => {
173
+ entries.forEach(entry => {
174
+ if (entry.isIntersecting) {
175
+ const image = entry.target;
176
+ image.classList.remove('lazy-bg');
177
+ // console.log('loaded');
178
+ bgObserver.unobserve(image);
179
+ }
180
+ });
181
+ });
182
+ lazyLoadBgs.forEach(image => {
183
+ bgObserver.observe(image);
184
+ });
185
+ }
186
+ }
187
+ getCssClassMap() {
188
+ return {
189
+ [this.imageType]: true,
190
+ 'ptc-img': true,
191
+ [this.borderRadius]: true,
192
+ [this.loadMode]: true,
193
+ // [this.imageZIndex] : true
194
+ };
195
+ }
196
+ getCurrentBreakPoints() {
197
+ // Define local variables
198
+ let doc = window.document, temp = doc.createElement('div'), env;
199
+ // Append test node
200
+ doc.body.appendChild(temp);
201
+ // Loop through breakpoints
202
+ for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
203
+ env = ResponsiveBgVariables.envs[i];
204
+ // Add classes
205
+ temp.className = 'hidden-' + env;
206
+ // Found breakpoint
207
+ if (temp.offsetParent === null) {
208
+ // Remove our test node
209
+ doc.body.removeChild(temp);
210
+ // Return current breakpoint
211
+ return env;
212
+ }
213
+ }
214
+ // Breakpoint not found, try fallback
215
+ doc.body.removeChild(temp);
216
+ return this.getFallbackBreakpoint();
217
+ }
218
+ getFallbackBreakpoint() {
219
+ if (window.matchMedia('(min-width: 992px)').matches) {
220
+ return 'lg';
221
+ }
222
+ else if (window.matchMedia('(min-width: 768px)').matches) {
223
+ return 'md';
224
+ }
225
+ else if (window.matchMedia('(min-width: 576px)').matches) {
226
+ return 'sm';
227
+ }
228
+ else {
229
+ return 'xs';
230
+ }
231
+ }
232
+ get el() { return index.getElement(this); }
233
+ };
234
234
  PtcImg.style = ptcImgCss;
235
235
 
236
- const ptcParaCss = ":host{z-index:1}:host(.white){color:var(--color-white)}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
236
+ const ptcParaCss = ":host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
237
237
 
238
- const PtcPara = class {
239
- constructor(hostRef) {
240
- index.registerInstance(this, hostRef);
241
- this.fontSize = "x-small";
242
- this.fontWeight = 'w-4';
243
- this.paraStyle = 'default';
244
- this.paraColor = 'primary-grey';
245
- this.paraLineH = 'line-height-normal';
246
- this.paraMargin = undefined;
247
- this.ellipsisLineCutoff = undefined;
248
- }
249
- render() {
250
- const classMap = this.getCssClassMap();
251
- const colorClass = this.addWhiteClass();
252
- const cutOff = this.getLineCuttoff();
253
- return (index.h(index.Host, { class: colorClass }, index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
254
- }
255
- getCssClassMap() {
256
- return {
257
- [this.fontSize]: true,
258
- [this.fontWeight]: true,
259
- [this.paraStyle]: true,
260
- [this.paraMargin]: !!this.paraMargin ? true : false,
261
- [this.paraColor]: true,
262
- [this.paraLineH]: true,
263
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0
264
- };
265
- }
266
- //WEB-2392
267
- addWhiteClass() {
268
- if (this.paraColor == "white") {
269
- return {
270
- [this.paraColor]: true,
271
- };
272
- }
273
- }
274
- getLineCuttoff() {
275
- let result;
276
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
277
- result = {
278
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`
279
- };
280
- }
281
- return result;
282
- }
283
- };
238
+ const PtcPara = class {
239
+ constructor(hostRef) {
240
+ index.registerInstance(this, hostRef);
241
+ this.fontSize = 'x-small';
242
+ this.fontWeight = 'w-4';
243
+ this.paraStyle = 'default';
244
+ this.paraColor = 'primary-grey';
245
+ this.paraLineH = 'line-height-normal';
246
+ this.paraMargin = undefined;
247
+ this.paraAlign = undefined;
248
+ this.ellipsisLineCutoff = undefined;
249
+ this.paraZIndex = undefined;
250
+ }
251
+ // componentDidLoad(){
252
+ // const slotSelector = this.el.shadowRoot.querySelector('slot');
253
+ // const tooltipEle = slotSelector.getElementsByTagName('ptc-tooltip')[0];
254
+ // console.log('test: ' + tooltipEle);
255
+ // if(tooltipEle){
256
+ // tooltipEle.style.zIndex = '9';
257
+ // }
258
+ // }
259
+ render() {
260
+ const classMap = this.getCssClassMap();
261
+ const colorClass = this.addWhiteClass();
262
+ const cutOff = this.getLineCuttoff();
263
+ return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
264
+ }
265
+ getCssClassMap() {
266
+ return {
267
+ [this.fontSize]: true,
268
+ [this.fontWeight]: true,
269
+ [this.paraStyle]: true,
270
+ [this.paraMargin]: !!this.paraMargin ? true : false,
271
+ [this.paraColor]: true,
272
+ [this.paraLineH]: true,
273
+ [this.paraAlign]: !!this.paraAlign ? true : false,
274
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
275
+ };
276
+ }
277
+ //WEB-2392
278
+ addWhiteClass() {
279
+ if (this.paraColor == 'white') {
280
+ return {
281
+ [this.paraColor]: true,
282
+ };
283
+ }
284
+ }
285
+ getLineCuttoff() {
286
+ let result;
287
+ if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
288
+ result = {
289
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
290
+ };
291
+ }
292
+ return result;
293
+ }
294
+ get el() { return index.getElement(this); }
295
+ };
284
296
  PtcPara.style = ptcParaCss;
285
297
 
286
298
  const ptcPictureCss = ":host{display:block;overflow:hidden}:host img{display:block}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:absolute}img{max-width:100%}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";
287
299
 
288
- const PtcPicture = class {
289
- constructor(hostRef) {
290
- index.registerInstance(this, hostRef);
291
- this.src = undefined;
292
- this.alt = "image";
293
- this.sizeXs = '510x340';
294
- this.sizeSm = '1240x496';
295
- this.sizeMd = '1366x500';
296
- this.sizeLg = '1920x1080';
297
- this.oldSrc = undefined;
298
- this.imagePosition = 'static';
299
- this.borderRadius = undefined;
300
- this.height = undefined;
301
- this.width = undefined;
302
- this.objectFit = 'cover';
303
- this.isFullHeight = false;
304
- this.isFullWidth = false;
305
- this.styles = undefined;
306
- this.imageAlignment = 'left';
307
- this.maxWidth = undefined;
308
- }
309
- WindowResize() {
310
- this.addIntersectionObserver();
311
- }
312
- componentDidLoad() {
313
- this.addIntersectionObserver();
314
- }
315
- componentWillUpdate() {
316
- if (this.src !== this.oldSrc) {
317
- this.addIntersectionObserver();
318
- }
319
- this.oldSrc = this.src;
320
- }
321
- //lazy-loading
322
- addIntersectionObserver() {
323
- if (!this.src) {
324
- return;
325
- }
326
- if ('IntersectionObserver' in window) {
327
- let lazyLoadImages = new IntersectionObserver(entries => {
328
- entries.forEach(entry => {
329
- if (entry.isIntersecting) {
330
- const image = this.el.shadowRoot.querySelector('img');
331
- image.src = this.setResponsiveBg();
332
- console.log('loaded');
333
- lazyLoadImages.unobserve(image);
334
- }
335
- });
336
- });
337
- lazyLoadImages.observe(this.el.shadowRoot.querySelector('img'));
338
- }
339
- else {
340
- // fall back to setTimeout for Safari and IE
341
- setTimeout(() => {
342
- const image = this.el.shadowRoot.querySelector('img');
343
- image.src = this.setResponsiveBg();
344
- image.onload = () => {
345
- image.removeAttribute('data-src');
346
- console.log('loaded fallback');
347
- };
348
- }, 5000);
349
- }
350
- }
351
- //responsive image
352
- setResponsiveBg() {
353
- // Define local variables
354
- let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
355
- for (var i = 0, len = backgrounds.length; i < len; i++) {
356
- // Set current variables
357
- el = backgrounds[i];
358
- elData = el.getAttribute('data-' + currentBreakpoint);
359
- if (elData !== null) {
360
- // console.log('img src= ' + elData);
361
- return elData;
362
- }
363
- else {
364
- if (typeof console == 'object') {
365
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
366
- }
367
- }
368
- }
369
- }
370
- render() {
371
- const classMap = this.getCssClassMap();
372
- const classMapHost = this.getCssClassMapHost();
373
- return (index.h(index.Host, { class: classMapHost }, this.styles && index.h("style", null, this.styles), index.h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), index.h("slot", null)));
374
- }
375
- getCurrentBreakPoints() {
376
- // Define local variables
377
- let doc = window.document, temp = doc.createElement('div'), env;
378
- // Append test node
379
- doc.body.appendChild(temp);
380
- // Loop through breakpoints
381
- for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
382
- env = ResponsivePictureVariables.envs[i];
383
- // Add classes
384
- temp.className = 'hidden-' + env;
385
- // Found breakpoint
386
- if (temp.offsetParent === null) {
387
- // Remove our test node
388
- doc.body.removeChild(temp);
389
- // Return current breakpoint
390
- return env;
391
- }
392
- }
393
- // Breakpoint not found, try fallback
394
- doc.body.removeChild(temp);
395
- return this.getFallbackBreakpoint();
396
- }
397
- getFallbackBreakpoint() {
398
- if (window.matchMedia('(min-width: 992px)').matches) {
399
- return 'lg';
400
- }
401
- else if (window.matchMedia('(min-width: 768px)').matches) {
402
- return 'md';
403
- }
404
- else if (window.matchMedia('(min-width: 576px)').matches) {
405
- return 'sm';
406
- }
407
- else {
408
- return 'xs';
409
- }
410
- }
411
- getCssClassMap() {
412
- return {
413
- [this.borderRadius]: this.borderRadius ? true : false,
414
- [this.objectFit]: true,
415
- [this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
416
- [this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true
417
- };
418
- }
419
- getCssClassMapHost() {
420
- return {
421
- [this.imagePosition]: true,
422
- [this.imageAlignment]: true
423
- };
424
- }
425
- get el() { return index.getElement(this); }
426
- };
300
+ const PtcPicture = class {
301
+ constructor(hostRef) {
302
+ index.registerInstance(this, hostRef);
303
+ this.src = undefined;
304
+ this.alt = "image";
305
+ this.sizeXs = '510x340';
306
+ this.sizeSm = '1240x496';
307
+ this.sizeMd = '1366x500';
308
+ this.sizeLg = '1920x1080';
309
+ this.oldSrc = undefined;
310
+ this.imagePosition = 'static';
311
+ this.borderRadius = undefined;
312
+ this.height = undefined;
313
+ this.width = undefined;
314
+ this.objectFit = 'cover';
315
+ this.isFullHeight = false;
316
+ this.isFullWidth = false;
317
+ this.styles = undefined;
318
+ this.imageAlignment = 'left';
319
+ this.maxWidth = undefined;
320
+ }
321
+ WindowResize() {
322
+ this.addIntersectionObserver();
323
+ }
324
+ componentDidLoad() {
325
+ this.addIntersectionObserver();
326
+ }
327
+ componentWillUpdate() {
328
+ if (this.src !== this.oldSrc) {
329
+ this.addIntersectionObserver();
330
+ }
331
+ this.oldSrc = this.src;
332
+ }
333
+ //lazy-loading
334
+ addIntersectionObserver() {
335
+ if (!this.src) {
336
+ return;
337
+ }
338
+ if ('IntersectionObserver' in window) {
339
+ let lazyLoadImages = new IntersectionObserver(entries => {
340
+ entries.forEach(entry => {
341
+ if (entry.isIntersecting) {
342
+ const image = this.el.shadowRoot.querySelector('img');
343
+ image.src = this.setResponsiveBg();
344
+ console.log('loaded');
345
+ lazyLoadImages.unobserve(image);
346
+ }
347
+ });
348
+ });
349
+ lazyLoadImages.observe(this.el.shadowRoot.querySelector('img'));
350
+ }
351
+ else {
352
+ // fall back to setTimeout for Safari and IE
353
+ setTimeout(() => {
354
+ const image = this.el.shadowRoot.querySelector('img');
355
+ image.src = this.setResponsiveBg();
356
+ image.onload = () => {
357
+ image.removeAttribute('data-src');
358
+ console.log('loaded fallback');
359
+ };
360
+ }, 5000);
361
+ }
362
+ }
363
+ //responsive image
364
+ setResponsiveBg() {
365
+ // Define local variables
366
+ let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
367
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
368
+ // Set current variables
369
+ el = backgrounds[i];
370
+ elData = el.getAttribute('data-' + currentBreakpoint);
371
+ if (elData !== null) {
372
+ // console.log('img src= ' + elData);
373
+ return elData;
374
+ }
375
+ else {
376
+ if (typeof console == 'object') {
377
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
378
+ }
379
+ }
380
+ }
381
+ }
382
+ render() {
383
+ const classMap = this.getCssClassMap();
384
+ const classMapHost = this.getCssClassMapHost();
385
+ return (index.h(index.Host, { class: classMapHost }, this.styles && index.h("style", null, this.styles), index.h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), index.h("slot", null)));
386
+ }
387
+ getCurrentBreakPoints() {
388
+ // Define local variables
389
+ let doc = window.document, temp = doc.createElement('div'), env;
390
+ // Append test node
391
+ doc.body.appendChild(temp);
392
+ // Loop through breakpoints
393
+ for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
394
+ env = ResponsivePictureVariables.envs[i];
395
+ // Add classes
396
+ temp.className = 'hidden-' + env;
397
+ // Found breakpoint
398
+ if (temp.offsetParent === null) {
399
+ // Remove our test node
400
+ doc.body.removeChild(temp);
401
+ // Return current breakpoint
402
+ return env;
403
+ }
404
+ }
405
+ // Breakpoint not found, try fallback
406
+ doc.body.removeChild(temp);
407
+ return this.getFallbackBreakpoint();
408
+ }
409
+ getFallbackBreakpoint() {
410
+ if (window.matchMedia('(min-width: 992px)').matches) {
411
+ return 'lg';
412
+ }
413
+ else if (window.matchMedia('(min-width: 768px)').matches) {
414
+ return 'md';
415
+ }
416
+ else if (window.matchMedia('(min-width: 576px)').matches) {
417
+ return 'sm';
418
+ }
419
+ else {
420
+ return 'xs';
421
+ }
422
+ }
423
+ getCssClassMap() {
424
+ return {
425
+ [this.borderRadius]: this.borderRadius ? true : false,
426
+ [this.objectFit]: true,
427
+ [this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
428
+ [this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true
429
+ };
430
+ }
431
+ getCssClassMapHost() {
432
+ return {
433
+ [this.imagePosition]: true,
434
+ [this.imageAlignment]: true
435
+ };
436
+ }
437
+ get el() { return index.getElement(this); }
438
+ };
427
439
  PtcPicture.style = ptcPictureCss;
428
440
 
429
441
  const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.ptc-spacer-xx-large){display:block}}";
430
442
 
431
- const PtcSpacer = class {
432
- constructor(hostRef) {
433
- index.registerInstance(this, hostRef);
434
- this.breakpoint = '';
435
- this.size = 'medium';
436
- this.direction = 'vertical';
437
- }
438
- render() {
439
- const classMap = this.getCssClassMap();
440
- return (index.h(index.Host, { class: classMap }));
441
- }
442
- getCssClassMap() {
443
- return {
444
- [this.size]: true,
445
- ['ptc-spacer-horizontal']: this.direction === 'horizontal',
446
- ['ptc-spacer-vertical']: this.direction === 'vertical',
447
- ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
448
- ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
449
- ['ptc-spacer-small']: this.breakpoint === 'small',
450
- ['ptc-spacer-medium']: this.breakpoint === 'medium',
451
- ['ptc-spacer-large']: this.breakpoint === 'large',
452
- ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
453
- ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
454
- };
455
- }
456
- };
443
+ const PtcSpacer = class {
444
+ constructor(hostRef) {
445
+ index.registerInstance(this, hostRef);
446
+ this.breakpoint = '';
447
+ this.size = 'medium';
448
+ this.direction = 'vertical';
449
+ }
450
+ render() {
451
+ const classMap = this.getCssClassMap();
452
+ return (index.h(index.Host, { class: classMap }));
453
+ }
454
+ getCssClassMap() {
455
+ return {
456
+ [this.size]: true,
457
+ ['ptc-spacer-horizontal']: this.direction === 'horizontal',
458
+ ['ptc-spacer-vertical']: this.direction === 'vertical',
459
+ ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
460
+ ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
461
+ ['ptc-spacer-small']: this.breakpoint === 'small',
462
+ ['ptc-spacer-medium']: this.breakpoint === 'medium',
463
+ ['ptc-spacer-large']: this.breakpoint === 'large',
464
+ ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
465
+ ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
466
+ };
467
+ }
468
+ };
457
469
  PtcSpacer.style = ptcSpacerCss;
458
470
 
459
471
  exports.ptc_card = PtcCard;