@ptcwebops/ptcw-design 1.6.7 → 1.6.9

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 (73) hide show
  1. package/dist/{esm/core-1c9d4889.js → cjs/core-5a811549.js} +26 -1
  2. package/dist/cjs/{icon-asset_17.cjs.entry.js → icon-asset_16.cjs.entry.js} +43 -37
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1685 -0
  5. package/dist/cjs/ptc-image-download-strip.cjs.entry.js +29 -0
  6. package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-news.cjs.entry.js +28 -0
  8. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  9. package/dist/cjs/ptc-progress-bar_2.cjs.entry.js +11 -1
  10. package/dist/cjs/ptc-slit-card.cjs.entry.js +36 -0
  11. package/dist/cjs/ptcw-design.cjs.js +1 -1
  12. package/dist/cjs/sequential-bundle-example.cjs.entry.js +1 -1
  13. package/dist/cjs/sequential-bundle.cjs.entry.js +1 -1
  14. package/dist/collection/collection-manifest.json +3 -0
  15. package/dist/collection/components/icon-asset/media/designer.svg +33 -3
  16. package/dist/collection/components/ptc-button/ptc-button.css +18 -0
  17. package/dist/collection/components/ptc-button/ptc-button.js +20 -1
  18. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +831 -0
  19. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +91 -0
  20. package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.css +49 -0
  21. package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +51 -0
  22. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +0 -17
  23. package/dist/collection/components/ptc-news/ptc-news.css +47 -0
  24. package/dist/collection/components/ptc-news/ptc-news.js +169 -0
  25. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +0 -17
  26. package/dist/collection/components/ptc-product-card/ptc-product-card.css +22 -1
  27. package/dist/collection/components/ptc-product-card/ptc-product-card.js +3 -2
  28. package/dist/collection/components/ptc-product-list/ptc-product-list.js +23 -0
  29. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +6 -1
  30. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +18 -2
  31. package/dist/collection/components/ptc-social-share/ptc-social-share.js +32 -4
  32. package/dist/custom-elements/index.d.ts +18 -0
  33. package/dist/custom-elements/index.js +9734 -7943
  34. package/dist/{cjs/core-fd18b67a.js → esm/core-2af05469.js} +14 -3
  35. package/dist/esm/{icon-asset_17.entry.js → icon-asset_16.entry.js} +44 -37
  36. package/dist/esm/loader.js +1 -1
  37. package/dist/esm/ptc-case-studies-slider.entry.js +1681 -0
  38. package/dist/esm/ptc-image-download-strip.entry.js +25 -0
  39. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  40. package/dist/esm/ptc-news.entry.js +24 -0
  41. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  42. package/dist/esm/ptc-progress-bar_2.entry.js +11 -1
  43. package/dist/esm/ptc-slit-card.entry.js +32 -0
  44. package/dist/esm/ptcw-design.js +1 -1
  45. package/dist/esm/sequential-bundle-example.entry.js +1 -1
  46. package/dist/esm/sequential-bundle.entry.js +1 -1
  47. package/dist/ptcw-design/media/designer.svg +33 -3
  48. package/dist/ptcw-design/{p-9e23fa0e.entry.js → p-1cea4b9e.entry.js} +1 -1
  49. package/dist/ptcw-design/p-4e551e25.entry.js +1 -0
  50. package/dist/ptcw-design/p-5507ef4b.entry.js +1 -0
  51. package/dist/ptcw-design/p-575de112.js +1 -0
  52. package/dist/ptcw-design/{p-b1a63c48.entry.js → p-7753a23d.entry.js} +1 -1
  53. package/dist/ptcw-design/p-7bc132c4.entry.js +1 -0
  54. package/dist/ptcw-design/p-aa942e3b.entry.js +1 -0
  55. package/dist/ptcw-design/p-b5d7c48e.entry.js +1 -0
  56. package/dist/ptcw-design/p-c5fadad0.entry.js +1 -0
  57. package/dist/ptcw-design/{p-9cb33f7d.entry.js → p-d9f4813a.entry.js} +1 -1
  58. package/dist/ptcw-design/{p-48c53295.entry.js → p-f1f1b19d.entry.js} +1 -1
  59. package/dist/ptcw-design/ptcw-design.css +1 -1
  60. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  61. package/dist/types/components/ptc-button/ptc-button.d.ts +4 -0
  62. package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +14 -0
  63. package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +9 -0
  64. package/dist/types/components/ptc-news/ptc-news.d.ts +35 -0
  65. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +1 -0
  66. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +1 -0
  67. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +5 -1
  68. package/dist/types/components.d.ts +133 -6
  69. package/package.json +1 -1
  70. package/readme.md +1 -1
  71. package/dist/ptcw-design/p-2c23c489.entry.js +0 -1
  72. package/dist/ptcw-design/p-69dddd51.js +0 -1
  73. package/dist/ptcw-design/p-c26920ef.entry.js +0 -1
@@ -11,10 +11,12 @@ export class PtcSocialShare {
11
11
  this.iconColor = 'white';
12
12
  this.iconHoverColor = 'gray';
13
13
  this.isHover = false;
14
+ this.iconSize = 'large';
14
15
  }
