@ptcwebops/ptcw-design 0.6.3 → 0.6.4

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 (330) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/dropdown-item.cjs.entry.js +11 -11
  3. package/dist/cjs/icon-asset_13.cjs.entry.js +767 -0
  4. package/dist/cjs/{index-3adcf9f4.js → index-b3fabe79.js} +2 -0
  5. package/dist/cjs/{interfaces-574e6df7.js → interfaces-0ecd8027.js} +9 -9
  6. package/dist/cjs/list-item.cjs.entry.js +21 -21
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/lottie-player.cjs.entry.js +355 -355
  9. package/dist/cjs/my-component.cjs.entry.js +13 -13
  10. package/dist/cjs/ptc-accordion-item.cjs.entry.js +98 -98
  11. package/dist/cjs/ptc-accordion.cjs.entry.js +39 -39
  12. package/dist/cjs/ptc-announcement.cjs.entry.js +38 -38
  13. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +13 -13
  14. package/dist/cjs/ptc-card-bottom.cjs.entry.js +32 -32
  15. package/dist/cjs/ptc-card-content.cjs.entry.js +32 -32
  16. package/dist/cjs/ptc-card-plm.cjs.entry.js +17 -17
  17. package/dist/cjs/ptc-card.cjs.entry.js +79 -0
  18. package/dist/cjs/ptc-collapse-list.cjs.entry.js +192 -192
  19. package/dist/cjs/ptc-date.cjs.entry.js +59 -0
  20. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +39 -25
  21. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +9 -9
  22. package/dist/cjs/ptc-hero.cjs.entry.js +19 -19
  23. package/dist/cjs/ptc-icon-list.cjs.entry.js +33 -33
  24. package/dist/cjs/ptc-img_2.cjs.entry.js +185 -0
  25. package/dist/cjs/ptc-list.cjs.entry.js +51 -51
  26. package/dist/cjs/ptc-lottie.cjs.entry.js +13 -13
  27. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +9 -9
  28. package/dist/cjs/ptc-minimized-header.cjs.entry.js +12 -12
  29. package/dist/cjs/ptc-mobile-select.cjs.entry.js +70 -70
  30. package/dist/cjs/ptc-nav-item.cjs.entry.js +84 -84
  31. package/dist/cjs/ptc-nav.cjs.entry.js +9 -9
  32. package/dist/cjs/ptc-pagenation.cjs.entry.js +115 -0
  33. package/dist/cjs/ptc-picture.cjs.entry.js +170 -170
  34. package/dist/cjs/ptc-previous-url.cjs.entry.js +9 -9
  35. package/dist/cjs/ptc-pricing-block.cjs.entry.js +15 -15
  36. package/dist/cjs/ptc-quote.cjs.entry.js +26 -26
  37. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +55 -55
  38. package/dist/cjs/ptc-social-share.cjs.entry.js +65 -65
  39. package/dist/cjs/ptc-span.cjs.entry.js +24 -24
  40. package/dist/cjs/ptc-svg-btn.cjs.entry.js +76 -76
  41. package/dist/cjs/ptc-tab-list.cjs.entry.js +119 -117
  42. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  43. package/dist/cjs/ptcw-design.cjs.js +2 -2
  44. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  45. package/dist/cjs/tab-header.cjs.entry.js +45 -45
  46. package/dist/cjs/{utils-1c17977e.js → utils-dc2c222f.js} +64 -64
  47. package/dist/collection/components/dropdown-item/dropdown-item.js +56 -56
  48. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  49. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  50. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  51. package/dist/collection/components/icon-asset/media/designer.svg +365 -365
  52. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  53. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  54. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  55. package/dist/collection/components/list-item/list-item.js +104 -104
  56. package/dist/collection/components/my-component/my-component.css +3 -3
  57. package/dist/collection/components/my-component/my-component.js +73 -73
  58. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +296 -296
  59. package/dist/collection/components/ptc-accordion/ptc-accordion.js +74 -74
  60. package/dist/collection/components/ptc-announcement/ptc-announcement.js +210 -210
  61. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -21
  62. package/dist/collection/components/ptc-button/ptc-button.js +293 -293
  63. package/dist/collection/components/ptc-card/ptc-card.js +301 -301
  64. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +105 -105
  65. package/dist/collection/components/ptc-card-content/ptc-card-content.js +105 -105
  66. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -97
  67. package/dist/collection/components/ptc-checkbox/ptc-checkbox.css +2 -2
  68. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +114 -114
  69. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +288 -288
  70. package/dist/collection/components/ptc-container/ptc-container.js +119 -119
  71. package/dist/collection/components/ptc-date/ptc-date.js +201 -201
  72. package/dist/collection/components/ptc-dropdown/ptc-dropdown.css +4 -0
  73. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +156 -144
  74. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.css +19 -1
  75. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +115 -77
  76. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +70 -70
  77. package/dist/collection/components/ptc-hero/ptc-hero.js +67 -67
  78. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +77 -77
  79. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +145 -145
  80. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +6 -1
  81. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +86 -86
  82. package/dist/collection/components/ptc-img/ptc-img.js +314 -314
  83. package/dist/collection/components/ptc-link/ptc-link.js +198 -198
  84. package/dist/collection/components/ptc-list/ptc-list.js +95 -95
  85. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  86. package/dist/collection/components/ptc-lottie/ptc-lottie.js +58 -58
  87. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +17 -17
  88. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +80 -80
  89. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +221 -221
  90. package/dist/collection/components/ptc-modal/ptc-modal.js +337 -337
  91. package/dist/collection/components/ptc-nav/ptc-nav.js +21 -21
  92. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -252
  93. package/dist/collection/components/ptc-overlay/ptc-overlay.js +99 -99
  94. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +317 -317
  95. package/dist/collection/components/ptc-para/ptc-para.js +167 -167
  96. package/dist/collection/components/ptc-picture/ptc-picture.js +474 -474
  97. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +54 -54
  98. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +25 -25
  99. package/dist/collection/components/ptc-quote/ptc-quote.js +154 -154
  100. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  101. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +62 -62
  102. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +91 -91
  103. package/dist/collection/components/ptc-social-share/ptc-social-share.js +206 -206
  104. package/dist/collection/components/ptc-spacer/ptc-spacer.css +322 -322
  105. package/dist/collection/components/ptc-spacer/ptc-spacer.js +99 -99
  106. package/dist/collection/components/ptc-span/ptc-span.js +89 -89
  107. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +71 -71
  108. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +145 -140
  109. package/dist/collection/components/ptc-title/ptc-title.js +245 -245
  110. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +40 -40
  111. package/dist/collection/components/tab-content/tab-content.js +74 -74
  112. package/dist/collection/components/tab-header/tab-header.css +1 -0
  113. package/dist/collection/components/tab-header/tab-header.js +107 -107
  114. package/dist/collection/index.js +1 -1
  115. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  116. package/dist/collection/media/svg-imgs/close.svg +10 -10
  117. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  118. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  119. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  120. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  121. package/dist/collection/media/svg-imgs/union.svg +3 -3
  122. package/dist/collection/utils/component.js +3 -3
  123. package/dist/collection/utils/interfaces.js +11 -11
  124. package/dist/collection/utils/utils.js +65 -65
  125. package/dist/custom-elements/index.js +3084 -3063
  126. package/dist/esm/dropdown-item.entry.js +11 -11
  127. package/dist/esm/icon-asset_13.entry.js +751 -0
  128. package/dist/esm/{index-f64012bd.js → index-a91c2367.js} +3 -1
  129. package/dist/esm/{interfaces-4caedd26.js → interfaces-c1c73092.js} +10 -10
  130. package/dist/esm/list-item.entry.js +21 -21
  131. package/dist/esm/loader.js +2 -2
  132. package/dist/esm/lottie-player.entry.js +355 -355
  133. package/dist/esm/my-component.entry.js +13 -13
  134. package/dist/esm/polyfills/core-js.js +0 -0
  135. package/dist/esm/polyfills/dom.js +0 -0
  136. package/dist/esm/polyfills/es5-html-element.js +0 -0
  137. package/dist/esm/polyfills/index.js +0 -0
  138. package/dist/esm/polyfills/system.js +0 -0
  139. package/dist/esm/ptc-accordion-item.entry.js +98 -98
  140. package/dist/esm/ptc-accordion.entry.js +39 -39
  141. package/dist/esm/ptc-announcement.entry.js +38 -38
  142. package/dist/esm/ptc-breadcrumb.entry.js +13 -13
  143. package/dist/esm/ptc-card-bottom.entry.js +32 -32
  144. package/dist/esm/ptc-card-content.entry.js +32 -32
  145. package/dist/esm/ptc-card-plm.entry.js +17 -17
  146. package/dist/esm/ptc-card.entry.js +75 -0
  147. package/dist/esm/ptc-collapse-list.entry.js +192 -192
  148. package/dist/esm/ptc-date.entry.js +55 -0
  149. package/dist/esm/ptc-ellipsis-dropdown.entry.js +39 -25
  150. package/dist/esm/ptc-hero-footer-cta.entry.js +9 -9
  151. package/dist/esm/ptc-hero.entry.js +19 -19
  152. package/dist/esm/ptc-icon-list.entry.js +33 -33
  153. package/dist/esm/ptc-img_2.entry.js +180 -0
  154. package/dist/esm/ptc-list.entry.js +51 -51
  155. package/dist/esm/ptc-lottie.entry.js +13 -13
  156. package/dist/esm/ptc-minimized-footer.entry.js +9 -9
  157. package/dist/esm/ptc-minimized-header.entry.js +12 -12
  158. package/dist/esm/ptc-mobile-select.entry.js +70 -70
  159. package/dist/esm/ptc-nav-item.entry.js +84 -84
  160. package/dist/esm/ptc-nav.entry.js +9 -9
  161. package/dist/esm/ptc-pagenation.entry.js +111 -0
  162. package/dist/esm/ptc-picture.entry.js +170 -170
  163. package/dist/esm/ptc-previous-url.entry.js +9 -9
  164. package/dist/esm/ptc-pricing-block.entry.js +15 -15
  165. package/dist/esm/ptc-quote.entry.js +26 -26
  166. package/dist/esm/ptc-responsive-wrapper.entry.js +55 -55
  167. package/dist/esm/ptc-social-share.entry.js +65 -65
  168. package/dist/esm/ptc-span.entry.js +24 -24
  169. package/dist/esm/ptc-svg-btn.entry.js +76 -76
  170. package/dist/esm/ptc-tab-list.entry.js +119 -117
  171. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  172. package/dist/esm/ptcw-design.js +2 -2
  173. package/dist/esm/tab-content.entry.js +27 -27
  174. package/dist/esm/tab-header.entry.js +45 -45
  175. package/dist/esm/{utils-4b79ffaf.js → utils-334d53bc.js} +64 -64
  176. package/dist/ptcw-design/media/brands.svg +1381 -1381
  177. package/dist/ptcw-design/media/designer.svg +365 -365
  178. package/dist/ptcw-design/media/regular.svg +463 -463
  179. package/dist/ptcw-design/media/solid.svg +3013 -3013
  180. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  181. package/dist/ptcw-design/{p-d64c3892.entry.js → p-0004abbb.entry.js} +1 -1
  182. package/dist/ptcw-design/{p-5069bb7d.entry.js → p-03648d85.entry.js} +1 -1
  183. package/dist/ptcw-design/{p-c5951736.entry.js → p-07e08a42.entry.js} +1 -1
  184. package/dist/ptcw-design/p-08b4804a.entry.js +1 -0
  185. package/dist/ptcw-design/{p-612f7224.entry.js → p-09abf994.entry.js} +1 -1
  186. package/dist/ptcw-design/{p-72e6a3f1.entry.js → p-2173493c.entry.js} +1 -1
  187. package/dist/ptcw-design/p-22a11703.js +1 -0
  188. package/dist/ptcw-design/{p-fe957cbf.entry.js → p-273ff521.entry.js} +1 -1
  189. package/dist/ptcw-design/{p-48695e72.entry.js → p-2bec91cd.entry.js} +1 -1
  190. package/dist/ptcw-design/{p-8ea08e1d.entry.js → p-2f0223da.entry.js} +1 -1
  191. package/dist/ptcw-design/{p-2a1808f8.entry.js → p-30f33198.entry.js} +1 -1
  192. package/dist/ptcw-design/{p-8c6b8bc9.entry.js → p-3f0d3485.entry.js} +1 -1
  193. package/dist/ptcw-design/{p-dbf3779e.entry.js → p-401e8ad1.entry.js} +1 -1
  194. package/dist/ptcw-design/p-43e3f76e.entry.js +1 -0
  195. package/dist/ptcw-design/p-4a653f7f.entry.js +1 -0
  196. package/dist/ptcw-design/{p-711bcdad.js → p-50e52c88.js} +1 -1
  197. package/dist/ptcw-design/p-57f553f0.entry.js +1 -0
  198. package/dist/ptcw-design/{p-76635841.entry.js → p-735fb369.entry.js} +1 -1
  199. package/dist/ptcw-design/{p-28174fbe.entry.js → p-77327ab7.entry.js} +1 -1
  200. package/dist/ptcw-design/p-7c112bdc.entry.js +1 -0
  201. package/dist/ptcw-design/{p-796b4a16.entry.js → p-80be8fe1.entry.js} +1 -1
  202. package/dist/ptcw-design/p-831f5c16.entry.js +1 -0
  203. package/dist/ptcw-design/{p-3f236e98.entry.js → p-870406ab.entry.js} +1 -1
  204. package/dist/ptcw-design/{p-b146377a.entry.js → p-90266709.entry.js} +1 -1
  205. package/dist/ptcw-design/{p-2b3a38c3.entry.js → p-a0ddea6e.entry.js} +1 -1
  206. package/dist/ptcw-design/{p-3a972520.entry.js → p-a3e99867.entry.js} +1 -1
  207. package/dist/ptcw-design/p-a53873e9.entry.js +1 -0
  208. package/dist/ptcw-design/{p-0c86ac1a.entry.js → p-a6a938d2.entry.js} +1 -1
  209. package/dist/ptcw-design/p-aab72f28.entry.js +1 -0
  210. package/dist/ptcw-design/{p-dc605137.entry.js → p-b1354b54.entry.js} +1 -1
  211. package/dist/ptcw-design/{p-18d0d10a.entry.js → p-b22d9c93.entry.js} +1 -1
  212. package/dist/ptcw-design/{p-cd3fbbb1.entry.js → p-b59e68b8.entry.js} +1 -1
  213. package/dist/ptcw-design/{p-204a78ce.entry.js → p-b614e18a.entry.js} +1 -1
  214. package/dist/ptcw-design/{p-dc18ae76.entry.js → p-b6a9d66f.entry.js} +1 -1
  215. package/dist/ptcw-design/{p-7448f767.entry.js → p-b8dff289.entry.js} +1 -1
  216. package/dist/ptcw-design/p-b985e510.entry.js +1 -0
  217. package/dist/ptcw-design/{p-3f136737.entry.js → p-ca54a4bc.entry.js} +1 -1
  218. package/dist/ptcw-design/p-dac5d058.entry.js +1 -0
  219. package/dist/ptcw-design/{p-781aacb7.entry.js → p-f4148769.entry.js} +1 -1
  220. package/dist/ptcw-design/{p-58a3c173.entry.js → p-f4bab4bf.entry.js} +1 -1
  221. package/dist/ptcw-design/p-f8c949be.entry.js +1 -0
  222. package/dist/ptcw-design/{p-02894b57.entry.js → p-fd6eaf5b.entry.js} +1 -1
  223. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  224. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  225. package/dist/types/components/icon-asset/icon-asset.d.ts +36 -36
  226. package/dist/types/components/list-item/list-item.d.ts +8 -8
  227. package/dist/types/components/my-component/my-component.d.ts +16 -16
  228. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  229. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  230. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +43 -43
  231. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
  232. package/dist/types/components/ptc-button/ptc-button.d.ts +56 -56
  233. package/dist/types/components/ptc-card/ptc-card.d.ts +54 -54
  234. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  235. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +15 -15
  236. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -8
  237. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +11 -11
  238. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +39 -39
  239. package/dist/types/components/ptc-container/ptc-container.d.ts +12 -12
  240. package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
  241. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -18
  242. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -10
  243. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +11 -11
  244. package/dist/types/components/ptc-hero/ptc-hero.d.ts +12 -12
  245. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  246. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  247. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +9 -9
  248. package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
  249. package/dist/types/components/ptc-link/ptc-link.d.ts +36 -36
  250. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  251. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  252. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  253. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  254. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +40 -40
  255. package/dist/types/components/ptc-modal/ptc-modal.d.ts +55 -55
  256. package/dist/types/components/ptc-nav/ptc-nav.d.ts +3 -3
  257. package/dist/types/components/ptc-nav-item/ptc-nav-item.d.ts +53 -53
  258. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +20 -20
  259. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +27 -27
  260. package/dist/types/components/ptc-para/ptc-para.d.ts +29 -29
  261. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  262. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -5
  263. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +4 -4
  264. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  265. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  266. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  267. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +25 -25
  268. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  269. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  270. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +12 -12
  271. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +15 -14
  272. package/dist/types/components/ptc-title/ptc-title.d.ts +41 -41
  273. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  274. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  275. package/dist/types/components/tab-header/tab-header.d.ts +13 -13
  276. package/dist/types/components.d.ts +26 -24
  277. package/dist/types/global.d.ts +1072 -1072
  278. package/dist/types/index.d.ts +1 -1
  279. package/dist/types/utils/component.d.ts +1 -1
  280. package/dist/types/utils/interfaces.d.ts +28 -28
  281. package/dist/types/utils/utils.d.ts +3 -3
  282. package/package.json +59 -59
  283. package/readme.md +11 -11
  284. package/dist/cjs/icon-asset.cjs.entry.js +0 -64
  285. package/dist/cjs/ptc-button.cjs.entry.js +0 -76
  286. package/dist/cjs/ptc-card_6.cjs.entry.js +0 -488
  287. package/dist/cjs/ptc-checkbox.cjs.entry.js +0 -42
  288. package/dist/cjs/ptc-container.cjs.entry.js +0 -46
  289. package/dist/cjs/ptc-dropdown.cjs.entry.js +0 -69
  290. package/dist/cjs/ptc-filter-tag.cjs.entry.js +0 -39
  291. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +0 -46
  292. package/dist/cjs/ptc-link.cjs.entry.js +0 -53
  293. package/dist/cjs/ptc-modal.cjs.entry.js +0 -162
  294. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -31
  295. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +0 -64
  296. package/dist/cjs/ptc-title.cjs.entry.js +0 -68
  297. package/dist/esm/icon-asset.entry.js +0 -60
  298. package/dist/esm/ptc-button.entry.js +0 -72
  299. package/dist/esm/ptc-card_6.entry.js +0 -479
  300. package/dist/esm/ptc-checkbox.entry.js +0 -38
  301. package/dist/esm/ptc-container.entry.js +0 -42
  302. package/dist/esm/ptc-dropdown.entry.js +0 -65
  303. package/dist/esm/ptc-filter-tag.entry.js +0 -35
  304. package/dist/esm/ptc-icon-minimize.entry.js +0 -42
  305. package/dist/esm/ptc-link.entry.js +0 -49
  306. package/dist/esm/ptc-modal.entry.js +0 -158
  307. package/dist/esm/ptc-overlay.entry.js +0 -27
  308. package/dist/esm/ptc-shopping-cart.entry.js +0 -60
  309. package/dist/esm/ptc-title.entry.js +0 -64
  310. package/dist/ptcw-design/p-021d2117.entry.js +0 -1
  311. package/dist/ptcw-design/p-07c07cf9.entry.js +0 -1
  312. package/dist/ptcw-design/p-0da15d87.entry.js +0 -1
  313. package/dist/ptcw-design/p-1726a0cb.entry.js +0 -1
  314. package/dist/ptcw-design/p-3918de53.entry.js +0 -1
  315. package/dist/ptcw-design/p-412ca190.entry.js +0 -1
  316. package/dist/ptcw-design/p-489715bf.entry.js +0 -1
  317. package/dist/ptcw-design/p-52b80149.entry.js +0 -1
  318. package/dist/ptcw-design/p-7133275c.entry.js +0 -1
  319. package/dist/ptcw-design/p-71cecd28.entry.js +0 -1
  320. package/dist/ptcw-design/p-818df883.entry.js +0 -1
  321. package/dist/ptcw-design/p-a28c7277.entry.js +0 -1
  322. package/dist/ptcw-design/p-c3e79e54.entry.js +0 -1
  323. package/dist/ptcw-design/p-d8b48946.entry.js +0 -1
  324. package/dist/ptcw-design/p-d93ae820.entry.js +0 -1
  325. package/dist/ptcw-design/p-e8a60227.js +0 -1
  326. package/dist/ptcw-design/p-ee61991d.entry.js +0 -1
  327. package/dist/ptcw-design/p-ef93bfcc.entry.js +0 -1
  328. package/dist/ptcw-design/p-f32f9817.entry.js +0 -1
  329. package/dist/ptcw-design/p-fa681f61.entry.js +0 -1
  330. /package/dist/ptcw-design/{p-62f4a655.js → p-2e496d31.js} +0 -0
