@ptcwebops/ptcw-design 4.5.9 → 4.6.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 (130) hide show
  1. package/dist/cjs/blogs-search-section.cjs.entry.js +190 -0
  2. package/dist/cjs/homepage-clickable-tab.cjs.entry.js +2 -2
  3. package/dist/cjs/homepage-jumbotron.cjs.entry.js +118 -0
  4. package/dist/cjs/homepage-toggled-content.cjs.entry.js +91 -3
  5. package/dist/cjs/icon-asset.cjs.entry.js +53 -0
  6. package/dist/cjs/interfaces-574e6df7.js +15 -0
  7. package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +47 -0
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/max-width-container.cjs.entry.js +54 -0
  10. package/dist/cjs/ptc-background-video.cjs.entry.js +70 -0
  11. package/dist/cjs/ptc-button.cjs.entry.js +79 -0
  12. package/dist/cjs/ptc-card_2.cjs.entry.js +30 -48
  13. package/dist/cjs/ptc-date.cjs.entry.js +61 -0
  14. package/dist/cjs/{ptc-pagenation.cjs.entry.js → ptc-filter-tag_2.cjs.entry.js} +63 -0
  15. package/dist/cjs/ptc-img.cjs.entry.js +133 -0
  16. package/dist/cjs/ptc-info-tile.cjs.entry.js +26 -0
  17. package/dist/cjs/ptc-jumbotron.cjs.entry.js +127 -0
  18. package/dist/cjs/ptc-para.cjs.entry.js +70 -0
  19. package/dist/cjs/ptc-picture.cjs.entry.js +163 -0
  20. package/dist/cjs/ptc-readmore.cjs.entry.js +1 -1
  21. package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
  22. package/dist/cjs/ptc-tooltip.cjs.entry.js +107 -0
  23. package/dist/cjs/ptcw-design.cjs.js +1 -1
  24. package/dist/collection/collection-manifest.json +1 -0
  25. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.css +9 -9
  26. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.js +1 -1
  27. package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.css +100 -0
  28. package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.js +286 -0
  29. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +38 -18
  30. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js +8 -5
  31. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.css +128 -16
  32. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.js +95 -3
  33. package/dist/collection/components/ptc-card/ptc-card.js +5 -4
  34. package/dist/collection/components/ptc-info-tile/ptc-info-tile.css +5 -1
  35. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +19 -1
  36. package/dist/collection/components/ptc-readmore/ptc-readmore.js +1 -1
  37. package/dist/custom-elements/index.d.ts +6 -0
  38. package/dist/custom-elements/index.js +301 -21
  39. package/dist/esm/blogs-search-section.entry.js +186 -0
  40. package/dist/esm/homepage-clickable-tab.entry.js +2 -2
  41. package/dist/esm/homepage-jumbotron.entry.js +114 -0
  42. package/dist/esm/homepage-toggled-content.entry.js +91 -3
  43. package/dist/esm/icon-asset.entry.js +49 -0
  44. package/dist/esm/interfaces-4caedd26.js +12 -0
  45. package/dist/esm/jumbotron-sub-menu.entry.js +43 -0
  46. package/dist/esm/loader.js +1 -1
  47. package/dist/esm/max-width-container.entry.js +50 -0
  48. package/dist/esm/most-popular-news.entry.js +1 -1
  49. package/dist/esm/my-component.entry.js +1 -1
  50. package/dist/esm/ptc-background-video.entry.js +66 -0
  51. package/dist/esm/ptc-button.entry.js +75 -0
  52. package/dist/esm/ptc-card_2.entry.js +31 -49
  53. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  54. package/dist/esm/ptc-date.entry.js +57 -0
  55. package/dist/esm/{ptc-pagenation.entry.js → ptc-filter-tag_2.entry.js} +64 -2
  56. package/dist/esm/ptc-form-checkbox_2.entry.js +1 -1
  57. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  58. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  59. package/dist/esm/ptc-img.entry.js +129 -0
  60. package/dist/esm/ptc-info-tile.entry.js +22 -0
  61. package/dist/esm/ptc-jumbotron.entry.js +123 -0
  62. package/dist/esm/ptc-link.entry.js +1 -1
  63. package/dist/esm/ptc-media-card.entry.js +1 -1
  64. package/dist/esm/ptc-multi-select_2.entry.js +1 -1
  65. package/dist/esm/ptc-para.entry.js +66 -0
  66. package/dist/esm/ptc-picture.entry.js +159 -0
  67. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  68. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  69. package/dist/esm/ptc-readmore.entry.js +1 -1
  70. package/dist/esm/ptc-spacer.entry.js +34 -0
  71. package/dist/esm/ptc-title.entry.js +1 -1
  72. package/dist/esm/ptc-tooltip.entry.js +103 -0
  73. package/dist/esm/ptcw-design.js +1 -1
  74. package/dist/esm/{utils-4a9e39a7.js → utils-edb0c4d4.js} +1 -1
  75. package/dist/ptcw-design/p-0390c236.entry.js +1 -0
  76. package/dist/ptcw-design/{p-f44eeac7.entry.js → p-055e0d28.entry.js} +1 -1
  77. package/dist/ptcw-design/{p-48ebe929.entry.js → p-057f7b20.entry.js} +1 -1
  78. package/dist/ptcw-design/p-071a6109.entry.js +1 -0
  79. package/dist/ptcw-design/p-07a4b1ca.entry.js +1 -0
  80. package/dist/ptcw-design/p-0c69ea52.entry.js +1 -0
  81. package/dist/ptcw-design/{p-aa042737.entry.js → p-184a4cda.entry.js} +1 -1
  82. package/dist/ptcw-design/p-1d64a5a8.entry.js +1 -0
  83. package/dist/ptcw-design/{p-febec9ac.entry.js → p-25a1d8c5.entry.js} +1 -1
  84. package/dist/ptcw-design/p-25a25451.entry.js +1 -0
  85. package/dist/ptcw-design/p-260ecfef.entry.js +1 -0
  86. package/dist/ptcw-design/p-3885c133.entry.js +1 -0
  87. package/dist/ptcw-design/{p-5557df17.entry.js → p-419abbe1.entry.js} +1 -1
  88. package/dist/ptcw-design/p-463097da.entry.js +1 -0
  89. package/dist/ptcw-design/p-49639b03.entry.js +1 -0
  90. package/dist/ptcw-design/p-4e1088bb.entry.js +1 -0
  91. package/dist/ptcw-design/p-509ba999.entry.js +1 -0
  92. package/dist/ptcw-design/p-62a4a1e1.entry.js +1 -0
  93. package/dist/ptcw-design/p-711bcdad.js +1 -0
  94. package/dist/ptcw-design/p-742d7492.entry.js +1 -0
  95. package/dist/ptcw-design/{p-cdb80c67.entry.js → p-7c3aac08.entry.js} +1 -1
  96. package/dist/ptcw-design/p-7db71d63.entry.js +1 -0
  97. package/dist/ptcw-design/{p-211ece93.entry.js → p-8f5feb90.entry.js} +1 -1
  98. package/dist/ptcw-design/p-9113f580.entry.js +1 -0
  99. package/dist/ptcw-design/{p-3827fcc3.entry.js → p-a1415238.entry.js} +1 -1
  100. package/dist/ptcw-design/{p-e67b618c.entry.js → p-ac504f89.entry.js} +1 -1
  101. package/dist/ptcw-design/{p-41448acc.entry.js → p-ae62e211.entry.js} +1 -1
  102. package/dist/ptcw-design/{p-b8fd8532.js → p-bcbdf9a9.js} +1 -1
  103. package/dist/ptcw-design/p-d3b3d535.entry.js +1 -0
  104. package/dist/ptcw-design/{p-9953eb9e.entry.js → p-d3b615a8.entry.js} +1 -1
  105. package/dist/ptcw-design/p-e21f2874.entry.js +1 -0
  106. package/dist/ptcw-design/p-ed2be934.entry.js +1 -0
  107. package/dist/ptcw-design/p-ee455b1d.entry.js +1 -0
  108. package/dist/ptcw-design/p-f08725b9.entry.js +1 -0
  109. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  110. package/dist/types/components/organism-bundles/blogs-search-section/blogs-search-section.d.ts +21 -0
  111. package/dist/types/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.d.ts +27 -0
  112. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +4 -0
  113. package/dist/types/components.d.ts +28 -0
  114. package/package.json +1 -1
  115. package/readme.md +1 -1
  116. package/dist/cjs/homepage-jumbotron_13.cjs.entry.js +0 -1017
  117. package/dist/cjs/ptc-filter-tag.cjs.entry.js +0 -69
  118. package/dist/cjs/ptc-preloader-section.cjs.entry.js +0 -42
  119. package/dist/esm/homepage-jumbotron_13.entry.js +0 -1001
  120. package/dist/esm/ptc-filter-tag.entry.js +0 -65
  121. package/dist/esm/ptc-preloader-section.entry.js +0 -38
  122. package/dist/ptcw-design/p-0565de99.entry.js +0 -1
  123. package/dist/ptcw-design/p-10fe1d4f.entry.js +0 -1
  124. package/dist/ptcw-design/p-6491d9b9.entry.js +0 -1
  125. package/dist/ptcw-design/p-6f08fa33.entry.js +0 -1
  126. package/dist/ptcw-design/p-73bfe4e6.entry.js +0 -1
  127. package/dist/ptcw-design/p-8d29f34a.entry.js +0 -1
  128. package/dist/ptcw-design/p-9467e22b.entry.js +0 -1
  129. package/dist/ptcw-design/p-acfbc221.entry.js +0 -1
  130. package/dist/ptcw-design/p-b5d8f7d1.entry.js +0 -1
