@ptcwebops/ptcw-design 0.7.6 → 0.7.8

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 (293) hide show
  1. package/dist/cjs/dropdown-item.cjs.entry.js +2 -2
  2. package/dist/cjs/icon-asset.cjs.entry.js +10 -22
  3. package/dist/cjs/{index-b3fabe79.js → index-8745a0a3.js} +486 -255
  4. package/dist/cjs/list-item.cjs.entry.js +2 -2
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/lottie-player.cjs.entry.js +2 -2
  7. package/dist/cjs/my-component.cjs.entry.js +5 -2
  8. package/dist/cjs/ptc-accordion-item.cjs.entry.js +2 -16
  9. package/dist/cjs/ptc-accordion.cjs.entry.js +2 -5
  10. package/dist/cjs/ptc-announcement.cjs.entry.js +11 -22
  11. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +2 -2
  12. package/dist/cjs/ptc-button.cjs.entry.js +3 -34
  13. package/dist/cjs/ptc-card-bottom.cjs.entry.js +4 -2
  14. package/dist/cjs/ptc-card-content.cjs.entry.js +4 -2
  15. package/dist/cjs/ptc-card-plm.cjs.entry.js +5 -2
  16. package/dist/cjs/ptc-card_6.cjs.entry.js +27 -135
  17. package/dist/cjs/ptc-checkbox.cjs.entry.js +5 -3
  18. package/dist/cjs/ptc-collapse-list.cjs.entry.js +13 -2
  19. package/dist/cjs/ptc-container.cjs.entry.js +2 -5
  20. package/dist/cjs/ptc-dropdown.cjs.entry.js +7 -7
  21. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +32 -25
  22. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +3 -2
  23. package/dist/cjs/ptc-filter-tag.cjs.entry.js +4 -3
  24. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +5 -2
  25. package/dist/cjs/ptc-hero.cjs.entry.js +3 -5
  26. package/dist/cjs/ptc-icon-list.cjs.entry.js +3 -15
  27. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +3 -2
  28. package/dist/cjs/ptc-link.cjs.entry.js +4 -20
  29. package/dist/cjs/ptc-list.cjs.entry.js +2 -2
  30. package/dist/cjs/ptc-lottie.cjs.entry.js +3 -5
  31. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +2 -2
  32. package/dist/cjs/ptc-minimized-header.cjs.entry.js +2 -2
  33. package/dist/cjs/ptc-mobile-select.cjs.entry.js +5 -20
  34. package/dist/cjs/ptc-modal.cjs.entry.js +5 -23
  35. package/dist/cjs/ptc-overlay.cjs.entry.js +5 -5
  36. package/dist/cjs/ptc-pagenation.cjs.entry.js +13 -12
  37. package/dist/cjs/ptc-previous-url.cjs.entry.js +4 -2
  38. package/dist/cjs/ptc-pricing-block.cjs.entry.js +3 -2
  39. package/dist/cjs/ptc-quote.cjs.entry.js +6 -8
  40. package/dist/cjs/ptc-readmore_2.cjs.entry.js +4 -37
  41. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +2 -2
  42. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +3 -2
  43. package/dist/cjs/ptc-social-share.cjs.entry.js +8 -13
  44. package/dist/cjs/ptc-span.cjs.entry.js +3 -8
  45. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +43 -0
  46. package/dist/cjs/ptc-svg-btn.cjs.entry.js +3 -5
  47. package/dist/cjs/ptc-tab-list.cjs.entry.js +3 -2
  48. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +5 -9
  49. package/dist/cjs/ptc-title.cjs.entry.js +9 -17
  50. package/dist/cjs/ptc-two-column-media.cjs.entry.js +3 -2
  51. package/dist/cjs/ptcw-design.cjs.js +3 -3
  52. package/dist/cjs/tab-content.cjs.entry.js +3 -2
  53. package/dist/cjs/tab-header.cjs.entry.js +3 -2
  54. package/dist/collection/collection-manifest.json +3 -4
  55. package/dist/collection/components/dropdown-item/dropdown-item.js +51 -46
  56. package/dist/collection/components/icon-asset/icon-asset.css +3 -0
  57. package/dist/collection/components/icon-asset/icon-asset.js +167 -185
  58. package/dist/collection/components/list-item/list-item.js +85 -81
  59. package/dist/collection/components/my-component/my-component.js +70 -61
  60. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +199 -208
  61. package/dist/collection/components/ptc-accordion/ptc-accordion.js +43 -39
  62. package/dist/collection/components/ptc-announcement/ptc-announcement.js +199 -209
  63. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +12 -11
  64. package/dist/collection/components/ptc-button/ptc-button.js +221 -250
  65. package/dist/collection/components/ptc-card/ptc-card.css +167 -6
  66. package/dist/collection/components/ptc-card/ptc-card.js +261 -291
  67. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +85 -76
  68. package/dist/collection/components/ptc-card-content/ptc-card-content.js +85 -76
  69. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +85 -78
  70. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +86 -82
  71. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +238 -225
  72. package/dist/collection/components/ptc-container/ptc-container.js +85 -84
  73. package/dist/collection/components/ptc-date/ptc-date.js +160 -171
  74. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +108 -103
  75. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +16 -0
  76. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +4 -0
  77. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +158 -131
  78. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +89 -82
  79. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +58 -50
  80. package/dist/collection/components/ptc-hero/ptc-hero.js +51 -51
  81. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +70 -69
  82. package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +3 -0
  83. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +102 -121
  84. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +51 -50
  85. package/dist/collection/components/ptc-img/ptc-img.js +162 -179
  86. package/dist/collection/components/ptc-link/ptc-link.js +160 -174
  87. package/dist/collection/components/ptc-list/ptc-list.js +51 -46
  88. package/dist/collection/components/ptc-lottie/ptc-lottie.js +50 -46
  89. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +12 -11
  90. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +68 -67
  91. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +156 -168
  92. package/dist/collection/components/ptc-modal/ptc-modal.js +206 -224
  93. package/dist/collection/components/ptc-overlay/ptc-overlay.js +84 -78
  94. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +221 -216
  95. package/dist/collection/components/ptc-para/ptc-para.js +136 -145
  96. package/dist/collection/components/ptc-picture/ptc-picture.js +319 -340
  97. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +53 -47
  98. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +36 -32
  99. package/dist/collection/components/ptc-quote/ptc-quote.js +120 -130
  100. package/dist/collection/components/ptc-readmore/ptc-readmore.js +97 -107
  101. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +12 -9
  102. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +51 -45
  103. package/dist/collection/components/ptc-social-share/ptc-social-share.js +177 -144
  104. package/dist/collection/components/ptc-spacer/ptc-spacer.js +67 -70
  105. package/dist/collection/components/ptc-span/ptc-span.js +68 -70
  106. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.css +32 -0
  107. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -0
  108. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +52 -51
  109. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +35 -30
  110. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +103 -109
  111. package/dist/collection/components/ptc-title/ptc-title.js +221 -227
  112. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +119 -136
  113. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +36 -28
  114. package/dist/collection/components/tab-content/tab-content.js +57 -47
  115. package/dist/collection/components/tab-header/tab-header.js +74 -62
  116. package/dist/custom-elements/index.d.ts +6 -12
  117. package/dist/custom-elements/index.js +258 -586
  118. package/dist/esm/dropdown-item.entry.js +2 -2
  119. package/dist/esm/icon-asset.entry.js +10 -22
  120. package/dist/esm/{index-5ff11327.js → index-0c73b51e.js} +486 -255
  121. package/dist/esm/list-item.entry.js +2 -2
  122. package/dist/esm/loader.js +3 -3
  123. package/dist/esm/lottie-player.entry.js +2 -2
  124. package/dist/esm/my-component.entry.js +5 -2
  125. package/dist/esm/polyfills/css-shim.js +1 -1
  126. package/dist/esm/ptc-accordion-item.entry.js +2 -16
  127. package/dist/esm/ptc-accordion.entry.js +2 -5
  128. package/dist/esm/ptc-announcement.entry.js +11 -22
  129. package/dist/esm/ptc-breadcrumb.entry.js +2 -2
  130. package/dist/esm/ptc-button.entry.js +3 -34
  131. package/dist/esm/ptc-card-bottom.entry.js +4 -2
  132. package/dist/esm/ptc-card-content.entry.js +4 -2
  133. package/dist/esm/ptc-card-plm.entry.js +5 -2
  134. package/dist/esm/ptc-card_6.entry.js +27 -135
  135. package/dist/esm/ptc-checkbox.entry.js +5 -3
  136. package/dist/esm/ptc-collapse-list.entry.js +13 -2
  137. package/dist/esm/ptc-container.entry.js +2 -5
  138. package/dist/esm/ptc-dropdown.entry.js +7 -7
  139. package/dist/esm/ptc-dynamic-card.entry.js +32 -25
  140. package/dist/esm/ptc-ellipsis-dropdown.entry.js +3 -2
  141. package/dist/esm/ptc-filter-tag.entry.js +4 -3
  142. package/dist/esm/ptc-hero-footer-cta.entry.js +5 -2
  143. package/dist/esm/ptc-hero.entry.js +3 -5
  144. package/dist/esm/ptc-icon-list.entry.js +3 -15
  145. package/dist/esm/ptc-icon-minimize.entry.js +3 -2
  146. package/dist/esm/ptc-link.entry.js +4 -20
  147. package/dist/esm/ptc-list.entry.js +2 -2
  148. package/dist/esm/ptc-lottie.entry.js +3 -5
  149. package/dist/esm/ptc-minimized-footer.entry.js +2 -2
  150. package/dist/esm/ptc-minimized-header.entry.js +2 -2
  151. package/dist/esm/ptc-mobile-select.entry.js +5 -20
  152. package/dist/esm/ptc-modal.entry.js +5 -23
  153. package/dist/esm/ptc-overlay.entry.js +5 -5
  154. package/dist/esm/ptc-pagenation.entry.js +13 -12
  155. package/dist/esm/ptc-previous-url.entry.js +4 -2
  156. package/dist/esm/ptc-pricing-block.entry.js +3 -2
  157. package/dist/esm/ptc-quote.entry.js +6 -8
  158. package/dist/esm/ptc-readmore_2.entry.js +4 -37
  159. package/dist/esm/ptc-responsive-wrapper.entry.js +2 -2
  160. package/dist/esm/ptc-shopping-cart.entry.js +3 -2
  161. package/dist/esm/ptc-social-share.entry.js +8 -13
  162. package/dist/esm/ptc-span.entry.js +3 -8
  163. package/dist/esm/ptc-sticky-icons.entry.js +39 -0
  164. package/dist/esm/ptc-svg-btn.entry.js +3 -5
  165. package/dist/esm/ptc-tab-list.entry.js +3 -2
  166. package/dist/esm/ptc-text-copy-with-background.entry.js +5 -9
  167. package/dist/esm/ptc-title.entry.js +9 -17
  168. package/dist/esm/ptc-two-column-media.entry.js +3 -2
  169. package/dist/esm/ptcw-design.js +3 -3
  170. package/dist/esm/tab-content.entry.js +3 -2
  171. package/dist/esm/tab-header.entry.js +3 -2
  172. package/dist/ptcw-design/media/nav-active-dotslick.svg +16 -0
  173. package/dist/ptcw-design/p-009001dc.js +2 -0
  174. package/dist/ptcw-design/p-00c1343b.entry.js +1 -0
  175. package/dist/ptcw-design/p-188d69d9.entry.js +1 -0
  176. package/dist/ptcw-design/p-1964f1f4.entry.js +1 -0
  177. package/dist/ptcw-design/p-1e80c01f.entry.js +1 -0
  178. package/dist/ptcw-design/p-21e27f2b.entry.js +1 -0
  179. package/dist/ptcw-design/p-24321c52.entry.js +1 -0
  180. package/dist/ptcw-design/{p-7599491c.entry.js → p-2dcea9db.entry.js} +1 -1
  181. package/dist/ptcw-design/p-36a453d4.entry.js +1 -0
  182. package/dist/ptcw-design/p-3db835e4.entry.js +1 -0
  183. package/dist/ptcw-design/p-3f85b469.entry.js +1 -0
  184. package/dist/ptcw-design/p-482a8bc9.entry.js +1 -0
  185. package/dist/ptcw-design/p-4de70656.entry.js +1 -0
  186. package/dist/ptcw-design/p-5105d9e5.entry.js +1 -0
  187. package/dist/ptcw-design/p-58e06eee.entry.js +1 -0
  188. package/dist/ptcw-design/p-5bb7354a.entry.js +1 -0
  189. package/dist/ptcw-design/p-5d585b54.entry.js +1 -0
  190. package/dist/ptcw-design/p-5dbf98a9.entry.js +1 -0
  191. package/dist/ptcw-design/p-6065a1d1.entry.js +1 -0
  192. package/dist/ptcw-design/p-60843852.entry.js +1 -0
  193. package/dist/ptcw-design/p-6131b9a1.entry.js +1 -0
  194. package/dist/ptcw-design/p-6b1fdce6.entry.js +1 -0
  195. package/dist/ptcw-design/p-6d713986.entry.js +1 -0
  196. package/dist/ptcw-design/p-8637cefc.entry.js +1 -0
  197. package/dist/ptcw-design/p-8808ecc8.entry.js +1 -0
  198. package/dist/ptcw-design/p-88e1778e.entry.js +1 -0
  199. package/dist/ptcw-design/p-8b197833.entry.js +1 -0
  200. package/dist/ptcw-design/p-8b5b5614.entry.js +1 -0
  201. package/dist/ptcw-design/p-8bb41e7c.entry.js +1 -0
  202. package/dist/ptcw-design/p-9311ee3f.entry.js +1 -0
  203. package/dist/ptcw-design/p-97e00dfa.entry.js +1 -0
  204. package/dist/ptcw-design/p-a05fe3d0.entry.js +1 -0
  205. package/dist/ptcw-design/p-a0f25c98.entry.js +1 -0
  206. package/dist/ptcw-design/p-a4900673.entry.js +1 -0
  207. package/dist/ptcw-design/p-a749c353.entry.js +1 -0
  208. package/dist/ptcw-design/p-adcc9906.entry.js +1 -0
  209. package/dist/ptcw-design/p-afea5c1f.entry.js +1 -0
  210. package/dist/ptcw-design/p-b420e81a.entry.js +1 -0
  211. package/dist/ptcw-design/p-b701bbc0.entry.js +1 -0
  212. package/dist/ptcw-design/p-bc033578.entry.js +1 -0
  213. package/dist/ptcw-design/p-c3f73953.entry.js +1 -0
  214. package/dist/ptcw-design/p-c4e20f99.entry.js +1 -0
  215. package/dist/ptcw-design/p-ca9efc42.entry.js +1 -0
  216. package/dist/ptcw-design/p-d56b953e.entry.js +1 -0
  217. package/dist/ptcw-design/{p-5e845a15.entry.js → p-d910c9d6.entry.js} +2 -2
  218. package/dist/ptcw-design/p-e3280772.entry.js +1 -0
  219. package/dist/ptcw-design/p-e34d194d.entry.js +1 -0
  220. package/dist/ptcw-design/p-e87bc2cd.entry.js +1 -0
  221. package/dist/ptcw-design/p-f2cb8bc4.entry.js +1 -0
  222. package/dist/ptcw-design/p-f9694131.entry.js +1 -0
  223. package/dist/ptcw-design/p-fbd43055.entry.js +1 -0
  224. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  225. package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
  226. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +11 -3
  227. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +8 -0
  228. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -0
  229. package/dist/types/components.d.ts +117 -113
  230. package/dist/types/stencil-public-runtime.d.ts +20 -4
  231. package/loader/package.json +1 -0
  232. package/package.json +4 -3
  233. package/readme.md +1 -1
  234. package/dist/cjs/ptc-nav-item.cjs.entry.js +0 -94
  235. package/dist/cjs/ptc-nav.cjs.entry.js +0 -19
  236. package/dist/collection/components/ptc-nav/ptc-nav.css +0 -29
  237. package/dist/collection/components/ptc-nav/ptc-nav.js +0 -21
  238. package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +0 -81
  239. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +0 -252
  240. package/dist/esm/ptc-nav-item.entry.js +0 -90
  241. package/dist/esm/ptc-nav.entry.js +0 -15
  242. package/dist/ptcw-design/p-09351f78.entry.js +0 -1
  243. package/dist/ptcw-design/p-10385027.entry.js +0 -1
  244. package/dist/ptcw-design/p-15ec8469.entry.js +0 -1
  245. package/dist/ptcw-design/p-1743d0ef.entry.js +0 -1
  246. package/dist/ptcw-design/p-1a77a824.entry.js +0 -1
  247. package/dist/ptcw-design/p-1ec512ea.entry.js +0 -1
  248. package/dist/ptcw-design/p-2de688ba.entry.js +0 -1
  249. package/dist/ptcw-design/p-2f6ecdf8.entry.js +0 -1
  250. package/dist/ptcw-design/p-39b8d25b.entry.js +0 -1
  251. package/dist/ptcw-design/p-3a4bb2b1.entry.js +0 -1
  252. package/dist/ptcw-design/p-3b87cd6f.entry.js +0 -1
  253. package/dist/ptcw-design/p-3b994b78.entry.js +0 -1
  254. package/dist/ptcw-design/p-4355ed7c.js +0 -1
  255. package/dist/ptcw-design/p-446423fc.entry.js +0 -1
  256. package/dist/ptcw-design/p-493b2571.entry.js +0 -1
  257. package/dist/ptcw-design/p-4ab335ac.entry.js +0 -1
  258. package/dist/ptcw-design/p-4da25d67.entry.js +0 -1
  259. package/dist/ptcw-design/p-53790fb4.entry.js +0 -1
  260. package/dist/ptcw-design/p-5bf5932c.entry.js +0 -1
  261. package/dist/ptcw-design/p-5c02f876.entry.js +0 -1
  262. package/dist/ptcw-design/p-5c5c8f25.entry.js +0 -1
  263. package/dist/ptcw-design/p-5fd37a0e.entry.js +0 -1
  264. package/dist/ptcw-design/p-5fd60b15.entry.js +0 -1
  265. package/dist/ptcw-design/p-6ab5aee9.entry.js +0 -1
  266. package/dist/ptcw-design/p-70d2c46d.entry.js +0 -1
  267. package/dist/ptcw-design/p-74a31734.entry.js +0 -1
  268. package/dist/ptcw-design/p-7a37d762.entry.js +0 -1
  269. package/dist/ptcw-design/p-83a9720c.entry.js +0 -1
  270. package/dist/ptcw-design/p-85e7bbc3.entry.js +0 -1
  271. package/dist/ptcw-design/p-87f9430f.entry.js +0 -1
  272. package/dist/ptcw-design/p-8ba6cef7.entry.js +0 -1
  273. package/dist/ptcw-design/p-8c0ba2d5.entry.js +0 -1
  274. package/dist/ptcw-design/p-8c594b35.entry.js +0 -1
  275. package/dist/ptcw-design/p-8d46a06e.entry.js +0 -1
  276. package/dist/ptcw-design/p-8e2e81c8.entry.js +0 -1
  277. package/dist/ptcw-design/p-96bfb95b.entry.js +0 -1
  278. package/dist/ptcw-design/p-baa7d351.entry.js +0 -1
  279. package/dist/ptcw-design/p-bcfd05dc.entry.js +0 -1
  280. package/dist/ptcw-design/p-be32e928.entry.js +0 -1
  281. package/dist/ptcw-design/p-c05f0c98.entry.js +0 -1
  282. package/dist/ptcw-design/p-c267b720.entry.js +0 -1
  283. package/dist/ptcw-design/p-c460a62d.entry.js +0 -1
  284. package/dist/ptcw-design/p-c91a875b.entry.js +0 -1
  285. package/dist/ptcw-design/p-cd2404f0.entry.js +0 -1
  286. package/dist/ptcw-design/p-ce5ee58d.entry.js +0 -1
  287. package/dist/ptcw-design/p-d39668ca.entry.js +0 -1
  288. package/dist/ptcw-design/p-e955c833.entry.js +0 -1
  289. package/dist/ptcw-design/p-f0cd0fb4.entry.js +0 -1
  290. package/dist/ptcw-design/p-f7d18b93.entry.js +0 -1
  291. package/dist/ptcw-design/p-fce72f70.entry.js +0 -1
  292. package/dist/types/components/ptc-nav/ptc-nav.d.ts +0 -3
  293. package/dist/types/components/ptc-nav-item/ptc-nav-item.d.ts +0 -53
