@ptcwebops/ptcw-design 4.3.1 → 4.3.3

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 (66) hide show
  1. package/dist/cjs/homepage-clickable-tab.cjs.entry.js +25 -0
  2. package/dist/cjs/homepage-jumbotron.cjs.entry.js +56 -0
  3. package/dist/cjs/homepage-toggled-content.cjs.entry.js +40 -0
  4. package/dist/cjs/jumbotron-sub-mune.cjs.entry.js +34 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +46 -0
  7. package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
  8. package/dist/cjs/ptc-icon-card.cjs.entry.js +3 -2
  9. package/dist/cjs/ptc-info-tile.cjs.entry.js +29 -0
  10. package/dist/cjs/{ptc-breadcrumb_2.cjs.entry.js → ptc-jumbotron.cjs.entry.js} +1 -41
  11. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +9 -1
  12. package/dist/cjs/ptcw-design.cjs.js +1 -1
  13. package/dist/collection/collection-manifest.json +5 -0
  14. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.css +102 -0
  15. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.js +81 -0
  16. package/dist/collection/components/jumbotron-sub-mune/jumbotron-sub-mune.css +133 -0
  17. package/dist/collection/components/jumbotron-sub-mune/jumbotron-sub-mune.js +61 -0
  18. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +856 -0
  19. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js +134 -0
  20. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.css +228 -0
  21. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.js +47 -0
  22. package/dist/collection/components/ptc-homepage-image-feature/ptc-homepage-image-feature.js +1 -1
  23. package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +22 -4
  24. package/dist/collection/components/ptc-info-tile/ptc-info-tile.css +136 -0
  25. package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +136 -0
  26. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +2 -2
  27. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +43 -1
  28. package/dist/custom-elements/index.d.ts +30 -0
  29. package/dist/custom-elements/index.js +5162 -4986
  30. package/dist/esm/homepage-clickable-tab.entry.js +21 -0
  31. package/dist/esm/homepage-jumbotron.entry.js +52 -0
  32. package/dist/esm/homepage-toggled-content.entry.js +36 -0
  33. package/dist/esm/jumbotron-sub-mune.entry.js +30 -0
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/ptc-breadcrumb.entry.js +42 -0
  36. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  37. package/dist/esm/ptc-icon-card.entry.js +3 -2
  38. package/dist/esm/ptc-info-tile.entry.js +25 -0
  39. package/dist/esm/{ptc-breadcrumb_2.entry.js → ptc-jumbotron.entry.js} +2 -41
  40. package/dist/esm/ptc-social-icons-footer.entry.js +10 -2
  41. package/dist/esm/ptcw-design.js +1 -1
  42. package/dist/ptcw-design/p-22f5b976.entry.js +1 -0
  43. package/dist/ptcw-design/p-230f8bce.entry.js +1 -0
  44. package/dist/ptcw-design/p-2a999b1f.entry.js +1 -0
  45. package/dist/ptcw-design/p-84da0491.entry.js +1 -0
  46. package/dist/ptcw-design/p-c3bfaef4.entry.js +1 -0
  47. package/dist/ptcw-design/p-ca6a82ea.entry.js +1 -0
  48. package/dist/ptcw-design/p-d8695e0d.entry.js +1 -0
  49. package/dist/ptcw-design/p-db31c09d.entry.js +1 -0
  50. package/dist/ptcw-design/p-e347dc85.entry.js +1 -0
  51. package/dist/ptcw-design/p-e9bbf7b1.entry.js +1 -0
  52. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  53. package/dist/types/components/homepage-clickable-tab/homepage-clickable-tab.d.ts +8 -0
  54. package/dist/types/components/jumbotron-sub-mune/jumbotron-sub-mune.d.ts +7 -0
  55. package/dist/types/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.d.ts +14 -0
  56. package/dist/types/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.d.ts +12 -0
  57. package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +2 -1
  58. package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +11 -0
  59. package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +4 -0
  60. package/dist/types/components.d.ts +107 -2
  61. package/package.json +1 -1
  62. package/readme.md +1 -1
  63. package/dist/ptcw-design/p-46953fc3.entry.js +0 -1
  64. package/dist/ptcw-design/p-589c3d4f.entry.js +0 -1
  65. package/dist/ptcw-design/p-62c159d4.entry.js +0 -1
  66. package/dist/ptcw-design/p-c0010157.entry.js +0 -1