@@ -0,0 +1,66 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
2
+
3
+ const ptcBackgroundVideoCss = "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;position:relative}:host video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host .video-overlay.dark{background:linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{object-fit:cover}:host .play-button{position:absolute;top:1.5rem;right:1.5rem;width:34px;height:34px;z-index:99}@media (min-width: 768px){:host .play-button.top-right{top:1.5rem;right:1.5rem}}:host .play-button.top-left{right:unset;top:1.5rem;left:1.5rem}@media (min-width: 768px){:host .play-button.top-left{bottom:3.75rem;left:2rem}}@media (min-width: 768px){:host .play-button.bottom-left{top:unset;right:unset;bottom:3.75rem;left:2rem}}@media (min-width: 768px){:host .play-button.bottom-right{top:unset;bottom:3.75rem;right:2rem}}:host .play-button.allbp-bottom-right{top:unset;bottom:3.75rem;right:2rem}:host .play-button ptc-button{display:inline-block;padding:5px;position:relative;top:-5px;left:-5px;cursor:pointer}@media only screen and (min-width: 768px){:host .play-button ptc-button{top:auto;left:auto}}@media only screen and (min-width: 992px){:host .play-button ptc-button{padding:0}}";
4
+
5
+ const PtcBackgroundVideo = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.videoSrc = undefined;
9
+ this.posterSrc = undefined;
10
+ this.overlay = true;
11
+ this.overlayType = 'standard';
12
+ this.playButtonTitle = undefined;
13
+ this.pauseButtonTitle = undefined;
14
+ this.buttonLocation = 'bottom-right';
15
+ this.paused = undefined;
16
+ this.type = 'default';
17
+ this.isIframe = false;
18
+ }
19
+ // componentDidLoad() {
20
+ // if(this.isIframe){
21
+ // const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
22
+ // const iframeDoc = iframe.contentDocument
23
+ // const iframeVideo = iframeDoc.querySelector('video');
24
+ // console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
25
+ // iframeVideo.style.objectFit = 'cover';
26
+ // }
27
+ // }
28
+ // @Method()
29
+ // async toggleVideo() {
30
+ // // show a prompt
31
+ // this.paused = !this.paused;
32
+ // let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
33
+ // if (video) {
34
+ // if (this.paused) {
35
+ // video.pause();
36
+ // } else {
37
+ // video.play().catch(z => console.error(z));
38
+ // }
39
+ // }
40
+ // console.log('Hello, I am a publish method from ptc-background-video!');
41
+ // }
42
+ componentWillLoad() {
43
+ this.paused = false;
44
+ }
45
+ render() {
46
+ const videoContent = this.isIframe ? (h("div", { class: "iframe-wrapper" }, h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
47
+ return (h(Host, { class: this.type }, videoContent, !!this.videoSrc && this.playButtonTitle && (h("div", { class: `play-button ${this.buttonLocation}` }, this.paused && (h("ptc-tooltip", { class: "play-btn", mode: "wrapper", description: this.playButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), styles: "button.icon-toggle { padding :0px 8px; }", "aria-label": "Video Play button" }, h("icon-asset", { name: "play", size: "small", type: "ptc", color: "black" })))), !this.paused && !!this.pauseButtonTitle && (h("ptc-tooltip", { class: "pause-btn", mode: "wrapper", description: this.pauseButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), "aria-label": "Video Pause button" }, h("icon-asset", { name: "pause", size: "small", type: "ptc", color: "black" })))))), this.overlay ? h("div", { class: `video-overlay ${this.overlayType}` }) : '', this.type == 'default' ? h("slot", null) : ''));
48
+ }
49
+ toggleVideoPlay(e) {
50
+ e.preventDefault();
51
+ this.paused = !this.paused;
52
+ let video = this.el.shadowRoot.querySelector('video');
53
+ if (video) {
54
+ if (this.paused) {
55
+ video.pause();
56
+ }
57
+ else {
58
+ video.play().catch(z => console.error(z));
59
+ }
60
+ }
61
+ }
62
+ get el() { return getElement(this); }
63
+ };
64
+ PtcBackgroundVideo.style = ptcBackgroundVideoCss;
65
+
66
+ export { PtcBackgroundVideo as ptc_background_video };
@@ -0,0 +1,75 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
2
+ import { b as getSeoTagType } from './utils-edb0c4d4.js';
3
+
4
+ const ptcButtonCss = "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}}button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard)}button.reveal-down .content{transition:opacity var(--ptc-transition-medium) var(--ptc-ease-out);opacity:0;font-size:var(--ptc-font-size-xx-small)}button.reveal-down .icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;align-content:center;height:16px}button.reveal-down .icon-wrapper .icon{transition:top var(--ptc-transition-fast) var(--ptc-ease-out);position:absolute;display:inline-block;top:-12px}button:hover.reveal-down .content{opacity:1}button:hover.reveal-down .icon-wrapper .icon{top:4px}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:var(--ptc-line-height-densest)}button.left{text-align:left}button.right{text-align:right}button.center{text-align:center}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(285deg, var(--color-gray-10) 155%, var(--color-gray-07) 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-green-07);background-image:linear-gradient(285deg, var(--color-green-07) 155%, var(--color-green-07) 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(to right, var(--color-white), var(--color-gray-02), var(--color-gray-01))}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-gray-10)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:var(--ptc-element-spacing-01);margin-top:var(--ptc-element-spacing-01);box-shadow:var(--ptc-shadow-large);border:solid 2.5px var(--color-green-08);background-image:linear-gradient(to right, var(--color-green-06), var(--color-green-08))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-green-08), var(--color-green-06));opacity:0;transition:opacity var(--ptc-transition-x-slow) var(--ptc-ease-inout);border-radius:2px}.legacy-green:hover{box-shadow:var(--ptc-shadow-x-large)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-x-small)}@media only screen and (min-width: 768px){.legacy-green span{font-size:var(--ptc-font-size-small);letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard);display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all var(--ptc-ease-inout) var(--ptc-transition-medium);position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}a.left{text-align:left}a.right{text-align:right}a.center{text-align:center}.nav{font-family:var(--ptc-font-latin);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-xx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-loose);list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.nav:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav:hover{background-color:var(--color-gray-12)}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus,.icon-toggle:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary.small,.ptc-quaternary.small,.ptc-secondary.small,.ptc-tertiary.small,.icon-toggle.small{padding:var(--ptc-element-spacing-03) var(--ptc-element-spacing-04)}.ptc-primary.small span,.ptc-quaternary.small span,.ptc-secondary.small span,.ptc-tertiary.small span,.icon-toggle.small span{font-size:var(--ptc-font-size-xx-small)}.ptc-primary.medium,.ptc-quaternary.medium,.ptc-secondary.medium,.ptc-tertiary.medium,.icon-toggle.medium{padding:14px 20px}.ptc-primary.medium span,.ptc-quaternary.medium span,.ptc-secondary.medium span,.ptc-tertiary.medium span,.icon-toggle.medium span{font-size:var(--ptc-font-size-small)}.ptc-primary.large,.ptc-quaternary.large,.ptc-secondary.large,.ptc-tertiary.large,.icon-toggle.large{padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06)}.ptc-primary.large span,.ptc-quaternary.large span,.ptc-secondary.large span,.ptc-tertiary.large span,.icon-toggle.large span{font-size:var(--ptc-font-size-large)}.ptc-primary{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03)}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09)}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{transition:none;background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}";
5
+
6
+ const PtcButton = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.clickEvent = createEvent(this, "clickEvent", 7);
10
+ this.disabled = false;
11
+ this.active = false;
12
+ this.type = 'button';
13
+ this.color = 'ptc-primary';
14
+ this.iconAnimation = '';
15
+ this.iconPosition = 'icon-right';
16
+ this.linkHref = undefined;
17
+ this.linkTitle = undefined;
18
+ this.target = '_self';
19
+ this.rel = undefined;
20
+ this.tabNav = 0;
21
+ this.styles = undefined;
22
+ this.textAlign = undefined;
23
+ this.size = undefined;
24
+ this.buttonTitle = undefined;
25
+ this.ariaLabel = '';
26
+ this.seoCompatibilityMode = false;
27
+ this.maintainContent = false;
28
+ }
29
+ clickEventHandler() {
30
+ this.clickEvent.emit();
31
+ }
32
+ seoCompRender() {
33
+ const classMap = this.getCssClassMap();
34
+ const Tag = !!this.linkHref ? 'a' : 'button';
35
+ const [TagType, firstChild] = getSeoTagType(this.el, Tag);
36
+ const html = firstChild && firstChild.innerHTML;
37
+ if (this.el == firstChild) {
38
+ this.el.innerHTML = '';
39
+ }
40
+ if (this.maintainContent) {
41
+ this.el.innerHTML = html;
42
+ }
43
+ return (h(Host, null, this.styles && h("style", null, this.styles), h(TagType, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== '' ? { ariaLabel: this.ariaLabel } : {})), h("span", { innerHTML: html }, h("slot", { name: "slot-before-text" }), h("slot", { name: "slot-after-text" })))));
44
+ }
45
+ standardRender() {
46
+ const classMap = this.getCssClassMap();
47
+ const Tag = !!this.linkHref ? 'a' : 'button';
48
+ return (h(Host, null, this.styles && h("style", null, this.styles), h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== '' ? { ariaLabel: this.ariaLabel } : {})), this.iconAnimation == 'reveal-down' ?
49
+ h("span", null, h("div", { class: "content" }, h("slot", null)), h("div", { class: "icon-wrapper" }, h("div", { class: "icon" }, h("slot", { name: "slot-after-text" })))) :
50
+ h("span", null, h("slot", { name: "slot-before-text" }), h("slot", null), h("slot", { name: "slot-after-text" })))));
51
+ }
52
+ render() {
53
+ if (this.seoCompatibilityMode) {
54
+ return this.seoCompRender();
55
+ }
56
+ else {
57
+ return this.standardRender();
58
+ }
59
+ }
60
+ getCssClassMap() {
61
+ return {
62
+ [this.color]: true,
63
+ [this.iconAnimation]: true,
64
+ [this.iconPosition]: true,
65
+ ['disabled']: this.disabled ? true : false,
66
+ ['active']: this.active ? true : false,
67
+ [this.textAlign]: true,
68
+ [this.size]: true
69
+ };
70
+ }
71
+ get el() { return getElement(this); }
72
+ };
73
+ PtcButton.style = ptcButtonCss;
74
+
75
+ export { PtcButton as ptc_button };