@@ -1,34 +1,16 @@
1
- import { Component, Element, Host, Prop, State, h, Event } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  export class PtcModal {
3
3
  constructor() {
4
- /**
5
- * Sets if popup should close if click on outside
6
- */
4
+ this.iframeUrl = undefined;
7
5
  this.size = 'sm';
8
- /**
9
- * Set whether or not to display modal
10
- */
11
6
  this.show = false;
12
- /**
13
- * Sets if popup should overlay
14
- */
15
7
  this.overlay = true;
16
- /**
17
- * Sets if popup should overlay
18
- */
19
8
  this.fixed = false;
20
- /**
21
- * Sets if popup should close if click on outside
22
- */
23
9
  this.closeOnBlur = false;
24
- /**
25
- * Sets if popup should have rounded corners
26
- */
27
10
  this.rounded = false;
28
- /**
29
- * Sets if popup should have header footer sections
30
- */
31
11
  this.showHeaderFooter = false;
12
+ this.overlayHeight = undefined;
13
+ this.bodyOverflowSetting = undefined;
32
14
  }
33
15
  fireOnClosed(modal) {
34
16
  this.closed.emit(modal);
@@ -120,11 +102,7 @@ export class PtcModal {
120
102
  let content;
121
103
  let overlay;
122
104
  let type = this.iframeUrl ? 'frame' : 'html';
123
- let closebtn = (h("div", { class: "close" },
124
- h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } },
125
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" },
126
- h("path", { d: "M1 1L13 13", stroke: "black" }),
127
- h("path", { d: "M13 1L1 13", stroke: "black" })))));
105
+ let closebtn = (h("div", { class: "close" }, h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, h("path", { d: "M1 1L13 13", stroke: "black" }), h("path", { d: "M13 1L1 13", stroke: "black" })))));
128
106
  if (this.iframeUrl) {
129
107
  content = (h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
130
108
  }
@@ -144,216 +122,220 @@ export class PtcModal {
144
122
  overlay = h("div", { class: "overlay" });
145
123
  }
146
124
  }