@@ -0,0 +1,136 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcInfoTile {
3
+ constructor() {
4
+ this.tileTitle = undefined;
5
+ this.description = undefined;
6
+ this.imgSrc = undefined;
7
+ this.link = undefined;
8
+ this.variant = undefined;
9
+ }
10
+ handleClick() {
11
+ this.tileClick.emit();
12
+ }
13
+ render() {
14
+ const content = (h("div", { class: "tile-content" }, h("h3", null, this.tileTitle), h("p", null, this.description)));
15
+ return (h(Host, null, h("div", { class: `tile ${this.variant}`, onClick: () => this.handleClick() }, this.variant === 'image' && this.imgSrc && h("img", { src: this.imgSrc, alt: this.tileTitle }), content, this.link && (h("a", { href: this.link, class: "link-overlay" })))));
16
+ }
17
+ static get is() { return "ptc-info-tile"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["ptc-info-tile.scss"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["ptc-info-tile.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "tileTitle": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "string",
36
+ "resolved": "string",
37
+ "references": {}
38
+ },
39
+ "required": false,
40
+ "optional": false,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": ""
44
+ },
45
+ "attribute": "tile-title",
46
+ "reflect": false
47
+ },
48
+ "description": {
49
+ "type": "string",
50
+ "mutable": false,
51
+ "complexType": {
52
+ "original": "string",
53
+ "resolved": "string",
54
+ "references": {}
55
+ },
56
+ "required": false,
57
+ "optional": false,
58
+ "docs": {
59
+ "tags": [],
60
+ "text": ""
61
+ },
62
+ "attribute": "description",
63
+ "reflect": false
64
+ },
65
+ "imgSrc": {
66
+ "type": "string",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "string",
70
+ "resolved": "string",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": ""
78
+ },
79
+ "attribute": "img-src",
80
+ "reflect": false
81
+ },
82
+ "link": {
83
+ "type": "string",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "string",
87
+ "resolved": "string",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": false,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": ""
95
+ },
96
+ "attribute": "link",
97
+ "reflect": false
98
+ },
99
+ "variant": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "'image' | 'text'",
104
+ "resolved": "\"image\" | \"text\"",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": ""
112
+ },
113
+ "attribute": "variant",
114
+ "reflect": false
115
+ }
116
+ };
117
+ }
118
+ static get events() {
119
+ return [{
120
+ "method": "tileClick",
121
+ "name": "tileClick",
122
+ "bubbles": true,
123
+ "cancelable": true,
124
+ "composed": true,
125
+ "docs": {
126
+ "tags": [],
127
+ "text": ""
128
+ },
129
+ "complexType": {
130
+ "original": "void",
131
+ "resolved": "void",
132
+ "references": {}
133
+ }
134
+ }];
135
+ }
136
+ }
@@ -52,7 +52,7 @@ export class PtcJumbotron {
52
52
  default:
53
53
  mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
54
54
  }