@@ -1,479 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-f64012bd.js';
2
- import { R as ResponsiveBgVariables } from './interfaces-4caedd26.js';
3
-
4
- 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:320px;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:449px;display:flex;flex-direction:row}:host(.listing-card) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.listing-card) .card-layout{display:block;position:relative}:host(.listing-card) .card-layout .ribbon-text{position:absolute;top:0;left:0;margin-right:100px;margin-top:22px;background-color:var(--color-white);padding:4px 22px 5px 23px;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);color:var(--color-gray-11)}: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: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(.listing-card) .card-media .smart-img{height:200px}:host(.listing-card) .card-body{padding:20px 38px 20px 20px}:host(.listing-card) .card-body .small{font-size:var(--ptc-font-size-x-small)}: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:12px;margin-top:0rem}: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:890px;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:224px}:host(.listing-card-horizontal) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.listing-card-horizontal) .card-layout{display:flex;flex-direction:row;width:890px;height:224px}: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:385px;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)}:host(.listing-card-horizontal) .card-media .smart-img{height:224px;width:385px}:host(.listing-card-horizontal) .card-body{padding:20px 38px 20px 20px;width:505px}:host(.listing-card-horizontal) .card-body .small{font-size:var(--ptc-font-size-x-small)}: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:12px;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:39px}.ptc-h3.uppercase{text-transform:uppercase}.ptc-h3.capitalize{text-transform:capitalize}.ptc-h3.lowercase{text-transform:lowercase}.ptc-h3.none{text-transform:none}";
5
-
6
- let PtcCard = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- /**
10
- * Card Type
11
- * Specify Card Type, default to simple card
12
- */
13
- this.cardType = 'custom-card';
14
- /**
15
- * Card Link URL (Optional)
16
- */
17
- this.cardHref = undefined;
18
- /**
19
- * (optional) Link card target
20
- * */
21
- this.target = '_self';
22
- /**
23
- * (optional) Link card rel
24
- * */
25
- this.rel = undefined;
26
- /**
27
- * If this card has Image
28
- */
29
- this.hasImage = false;
30
- /**
31
- * If this card has Video
32
- */
33
- this.hasVideo = false;
34
- /**
35
- * If this card has Lottie Image
36
- */
37
- this.hasLottie = false;
38
- /**
39
- * Card heading text transform
40
- */
41
- this.headingTransform = 'none';
42
- }
43
- render() {
44
- const Tag = !!this.cardHref ? 'a' : 'div';
45
- const classMap = this.getCssClassMap();
46
- return (h(Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), this.styles && h("style", null, this.styles), h("div", { class: "card-border", part: "border-wrapper" }, 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 ? (h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? h("slot", { name: this.getMediaSlot() }) : null)) : null, !!this.ribbonText && this.cardType == 'listing-card' ? h("div", { class: "ribbon-text" }, `${this.ribbonText}`) : null, h("div", { class: "card-body", part: "body-wrapper" }, !!this.cardDate && (this.cardType === 'listing-card' || this.cardType === 'listing-card-horizontal') ? h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{font-weight: 400;font-size: 16px;line-height: 19px;color: #282F35;margin-bottom:24px;display:inline-block;}" }) : null, h("slot", { name: "slot-before-heading" }), !!this.heading
47
- ? [
48
- h("h3", { class: `ptc-h3 ${this.headingTransform}`, part: "card-heading" }, this.heading),
49
- h("slot", { name: "slot-after-heading" }),
50
- ]
51
- : null, h("slot", { name: "slot-description" }), !!this.cardDate && this.cardType !== 'listing-card' && this.cardType !== 'listing-card-horizontal' && this.cardType !== 'hightlight-card' ? 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)))));
52
- }
53
- getCssClassMap() {
54
- return {
55
- ['card-layout']: true,
56
- ['link-wrapper']: !!this.cardType ? true : false,
57
- };
58
- }
59
- getMediaSlot() {
60
- if (this.hasLottie) {
61
- return 'slot-lottie';
62
- }
63
- else if (this.hasVideo) {
64
- return 'slot-video';
65
- }
66
- else if (this.hasImage) {
67
- return 'slot-image';
68
- }
69
- else {
70
- return null;
71
- }
72
- }
73
- };
74
- PtcCard.style = ptcCardCss;
75
-
76
- 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)}";
77
-
78
- let PtcDate = class {
79
- constructor(hostRef) {
80
- registerInstance(this, hostRef);
81
- /**
82
- * Year
83
- */
84
- this.year = 1900;
85
- /**
86
- * Month
87
- * An integer between 1 (January) and 12 (December) representing the month.If omitted, defaults to 0.
88
- */
89
- this.month = 0;
90
- /**
91
- * Day
92
- * An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
93
- */
94
- this.day = 1;
95
- /**
96
- * Country
97
- * examples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES
98
- */
99
- this.country = 'en-US';
100
- /**
101
- * Date Font Size
102
- */
103
- this.dataSize = 'small';
104
- }
105
- render() {
106
- // const newDate = new Date(this.year, this.month, this.day);
107
- const classMap = this.getCssClassMap();
108
- return (h(Host, { class: classMap }, this.dateStyles && h("style", null, this.dateStyles), h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
109
- }
110
- getCssClassMap() {
111
- return {
112
- [this.dateColor]: !!this.dateColor ? true : false,
113
- [this.dataSize]: !!this.dataSize ? true : false,
114
- };
115
- }
116
- getDate() {
117
- if (this.dateString) {
118
- let newDate = new Date(this.dateString.replace(/-/g, '/'));
119
- return newDate;
120
- }
121
- else {
122
- return new Date(this.year, this.month - 1, this.day);
123
- }
124
- }
125
- };
126
- PtcDate.style = ptcDateCss;
127
-
128
- 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}}";
129
-
130
- let PtcImg = class {
131
- constructor(hostRef) {
132
- registerInstance(this, hostRef);
133
- /**
134
- * Image size for smallest screen
135
- * <=767px
136
- */
137
- this.sizeXs = '510x340';
138
- /**
139
- * Image size for small screen
140
- * >=768px and <=991px
141
- */
142
- this.sizeSm = '1240x496';
143
- /**
144
- * Image size for medium screen
145
- * >=992px and <=1199px
146
- */
147
- this.sizeMd = '1366x500';
148
- /**
149
- * Image solution for large screen
150
- * >=1200px
151
- */
152
- this.sizeLg = '1920x1080';
153
- /**
154
- * Image type
155
- */
156
- this.imageType = 'smart-bg';
157
- /**
158
- * Image border shape
159
- */
160
- this.borderRadius = '';
161
- /**
162
- * Lazy loading option
163
- */
164
- this.loadMode = 'lazy-bg';
165
- }
166
- /**
167
- * Image Z Index
168
- */
169
- // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
170
- WindowResize() {
171
- this.setResponsiveBg();
172
- }
173
- render() {
174
- const classMap = this.getCssClassMap();
175
- return (h(Host, null, 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' ? h("slot", null) : null)));
176
- }
177
- componentDidLoad() {
178
- this.addIntersectionObserver();
179
- this.setResponsiveBg();
180
- }
181
- componentWillUpdate() {
182
- // console.log('componentWillUpdate!');
183
- this.addIntersectionObserver();
184
- this.setResponsiveBg();
185
- }
186
- //responsive image
187
- setResponsiveBg() {
188
- // Define local variables
189
- let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
190
- // console.log('current breakpoint: ' + currentBreakpoint);
191
- // Loop through all target elements
192
- for (var i = 0, len = backgrounds.length; i < len; i++) {
193
- // Set current variables
194
- el = backgrounds[i];
195
- elData = el.getAttribute('data-' + currentBreakpoint);
196
- // If the data attribute exists, set the background
197
- if (elData !== null) {
198
- el.style.backgroundImage = "url('" + elData + "')";
199
- }
200
- else {
201
- if (typeof console == 'object') {
202
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
203
- }
204
- }
205
- }
206
- }
207
- //lazy loading
208
- addIntersectionObserver() {
209
- if (!this.imgUrl) {
210
- console.log('no image!');
211
- return;
212
- }
213
- if ('IntersectionObserver' in window) {
214
- let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
215
- let bgObserver = new IntersectionObserver(entries => {
216
- entries.forEach(entry => {
217
- if (entry.isIntersecting) {
218
- const image = entry.target;
219
- image.classList.remove('lazy-bg');
220
- // console.log('loaded');
221
- bgObserver.unobserve(image);
222
- }
223
- });
224
- });
225
- lazyLoadBgs.forEach(image => {
226
- bgObserver.observe(image);
227
- });
228
- }
229
- }
230
- getCssClassMap() {
231
- return {
232
- [this.imageType]: true,
233
- 'ptc-img': true,
234
- [this.borderRadius]: true,
235
- [this.loadMode]: true,
236
- // [this.imageZIndex] : true
237
- };
238
- }
239
- getCurrentBreakPoints() {
240
- // Define local variables
241
- let doc = window.document, temp = doc.createElement('div'), env;
242
- // Append test node
243
- doc.body.appendChild(temp);
244
- // Loop through breakpoints
245
- for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
246
- env = ResponsiveBgVariables.envs[i];
247
- // Add classes
248
- temp.className = 'hidden-' + env;
249
- // Found breakpoint
250
- if (temp.offsetParent === null) {
251
- // Remove our test node
252
- doc.body.removeChild(temp);
253
- console.log('remove test node');
254
- // Return current breakpoint
255
- return env;
256
- }
257
- }
258
- // Breakpoint not found, try fallback
259
- doc.body.removeChild(temp);
260
- return this.getFallbackBreakpoint();
261
- }
262
- getFallbackBreakpoint() {
263
- if (window.matchMedia('(min-width: 992px)').matches) {
264
- return 'lg';
265
- }
266
- else if (window.matchMedia('(min-width: 768px)').matches) {
267
- return 'md';
268
- }
269
- else if (window.matchMedia('(min-width: 576px)').matches) {
270
- return 'sm';
271
- }
272
- else {
273
- return 'xs';
274
- }
275
- }
276
- get el() { return getElement(this); }
277
- };
278
- PtcImg.style = ptcImgCss;
279
-
280
- const ptcPagenationCss = ":host{display:block}.events-filter{padding:20px 32px 20px 0;text-align:center}@media (min-width: 992px){.events-filter{padding:10px 40px 10px 0px}}.events-filter .pagenation-arrow{width:40px;height:40px;margin:0 15px;vertical-align:middle}.show-page{display:inline}.hide-page{display:none}.prev-text{display:none}.last-text{display:none}@media (min-width: 992px){.prev-text{display:inline;cursor:pointer}.last-text{display:inline;cursor:pointer}}.events-filter-item{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-semibold);font-stretch:normal;font-style:var(--ptc-font-style-normal);line-height:var(--ptc-line-height-denser);letter-spacing:var(--ptc-letter-spacing-normal);text-align:left;padding:6px;color:var(--color-gray-13);text-decoration:none}.events-filter .active{font-family:var(--ptc-font-latin);border-bottom:2px solid var(--color-green-13);font-weight:var(--ptc-font-weight-semibold)}.events-filter-item:hover,.events-filter-item:focus{text-decoration:none;outline:0;color:var(--color-green-14)}.events-filter .disabled{color:var(--color-white-01)}.events-filter-dots{padding:0rem;font-weight:var(--ptc-font-weight-extrabold);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-stretch:normal;font-style:var(--ptc-font-style-normal);line-height:var(--ptc-line-height-denser);letter-spacing:var(--ptc-letter-spacing-normal);text-align:left;color:var(--color-gray-13);text-decoration:none}.events-disable-arrows{opacity:0.35}.events-enable-arrows{opacity:1}.events-small-dots{height:60px;margin-top:-25px}@media (min-width: 992px){.events-small-dots{height:80px;margin-top:-40px}}.last-page{transform:rotate(180deg)}";
281
-
282
- let PtcPagenation = class {
283
- constructor(hostRef) {
284
- registerInstance(this, hostRef);
285
- this.pageClicked = createEvent(this, "pageClicked", 7);
286
- this.numberOfItems = 9; //page size
287
- this.previousValue = "Previous";
288
- this.lastValue = "Next";
289
- this.pageNumbers = [];
290
- this.minPageNumber = 1;
291
- this.maxPageNumber = 4;
292
- this.clickedPageNumber = 1;
293
- this.appendArray = true;
294
- this.prevArrowImg = "/dist/ptc/images/sidescroll-left-curved.svg";
295
- this.nextArrowImg = "/dist/ptc/images/sidescroll-right-curved.svg";
296
- this.handleClick = () => {
297
- if (this.clickedPageNumber < this.getPageCount()) {
298
- if (this.clickedPageNumber + 1 <= this.maxPageNumber) {
299
- this.handleClickPage(this.clickedPageNumber + 1);
300
- }
301
- else {
302
- this.minPageNumber = this.minPageNumber + 4;
303
- this.clickedPageNumber = this.clickedPageNumber + 1;
304
- this.appendArray = true;
305
- this.pageNumbers = [...this.pageNumbers];
306
- this.pageClicked.emit(this.clickedPageNumber);
307
- }
308
- }
309
- };
310
- this.handleClickPrev = () => {
311
- if (this.clickedPageNumber > 1) {
312
- if (this.clickedPageNumber - 1 >= this.minPageNumber) {
313
- this.handleClickPage(this.clickedPageNumber - 1);
314
- }
315
- else {
316
- this.minPageNumber = this.minPageNumber - 4;
317
- this.clickedPageNumber = this.clickedPageNumber - 1;
318
- this.appendArray = true;
319
- this.pageNumbers = [...this.pageNumbers];
320
- this.pageClicked.emit(this.clickedPageNumber);
321
- }
322
- }
323
- };
324
- this.getPageCount = () => {
325
- let pageCount = 0;
326
- if (this.totalCount != 0) {
327
- if (this.totalCount % this.numberOfItems == 0) {
328
- pageCount = this.totalCount / this.numberOfItems;
329
- }
330
- else {
331
- pageCount = this.totalCount / this.numberOfItems + 1;
332
- }
333
- }
334
- return Math.floor(pageCount);
335
- };
336
- this.getIndex = (appendarr) => {
337
- //var games : string[] = [];
338
- //let games : HTMLElement[] = [];
339
- //let items: pageItem[] = [];
340
- if (appendarr) {
341
- let pageCountVal = this.getPageCount();
342
- this.maxPageNumber = pageCountVal >= this.minPageNumber + 3 ? this.minPageNumber + 3 : pageCountVal;
343
- this.pageNumbers = [];
344
- for (let i = this.minPageNumber; i <= this.maxPageNumber; i++) {
345
- let id = i + "Id";
346
- let isItemActive = false;
347
- if (i == this.clickedPageNumber) {
348
- isItemActive = true;
349
- }
350
- // if (i > 4)
351
- // {
352
- // hideShowPageClass = " hide-page";
353
- // }
354
- const newPageItem = {
355
- id: id,
356
- isActive: isItemActive,
357
- dataPage: i
358
- };
359
- this.pageNumbers = [...this.pageNumbers, newPageItem];
360
- //games.push(<a href="#" data-url={id} data-page={i} class={classValue}>i</a>);
361
- }
362
- }
363
- return this.pageNumbers;
364
- };
365
- }
366
- render() {
367
- let pageCountValue = this.getPageCount();
368
- this.pageNumbers = [...this.getIndex(this.appendArray)];
369
- return (h("div", { class: "events-filter" }, h("span", { class: this.clickedPageNumber == 1 ? "events-filter-item disabled prev-text" : "events-filter-item prev-text" }, this.previousValue), h("img", { src: this.prevArrowImg, onClick: this.handleClickPrev, class: this.clickedPageNumber == 1 ? "pagenation-arrow prev-page events-disable-arrows" : "pagenation-arrow prev-page" }), this.pageNumbers.map(anchoritem => {
370
- return (h("a", { href: "#", "data-url": anchoritem.id, "data-page": anchoritem.dataPage, class: anchoritem.isActive ? "events-filter-item active" : "events-filter-item", onClick: () => this.handleClickPage(anchoritem.dataPage) }, anchoritem.dataPage));
371
- }), pageCountValue > this.maxPageNumber ? (h("span", { class: "events-filter-dots" }, ". . .")) : null, h("img", { src: this.nextArrowImg, onClick: this.handleClick, class: this.clickedPageNumber == pageCountValue ? "pagenation-arrow last-page events-disable-arrows" : "pagenation-arrow last-page" }), h("span", { class: this.clickedPageNumber == pageCountValue ? "events-filter-item disabled last-text" : "events-filter-item last-text" }, this.lastValue)));
372
- }
373
- handleClickPage(clickedPage) {
374
- this.clickedPageNumber = clickedPage;
375
- let newArray = [];
376
- this.appendArray = false;
377
- newArray = [...this.pageNumbers];
378
- newArray.map(item => {
379
- item.dataPage == clickedPage ? item.isActive = true : item.isActive = false;
380
- });
381
- this.pageNumbers = null;
382
- this.pageNumbers = [...newArray];
383
- this.pageClicked.emit(clickedPage);
384
- }
385
- };
386
- PtcPagenation.style = ptcPagenationCss;
387
-
388
- 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-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)}";
389
-
390
- let PtcPara = class {
391
- constructor(hostRef) {
392
- registerInstance(this, hostRef);
393
- /**
394
- * Paragraph font size
395
- **/
396
- this.fontSize = "x-small";
397
- /**
398
- * Paragraph font weight
399
- **/
400
- this.fontWeight = 'w-4';
401
- /**
402
- * Paragraph Style
403
- **/
404
- this.paraStyle = 'default';
405
- /**
406
- * Paragraph Color
407
- */
408
- this.paraColor = 'primary-grey';
409
- /**
410
- * line height
411
- */
412
- this.paraLineH = 'line-height-normal';
413
- }
414
- render() {
415
- const classMap = this.getCssClassMap();
416
- const colorClass = this.addWhiteClass();
417
- return (h(Host, { class: colorClass }, h("p", { class: classMap, part: "part-para" }, h("slot", null))));
418
- }
419
- getCssClassMap() {
420
- return {
421
- [this.fontSize]: true,
422
- [this.fontWeight]: true,
423
- [this.paraStyle]: true,
424
- [this.paraMargin]: !!this.paraMargin ? true : false,
425
- [this.paraColor]: true,
426
- [this.paraLineH]: true
427
- };
428
- }
429
- //WEB-2392
430
- addWhiteClass() {
431
- if (this.paraColor == "white") {
432
- return {
433
- [this.paraColor]: true,
434
- };
435
- }
436
- }
437
- };
438
- PtcPara.style = ptcParaCss;
439
-
440
- 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}}";
441
-
442
- let PtcSpacer = class {
443
- constructor(hostRef) {
444
- registerInstance(this, hostRef);
445
- /**
446
- * Breakpoint
447
- */
448
- this.breakpoint = '';
449
- /**
450
- * Spacing Size
451
- */
452
- this.size = 'medium';
453
- /**
454
- * Direction
455
- */
456
- this.direction = 'vertical';
457
- }
458
- render() {
459
- const classMap = this.getCssClassMap();
460
- return (h(Host, { class: classMap }));
461
- }
462
- getCssClassMap() {
463
- return {
464
- [this.size]: true,
465
- ['ptc-spacer-horizontal']: this.direction === 'horizontal',
466
- ['ptc-spacer-vertical']: this.direction === 'vertical',
467
- ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
468
- ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
469
- ['ptc-spacer-small']: this.breakpoint === 'small',
470
- ['ptc-spacer-medium']: this.breakpoint === 'medium',
471
- ['ptc-spacer-large']: this.breakpoint === 'large',
472
- ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
473
- ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
474
- };
475
- }
476
- };
477
- PtcSpacer.style = ptcSpacerCss;
478
-
479
- export { PtcCard as ptc_card, PtcDate as ptc_date, PtcImg as ptc_img, PtcPagenation as ptc_pagenation, PtcPara as ptc_para, PtcSpacer as ptc_spacer };
@@ -1,38 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f64012bd.js';
2
-
3
- const ptcCheckboxCss = ":host{display:block}:host .ptc-checkbox{display:block;position:relative;user-select:none;cursor:pointer;font-family:\"Raleway\";font-style:normal;color:var(--color-gray-10);padding-left:var(--spacing-lg);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-dense)}:host .ptc-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}:host .ptc-checkbox .check{position:absolute;top:0;left:0;height:1.375rem;width:1.375rem;background-color:var(--color-white);border:1px solid var(--color-gray-07);box-sizing:border-box;border-radius:0.4rem}:host .ptc-checkbox .check .mark{position:absolute;transition:opacity ease-out 250ms;opacity:0;left:3px;top:-2px;width:1.375rem;height:1.375rem}:host .ptc-checkbox input:checked~.check{background-color:#1F2024}:host .ptc-checkbox input:checked~.check .mark{opacity:1}:host .ptc-checkbox:hover input~.check{background-color:#E4E7E9}:host .ptc-checkbox:hover input:checked~.check{background-color:#33353A}";
4
-
5
- let PtcCheckbox = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.checkedChanged = createEvent(this, "checkedChanged", 7);
9
- this.checked = 'unchecked';
10
- this.handleClick = (e) => {
11
- let input = this.host.shadowRoot.querySelector('input');
12
- if (this.checked == 'unchecked') {
13
- this.checked = 'checked';
14
- }
15
- else {
16
- this.checked = 'unchecked';
17
- }
18
- let parameter = {
19
- event: e,
20
- sender: input,
21
- value: this.value,
22
- checked: this.checked
23
- };
24
- this.checkedChanged.emit(parameter);
25
- };
26
- }
27
- componentDidLoad() {
28
- let input = this.host.shadowRoot.querySelector('input');
29
- input.checked = this.checked == 'checked';
30
- }
31
- render() {
32
- return (h(Host, null, h("label", { class: "ptc-checkbox" }, h("slot", null), h("input", { type: "checkbox", checked: this.checked == "checked", name: this.inputName, value: this.value, onChange: (e) => this.handleClick(e) }), h("span", { class: "check" }, h("span", { class: "mark" }, h("icon-asset", { type: "ptc", size: "xx-small", name: "checkmark" }))))));
33
- }
34
- get host() { return getElement(this); }
35
- };
36
- PtcCheckbox.style = ptcCheckboxCss;
37
-
38
- export { PtcCheckbox as ptc_checkbox };
@@ -1,42 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-f64012bd.js';
2
-
3
- const ptcContainerCss = ":host{display:block;position:relative}.white{border-radius:4px;background-color:var(--color-white)}.gray{border-radius:4px;background-color:var(--color-white-gray)}.content-wrapper{font-family:Raleway;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0;text-align:left}.content-wrapper.x-small{box-shadow:var(--ptc-shadow-x-small)}.content-wrapper.small{box-shadow:var(--ptc-shadow-small)}.content-wrapper.medium{box-shadow:var(--ptc-shadow-medium)}.content-wrapper.large{box-shadow:var(--ptc-shadow-large)}.content-wrapper.x-large{box-shadow:var(--ptc-shadow-x-large)}.content-wrapper.spacing-xx-small{padding:var(--ptc-element-spacing-01)}.content-wrapper.spacing-x-small{padding:var(--ptc-element-spacing-02)}.content-wrapper.spacing-small{padding:var(--ptc-element-spacing-03)}.content-wrapper.spacing-medium{padding:var(--ptc-element-spacing-04)}.content-wrapper.spacing-large{padding:var(--ptc-element-spacing-05)}.content-wrapper.spacing-x-large{padding:var(--ptc-element-spacing-06)}.content-wrapper.spacing-xx-large{padding:var(--ptc-element-spacing-07)}.content-wrapper.spacing-xxx-large{padding:var(--ptc-element-spacing-08)}";
4
-
5
- let PtcContainer = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- /**
9
- * Theme
10
- */
11
- this.backgroundColor = 'white';
12
- this.elevation = 'small';
13
- this.containerType = 'normal';
14
- this.spacing = 'xxx-large';
15
- }
16
- render() {
17
- const classMap = this.getCssClassMap();
18
- return (h(Host, { class: this.getContainerClass() }, h("div", { class: classMap }, h("slot", null))));
19
- }
20
- getContainerClass() {
21
- switch (this.containerType) {
22
- case 'large':
23
- return 'ptc-container-lg';
24
- case 'none':
25
- return undefined;
26
- default:
27
- return 'ptc-container';
28
- }
29
- }
30
- getCssClassMap() {
31
- const spacing = `spacing-${this.spacing}`;
32
- return {
33
- ['content-wrapper']: true,
34
- [this.backgroundColor]: true,
35
- [this.elevation]: true,
36
- [spacing]: true
37
- };
38
- }
39
- };
40
- PtcContainer.style = ptcContainerCss;
41
-
42
- export { PtcContainer as ptc_container };
@@ -1,65 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-f64012bd.js';
2
-
3
- const ptcDropdownCss = "@charset \"UTF-8\";:host{position:relative}:host .dropdown__header{cursor:pointer;transition:background-color ease-out 250ms, border-color ease-out 250ms;background-color:var(--color-white);display:flex;align-items:center;align-content:center;border:1px solid var(--color-gray-05);padding:0.25rem 0.75rem 0.25rem 0.75rem;border-radius:4px;font-family:Raleway;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0em;text-align:left}:host .dropdown__header b{font-weight:600}:host .dropdown__header icon-asset{width:1rem;height:1rem;margin-left:0.5rem}:host .dropdown__header:hover{background-color:var(--color-gray-02)}:host .dropdown__list{display:table;border:1px solid rgba(0, 0, 0, 0.24);border-radius:8px}:host ul{display:block;top:0.2rem;right:0.2rem;margin:0;list-style-type:none;padding-inline-start:0;padding:0.25rem 0.25rem;background-color:var(--color-gray-02);cursor:pointer;position:absolute;z-index:500}:host ul li{white-space:nowrap;padding:3px 1rem;font-weight:500}:host ul li.selected:before{content:\"✓\";display:block;position:absolute;left:0.4rem}:host ul li:hover{color:#fff;background-color:#699af8;border-radius:4px}";
4
-
5
- let PtcDropdown = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.clickedItem = createEvent(this, "clickedItem", 7);
9
- /**
10
- * Theme
11
- */
12
- this.theme = 'sort';
13
- this.toggle = false;
14
- this.handleClick = (item) => {
15
- this.listItems.forEach((item) => item.selected = undefined);
16
- item.selected = true;
17
- this.selectedItem = item;
18
- this.toggle = !this.toggle;
19
- this.clickedItem.emit(item);
20
- };
21
- this.toggleList = () => {
22
- this.toggle = !this.toggle;
23
- };
24
- }
25
- componentWillLoad() {
26
- let items = this.host.querySelectorAll('item');
27
- if (!this.listItems) {
28
- this.listItems = [];
29
- }
30
- items.forEach(item => {
31
- if (item && item.getAttribute('label')) {
32
- let listItem = {
33
- element: item,
34
- label: item.getAttribute('label'),
35
- selected: item.hasAttribute('selected')
36
- };
37
- this.listItems.push(listItem);
38
- if (item.hasAttribute('selected')) {
39
- this.selectedItem = listItem;
40
- }
41
- }
42
- });
43
- }
44
- render() {
45
- const classMap = this.getCssClassMap();
46
- return (h("div", { class: classMap }, h("header", { class: "dropdown__header", onClick: this.toggleList }, h("label", null, h("b", null, this.label), " ", this.selectedItem ? this.selectedItem.label : "Select Option"), h("icon-asset", { type: "solid", size: "x-small", name: "chevron-down" })), this.toggle &&
47
- h("ul", { tabIndex: -1, class: "dropdown__list", onBlur: () => { this.toggle = false; } }, this.listItems.map((item) => {
48
- let cssClass = "dropdown__item";
49
- if (item.selected) {
50
- cssClass += " selected";
51
- }
52
- return (h("li", { class: cssClass, onClick: () => this.handleClick(item) }, item.label));
53
- }))));
54
- }
55
- getCssClassMap() {
56
- return {
57
- ['ptc-dropdown']: true,
58
- [this.theme]: true
59
- };
60
- }
61
- get host() { return getElement(this); }
62
- };
63
- PtcDropdown.style = ptcDropdownCss;
64
-
65
- export { PtcDropdown as ptc_dropdown };