@ptcwebops/ptcw-design 6.2.28-beta → 6.2.29-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 (118) hide show
  1. package/dist/cjs/{component-6a178a16.js → component-4dd13907.js} +1 -1
  2. package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +1433 -0
  3. package/dist/cjs/event-podcast-slider-example.cjs.entry.js +54 -32
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/ptc-card-bottom.cjs.entry.js +67 -0
  6. package/dist/cjs/ptc-card_2.cjs.entry.js +3 -3
  7. package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -1
  8. package/dist/cjs/ptc-form-checkbox_4.cjs.entry.js +1 -1
  9. package/dist/cjs/ptcw-design.cjs.js +1 -1
  10. package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +25 -3
  11. package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +3 -1
  12. package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +18 -15
  13. package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.js +53 -55
  14. package/dist/collection/components/ptc-card/ptc-card.css +1 -0
  15. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +34 -34
  16. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +1 -1
  17. package/dist/custom-elements/index.js +63 -39
  18. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  19. package/dist/esm/blog-detail-layout.entry.js +1 -1
  20. package/dist/esm/blogs-search-section.entry.js +1 -1
  21. package/dist/esm/{component-80f298b4.js → component-9c921cc6.js} +1 -1
  22. package/dist/esm/event-jumbotron-example_15.entry.js +1415 -0
  23. package/dist/esm/event-podcast-slider-example.entry.js +54 -32
  24. package/dist/esm/homepage-jumbotron.entry.js +1 -1
  25. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/most-popular-news.entry.js +1 -1
  28. package/dist/esm/my-component.entry.js +1 -1
  29. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  30. package/dist/esm/ptc-background-video.entry.js +1 -1
  31. package/dist/esm/ptc-card-bottom.entry.js +63 -0
  32. package/dist/esm/ptc-card_2.entry.js +3 -3
  33. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  34. package/dist/esm/ptc-data-lookup.entry.js +1 -1
  35. package/dist/esm/ptc-form-checkbox_4.entry.js +2 -2
  36. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  37. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  38. package/dist/esm/ptc-icon-card.entry.js +1 -1
  39. package/dist/esm/ptc-media-card.entry.js +1 -1
  40. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  41. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  42. package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
  43. package/dist/esm/ptcw-design.js +1 -1
  44. package/dist/esm/{utils-63eab4bd.js → utils-ff65c75b.js} +1 -1
  45. package/dist/ptcw-design/{p-fc0348a7.entry.js → p-0fdfd4ad.entry.js} +1 -1
  46. package/dist/ptcw-design/p-11ee8673.entry.js +1 -0
  47. package/dist/ptcw-design/{p-c01ea76f.entry.js → p-1b257420.entry.js} +1 -1
  48. package/dist/ptcw-design/p-23d64153.entry.js +1 -0
  49. package/dist/ptcw-design/{p-4ee98a3e.entry.js → p-2c6fc745.entry.js} +1 -1
  50. package/dist/ptcw-design/{p-fd394e84.entry.js → p-36007a57.entry.js} +1 -1
  51. package/dist/ptcw-design/{p-cbee4653.entry.js → p-6d3326da.entry.js} +1 -1
  52. package/dist/ptcw-design/{p-6f5fecae.entry.js → p-7a9611b4.entry.js} +1 -1
  53. package/dist/ptcw-design/{p-eec2f3da.entry.js → p-808ec62a.entry.js} +1 -1
  54. package/dist/ptcw-design/{p-77b1221e.js → p-8872161f.js} +1 -1
  55. package/dist/ptcw-design/p-9fe0c27d.entry.js +1 -0
  56. package/dist/ptcw-design/{p-291072b4.entry.js → p-a3b57ede.entry.js} +1 -1
  57. package/dist/ptcw-design/{p-d361afd1.entry.js → p-a5c2584e.entry.js} +1 -1
  58. package/dist/ptcw-design/{p-17f6e145.entry.js → p-ae970a60.entry.js} +1 -1
  59. package/dist/ptcw-design/{p-821f0ff9.entry.js → p-c37a3bd2.entry.js} +1 -1
  60. package/dist/ptcw-design/{p-d3229458.entry.js → p-c66b8926.entry.js} +1 -1
  61. package/dist/ptcw-design/{p-6a3caf2b.entry.js → p-c95f423e.entry.js} +1 -1
  62. package/dist/ptcw-design/{p-627103d8.entry.js → p-d10cb999.entry.js} +1 -1
  63. package/dist/ptcw-design/p-d899dd7c.entry.js +1 -0
  64. package/dist/ptcw-design/{p-48c33817.entry.js → p-d9abe7e8.entry.js} +1 -1
  65. package/dist/ptcw-design/{p-e577ad62.entry.js → p-da82dc93.entry.js} +1 -1
  66. package/dist/ptcw-design/{p-16e70f20.entry.js → p-e0b873d0.entry.js} +1 -1
  67. package/dist/ptcw-design/{p-49e54079.entry.js → p-e3f8e5d5.entry.js} +1 -1
  68. package/dist/ptcw-design/{p-28be539b.entry.js → p-e4000363.entry.js} +1 -1
  69. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  70. package/dist/types/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.d.ts +0 -1
  71. package/dist/types/components.d.ts +0 -2
  72. package/package.json +1 -1
  73. package/readme.md +1 -1
  74. package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -146
  75. package/dist/cjs/icon-asset.cjs.entry.js +0 -65
  76. package/dist/cjs/list-item.cjs.entry.js +0 -48
  77. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
  78. package/dist/cjs/ptc-button.cjs.entry.js +0 -87
  79. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -156
  80. package/dist/cjs/ptc-card-content.cjs.entry.js +0 -76
  81. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -275
  82. package/dist/cjs/ptc-img.cjs.entry.js +0 -133
  83. package/dist/cjs/ptc-link.cjs.entry.js +0 -87
  84. package/dist/cjs/ptc-para.cjs.entry.js +0 -127
  85. package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -136
  86. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  87. package/dist/cjs/ptc-title.cjs.entry.js +0 -152
  88. package/dist/esm/event-jumbotron-example.entry.js +0 -142
  89. package/dist/esm/icon-asset.entry.js +0 -61
  90. package/dist/esm/list-item.entry.js +0 -44
  91. package/dist/esm/ptc-breadcrumb.entry.js +0 -43
  92. package/dist/esm/ptc-button.entry.js +0 -83
  93. package/dist/esm/ptc-card-bottom_2.entry.js +0 -151
  94. package/dist/esm/ptc-card-content.entry.js +0 -72
  95. package/dist/esm/ptc-close-icon_2.entry.js +0 -270
  96. package/dist/esm/ptc-img.entry.js +0 -129
  97. package/dist/esm/ptc-link.entry.js +0 -83
  98. package/dist/esm/ptc-para.entry.js +0 -123
  99. package/dist/esm/ptc-scroll-button.entry.js +0 -132
  100. package/dist/esm/ptc-spacer.entry.js +0 -34
  101. package/dist/esm/ptc-title.entry.js +0 -148
  102. package/dist/ptcw-design/p-01075feb.entry.js +0 -1
  103. package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
  104. package/dist/ptcw-design/p-1070f8a3.entry.js +0 -1
  105. package/dist/ptcw-design/p-25a25451.entry.js +0 -1
  106. package/dist/ptcw-design/p-28371371.entry.js +0 -1
  107. package/dist/ptcw-design/p-45b40ea6.entry.js +0 -1
  108. package/dist/ptcw-design/p-7793babb.entry.js +0 -1
  109. package/dist/ptcw-design/p-7fe4d383.entry.js +0 -1
  110. package/dist/ptcw-design/p-8fbe5eed.entry.js +0 -1
  111. package/dist/ptcw-design/p-92d22c78.entry.js +0 -1
  112. package/dist/ptcw-design/p-99355e65.entry.js +0 -1
  113. package/dist/ptcw-design/p-b651c1cb.entry.js +0 -1
  114. package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
  115. package/dist/ptcw-design/p-bf18b622.entry.js +0 -1
  116. package/dist/ptcw-design/p-d3e2a446.entry.js +0 -1
  117. package/dist/ptcw-design/p-e2a935fa.entry.js +0 -1
  118. /package/dist/ptcw-design/{p-672a349f.js → p-bcab66bf.js} +0 -0
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-63ddc79c.js');
6
+
7
+ const ptcCardBottomCss = "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}:host ::slotted([slot=seo-content]){display:none}:host(.card-tall) .ptc-card-bottom-wrapper,:host(.card-wide) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0 var(--ptc-element-spacing-07) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06);z-index:2}:host(.card-2up) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0px 24px 24px 16px}:host(.card-playlist){flex:72% 2 1;align-self:center}:host(.mouse-hover-card-bottom) .ptc-card-bottom-wrapper{z-index:5;cursor:pointer}:host(.extra-tall){position:absolute;top:0;left:0}:host(.extra-tall) .ptc-card-bottom-wrapper{position:relative;top:0px;left:0px;bottom:0px;right:0px;display:flex;flex-direction:column;align-items:center;width:calc(100% - 64px);padding:var(--ptc-layout-spacing-05) var(--ptc-element-spacing-07);padding-bottom:calc(var(--ptc-layout-spacing-03) + var(--ptc-layout-spacing-05));z-index:2}@media only screen and (min-width: 768px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-bottom:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 992px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 1200px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-04) + var(--ptc-layout-spacing-05))}}@media only screen and (min-width: 1440px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-05) * 2)}}:host(.color-outlined) .ptc-card-bottom-wrapper{position:absolute;top:50%;transform:translateY(-50%);display:flex;justify-content:center;flex-direction:column;align-items:center;width:calc(100% - 80px);height:100%;padding:0px var(--ptc-element-spacing-08)}:host(.most-popular){padding:0 16px 14px 16px}@media only screen and (min-width: 768px){:host(.card-2up) .ptc-card-bottom-wrapper{padding:0 32px 32px 24px}}@media only screen and (min-width: 1200px){:host(.card-video-intro){flex:20% 2 1;justify-content:flex-end}:host(.card-video-intro) .ptc-card-bottom-wrapper{display:flex;justify-content:flex-end}}@media only screen and (min-width: 1440px){:host(.card-2up) .ptc-card-bottom-wrapper{width:70%}}@media only screen and (min-width: 1980px){:host(.card-2up) .ptc-card-bottom-wrapper{width:60%}}";
8
+
9
+ const PtcCardBottom = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.hoverEvent = index.createEvent(this, "hoverEvent", 7);
13
+ this.leaveEvent = index.createEvent(this, "leaveEvent", 7);
14
+ this.cardType = undefined;
15
+ this.styles = undefined;
16
+ }
17
+ hoverEventHandler() {
18
+ this.hoverEvent.emit();
19
+ //if statement: the card type that doesn't need a hover event
20
+ if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && !this.el.classList.contains('extra-tall')) {
21
+ this.el.previousElementSibling.classList.add('mouse-hover');
22
+ this.el.classList.add('mouse-hover-card-bottom');
23
+ }
24
+ if (this.el.classList.contains('event-podcast')) {
25
+ this.addClassOnDefaultSlot();
26
+ }
27
+ }
28
+ leaveEventHandler() {
29
+ this.hoverEvent.emit();
30
+ //if statement: the card type that doesn't need a hover event
31
+ if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && !this.el.classList.contains('extra-tall')) {
32
+ this.el.previousElementSibling.classList.remove('mouse-hover');
33
+ this.el.classList.remove('mouse-hover-card-bottom');
34
+ }
35
+ if (this.el.classList.contains('event-podcast')) {
36
+ this.removeClassOnDefaultSlot();
37
+ }
38
+ }
39
+ async addClassOnDefaultSlot() {
40
+ const slot = this.el.shadowRoot.querySelector('slot:not([name])');
41
+ console.log('slot: ' + slot);
42
+ const assignedElements = slot.assignedElements();
43
+ assignedElements.forEach((ele) => {
44
+ !ele.classList.contains('event-podcast') && ele.classList.add('event-podcast');
45
+ });
46
+ }
47
+ async removeClassOnDefaultSlot() {
48
+ const slot = this.el.shadowRoot.querySelector('slot:not([name])');
49
+ const assignedElements = slot.assignedElements();
50
+ assignedElements.forEach((ele) => {
51
+ ele.classList.contains('event-podcast') && ele.classList.remove('event-podcast');
52
+ });
53
+ }
54
+ render() {
55
+ const classMap = this.getCssClassMap();
56
+ return (index.h(index.Host, { part: "card-bottom", class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, this.styles && index.h("style", null, this.styles), index.h("slot", { name: "slot-content" }), index.h("div", { class: "ptc-card-bottom-wrapper" }, index.h("slot", null))));
57
+ }
58
+ getCssClassMap() {
59
+ return {
60
+ [this.cardType]: this.cardType ? true : false,
61
+ };
62
+ }
63
+ get el() { return index.getElement(this); }
64
+ };
65
+ PtcCardBottom.style = ptcCardBottomCss;
66
+
67
+ exports.ptc_card_bottom = PtcCardBottom;