55
- return (h(Host, { class: classMap }, h("div", { class: { 'parent': true, 'light-links': (this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video') } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: "ptc-container content-layout" }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": 'w-4', "para-margin": `${this.jumbotronType === 'text' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), this.hasCtaSlot &&
55
+ return (h(Host, { class: classMap }, h("div", { class: { 'parent': true, 'light-links': (this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video') } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: "ptc-container content-layout" }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": 'w-4', "para-margin": `${this.jumbotronType === 'text' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), this.hasCtaSlot &&
56
56
  h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))), (this.hasPopupVideo && this.jumbotronType !== 'png') ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }), this.hasPopupVideo ? h("slot", { name: "video" }) : null))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
57
57
  }
58
58
  getCssClassMap() {
@@ -317,7 +317,7 @@ export class PtcJumbotron {
317
317
  },
318
318
  "hasCtaSlot": {
319
319
  "type": "boolean",
320
- "mutable": false,
320
+ "mutable": true,
321
321
  "complexType": {
322
322
  "original": "boolean",
323
323
  "resolved": "boolean",
@@ -17,9 +17,16 @@ export class PtcSocialIconsFooter {
17
17
  this.weiboUrl = undefined;
18
18
  this.youkuUrl = undefined;
19
19
  this.wechatQrImageUrl = undefined;
20
+ this.wechatQrImageAltText = undefined;
21
+ this.target = undefined;
22
+ }
23
+ openModal(e) {
24
+ e.preventDefault();
25
+ const modal = this.hostElement.shadowRoot.querySelector('#QRModal');
26
+ modal.show = true;
20
27
  }
21
28
  render() {
22
- return (h(Host, null, h("slot", null), h("ul", null, this.instagramUrl && h("li", null, " ", h("a", { href: this.instagramUrl, title: 'Instagram', innerHTML: instagramSVG }), " "), this.facebookUrl && h("li", null, " ", h("a", { href: this.facebookUrl, title: 'Facebook', innerHTML: facebookSVG }), " "), this.linkedinUrl && h("li", null, " ", h("a", { href: this.linkedinUrl, title: 'LinkedIn', innerHTML: linkedinSVG }), " "), this.xUrl && h("li", null, " ", h("a", { href: this.xUrl, title: 'X', innerHTML: xSVG }), " "), this.youtubeUrl && h("li", null, " ", h("a", { href: this.youtubeUrl, title: 'Youtube', innerHTML: youtubeSVG }), " "), this.weiboUrl && h("li", null, " ", h("a", { href: this.weiboUrl, title: 'Weibo', innerHTML: weiboSVG }), " "), this.youkuUrl && h("li", null, " ", h("a", { href: this.youkuUrl, title: 'Youku', innerHTML: ykSVG }), " "), this.wechatQrImageUrl && h("li", null, " ", h("a", { href: this.wechatQrImageUrl, title: 'WeChat', innerHTML: wechatSVG }), " "))));
29
+ return (h(Host, null, h("slot", null), h("ul", null, this.instagramUrl && h("li", null, " ", h("a", { href: this.instagramUrl, title: 'Instagram', innerHTML: instagramSVG, target: this.target }), " "), this.facebookUrl && h("li", null, " ", h("a", { href: this.facebookUrl, title: 'Facebook', innerHTML: facebookSVG, target: this.target }), " "), this.linkedinUrl && h("li", null, " ", h("a", { href: this.linkedinUrl, title: 'LinkedIn', innerHTML: linkedinSVG, target: this.target }), " "), this.xUrl && h("li", null, " ", h("a", { href: this.xUrl, title: 'X', innerHTML: xSVG, target: this.target }), " "), this.youtubeUrl && h("li", null, " ", h("a", { href: this.youtubeUrl, title: 'Youtube', innerHTML: youtubeSVG, target: this.target }), " "), this.weiboUrl && h("li", null, " ", h("a", { href: this.weiboUrl, title: 'Weibo', innerHTML: weiboSVG, target: this.target }), " "), this.youkuUrl && h("li", null, " ", h("a", { href: this.youkuUrl, title: 'Youku', innerHTML: ykSVG, target: this.target }), " "), this.wechatQrImageUrl && h("li", null, " ", h("a", { href: "#", onClick: (Event) => { this.openModal(Event); }, title: 'WeChat', innerHTML: wechatSVG }), " ")), h("ptc-modal", { id: "QRModal", show: false, size: "sm", "close-on-blur": true, fixed: true, styles: '.wrapper .modal-popup .modal-body { padding-bottom: 40px}' }, h("ptc-picture", { alt: this.wechatQrImageAltText, src: this.wechatQrImageUrl, "max-width": '250', "image-alignment": 'center', styles: 'img{margin:auto}' }))));
23
30
  }
24
31
  static get is() { return "ptc-social-icons-footer"; }
25
32
  static get encapsulation() { return "shadow"; }
@@ -170,7 +177,42 @@ export class PtcSocialIconsFooter {
170
177
  },
171
178
  "attribute": "wechat-qr-image-url",
172
179
  "reflect": false
180
+ },
181
+ "wechatQrImageAltText": {
182
+ "type": "string",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "string",
186
+ "resolved": "string",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": ""
194
+ },
195
+ "attribute": "wechat-qr-image-alt-text",
196
+ "reflect": false
197
+ },
198
+ "target": {
199
+ "type": "string",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "string",
203
+ "resolved": "string",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "attribute": "target",
213
+ "reflect": false
173
214
  }
174
215
  };
175
216
  }
217
+ static get elementRef() { return "hostElement"; }
176
218
  }
@@ -74,6 +74,24 @@ export const FooterForm: {
74
74
  new (): FooterForm;
75
75
  };
76
76
 
77
+ interface HomepageClickableTab extends Components.HomepageClickableTab, HTMLElement {}
78
+ export const HomepageClickableTab: {
79
+ prototype: HomepageClickableTab;
80
+ new (): HomepageClickableTab;
81
+ };
82
+
83
+ interface HomepageJumbotron extends Components.HomepageJumbotron, HTMLElement {}
84
+ export const HomepageJumbotron: {
85
+ prototype: HomepageJumbotron;
86
+ new (): HomepageJumbotron;
87
+ };
88
+
89
+ interface HomepageToggledContent extends Components.HomepageToggledContent, HTMLElement {}
90
+ export const HomepageToggledContent: {
91
+ prototype: HomepageToggledContent;
92
+ new (): HomepageToggledContent;
93
+ };
94
+
77
95
  interface IconAsset extends Components.IconAsset, HTMLElement {}
78
96
  export const IconAsset: {
79
97
  prototype: IconAsset;
@@ -86,6 +104,12 @@ export const InnovatorToggleContainer: {
86
104
  new (): InnovatorToggleContainer;
87
105
  };
88
106
 
107
+ interface JumbotronSubMune extends Components.JumbotronSubMune, HTMLElement {}
108
+ export const JumbotronSubMune: {
109
+ prototype: JumbotronSubMune;
110
+ new (): JumbotronSubMune;
111
+ };
112
+
89
113
  interface ListItem extends Components.ListItem, HTMLElement {}
90
114
  export const ListItem: {
91
115
  prototype: ListItem;
@@ -374,6 +398,12 @@ export const PtcImg: {
374
398
  new (): PtcImg;
375
399
  };
376
400
 
401
+ interface PtcInfoTile extends Components.PtcInfoTile, HTMLElement {}
402
+ export const PtcInfoTile: {
403
+ prototype: PtcInfoTile;
404
+ new (): PtcInfoTile;
405
+ };
406
+
377
407
  interface PtcJumbotron extends Components.PtcJumbotron, HTMLElement {}
378
408
  export const PtcJumbotron: {
379
409
  prototype: PtcJumbotron;