147
- return (h(Host, null,
148
- h("div", { class: `wrapper ${this.show ? "show" : "hide"} ${this.fixed ? 'fixed' : ''} ` },
149
- overlay,
150
- h("div", { class: `modal-popup ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} ` }, this.showHeaderFooter ? [
151
- h("div", { class: "modal-header" },
152
- h("slot", { name: "header" }),
153
- closebtn),
154
- h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
155
- h("div", { class: "modal-footer" },
156
- h("slot", { name: "footer" }))
157
- ] : [
158
- closebtn,
159
- h("div", { class: "modal-body" }, content)
160
- ]))));
125
+ return (h(Host, null, h("div", { class: `wrapper ${this.show ? "show" : "hide"} ${this.fixed ? 'fixed' : ''} ` }, overlay, h("div", { class: `modal-popup ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} ` }, this.showHeaderFooter ? [
126
+ h("div", { class: "modal-header" }, h("slot", { name: "header" }), closebtn),
127
+ h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
128
+ h("div", { class: "modal-footer" }, h("slot", { name: "footer" }))
129
+ ] : [
130
+ closebtn,
131
+ h("div", { class: "modal-body" }, content)
132
+ ]))));
161
133
  }
162
134
  static get is() { return "ptc-modal"; }
163
135
  static get encapsulation() { return "shadow"; }