15
16
  render() {
16
17
  const classMap = this.getCssClassMap();
17
- return (h(Host, { class: classMap }, h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-twitter" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-mail' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "mail-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "linkedin-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "twitter-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "facebook-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? h("icon-asset", Object.assign({ type: "solid", size: "large", name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null)));
18
+ return (h(Host, { class: classMap }, h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-twitter" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-mail' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "mail-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "linkedin-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "twitter-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "facebook-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? h("icon-asset", Object.assign({ type: "solid", size: this.iconSize, name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'download' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "download-arrow-news", color: "inherit" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null), this.shareType == 'download' &&
19
+ h("ptc-modal", { id: "download-modal", show: false, size: "lg", fixed: true, "is-bio-modal": true }, h("ptc-title", { type: 'h2', "text-align": 'center', "title-weight": "w-5", upperline: "no-upperline" }, "Thanks For Downloading"))));
18
20
  }
19
21
  getCssClassMap() {
20
22
  return {
@@ -54,6 +56,14 @@ export class PtcSocialShare {
54
56
  window.open(`http://twitter.com/share?text=${this.text}&url=${this.url}`);
55
57
  }
56
58
  }
59
+ if (this.shareType == 'download') {
60
+ let modal = this.el.shadowRoot.querySelector('#download-modal');
61
+ modal.setAttribute('show', 'true');
62
+ setTimeout(() => {
63
+ modal.setAttribute('show', 'false');
64
+ window.open(`${this.url}`, "_self");
65
+ }, 1000);
66
+ }
57
67
  }
58
68
  static get is() { return "ptc-social-share"; }
59
69
  static get encapsulation() { return "shadow"; }
@@ -91,8 +101,8 @@ export class PtcSocialShare {
91
101
  "type": "string",
92
102
  "mutable": false,
93
103
  "complexType": {
94
- "original": "'mail' | 'twitter' | 'linkedin' | 'facebook' | 'share-api' | 'blog-mail' | 'blog-twitter' | 'blog-linkedin' | 'blog-facebook'",
95
- "resolved": "\"blog-facebook\" | \"blog-linkedin\" | \"blog-mail\" | \"blog-twitter\" | \"facebook\" | \"linkedin\" | \"mail\" | \"share-api\" | \"twitter\"",
104
+ "original": "'mail' | 'twitter' | 'linkedin' | 'facebook' | 'share-api' | 'download' | 'blog-mail' | 'blog-twitter' | 'blog-linkedin' | 'blog-facebook'",
105
+ "resolved": "\"blog-facebook\" | \"blog-linkedin\" | \"blog-mail\" | \"blog-twitter\" | \"download\" | \"facebook\" | \"linkedin\" | \"mail\" | \"share-api\" | \"twitter\"",
96
106
  "references": {}
97
107
  },
98
108
  "required": false,
@@ -196,7 +206,7 @@ export class PtcSocialShare {
196
206
  "type": "string",
197
207
  "mutable": false,
198
208
  "complexType": {
199
- "original": "'black' | 'white' | 'ptc-green' | 'gray' | 'primary-gray' |'inherit'",
209
+ "original": "'black' | 'white' | 'ptc-green' | 'gray' | 'primary-gray' | 'inherit'",
200
210
  "resolved": "\"black\" | \"gray\" | \"inherit\" | \"primary-gray\" | \"ptc-green\" | \"white\"",
201
211
  "references": {}
202
212
  },
@@ -227,6 +237,24 @@ export class PtcSocialShare {
227
237
  "attribute": "icon-hover-color",
228
238
  "reflect": false,
229
239
  "defaultValue": "'gray'"
240
+ },
241
+ "iconSize": {
242
+ "type": "string",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large'",
246
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"xx-large\" | \"xxx-large\" | \"xxxx-large\"",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": true,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Icon Size"
254
+ },
255
+ "attribute": "icon-size",
256
+ "reflect": false,
257
+ "defaultValue": "'large'"
230
258
  }
231
259
  };
232
260
  }
@@ -128,6 +128,12 @@ export const PtcCardWrapper: {
128
128
  new (): PtcCardWrapper;
129
129
  };
130
130
 
131
+ interface PtcCaseStudiesSlider extends Components.PtcCaseStudiesSlider, HTMLElement {}
132
+ export const PtcCaseStudiesSlider: {
133
+ prototype: PtcCaseStudiesSlider;
134
+ new (): PtcCaseStudiesSlider;
135
+ };
136
+
131
137
  interface PtcCheckbox extends Components.PtcCheckbox, HTMLElement {}
132
138
  export const PtcCheckbox: {
133
139
  prototype: PtcCheckbox;
@@ -200,6 +206,12 @@ export const PtcIconMinimize: {
200
206
  new (): PtcIconMinimize;
201
207
  };
202
208
 
209
+ interface PtcImageDownloadStrip extends Components.PtcImageDownloadStrip, HTMLElement {}
210
+ export const PtcImageDownloadStrip: {
211
+ prototype: PtcImageDownloadStrip;
212
+ new (): PtcImageDownloadStrip;
213
+ };
214
+
203
215
  interface PtcImg extends Components.PtcImg, HTMLElement {}
204
216
  export const PtcImg: {
205
217
  prototype: PtcImg;
@@ -284,6 +296,12 @@ export const PtcNavSubmenu: {
284
296
  new (): PtcNavSubmenu;
285
297
  };
286
298
 
299
+ interface PtcNews extends Components.PtcNews, HTMLElement {}
300
+ export const PtcNews: {
301
+ prototype: PtcNews;
302
+ new (): PtcNews;
303
+ };
304
+
287
305
  interface PtcOverlay extends Components.PtcOverlay, HTMLElement {}
288
306
  export const PtcOverlay: {
289
307
  prototype: PtcOverlay;