@ptcwebops/ptcw-design 6.3.57-beta → 6.3.59-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ptc-button_5.cjs.entry.js +542 -0
  3. package/dist/cjs/ptc-nav-link.cjs.entry.js +1 -1
  4. package/dist/cjs/ptc-white-paper.cjs.entry.js +10 -4
  5. package/dist/cjs/ptcw-design.cjs.js +1 -1
  6. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +10 -4
  7. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +1 -1
  8. package/dist/custom-elements/index.js +11 -5
  9. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  10. package/dist/esm/blog-detail-layout.entry.js +1 -1
  11. package/dist/esm/blogs-search-section.entry.js +1 -1
  12. package/dist/esm/homepage-jumbotron.entry.js +1 -1
  13. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  14. package/dist/esm/{interfaces-4caedd26.js → interfaces-7c0243be.js} +1 -1
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/most-popular-news.entry.js +1 -1
  17. package/dist/esm/my-component.entry.js +1 -1
  18. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  19. package/dist/esm/ptc-background-video.entry.js +1 -1
  20. package/dist/esm/ptc-button_5.entry.js +534 -0
  21. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  22. package/dist/esm/ptc-form-checkbox_4.entry.js +1 -1
  23. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  24. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  25. package/dist/esm/ptc-icon-card.entry.js +1 -1
  26. package/dist/esm/ptc-img.entry.js +1 -1
  27. package/dist/esm/ptc-link.entry.js +1 -1
  28. package/dist/esm/ptc-media-card.entry.js +1 -1
  29. package/dist/esm/ptc-nav-link.entry.js +1 -1
  30. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  31. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  32. package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
  33. package/dist/esm/ptc-white-paper.entry.js +10 -4
  34. package/dist/esm/ptcw-design.js +1 -1
  35. package/dist/esm/{utils-2f12c081.js → utils-7c68b88a.js} +1 -1
  36. package/dist/ptcw-design/{p-901c31b3.entry.js → p-0252726c.entry.js} +1 -1
  37. package/dist/ptcw-design/{p-1efb0486.entry.js → p-068ea6b7.entry.js} +1 -1
  38. package/dist/ptcw-design/{p-45b1f3fc.entry.js → p-16d47ac5.entry.js} +1 -1
  39. package/dist/ptcw-design/{p-a5fc048f.entry.js → p-24a6eefa.entry.js} +1 -1
  40. package/dist/ptcw-design/{p-9dbcfcee.entry.js → p-2ba1ef9d.entry.js} +1 -1
  41. package/dist/ptcw-design/{p-1eb40265.entry.js → p-30bfb2f9.entry.js} +1 -1
  42. package/dist/ptcw-design/{p-f1734520.entry.js → p-37c4f168.entry.js} +1 -1
  43. package/dist/ptcw-design/{p-297a14cb.entry.js → p-4056c365.entry.js} +1 -1
  44. package/dist/ptcw-design/p-4b7112be.entry.js +1 -0
  45. package/dist/ptcw-design/{p-b647f7a1.entry.js → p-50770cc0.entry.js} +1 -1
  46. package/dist/ptcw-design/{p-4ca956c1.entry.js → p-531caca4.entry.js} +1 -1
  47. package/dist/ptcw-design/{p-52e17d34.entry.js → p-55e344bc.entry.js} +1 -1
  48. package/dist/ptcw-design/{p-8cea8943.entry.js → p-5bd8b4be.entry.js} +1 -1
  49. package/dist/ptcw-design/{p-3ed4a7ed.entry.js → p-5ca42138.entry.js} +1 -1
  50. package/dist/ptcw-design/{p-257267e3.entry.js → p-673cfd2e.entry.js} +1 -1
  51. package/dist/ptcw-design/{p-8e42a22d.entry.js → p-757e3edb.entry.js} +1 -1
  52. package/dist/ptcw-design/{p-d51438de.entry.js → p-80588c84.entry.js} +1 -1
  53. package/dist/ptcw-design/{p-4702c233.entry.js → p-81e65926.entry.js} +1 -1
  54. package/dist/ptcw-design/{p-80122e26.js → p-826c17e8.js} +1 -1
  55. package/dist/ptcw-design/p-a3977a9e.entry.js +1 -0
  56. package/dist/ptcw-design/{p-8c121480.entry.js → p-a5ad0eff.entry.js} +1 -1
  57. package/dist/ptcw-design/p-b49245ed.entry.js +1 -0
  58. package/dist/ptcw-design/{p-14b7693f.entry.js → p-dffcfa42.entry.js} +1 -1
  59. package/dist/ptcw-design/{p-76dab076.entry.js → p-e813ea2b.entry.js} +1 -1
  60. package/dist/ptcw-design/{p-711bcdad.js → p-ee1183b2.js} +1 -1
  61. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  62. package/dist/types/components/ptc-mobile-select/mobile-select/dist/mobile-select.d.ts +209 -0
  63. package/dist/types/components/ptc-white-paper/ptc-white-paper.d.ts +1 -1
  64. package/dist/types/utils/eloqua.d.ts +9 -0
  65. package/package.json +1 -1
  66. package/readme.md +1 -1
  67. package/dist/cjs/ptc-button.cjs.entry.js +0 -89
  68. package/dist/cjs/ptc-para.cjs.entry.js +0 -127
  69. package/dist/cjs/ptc-picture.cjs.entry.js +0 -162
  70. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  71. package/dist/cjs/ptc-title.cjs.entry.js +0 -152
  72. package/dist/esm/ptc-button.entry.js +0 -85
  73. package/dist/esm/ptc-para.entry.js +0 -123
  74. package/dist/esm/ptc-picture.entry.js +0 -158
  75. package/dist/esm/ptc-spacer.entry.js +0 -34
  76. package/dist/esm/ptc-title.entry.js +0 -148
  77. package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
  78. package/dist/ptcw-design/p-2a20d4a6.entry.js +0 -1
  79. package/dist/ptcw-design/p-2cc7e2a8.entry.js +0 -1
  80. package/dist/ptcw-design/p-539639ff.entry.js +0 -1
  81. package/dist/ptcw-design/p-a41c7e39.entry.js +0 -1
  82. package/dist/ptcw-design/p-a8872ce3.entry.js +0 -1
  83. package/dist/ptcw-design/p-e4eb925f.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e,g as s}from"./p-ac75c7ad.js";import{a as h}from"./p-711bcdad.js";const a=class{constructor(i){t(this,i),this.src=void 0,this.alt="image",this.sizeXs="510x340",this.sizeSm="1240x496",this.sizeMd="1366x500",this.sizeLg="1920x1080",this.disableResize=!1,this.oldSrc=void 0,this.imagePosition="static",this.borderRadius=void 0,this.height=void 0,this.width=void 0,this.objectFit="cover",this.isFullHeight=!1,this.isFullWidth=!1,this.styles=void 0,this.imageAlignment="left",this.maxWidth=void 0,this.displayImage="block"}WindowResize(){this.addIntersectionObserver()}componentWillLoad(){this.disableResize&&(this.sizeXs=void 0,this.sizeSm=void 0,this.sizeMd=void 0,this.sizeLg=void 0)}componentDidLoad(){this.addIntersectionObserver()}componentWillUpdate(){this.src!==this.oldSrc&&this.addIntersectionObserver(),this.oldSrc=this.src}addIntersectionObserver(){if(this.src)if("IntersectionObserver"in window){let t=new IntersectionObserver((i=>{i.forEach((i=>{if(i.isIntersecting){const i=this.el.shadowRoot.querySelector("img");i.src=this.setResponsiveBg(),t.unobserve(i)}}))})),i=this.el.shadowRoot.querySelector("img");i&&t.observe(i)}else setTimeout((()=>{const t=this.el.shadowRoot.querySelector("img");t.src=this.setResponsiveBg(),t.onload=()=>{t.removeAttribute("data-src")}}),5e3)}setResponsiveBg(){let t,i,e=(this.el.shadowRoot||document).querySelectorAll("img"),s=this.getCurrentBreakPoints();for(var h=0,a=e.length;h<a;h++){if(t=e[h],i=t.getAttribute("data-"+s),null!==i)return i;"object"==typeof console&&console.warn("Data attribute: data-"+s+" not found on element:\n\n"+t.outerHTML+"\n\n\n")}}render(){const t=this.getCssClassMap(),s=this.getCssClassMapHost();return i(e,{class:s},this.styles&&i("style",null,this.styles),i("img",Object.assign({class:t,"data-xs":`${this.src}`,"data-sm":`${this.src}`,"data-md":`${this.src}`,"data-lg":`${this.src}`},this.width?{width:this.width}:{},this.height?{height:this.height}:{},{alt:this.alt,style:Object.assign({},this.maxWidth?{maxWidth:this.maxWidth+"px"}:{})})),i("slot",null))}getCurrentBreakPoints(){let t,i=window.document,e=i.createElement("div");i.body.appendChild(e);for(let s=h.envs.length-1;s>=0;s--)if(t=h.envs[s],e.className="hidden-"+t,null===e.offsetParent)return i.body.removeChild(e),t;return i.body.removeChild(e),this.getFallbackBreakpoint()}getFallbackBreakpoint(){return window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs"}getCssClassMap(){return{[this.borderRadius]:!!this.borderRadius,[this.objectFit]:!0,[this.isFullHeight?"is-full-height":"is-normal-height"]:!0,[this.isFullWidth?"is-full-width":"is-normal-width"]:!0,[this.displayImage]:!0}}getCssClassMapHost(){return{[this.imagePosition]:!0,[this.imageAlignment]:!0}}get el(){return s(this)}};a.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;overflow:hidden}:host .inline{display:inline}:host .inline-block{display:inline-block}:host .block{display:block}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:absolute}img{max-width:100%}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-pill{border-radius:var(--ptc-border-radius-pill)}.radius-circle{border-radius:var(--ptc-border-radius-circle)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";export{a as ptc_picture}