164
- static get originalStyleUrls() { return {
165
- "$": ["ptc-modal.scss"]
166
- }; }
167
- static get styleUrls() { return {
168
- "$": ["ptc-modal.css"]
169
- }; }
170
- static get properties() { return {
171
- "iframeUrl": {
172
- "type": "string",
173
- "mutable": true,
174
- "complexType": {
175
- "original": "string",
176
- "resolved": "string",
177
- "references": {}
178
- },
179
- "required": false,
180
- "optional": false,
181
- "docs": {
182
- "tags": [],
183
- "text": "Set url for content iframe to load if false will load slot element"
184
- },
185
- "attribute": "iframe-url",
186
- "reflect": false
187
- },
188
- "size": {
189
- "type": "string",
190
- "mutable": true,
191
- "complexType": {
192
- "original": "'sm' | 'md' | 'lg' | 'xl'",
193
- "resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\"",
194
- "references": {}
195
- },
196
- "required": false,
197
- "optional": true,
198
- "docs": {
199
- "tags": [],
200
- "text": "Sets if popup should close if click on outside"
201
- },
202
- "attribute": "size",
203
- "reflect": false,
204
- "defaultValue": "'sm'"
205
- },
206
- "show": {
207
- "type": "boolean",
208
- "mutable": true,
209
- "complexType": {
210
- "original": "boolean",
211
- "resolved": "boolean",
212
- "references": {}
213
- },
214
- "required": false,
215
- "optional": true,
216
- "docs": {
217
- "tags": [],
218
- "text": "Set whether or not to display modal"
219
- },
220
- "attribute": "show",
221
- "reflect": false,
222
- "defaultValue": "false"
223
- },
224
- "overlay": {
225
- "type": "boolean",
226
- "mutable": true,
227
- "complexType": {
228
- "original": "boolean",
229
- "resolved": "boolean",
230
- "references": {}
231
- },
232
- "required": false,
233
- "optional": true,
234
- "docs": {
235
- "tags": [],
236
- "text": "Sets if popup should overlay"
237
- },
238
- "attribute": "overlay",
239
- "reflect": false,
240
- "defaultValue": "true"
241
- },
242
- "fixed": {
243
- "type": "boolean",
244
- "mutable": true,
245
- "complexType": {
246
- "original": "boolean",
247
- "resolved": "boolean",
248
- "references": {}
249
- },
250
- "required": false,
251
- "optional": true,
252
- "docs": {
253
- "tags": [],
254
- "text": "Sets if popup should overlay"
255
- },
256
- "attribute": "fixed",
257
- "reflect": false,
258
- "defaultValue": "false"
259
- },
260
- "closeOnBlur": {
261
- "type": "boolean",
262
- "mutable": true,
263
- "complexType": {
264
- "original": "boolean",
265
- "resolved": "boolean",
266
- "references": {}
136
+ static get originalStyleUrls() {
137
+ return {
138
+ "$": ["ptc-modal.scss"]
139
+ };
140
+ }
141
+ static get styleUrls() {
142
+ return {
143
+ "$": ["ptc-modal.css"]
144
+ };
145
+ }
146
+ static get properties() {
147
+ return {
148
+ "iframeUrl": {
149
+ "type": "string",
150
+ "mutable": true,
151
+ "complexType": {
152
+ "original": "string",
153
+ "resolved": "string",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": "Set url for content iframe to load if false will load slot element"
161
+ },
162
+ "attribute": "iframe-url",
163
+ "reflect": false
267
164
  },
268
- "required": false,
269
- "optional": true,
270
- "docs": {
271
- "tags": [],
272
- "text": "Sets if popup should close if click on outside"
165
+ "size": {
166
+ "type": "string",
167
+ "mutable": true,
168
+ "complexType": {
169
+ "original": "'sm' | 'md' | 'lg' | 'xl'",
170
+ "resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\"",
171
+ "references": {}
172
+ },
173
+ "required": false,
174
+ "optional": true,
175
+ "docs": {
176
+ "tags": [],
177
+ "text": "Sets if popup should close if click on outside"
178
+ },
179
+ "attribute": "size",
180
+ "reflect": false,
181
+ "defaultValue": "'sm'"
273
182
  },
274
- "attribute": "close-on-blur",
275
- "reflect": false,
276
- "defaultValue": "false"
277
- },
278
- "rounded": {
279
- "type": "boolean",
280
- "mutable": true,
281
- "complexType": {
282
- "original": "boolean",
283
- "resolved": "boolean",
284
- "references": {}
183
+ "show": {
184
+ "type": "boolean",
185
+ "mutable": true,
186
+ "complexType": {
187
+ "original": "boolean",
188
+ "resolved": "boolean",
189
+ "references": {}
190
+ },
191
+ "required": false,
192
+ "optional": true,
193
+ "docs": {
194
+ "tags": [],
195
+ "text": "Set whether or not to display modal"
196
+ },
197
+ "attribute": "show",
198
+ "reflect": false,
199
+ "defaultValue": "false"
285
200
  },
286
- "required": false,
287
- "optional": true,
288
- "docs": {
289
- "tags": [],
290
- "text": "Sets if popup should have rounded corners"
201
+ "overlay": {
202
+ "type": "boolean",
203
+ "mutable": true,
204
+ "complexType": {
205
+ "original": "boolean",
206
+ "resolved": "boolean",
207
+ "references": {}
208
+ },
209
+ "required": false,
210
+ "optional": true,
211
+ "docs": {
212
+ "tags": [],
213
+ "text": "Sets if popup should overlay"
214
+ },
215
+ "attribute": "overlay",
216
+ "reflect": false,
217
+ "defaultValue": "true"
291
218
  },
292
- "attribute": "rounded",
293
- "reflect": false,
294
- "defaultValue": "false"
295
- },
296
- "showHeaderFooter": {
297
- "type": "boolean",
298
- "mutable": true,
299
- "complexType": {
300
- "original": "boolean",
301
- "resolved": "boolean",
302
- "references": {}
219
+ "fixed": {
220
+ "type": "boolean",
221
+ "mutable": true,
222
+ "complexType": {
223
+ "original": "boolean",
224
+ "resolved": "boolean",
225
+ "references": {}
226
+ },
227
+ "required": false,
228
+ "optional": true,
229
+ "docs": {
230
+ "tags": [],
231
+ "text": "Sets if popup should overlay"
232
+ },
233
+ "attribute": "fixed",
234
+ "reflect": false,
235
+ "defaultValue": "false"
303
236
  },
304
- "required": false,
305
- "optional": true,
306
- "docs": {
307
- "tags": [],
308
- "text": "Sets if popup should have header footer sections"
237
+ "closeOnBlur": {
238
+ "type": "boolean",
239
+ "mutable": true,
240
+ "complexType": {
241
+ "original": "boolean",
242
+ "resolved": "boolean",
243
+ "references": {}
244
+ },
245
+ "required": false,
246
+ "optional": true,
247
+ "docs": {
248
+ "tags": [],
249
+ "text": "Sets if popup should close if click on outside"
250
+ },
251
+ "attribute": "close-on-blur",
252
+ "reflect": false,
253
+ "defaultValue": "false"
309
254
  },
310
- "attribute": "show-header-footer",
311
- "reflect": false,
312
- "defaultValue": "false"
313
- }
314
- }; }
315
- static get states() { return {
316
- "overlayHeight": {},
317
- "bodyOverflowSetting": {}
318
- }; }
319
- static get events() { return [{
320
- "method": "closed",
321
- "name": "closed",
322
- "bubbles": true,
323
- "cancelable": true,
324
- "composed": true,
325
- "docs": {
326
- "tags": [],
327
- "text": "Event for modal popup closed"
255
+ "rounded": {
256
+ "type": "boolean",
257
+ "mutable": true,
258
+ "complexType": {
259
+ "original": "boolean",
260
+ "resolved": "boolean",
261
+ "references": {}
262
+ },
263
+ "required": false,
264
+ "optional": true,
265
+ "docs": {
266
+ "tags": [],
267
+ "text": "Sets if popup should have rounded corners"
268
+ },
269
+ "attribute": "rounded",
270
+ "reflect": false,
271
+ "defaultValue": "false"
328
272
  },
329
- "complexType": {
330
- "original": "PtcModal",
331
- "resolved": "PtcModal",
332
- "references": {
333
- "PtcModal": {
334
- "location": "global"
273
+ "showHeaderFooter": {
274
+ "type": "boolean",
275
+ "mutable": true,
276
+ "complexType": {
277
+ "original": "boolean",
278
+ "resolved": "boolean",
279
+ "references": {}
280
+ },
281
+ "required": false,
282
+ "optional": true,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": "Sets if popup should have header footer sections"
286
+ },
287
+ "attribute": "show-header-footer",
288
+ "reflect": false,
289
+ "defaultValue": "false"
290
+ }
291
+ };
292
+ }
293
+ static get states() {
294
+ return {
295
+ "overlayHeight": {},
296
+ "bodyOverflowSetting": {}
297
+ };
298
+ }
299
+ static get events() {
300
+ return [{
301
+ "method": "closed",
302
+ "name": "closed",
303
+ "bubbles": true,
304
+ "cancelable": true,
305
+ "composed": true,
306
+ "docs": {
307
+ "tags": [],
308
+ "text": "Event for modal popup closed"
309
+ },
310
+ "complexType": {
311
+ "original": "PtcModal",
312
+ "resolved": "PtcModal",
313
+ "references": {
314
+ "PtcModal": {
315
+ "location": "global"
316
+ }
335
317
  }
336
318
  }
337
- }
338
- }, {
339
- "method": "opened",
340
- "name": "opened",
341
- "bubbles": true,
342
- "cancelable": true,
343
- "composed": true,
344
- "docs": {
345
- "tags": [],
346
- "text": "Event for modal popup opened"
347
- },
348
- "complexType": {
349
- "original": "PtcModal",
350
- "resolved": "PtcModal",
351
- "references": {
352
- "PtcModal": {
353
- "location": "global"
319
+ }, {
320
+ "method": "opened",
321
+ "name": "opened",
322
+ "bubbles": true,
323
+ "cancelable": true,
324
+ "composed": true,
325
+ "docs": {
326
+ "tags": [],
327
+ "text": "Event for modal popup opened"
328
+ },
329
+ "complexType": {
330
+ "original": "PtcModal",
331
+ "resolved": "PtcModal",
332
+ "references": {
333
+ "PtcModal": {
334
+ "location": "global"
335
+ }
354
336
  }
355
337
  }
356
- }
357
- }]; }
338
+ }];
339
+ }
358
340
  static get elementRef() { return "el"; }
359
341
  }
@@ -1,10 +1,10 @@
1
- import { Component, Host, h, Prop } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  export class PtcOverlay {
3
3
  constructor() {
4
- /**
5
- * Overlay z-index
6
- */
4
+ this.filterColor = undefined;
5
+ this.borderRadius = undefined;
7
6
  this.overlayZIndex = 'z-index-auto';
7
+ this.styles = undefined;
8
8
  }
9
9
  render() {
10
10
  const classMap = this.getCssClassMap();
@@ -19,81 +19,87 @@ export class PtcOverlay {
19
19
  }
20
20
  static get is() { return "ptc-overlay"; }
21
21
  static get encapsulation() { return "shadow"; }
22
- static get originalStyleUrls() { return {
23
- "$": ["ptc-overlay.scss"]
24
- }; }
25
- static get styleUrls() { return {
26
- "$": ["ptc-overlay.css"]
27
- }; }
28
- static get properties() { return {
29
- "filterColor": {
30
- "type": "string",
31
- "mutable": false,
32
- "complexType": {
33
- "original": "'blue' | 'red' | 'orange' | 'green' | 'black-1' | 'black-2' | 'black-3' | 'slate-grey'",
34
- "resolved": "\"black-1\" | \"black-2\" | \"black-3\" | \"blue\" | \"green\" | \"orange\" | \"red\" | \"slate-grey\"",
35
- "references": {}
36
- },
37
- "required": false,
38
- "optional": false,
39
- "docs": {
40
- "tags": [],
41
- "text": "Filter Color"
42
- },
43
- "attribute": "filter-color",
44
- "reflect": false
45
- },
46
- "borderRadius": {
47
- "type": "string",
48
- "mutable": false,
49
- "complexType": {
50
- "original": "'radius-standard' | 'radius-large'",
51
- "resolved": "\"radius-large\" | \"radius-standard\"",
52
- "references": {}
53
- },
54
- "required": false,
55
- "optional": false,
56
- "docs": {
57
- "tags": [],
58
- "text": "Overlay border shape"
59
- },
60
- "attribute": "border-radius",
61
- "reflect": false
62
- },
63
- "overlayZIndex": {
64
- "type": "string",
65
- "mutable": false,
66
- "complexType": {
67
- "original": "'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2'",
68
- "resolved": "\"z-index-auto\" | \"z-index-n-1\" | \"z-index-n-2\" | \"z-index-p-1\" | \"z-index-p-2\"",
69
- "references": {}
70
- },
71
- "required": false,
72
- "optional": false,
73
- "docs": {
74
- "tags": [],
75
- "text": "Overlay z-index"
22
+ static get originalStyleUrls() {
23
+ return {
24
+ "$": ["ptc-overlay.scss"]
25
+ };
26
+ }
27
+ static get styleUrls() {
28
+ return {
29
+ "$": ["ptc-overlay.css"]
30
+ };
31
+ }
32
+ static get properties() {
33
+ return {
34
+ "filterColor": {
35
+ "type": "string",
36
+ "mutable": false,
37
+ "complexType": {
38
+ "original": "'blue' | 'red' | 'orange' | 'green' | 'black-1' | 'black-2' | 'black-3' | 'slate-grey'",
39
+ "resolved": "\"black-1\" | \"black-2\" | \"black-3\" | \"blue\" | \"green\" | \"orange\" | \"red\" | \"slate-grey\"",
40
+ "references": {}
41
+ },
42
+ "required": false,
43
+ "optional": false,
44
+ "docs": {
45
+ "tags": [],
46
+ "text": "Filter Color"
47
+ },
48
+ "attribute": "filter-color",
49
+ "reflect": false
76
50
  },
77
- "attribute": "overlay-z-index",
78
- "reflect": false,
79
- "defaultValue": "'z-index-auto'"
80
- },
81
- "styles": {
82
- "type": "string",
83
- "mutable": false,
84
- "complexType": {
85
- "original": "string",
86
- "resolved": "string",
87
- "references": {}
51
+ "borderRadius": {
52
+ "type": "string",
53
+ "mutable": false,
54
+ "complexType": {
55
+ "original": "'radius-standard' | 'radius-large'",
56
+ "resolved": "\"radius-large\" | \"radius-standard\"",
57
+ "references": {}
58
+ },
59
+ "required": false,
60
+ "optional": false,
61
+ "docs": {
62
+ "tags": [],
63
+ "text": "Overlay border shape"
64
+ },
65
+ "attribute": "border-radius",
66
+ "reflect": false
88
67
  },
89
- "required": false,
90
- "optional": true,
91
- "docs": {
92
- "tags": [],
93
- "text": "Injected Styles"
68
+ "overlayZIndex": {
69
+ "type": "string",
70
+ "mutable": false,
71
+ "complexType": {
72
+ "original": "'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2'",
73
+ "resolved": "\"z-index-auto\" | \"z-index-n-1\" | \"z-index-n-2\" | \"z-index-p-1\" | \"z-index-p-2\"",
74
+ "references": {}
75
+ },
76
+ "required": false,
77
+ "optional": false,
78
+ "docs": {
79
+ "tags": [],
80
+ "text": "Overlay z-index"
81
+ },
82
+ "attribute": "overlay-z-index",
83
+ "reflect": false,
84
+ "defaultValue": "'z-index-auto'"
94
85
  },
95
- "attribute": "styles",
96
- "reflect": false
97
- }
98
- }; }
86
+ "styles": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "string",
91
+ "resolved": "string",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": true,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": "Injected Styles"
99
+ },
100
+ "attribute": "styles",
101
+ "reflect": false
102
+ }
103
+ };
104
+ }
99
105
  }