@ptcwebops/ptcw-design 5.8.9 → 5.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/cjs/blog-detail-content_21.cjs.entry.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-collapse-list.cjs.entry.js +7 -6
  4. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +128 -3
  5. package/dist/cjs/ptc-tab-list.cjs.entry.js +110 -2
  6. package/dist/cjs/ptc-value-led-layout.cjs.entry.js +7 -6
  7. package/dist/cjs/ptcw-design.cjs.js +1 -1
  8. package/dist/cjs/tab-content.cjs.entry.js +12 -2
  9. package/dist/cjs/tab-header.cjs.entry.js +7 -1
  10. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +7 -6
  11. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.css +8 -0
  12. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +138 -2
  13. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +7 -5
  14. package/dist/collection/components/ptc-tab-list/ptc-tab-list.css +5 -1
  15. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +148 -2
  16. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +7 -12
  17. package/dist/collection/components/tab-content/tab-content.css +0 -7
  18. package/dist/collection/components/tab-content/tab-content.js +11 -1
  19. package/dist/collection/components/tab-header/tab-header.css +12 -0
  20. package/dist/collection/components/tab-header/tab-header.js +6 -0
  21. package/dist/custom-elements/index.js +275 -24
  22. package/dist/esm/blog-detail-content_21.entry.js +1 -1
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/esm/ptc-collapse-list.entry.js +7 -6
  25. package/dist/esm/ptc-ellipsis-dropdown.entry.js +128 -3
  26. package/dist/esm/ptc-tab-list.entry.js +110 -2
  27. package/dist/esm/ptc-value-led-layout.entry.js +7 -6
  28. package/dist/esm/ptcw-design.js +1 -1
  29. package/dist/esm/tab-content.entry.js +13 -3
  30. package/dist/esm/tab-header.entry.js +8 -2
  31. package/dist/ptcw-design/p-2c2f895a.entry.js +1 -0
  32. package/dist/ptcw-design/p-37480ed1.entry.js +1 -0
  33. package/dist/ptcw-design/p-38a56ed6.entry.js +1 -0
  34. package/dist/ptcw-design/p-5441b0b9.entry.js +1 -0
  35. package/dist/ptcw-design/p-8038bf31.entry.js +1 -0
  36. package/dist/ptcw-design/p-849655f7.entry.js +1 -0
  37. package/dist/ptcw-design/p-f618e1d4.entry.js +1 -0
  38. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  39. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -0
  40. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +12 -0
  41. package/dist/types/components/ptc-value-led-layout/ptc-value-led-layout.d.ts +0 -1
  42. package/dist/types/components/tab-content/tab-content.d.ts +4 -0
  43. package/dist/types/components/tab-header/tab-header.d.ts +1 -0
  44. package/dist/types/components.d.ts +2 -0
  45. package/dist/types/utils/interfaces.d.ts +2 -0
  46. package/package.json +1 -1
  47. package/readme.md +1 -1
  48. package/dist/ptcw-design/p-21a3fd97.entry.js +0 -1
  49. package/dist/ptcw-design/p-47c97f32.entry.js +0 -1
  50. package/dist/ptcw-design/p-5a96b4ce.entry.js +0 -1
  51. package/dist/ptcw-design/p-5d8333af.entry.js +0 -1
  52. package/dist/ptcw-design/p-754fe9f4.entry.js +0 -1
  53. package/dist/ptcw-design/p-904abfc9.entry.js +0 -1
  54. package/dist/ptcw-design/p-c642d666.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as e,g as o}from"./p-ac75c7ad.js";const n=class{constructor(e){i(this,e),this.itemSelected=t(this,"itemSelected",7),this.dataItems=[],this.selectedTab=void 0,this.isDropdownOpen=!1,this.isMobile=void 0,this.isIPad=void 0,this.dropdownType="default"}dropdownToggle(i){i.currentTarget.classList.toggle("show"),this.isDropdownOpen=i.currentTarget.classList.contains("show")}onItemSelected(i){this.itemSelected.emit(i)}offClick(i){let t=this.host.shadowRoot.querySelector(".ptc-ellipsis-dropdown");i&&!this.host.contains(i.target)&&this.isDropdownOpen&&(t.classList.remove("show"),this.isDropdownOpen=!1)}handleResize(){this.isMobile=window.innerWidth<768,this.isIPad=window.innerWidth<992||screen.width<992}componentWillLoad(){this.isMobile=window.innerWidth<768,this.isIPad=window.innerWidth<992||screen.width<992}render(){let i=!1;return this.dataItems.find((i=>1==i.isSelected))&&(i=!0),e("div",{class:"tab-with-banner"==this.dropdownType?"ptc-ellipsis-dropdown tab-with-banner":"ptc-ellipsis-dropdown default",onClick:i=>this.dropdownToggle(i)},this.isMobile||this.isIPad&&"tab-with-banner"===this.dropdownType?e("div",{class:"mob-drop"},e("span",{class:"opt-name"},this.dataItems.map((i=>i.isSelected?i.text:""))),e("svg",{width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M1 1.65723L5.94975 6.60697L10.8995 1.65723",stroke:"#00890B","stroke-width":"2","stroke-linecap":"round"}))):e("div",{class:i||this.isDropdownOpen?"ellipsis-icon active":"ellipsis-icon"},e("icon-asset",{type:"ptc",size:"xxx-small",name:"ellipsis",color:i||this.isDropdownOpen?"white":"black"})),e("div",{class:"dropdown-container"},e("slot",{name:"dropdown"}),this.dataItems.map((i=>e("dropdown-item",{class:(i.value==this.selectedTab?"active":"")+(i.isSelected?"selected-drop":"")+"mf-listen"},e("span",{onClick:t=>{t.preventDefault(),this.onItemSelected(i)}},i.text))))))}get host(){return o(this)}};n.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}}.ellipsis-icon{box-sizing:border-box;border:1px solid var(--color-gray-08);border-radius:2px;vertical-align:middle;height:18px;width:18px;text-align:center;display:flex;align-items:center;justify-content:center;transition:background-color var(--ptc-ease-out) var(--ptc-transition-medium), border-color var(--ptc-ease-out) var(--ptc-transition-medium)}.ellipsis-icon:hover{background-color:var(--color-gray-04);border-color:var(--color-gray-04)}.ellipsis-icon icon-asset{display:inline-block}.ellipsis-icon icon-asset svg{margin:0 auto;display:block;width:10px !important;height:10px !important}.ellipsis-icon.active{background-color:var(--color-green-07);border-color:var(--color-green-07)}.ellipsis-icon.active::after{content:"";width:32px;height:2px;display:inline-block;background-color:var(--color-green-07);position:absolute;bottom:-11px}@media only screen and (min-width: 1440px){.ellipsis-icon.active::after{bottom:-17px}}.ptc-ellipsis-dropdown{position:relative;display:inline-block;cursor:pointer;padding:2px 0 14px 0;border-bottom:2px solid var(--color-green-07);margin:0 1rem -1px 1rem;box-sizing:border-box}@media only screen and (min-width: 768px){.ptc-ellipsis-dropdown.default{padding:0px;border-bottom:none;margin:0;height:44px;width:44px;display:flex;justify-content:center;align-content:center;flex-wrap:wrap}}.ptc-ellipsis-dropdown.tab-with-banner{padding:0px 0 16px 0;margin:0 1rem -2.5px 1rem}@media only screen and (min-width: 992px){.ptc-ellipsis-dropdown.tab-with-banner{padding:0px 0px 1rem 0px;border-bottom:none;margin:0;height:100%;width:44px;display:flex;justify-content:center;align-content:center;flex-wrap:wrap}}.ptc-ellipsis-dropdown.tab-with-banner .ellipsis-icon.active::after{bottom:-2px}.ptc-ellipsis-dropdown.tab-with-banner .dropdown-container{display:none;margin-top:16px;box-shadow:0 6px 16px rgba(0, 0, 0, 0.24);border-radius:4px;position:absolute;z-index:1010;background:var(--color-white);padding:0.8rem 0;right:auto;left:0;min-width:max-content;width:100%}@media only screen and (min-width: 992px){.ptc-ellipsis-dropdown.tab-with-banner .dropdown-container{right:0;left:auto;top:50%;margin-top:22px}}.ptc-ellipsis-dropdown.tab-with-banner.show .dropdown-container{display:inline-block}@media only screen and (min-width: 1440px){.ptc-ellipsis-dropdown{height:34px;width:34px}}.ptc-ellipsis-dropdown .mob-drop{color:var(--color-gray-10);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-p);font-family:"Raleway";font-style:normal;display:flex;align-items:center}.ptc-ellipsis-dropdown .mob-drop svg{display:inline-block;vertical-align:middle;margin:4px 0px 0px 12px;min-width:12px}.dropdown-container{display:none;margin-top:16px;box-shadow:0 6px 16px rgba(0, 0, 0, 0.24);border-radius:4px;position:absolute;z-index:1010;background:var(--color-white);padding:0.8rem 0;right:auto;left:0;min-width:max-content;width:100%}@media only screen and (min-width: 768px){.dropdown-container{right:0;left:auto;margin-top:48px}}@media only screen and (min-width: 1440px){.dropdown-container{margin-top:45px}}.dropdown-container .selected-drop .dropdown-item span{position:relative;font-weight:var(--ptc-font-weight-bold)}.dropdown-container .selected-drop .dropdown-item span::before{content:"";width:2px;height:60%;background:var(--color-green-07);display:block;left:16px;position:absolute;top:20%}.show .dropdown-container{display:inline-block}';export{n as ptc_ellipsis_dropdown}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as a}from"./p-ac75c7ad.js";const i=class{constructor(a){t(this,a),this.tabClicked=e(this,"tabClicked",7),this.id=this.generateId(),this.name=void 0,this.tooltip=void 0,this.isSelected=!1,this.maxLength=32,this.tabHeaderText=void 0}handleWindowResize(){this.updateMaxLength(window.innerWidth)}updateMaxLength(t){this.maxLength=t<400?18:t<480?24:32}async getChild(){let t=this,e=new Promise((function(e){e({select:t.select.bind(t),unselect:t.unselect.bind(t),name:t.name,text:t.tabHeaderText,id:t.id})}));return await e}unselect(){this.isSelected=!1}select(){this.isSelected=!0}onClick(){this.tabClicked.emit(this.getChild())}generateId(){return Math.random().toString(36).substring(2,10)}componentDidLoad(){this.updateMaxLength(window.innerWidth)}render(){return[a("h2",{class:{"tab-header":!0,"tab-header-selected":this.isSelected},onClick:this.onClick.bind(this)},a("slot",{name:"seo-content"}),a("span",{class:"header-content"},a("span",{class:"text-cont"},this.tabHeaderText)))]}};i.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}}.tab-header{min-height:40px;min-width:40px;padding:5px;margin:0;width:100%;cursor:pointer;position:relative;display:flex;justify-content:center;align-items:center;border-bottom:2px solid transparent;font-family:"Raleway";font-style:normal;font-weight:700;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-p);white-space:nowrap;padding-bottom:16px;text-align:center;color:var(--color-gray-07);position:relative}.tab-header::after{content:"";width:100%;height:2px;background-color:var(--color-gray-02);position:absolute;display:block;left:0;right:0;bottom:-4px}.tab-header:hover{color:var(--color-gray-10)}.tab-header-selected{color:var(--color-gray-10);font-weight:var(--ptc-font-weight-bold)}.tab-header-selected::after{background-color:var(--color-green-07)}.tab-header ::slotted([slot=seo-content]),.tab-header-selected ::slotted([slot=seo-content]){display:none}';export{i as tab_header}
@@ -1 +0,0 @@
1
- import{r as t,h as e}from"./p-ac75c7ad.js";const n=class{constructor(e){t(this,e),this.name=void 0,this.isSelected=!1}async getChild(){return{select:this.select.bind(this),unselect:this.unselect.bind(this),name:this.name}}unselect(){this.isSelected=!1}select(){this.isSelected=!0}render(){return e("div",{class:{"tab-content":!0,"tab-content-selected":this.isSelected}},e("slot",null))}};n.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}}.tab-content{display:none}.tab-content p,.tab-content ul,.tab-content ol,.tab-content span,.tab-content h1,.tab-content h2,.tab-content h3,.tab-content h4,.tab-content h5,.tab-content h6{max-width:720px;font-weight:var(--ptc-font-weight-normal)}.tab-content-selected{display:block}.tab-content h3{font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);margin-bottom:var(--ptc-element-spacing-01)}@media only screen and (min-width: 768px){.tab-content h3{font-size:var(--ptc-font-size-large)}}.tab-content :first-child{margin-top:0px}.tab-content :last-child{margin-bottom:0px}";export{n as tab_content}