@ptcwebops/ptcw-design 3.0.2 → 3.0.4

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 (122) hide show
  1. package/dist/cjs/embedded-form.cjs.entry.js +108 -0
  2. package/dist/cjs/footer-form.cjs.entry.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/max-width-container.cjs.entry.js +54 -0
  5. package/dist/cjs/ptc-button.cjs.entry.js +52 -0
  6. package/dist/cjs/ptc-data-lookup.cjs.entry.js +496 -0
  7. package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +1 -1
  8. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +6 -1
  9. package/dist/cjs/{embedded-form_9.cjs.entry.js → ptc-form-checkbox_3.cjs.entry.js} +12 -804
  10. package/dist/cjs/ptc-form.cjs.entry.js +1 -1
  11. package/dist/cjs/ptc-modal-quiz.cjs.entry.js +1 -1
  12. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +7 -5
  13. package/dist/cjs/ptc-quote.cjs.entry.js +3 -2
  14. package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
  15. package/dist/cjs/ptc-title.cjs.entry.js +78 -0
  16. package/dist/cjs/ptc-value-led-card.cjs.entry.js +21 -0
  17. package/dist/cjs/ptc-value-led-content-highlight.cjs.entry.js +19 -0
  18. package/dist/cjs/ptc-value-led-content.cjs.entry.js +19 -0
  19. package/dist/cjs/ptc-value-led-intro.cjs.entry.js +20 -0
  20. package/dist/cjs/ptc-value-led-layout.cjs.entry.js +2 -2
  21. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +32 -0
  22. package/dist/cjs/ptcw-design.cjs.js +1 -1
  23. package/dist/collection/collection-manifest.json +5 -1
  24. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
  25. package/dist/collection/components/organism-bundles/form/footer-form/footer-form.js +1 -1
  26. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.js +1 -1
  27. package/dist/collection/components/ptc-button/ptc-button.css +42 -0
  28. package/dist/collection/components/ptc-button/ptc-button.js +20 -1
  29. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +1 -1
  30. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +27 -1
  31. package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.css +6 -1
  32. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +7 -5
  33. package/dist/collection/components/ptc-quote/ptc-quote.css +28 -0
  34. package/dist/collection/components/ptc-quote/ptc-quote.js +4 -3
  35. package/dist/collection/components/ptc-select/ptc-select.js +4 -4
  36. package/dist/collection/components/ptc-textfield/ptc-textfield.js +12 -16
  37. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.css +36 -0
  38. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.js +60 -0
  39. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.css +12 -0
  40. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.js +18 -0
  41. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.css +31 -0
  42. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.js +18 -0
  43. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.css +16 -0
  44. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.js +42 -0
  45. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.css +22 -3
  46. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +1 -1
  47. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +63 -0
  48. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.js +97 -0
  49. package/dist/custom-elements/index.d.ts +30 -6
  50. package/dist/custom-elements/index.js +139 -571
  51. package/dist/esm/embedded-form.entry.js +104 -0
  52. package/dist/esm/footer-form.entry.js +1 -1
  53. package/dist/esm/loader.js +1 -1
  54. package/dist/esm/max-width-container.entry.js +50 -0
  55. package/dist/esm/ptc-button.entry.js +48 -0
  56. package/dist/esm/ptc-data-lookup.entry.js +492 -0
  57. package/dist/esm/ptc-filter-dropdown_4.entry.js +1 -1
  58. package/dist/esm/ptc-filter-level-theater.entry.js +6 -1
  59. package/dist/esm/{embedded-form_9.entry.js → ptc-form-checkbox_3.entry.js} +14 -800
  60. package/dist/esm/ptc-form.entry.js +1 -1
  61. package/dist/esm/ptc-modal-quiz.entry.js +1 -1
  62. package/dist/esm/ptc-pricing-packaging-table.entry.js +7 -5
  63. package/dist/esm/ptc-quote.entry.js +3 -2
  64. package/dist/esm/ptc-spacer.entry.js +34 -0
  65. package/dist/esm/ptc-title.entry.js +74 -0
  66. package/dist/esm/ptc-value-led-card.entry.js +17 -0
  67. package/dist/esm/ptc-value-led-content-highlight.entry.js +15 -0
  68. package/dist/esm/ptc-value-led-content.entry.js +15 -0
  69. package/dist/esm/ptc-value-led-intro.entry.js +16 -0
  70. package/dist/esm/ptc-value-led-layout.entry.js +2 -2
  71. package/dist/esm/ptc-value-led-speed-bump.entry.js +28 -0
  72. package/dist/esm/ptcw-design.js +1 -1
  73. package/dist/ptcw-design/p-036234e7.entry.js +1 -0
  74. package/dist/ptcw-design/{p-ed2cc9da.entry.js → p-08ed517e.entry.js} +1 -1
  75. package/dist/ptcw-design/p-137ddeeb.entry.js +1 -0
  76. package/dist/ptcw-design/p-18dfffd3.entry.js +359 -0
  77. package/dist/ptcw-design/p-236073e1.entry.js +1 -0
  78. package/dist/ptcw-design/p-2e4af711.entry.js +1 -0
  79. package/dist/ptcw-design/p-33c054ff.entry.js +1 -0
  80. package/dist/ptcw-design/{p-f00b4b73.entry.js → p-3ca391ab.entry.js} +1 -1
  81. package/dist/ptcw-design/p-3faffecb.entry.js +1 -0
  82. package/dist/ptcw-design/p-49f06645.entry.js +1 -0
  83. package/dist/ptcw-design/p-641bd525.entry.js +1 -0
  84. package/dist/ptcw-design/p-744b640e.entry.js +1 -0
  85. package/dist/ptcw-design/p-752f779c.entry.js +1 -0
  86. package/dist/ptcw-design/p-7aa6b7e5.entry.js +1 -0
  87. package/dist/ptcw-design/p-7c079ff8.entry.js +1 -0
  88. package/dist/ptcw-design/p-92bbd407.entry.js +1 -0
  89. package/dist/ptcw-design/p-9a36f7a3.entry.js +1 -0
  90. package/dist/ptcw-design/p-a5bbf47d.entry.js +1 -0
  91. package/dist/ptcw-design/p-d2c400e2.entry.js +1 -0
  92. package/dist/ptcw-design/p-f1c77113.entry.js +1 -0
  93. package/dist/ptcw-design/ptcw-design.css +2 -2
  94. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  95. package/dist/types/components/ptc-button/ptc-button.d.ts +4 -0
  96. package/dist/types/components/ptc-filter-level-theater/ptc-filter-level-theater.d.ts +1 -0
  97. package/dist/types/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +2 -0
  98. package/dist/types/components/ptc-quote/ptc-quote.d.ts +1 -1
  99. package/dist/types/components/ptc-select/ptc-select.d.ts +1 -1
  100. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +1 -1
  101. package/dist/types/components/ptc-value-led-card/ptc-value-led-card.d.ts +5 -0
  102. package/dist/types/components/ptc-value-led-content/ptc-value-led-content.d.ts +3 -0
  103. package/dist/types/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.d.ts +3 -0
  104. package/dist/types/components/ptc-value-led-intro/ptc-value-led-intro.d.ts +4 -0
  105. package/dist/types/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.d.ts +10 -0
  106. package/dist/types/components.d.ts +93 -75
  107. package/package.json +1 -1
  108. package/readme.md +1 -1
  109. package/dist/cjs/ptc-pricing-table.cjs.entry.js +0 -536
  110. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.css +0 -278
  111. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +0 -680
  112. package/dist/esm/ptc-pricing-table.entry.js +0 -532
  113. package/dist/ptcw-design/p-220f86c0.entry.js +0 -1
  114. package/dist/ptcw-design/p-4a865061.entry.js +0 -1
  115. package/dist/ptcw-design/p-b0b4ebd6.entry.js +0 -359
  116. package/dist/ptcw-design/p-b2d01ad4.entry.js +0 -1
  117. package/dist/ptcw-design/p-c20538ec.entry.js +0 -1
  118. package/dist/ptcw-design/p-e8bd06a4.entry.js +0 -1
  119. package/dist/ptcw-design/p-f2621425.entry.js +0 -1
  120. package/dist/ptcw-design/p-f29c71fe.entry.js +0 -1
  121. package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +0 -110
  122. package/dist/types/utils/eloqua.d.ts +0 -8
@@ -171,4 +171,32 @@
171
171
  display: block;
172
172
  margin-bottom: var(--ptc-element-spacing-07);
173
173
  font-size: var(--ptc-font-size-x-small);
174
+ }
175
+
176
+ :host(.value-led-quote) {
177
+ margin-bottom: 48px;
178
+ }
179
+ :host(.value-led-quote) blockquote {
180
+ margin: 0;
181
+ border-left: 7px solid var(--color-green-07);
182
+ padding-left: 32px;
183
+ }
184
+ @media only screen and (min-width: 480px) {
185
+ :host(.value-led-quote) blockquote {
186
+ margin: 0 0 0 40px;
187
+ }
188
+ }
189
+ @media only screen and (min-width: 992px) {
190
+ :host(.value-led-quote) blockquote {
191
+ margin: 8px 0 8px 48px;
192
+ }
193
+ }
194
+ :host(.value-led-quote) blockquote p, :host(.value-led-quote) blockquote span {
195
+ color: var(--color-gray-10);
196
+ font-size: 18px;
197
+ font-weight: 600;
198
+ line-height: 1.5;
199
+ }
200
+ :host(.value-led-quote) blockquote .quote-name {
201
+ font-weight: 500;
174
202
  }
@@ -14,7 +14,8 @@ export class PtcQuote {
14
14
  }
15
15
  render() {
16
16
  const classMap = this.getCssClassMap();
17
- return (h(Host, { class: classMap }, this.imgSrc ? (h("div", { class: "quote-media" }, this.imgSrc ? h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, h("blockquote", null, h("p", null, h("slot", null)), h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
17
+ return (h(Host, { class: classMap }, this.imgSrc ? (h("div", { class: "quote-media" }, this.imgSrc ? h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, h("blockquote", null, this.quoteType == 'value-led-quote' &&
18
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "53", height: "38", viewBox: "0 0 53 38", fill: "none" }, h("g", { "clip-path": "url(#clip0_212_629)" }, h("path", { d: "M13.7846 17.9206L16.974 0H5.22352L0 17.6207V38H22V17.9206H13.7846Z", fill: "#00890B" }), h("path", { d: "M44.7784 17.9206L47.9762 0H36.2212L31 17.6207V38H53V17.9206H44.7784Z", fill: "#00890B" })), h("defs", null, h("clipPath", { id: "clip0_212_629" }, h("rect", { width: "53", height: "38", fill: "white" })))), h("p", null, h("slot", null)), h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
18
19
  }
19
20
  getCssClassMap() {
20
21
  return {
@@ -39,8 +40,8 @@ export class PtcQuote {
39
40
  "type": "string",
40
41
  "mutable": true,
41
42
  "complexType": {
42
- "original": "\"image-quote\" | \"plain-quote\"",
43
- "resolved": "\"image-quote\" | \"plain-quote\"",
43
+ "original": "\"image-quote\" | \"plain-quote\" | 'value-led-quote'",
44
+ "resolved": "\"image-quote\" | \"plain-quote\" | \"value-led-quote\"",
44
45
  "references": {}
45
46
  },
46
47
  "required": false,
@@ -254,7 +254,7 @@ export class PtcSelect {
254
254
  this.label = undefined;
255
255
  this.isRequired = true;
256
256
  this.helpertext = 'Please select a value!';
257
- this.name = undefined;
257
+ this.fieldName = undefined;
258
258
  this.disabled = false;
259
259
  this.selectedValue = '';
260
260
  this.ptcDataEloquaName = undefined;
@@ -283,7 +283,7 @@ export class PtcSelect {
283
283
  return className;
284
284
  }
285
285
  render() {
286
- return (h(Host, { class: "ptc-select" }, h("label", { class: "ptc-label-select" }, this.label), h("div", { class: this.getSelectClassName() }, h("div", Object.assign({ class: "mdc-select__anchor", "aria-labelledby": "outlined-select-label" }, (this.isRequired ? { ariaRequired: true } : null)), h("span", { class: "mdc-notched-outline" }, h("span", { class: "mdc-notched-outline__leading" }), h("span", { class: "mdc-notched-outline__trailing" })), h("span", { class: "mdc-select__selected-text-container" }, h("span", { id: this.fieldId, class: "mdc-select__selected-text", "aria-controls": this.name, "aria-describedby": this.name, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName })), h("span", { class: "mdc-select__dropdown-icon" }, h("svg", { class: "", width: "20", height: "12", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1.375 1.875L5 5.5L8.625 1.875L9.9375 3.1875L5 8.125L0.0625 3.1875L1.375 1.875Z" })))), h("div", { class: "mdc-select__menu mdc-menu mdc-menu-surface mdc-menu-surface--fullwidth" }, h("slot", null))), h("p", { id: this.name, class: "mdc-select-helper-text mdc-select-helper-text--validation-msg" }, h("svg", { class: "select-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_12_1424)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), h("defs", null, h("clipPath", { id: "clip0_12_1424" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext)));
286
+ return (h(Host, { class: "ptc-select" }, h("label", { class: "ptc-label-select" }, this.label), h("div", { class: this.getSelectClassName() }, h("div", Object.assign({ class: "mdc-select__anchor", "aria-labelledby": "outlined-select-label" }, (this.isRequired ? { ariaRequired: true } : null)), h("span", { class: "mdc-notched-outline" }, h("span", { class: "mdc-notched-outline__leading" }), h("span", { class: "mdc-notched-outline__trailing" })), h("span", { class: "mdc-select__selected-text-container" }, h("span", { id: this.fieldId, class: "mdc-select__selected-text", "aria-controls": this.fieldName, "aria-describedby": this.fieldName, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName })), h("span", { class: "mdc-select__dropdown-icon" }, h("svg", { class: "", width: "20", height: "12", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1.375 1.875L5 5.5L8.625 1.875L9.9375 3.1875L5 8.125L0.0625 3.1875L1.375 1.875Z" })))), h("div", { class: "mdc-select__menu mdc-menu mdc-menu-surface mdc-menu-surface--fullwidth" }, h("slot", null))), h("p", { id: this.fieldName, class: "mdc-select-helper-text mdc-select-helper-text--validation-msg" }, h("svg", { class: "select-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_12_1424)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), h("defs", null, h("clipPath", { id: "clip0_12_1424" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext)));
287
287
  }
288
288
  static get is() { return "ptc-select"; }
289
289
  static get originalStyleUrls() {
@@ -368,7 +368,7 @@ export class PtcSelect {
368
368
  "reflect": false,
369
369
  "defaultValue": "'Please select a value!'"
370
370
  },
371
- "name": {
371
+ "fieldName": {
372
372
  "type": "string",
373
373
  "mutable": false,
374
374
  "complexType": {
@@ -382,7 +382,7 @@ export class PtcSelect {
382
382
  "tags": [],
383
383
  "text": ""
384
384
  },
385
- "attribute": "name",
385
+ "attribute": "field-name",
386
386
  "reflect": false
387
387
  },
388
388
  "disabled": {
@@ -11,7 +11,7 @@ export class PtcTextfield {
11
11
  this.labelText = 'Email';
12
12
  this.helpertext = 'Please enter a value';
13
13
  this.disabled = false;
14
- this.name = 'email';
14
+ this.fieldName = 'email';
15
15
  this.ptcDataEloquaName = undefined;
16
16
  this.ptcDataTargetEloquaName = undefined;
17
17
  this.inputValue = '';
@@ -51,7 +51,7 @@ export class PtcTextfield {
51
51
  // debugger;
52
52
  // console.error('An error found here!', error.message);
53
53
  // }
54
- if (this.fieldId === 'contact-phone' && this.name === 'phone') {
54
+ if (this.fieldId === 'contact-phone' && this.fieldName === 'phone') {
55
55
  this.iti = intlTelInput(this.customInput, {
56
56
  separateDialCode: true,
57
57
  initialCountry: 'auto',
@@ -67,7 +67,7 @@ export class PtcTextfield {
67
67
  }
68
68
  }
69
69
  getPhoneValidation() {
70
- if (this.fieldId === 'contact-phone' && this.name === 'phone') {
70
+ if (this.fieldId === 'contact-phone' && this.fieldName === 'phone') {
71
71
  if (this.iti.isValidNumber()) {
72
72
  if (this.mdcTextfield.classList.contains('mdc-text-field--invalid')) {
73
73
  this.mdcTextfield.classList.remove('mdc-text-field--invalid');
@@ -75,7 +75,6 @@ export class PtcTextfield {
75
75
  if (this.el.classList.contains('invalid-field')) {
76
76
  this.el.classList.remove('invalid-field');
77
77
  }
78
- // console.log("text field class list: " + this.mdcTextfield.className)
79
78
  }
80
79
  else if (!this.iti.isValidNumber()) {
81
80
  if (!this.mdcTextfield.classList.contains('mdc-text-field--invalid')) {
@@ -84,10 +83,7 @@ export class PtcTextfield {
84
83
  if (!this.el.classList.contains('invalid-field')) {
85
84
  this.el.classList.add('invalid-field');
86
85
  }
87
- // console.log("text field class list: " + this.mdcTextfield.className);
88
- // console.log("this class list: " + this.el.className)
89
86
  }
90
- // console.log('hello!');
91
87
  }
92
88
  }
93
89
  setErrorBackground() {
@@ -104,7 +100,7 @@ export class PtcTextfield {
104
100
  }
105
101
  getInputClassName() {
106
102
  let className = 'mdc-text-field__input';
107
- if (this.type === 'tel' && this.name === 'phone') {
103
+ if (this.type === 'tel' && this.fieldName === 'phone') {
108
104
  className = `${className} intl-tel-input`;
109
105
  }
110
106
  else if (this.type === 'text' && this.ptcMaxLength) {
@@ -117,13 +113,13 @@ export class PtcTextfield {
117
113
  // if (this.type === 'email' && this.name === 'email') {
118
114
  // validationPattern = '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}';
119
115
  // }
120
- if (this.name === 'firstname' || this.name === 'lastname') {
116
+ if (this.fieldName === 'firstname' || this.fieldName === 'lastname') {
121
117
  validationPattern = '[A-Za-z ]+';
122
118
  }
123
119
  return validationPattern;
124
120
  }
125
121
  setHelperText() {
126
- if (this.type === 'email' && this.name === 'email') {
122
+ if (this.type === 'email' && this.fieldName === 'email') {
127
123
  if (this.customInput.validity.valueMissing) {
128
124
  this.helpertext = 'Email is required.';
129
125
  }
@@ -131,7 +127,7 @@ export class PtcTextfield {
131
127
  this.helpertext = 'Please enter a valid email.';
132
128
  }
133
129
  }
134
- else if (this.name === 'firstname') {
130
+ else if (this.fieldName === 'firstname') {
135
131
  if (this.customInput.validity.valueMissing) {
136
132
  this.helpertext = 'Please enter your first name.';
137
133
  }
@@ -139,7 +135,7 @@ export class PtcTextfield {
139
135
  this.helpertext = 'Please check your first name';
140
136
  }
141
137
  }
142
- else if (this.name === 'lastname') {
138
+ else if (this.fieldName === 'lastname') {
143
139
  if (this.customInput.validity.valueMissing) {
144
140
  this.helpertext = 'Please enter your last name.';
145
141
  }
@@ -167,9 +163,9 @@ export class PtcTextfield {
167
163
  this.mdcTextfield = mdcTextfield;
168
164
  } }, h("span", { class: "mdc-notched-outline ptc-textfield-outline" }, h("span", { class: "mdc-notched-outline__leading" }), h("span", { class: "mdc-notched-outline__trailing" })), h("input", Object.assign({ ref: customInput => {
169
165
  this.customInput = customInput;
170
- }, id: this.fieldId }, (this.getInputClassName() ? { class: this.getInputClassName() } : null), { type: this.type }, (this.required ? { required: true } : null), (this.ptcMaxLength ? { maxlength: this.ptcMaxLength } : null), { "aria-controls": this.name, "aria-describedby": this.name, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName, value: this.inputValue }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null)))),
166
+ }, id: this.fieldId }, (this.getInputClassName() ? { class: this.getInputClassName() } : null), { type: this.type }, (this.required ? { required: true } : null), (this.ptcMaxLength ? { maxlength: this.ptcMaxLength } : null), { "aria-controls": this.fieldName, "aria-describedby": this.fieldName, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName, value: this.inputValue, name: this.fieldName }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null)))),
171
167
  h("div", { class: `mdc-text-field-helper-line
172
- ${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.name }, h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_12_1424)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), h("defs", null, h("clipPath", { id: "clip0_12_1424" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.ptcMaxLength ? (h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null),
168
+ ${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.fieldName }, h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_12_1424)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), h("defs", null, h("clipPath", { id: "clip0_12_1424" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.ptcMaxLength ? (h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null),
173
169
  ]) : (h("input", { type: "hidden", "data-eloqua-name": this.ptcDataEloquaName, value: this.inputValue }))));
174
170
  }
175
171
  static get is() { return "ptc-textfield"; }
@@ -309,7 +305,7 @@ export class PtcTextfield {
309
305
  "reflect": false,
310
306
  "defaultValue": "false"
311
307
  },
312
- "name": {
308
+ "fieldName": {
313
309
  "type": "string",
314
310
  "mutable": false,
315
311
  "complexType": {
@@ -323,7 +319,7 @@ export class PtcTextfield {
323
319
  "tags": [],
324
320
  "text": ""
325
321
  },
326
- "attribute": "name",
322
+ "attribute": "field-name",
327
323
  "reflect": false,
328
324
  "defaultValue": "'email'"
329
325
  },
@@ -0,0 +1,36 @@
1
+ :host {
2
+ display: block;
3
+ padding: 32px;
4
+ border-radius: var(--ptc-border-radius-standard);
5
+ border: 1px solid var(--color-gray-02);
6
+ margin-bottom: 16px;
7
+ }
8
+ @media only screen and (min-width: 768px) {
9
+ :host {
10
+ display: inline-flex;
11
+ align-items: flex-start;
12
+ gap: 24px;
13
+ }
14
+ }
15
+ :host ptc-picture {
16
+ max-width: 200px;
17
+ min-width: 150px;
18
+ margin-bottom: 24px;
19
+ }
20
+ @media only screen and (min-width: 480px) {
21
+ :host ptc-picture {
22
+ min-width: 200px;
23
+ }
24
+ }
25
+ @media only screen and (min-width: 768px) {
26
+ :host ptc-picture {
27
+ margin-bottom: 0;
28
+ }
29
+ }
30
+ :host .card-content .tag {
31
+ display: block;
32
+ margin-bottom: 8px;
33
+ font-size: 14px;
34
+ font-weight: 600;
35
+ line-height: 1.5;
36
+ }
@@ -0,0 +1,60 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedCard {
3
+ constructor() {
4
+ this.cardTitle = undefined;
5
+ this.cardImage = undefined;
6
+ }
7
+ render() {
8
+ return (h(Host, null, h("ptc-picture", { alt: "image", "border-radius": "radius-standard", "display-image": "block", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: this.cardImage, styles: "" }), h("div", { class: "card-content" }, h("span", { class: 'tag' }, "Up Next"), h("ptc-title", { type: "h3", "title-size": "large", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.cardTitle), h("ptc-spacer", { size: "x-small" }), h("slot", null))));
9
+ }
10
+ static get is() { return "ptc-value-led-card"; }
11
+ static get encapsulation() { return "shadow"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["ptc-value-led-card.scss"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["ptc-value-led-card.css"]
20
+ };
21
+ }
22
+ static get properties() {
23
+ return {
24
+ "cardTitle": {
25
+ "type": "string",
26
+ "mutable": false,
27
+ "complexType": {
28
+ "original": "string",
29
+ "resolved": "string",
30
+ "references": {}
31
+ },
32
+ "required": false,
33
+ "optional": true,
34
+ "docs": {
35
+ "tags": [],
36
+ "text": ""
37
+ },
38
+ "attribute": "card-title",
39
+ "reflect": false
40
+ },
41
+ "cardImage": {
42
+ "type": "string",
43
+ "mutable": false,
44
+ "complexType": {
45
+ "original": "string",
46
+ "resolved": "string",
47
+ "references": {}
48
+ },
49
+ "required": false,
50
+ "optional": true,
51
+ "docs": {
52
+ "tags": [],
53
+ "text": ""
54
+ },
55
+ "attribute": "card-image",
56
+ "reflect": false
57
+ }
58
+ };
59
+ }
60
+ }
@@ -0,0 +1,12 @@
1
+ :host {
2
+ display: block;
3
+ padding-bottom: 48px;
4
+ }
5
+ :host .vl-content-title {
6
+ margin-bottom: 24px;
7
+ }
8
+ @media only screen and (min-width: 768px) {
9
+ :host .vl-content-title {
10
+ margin-bottom: 32px;
11
+ }
12
+ }
@@ -0,0 +1,18 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedContent {
3
+ render() {
4
+ return (h(Host, null, h("div", { class: "vl-content-title" }, h("ptc-title", { type: "h2", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush" }, h("slot", { name: "vl-content-title" }))), h("slot", null)));
5
+ }
6
+ static get is() { return "ptc-value-led-content"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["ptc-value-led-content.scss"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["ptc-value-led-content.css"]
16
+ };
17
+ }
18
+ }
@@ -0,0 +1,31 @@
1
+ :host {
2
+ display: block;
3
+ border-left: 7px solid var(--color-green-07);
4
+ padding-left: 32px;
5
+ margin: 0 0 48px 0;
6
+ }
7
+ @media only screen and (min-width: 480px) {
8
+ :host {
9
+ margin: 0 0 48px 40px;
10
+ }
11
+ }
12
+ @media only screen and (min-width: 992px) {
13
+ :host {
14
+ margin: 8px 0 48px 48px;
15
+ }
16
+ }
17
+ :host::slotted(p) {
18
+ color: var(--color-gray-10);
19
+ font-size: 18px;
20
+ font-weight: 600;
21
+ line-height: 1.5;
22
+ }
23
+ :host::slotted(ul li) {
24
+ color: var(--color-gray-10);
25
+ font-size: 18px;
26
+ font-weight: 600;
27
+ line-height: 1.5;
28
+ }
29
+ :host::slotted(ul) {
30
+ padding-left: 12px;
31
+ }
@@ -0,0 +1,18 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedContentHighlight {
3
+ render() {
4
+ return (h(Host, null, h("slot", null)));
5
+ }
6
+ static get is() { return "ptc-value-led-content-highlight"; }
7
+ static get encapsulation() { return "scoped"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["ptc-value-led-content-highlight.scss"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["ptc-value-led-content-highlight.css"]
16
+ };
17
+ }
18
+ }
@@ -0,0 +1,16 @@
1
+ :host {
2
+ display: block;
3
+ padding-bottom: 48px;
4
+ padding-top: 32px;
5
+ }
6
+ @media only screen and (min-width: 768px) {
7
+ :host {
8
+ padding-top: 0;
9
+ }
10
+ }
11
+ :host .content-tag {
12
+ font-size: var(--ptc-font-size-xx-small);
13
+ line-height: var(--ptc-line-height-p);
14
+ font-weight: var(--ptc-font-weight-semibold);
15
+ margin-bottom: var(--ptc-element-spacing-01);
16
+ }
@@ -0,0 +1,42 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedIntro {
3
+ constructor() {
4
+ this.contentTag = undefined;
5
+ }
6
+ render() {
7
+ return (h(Host, null, h("div", { class: 'content-tag' }, this.contentTag), h("slot", null)));
8
+ }
9
+ static get is() { return "ptc-value-led-intro"; }
10
+ static get encapsulation() { return "shadow"; }
11
+ static get originalStyleUrls() {
12
+ return {
13
+ "$": ["ptc-value-led-intro.scss"]
14
+ };
15
+ }
16
+ static get styleUrls() {
17
+ return {
18
+ "$": ["ptc-value-led-intro.css"]
19
+ };
20
+ }
21
+ static get properties() {
22
+ return {
23
+ "contentTag": {
24
+ "type": "string",
25
+ "mutable": false,
26
+ "complexType": {
27
+ "original": "string",
28
+ "resolved": "string",
29
+ "references": {}
30
+ },
31
+ "required": false,
32
+ "optional": false,
33
+ "docs": {
34
+ "tags": [],
35
+ "text": ""
36
+ },
37
+ "attribute": "content-tag",
38
+ "reflect": false
39
+ }
40
+ };
41
+ }
42
+ }
@@ -134,6 +134,14 @@
134
134
  color: var(--color-gray-10);
135
135
  position: relative;
136
136
  }
137
+ :host .vl-layout-wrap .vl-list-wrap ul li a span {
138
+ display: -webkit-box;
139
+ -webkit-line-clamp: 2;
140
+ -webkit-box-orient: vertical;
141
+ overflow: hidden;
142
+ text-overflow: ellipsis;
143
+ overflow-wrap: break-word;
144
+ }
137
145
  :host .vl-layout-wrap .vl-list-wrap ul li a::before {
138
146
  content: "";
139
147
  display: block;
@@ -174,10 +182,15 @@
174
182
  }
175
183
  :host .vl-layout-wrap .vl-content-wrap {
176
184
  width: 100%;
177
- padding: 0 32px 32px 32px;
185
+ padding: 0 20px 20px 20px;
178
186
  background-color: #fff;
179
187
  border-radius: var(--ptc-border-radius-standard);
180
188
  }
189
+ @media only screen and (min-width: 480px) {
190
+ :host .vl-layout-wrap .vl-content-wrap {
191
+ padding: 0 32px 32px 32px;
192
+ }
193
+ }
181
194
  @media only screen and (min-width: 992px) {
182
195
  :host .vl-layout-wrap .vl-content-wrap {
183
196
  width: 78%;
@@ -203,7 +216,13 @@
203
216
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.24);
204
217
  padding: 24px 48px 24px 24px;
205
218
  border: none;
206
- width: calc(100% + 64px);
207
- margin-left: -32px;
219
+ width: calc(100% + 40px);
220
+ margin-left: -20px;
208
221
  background-position: calc(100% - 24px) 50%;
222
+ }
223
+ @media only screen and (min-width: 480px) {
224
+ :host .vl-layout-wrap .vl-content-wrap .mobile-select {
225
+ width: calc(100% + 64px);
226
+ margin-left: -32px;
227
+ }
209
228
  }
@@ -97,7 +97,7 @@ export class PtcValueLedLayout {
97
97
  }
98
98
  }
99
99
  render() {
100
- return (h(Host, null, h("div", { class: 'top-image', style: { backgroundImage: `url(${this.topBackgroundImage})` } }), h("div", { class: 'ptc-container' }, h("div", { class: "pdf-slot-wrapper" }, h("slot", { name: 'pdf-slot' })), h("div", { class: "vl-layout-wrap" }, (this.sidebarData.length > 0 && !this.isMobile) && (h("div", { class: 'vl-sidebar' }, h("div", { class: 'vl-list-wrap' }, h("ul", null, this.sidebarData.map((item) => (h("li", null, h("a", { href: "#" + item.ref }, item.title)))))))), h("div", { class: 'vl-content-wrap' }, this.isMobile &&
100
+ return (h(Host, null, h("div", { class: 'top-image', style: { backgroundImage: `url(${this.topBackgroundImage})` } }), h("div", { class: 'ptc-container' }, h("div", { class: "pdf-slot-wrapper" }, h("slot", { name: 'pdf-slot' })), h("div", { class: "vl-layout-wrap" }, (this.sidebarData.length > 0 && !this.isMobile) && (h("div", { class: 'vl-sidebar' }, h("div", { class: 'vl-list-wrap' }, h("ul", null, this.sidebarData.map((item) => (h("li", null, h("a", { href: "#" + item.ref }, h("span", null, item.title))))))))), h("div", { class: 'vl-content-wrap' }, this.isMobile &&
101
101
  h("select", { class: 'mobile-select', onChange: (event) => this.handleSelectChange(event) }, this.sidebarData.map((item) => (h("option", { value: item.title }, " ", item.title)))), h("div", { class: 'vl-content-slot-wrap' }, h("slot", null)))))));
102
102
  }
103
103
  static get is() { return "ptc-value-led-layout"; }
@@ -0,0 +1,63 @@
1
+ :host {
2
+ display: block;
3
+ margin-bottom: 48px;
4
+ }
5
+ :host .sb-card {
6
+ display: block;
7
+ border-radius: 4px;
8
+ background: var(--color-white);
9
+ box-shadow: var(--ptc-shadow-x-small);
10
+ text-decoration: none;
11
+ }
12
+ @media only screen and (min-width: 480px) {
13
+ :host .sb-card {
14
+ display: flex;
15
+ }
16
+ }
17
+ :host .sb-card .img-wrap {
18
+ width: 100%;
19
+ max-height: 120px;
20
+ overflow: hidden;
21
+ }
22
+ @media only screen and (min-width: 480px) {
23
+ :host .sb-card .img-wrap {
24
+ max-width: 120px;
25
+ max-height: initial;
26
+ }
27
+ }
28
+ :host .sb-card .img-wrap ptc-picture {
29
+ height: 100%;
30
+ }
31
+ :host .sb-card .card-content-wrap {
32
+ display: flex;
33
+ justify-content: space-between;
34
+ align-items: center;
35
+ width: 100%;
36
+ padding: 16px 16px 16px 16px;
37
+ box-sizing: border-box;
38
+ }
39
+ @media only screen and (min-width: 768px) {
40
+ :host .sb-card .card-content-wrap .card-content {
41
+ padding-right: 24px;
42
+ }
43
+ }
44
+ :host .sb-card .card-content-wrap h4, :host .sb-card .card-content-wrap p {
45
+ color: var(--color-gray-10);
46
+ font-size: var(--ptc-font-size-xx-small);
47
+ font-weight: var(--ptc-font-weight-bold);
48
+ line-height: var(--ptc-line-height-p);
49
+ margin: 0 0 4px 0;
50
+ text-decoration: none;
51
+ }
52
+ :host .sb-card .card-content-wrap p {
53
+ margin: 0;
54
+ font-weight: var(--ptc-font-weight-semibold);
55
+ }
56
+ :host .sb-card .card-content-wrap .cta-slot {
57
+ display: none;
58
+ }
59
+ @media only screen and (min-width: 768px) {
60
+ :host .sb-card .card-content-wrap .cta-slot {
61
+ display: block;
62
+ }
63
+ }