@ptcwebops/ptcw-design 2.9.1 → 2.9.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.
- package/dist/cjs/embedded-form_9.cjs.entry.js +57 -48
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +96 -51
- package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
- package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.css +29 -0
- package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.js +1 -0
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +96 -51
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +1 -1
- package/dist/collection/utils/elq-lib.js +53 -45
- package/dist/custom-elements/index.js +153 -99
- package/dist/esm/embedded-form_9.entry.js +57 -48
- package/dist/esm/ptc-pricing-packaging-table.entry.js +96 -51
- package/dist/ptcw-design/p-220f86c0.entry.js +1 -0
- package/dist/ptcw-design/{p-b8b59f02.entry.js → p-6faf3ced.entry.js} +10 -10
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +7 -0
- package/dist/types/utils/elq-lib.d.ts +4 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-58c140ab.entry.js +0 -1
|
@@ -99,7 +99,7 @@ const EmbeddedForm = class {
|
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
101
|
const formClass = this.isSubmitted ? "ptc-form-roll-up" : "";
|
|
102
|
-
return (index.h(index.Host, null, index.h("div", { class: "ptc-container ptc-section-standard flex-adjustments" }, index.h("div", { class: "form-wrapper ptc-embedded-form" }, index.h("max-width-container", { "max-width": "277", breakpoint: 480 }, index.h("ptc-title", { type: "h2", "text-align": "center", "title-size": "x-small", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-6", "is-plm-hub": "false" }, "Please fill out the form and a PTC sales representative will be in touch."), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" })), index.h("form", { onSubmit: event => this.handleSubmit(event), class: formClass }, index.h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", name: "firstname" }), index.h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", name: "lastname" }), index.h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", name: "company-field" }), index.h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", name: "email" }), index.h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", name: "country" }, index.h("ul", { class: "mdc-list" }, index.h("li", { class: "mdc-list-item", "data-value": "" }, index.h("span", { class: "mdc-list-item__ripple" })), index.h("li", { class: "mdc-list-item", "data-value": "USA" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "USA")), index.h("li", { class: "mdc-list-item", "data-value": "Canada" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Canada")), index.h("li", { class: "mdc-list-item", "data-value": "China" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "China")))), index.h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", name: "phone" }), index.h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", name: "inquiryreason", "field-id": "contact-inquiry" }, index.h("ul", { class: "mdc-list" }, index.h("li", { class: "mdc-list-item", "data-value": "" }, index.h("span", { class: "mdc-list-item__ripple" })), index.h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), index.h("li", { class: "mdc-list-item", "data-value": "CAD" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), index.h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), index.h("ptc-textfield", { "field-id": "self-reporting", "label-text": "How can we help you?*", type: "text", "ptc-data-eloqua-name": "HowHearSelfReport", "ptc-max-length": "100", name: "howhearselfreport" }), index.h("ptc-textfield", { type: "hidden", "ptc-data-eloqua-name": "test", "input-value": "test" }), index.h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "policy1" }), index.h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; margin-top: 48px; display:block; text-align:right;}" }, "Submit"))))));
|
|
102
|
+
return (index.h(index.Host, null, index.h("div", { class: "ptc-container ptc-section-standard flex-adjustments" }, index.h("div", { class: "form-wrapper ptc-embedded-form" }, index.h("max-width-container", { "max-width": "277", breakpoint: 480 }, index.h("ptc-title", { type: "h2", "text-align": "center", "title-size": "x-small", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-6", "is-plm-hub": "false" }, "Please fill out the form and a PTC sales representative will be in touch."), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" })), index.h("form", { onSubmit: event => this.handleSubmit(event), class: formClass }, index.h("div", { id: "not-me-link-id" }), index.h("div", { id: "not-me-additional-top", class: "not-me-additional-text" }), index.h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", name: "firstname" }), index.h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", name: "lastname" }), index.h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", name: "company-field" }), index.h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", name: "email" }), index.h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", name: "country" }, index.h("ul", { class: "mdc-list" }, index.h("li", { class: "mdc-list-item", "data-value": "" }, index.h("span", { class: "mdc-list-item__ripple" })), index.h("li", { class: "mdc-list-item", "data-value": "USA" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "USA")), index.h("li", { class: "mdc-list-item", "data-value": "Canada" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Canada")), index.h("li", { class: "mdc-list-item", "data-value": "China" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "China")))), index.h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", name: "phone" }), index.h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", name: "inquiryreason", "field-id": "contact-inquiry" }, index.h("ul", { class: "mdc-list" }, index.h("li", { class: "mdc-list-item", "data-value": "" }, index.h("span", { class: "mdc-list-item__ripple" })), index.h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), index.h("li", { class: "mdc-list-item", "data-value": "CAD" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), index.h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), index.h("ptc-textfield", { "field-id": "self-reporting", "label-text": "How can we help you?*", type: "text", "ptc-data-eloqua-name": "HowHearSelfReport", "ptc-max-length": "100", name: "howhearselfreport" }), index.h("ptc-textfield", { type: "hidden", "ptc-data-eloqua-name": "test", "input-value": "test" }), index.h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "policy1" }), index.h("div", { id: "not-me-additional-bottom", class: "not-me-additional-text" }), index.h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; margin-top: 48px; display:block; text-align:right;}" }, "Submit"))))));
|
|
103
103
|
}
|
|
104
104
|
get el() { return index.getElement(this); }
|
|
105
105
|
};
|
|
@@ -203,7 +203,7 @@ class ElqLib {
|
|
|
203
203
|
this.visitor_elq_id = null;
|
|
204
204
|
this.field_mappings = [];
|
|
205
205
|
this.callback_queue = [];
|
|
206
|
-
|
|
206
|
+
this.fields_populated = false;
|
|
207
207
|
this.user_elq_email = '';
|
|
208
208
|
this.user_elq_firstname = '';
|
|
209
209
|
this.user_elq_lastname = '';
|
|
@@ -344,8 +344,8 @@ class ElqLib {
|
|
|
344
344
|
// After processing the queue, update user details or perform other operations
|
|
345
345
|
if (actionSucceeded) {
|
|
346
346
|
this.update_user_details();
|
|
347
|
+
this.populate_mapped_fields();
|
|
347
348
|
}
|
|
348
|
-
//this.populate_mapped_fields();
|
|
349
349
|
// ...additional code to handle the aftermath of callback processing...
|
|
350
350
|
}
|
|
351
351
|
lookup_visitor_by_cookie() {
|
|
@@ -406,39 +406,27 @@ class ElqLib {
|
|
|
406
406
|
return false;
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
// log("MAPPING: Could not populate element '" + mapping_element + "' as the Eloqua field '" + mapping_elq_field + "' contained no data");
|
|
426
|
-
// }
|
|
427
|
-
// else {
|
|
428
|
-
// fields_populated = true;
|
|
429
|
-
// element.value = field_value;
|
|
430
|
-
// log("MAPPING: Mapped element '" + mapping_element + "' with Eloqua field '" + mapping_elq_field + "'");
|
|
431
|
-
// }
|
|
432
|
-
// }
|
|
433
|
-
// }
|
|
434
|
-
// console.log("MAPPING: Finished field mapping");
|
|
435
|
-
// // Update notme link
|
|
436
|
-
// //update_notme_link ();
|
|
437
|
-
// }
|
|
409
|
+
populate_mapped_fields() {
|
|
410
|
+
console.log('MAPPING: Starting field mapping');
|
|
411
|
+
this.field_mappings.forEach(({ elementId, elqFieldName }) => {
|
|
412
|
+
const element = document.getElementById(elementId);
|
|
413
|
+
const fieldValue = window.GetElqContentPersonalizationValue(elqFieldName);
|
|
414
|
+
if (element && fieldValue) {
|
|
415
|
+
element.value = fieldValue;
|
|
416
|
+
element.style.display = 'none'; // Hide the field
|
|
417
|
+
this.fields_populated = true;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
console.log('MAPPING: Finished ');
|
|
421
|
+
if (this.fields_populated) {
|
|
422
|
+
this.update_notme_link();
|
|
423
|
+
}
|
|
424
|
+
}
|
|
438
425
|
update_user_details() {
|
|
439
426
|
console.log('displaying user info...');
|
|
440
427
|
if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) !== '') {
|
|
441
|
-
document
|
|
428
|
+
document
|
|
429
|
+
.querySelectorAll('input[type=text], input[type=tel], input[name="phonenumber"], input[name="phonenumbertwo"], input[type=email], select, textarea, span.mdc-select__selected-text')
|
|
442
430
|
.forEach((element) => {
|
|
443
431
|
if (element.tagName === 'SPAN') {
|
|
444
432
|
const spanText = element;
|
|
@@ -517,19 +505,39 @@ class ElqLib {
|
|
|
517
505
|
// var link = $('<a href="">' + message + '</a>').appendTo(notme_link_element).click(this.remove_user_details);
|
|
518
506
|
// }
|
|
519
507
|
// }
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
508
|
+
update_notme_link() {
|
|
509
|
+
// Assuming the user's first and last name are available from Eloqua fields
|
|
510
|
+
const firstName = window.GetElqContentPersonalizationValue('elq_field_visitor_firstname');
|
|
511
|
+
const lastName = window.GetElqContentPersonalizationValue('elq_field_visitor_lastname');
|
|
512
|
+
const notMeLinkElement = document.getElementById('not-me-link-id'); // Adjust ID as necessary
|
|
513
|
+
if (notMeLinkElement) {
|
|
514
|
+
let message = this.params.notme_message_noname;
|
|
515
|
+
if (firstName && lastName) {
|
|
516
|
+
//message = `Not ${firstName} ${lastName}? Click here.`;
|
|
517
|
+
message = this.params.notme_message.replace('{name}', `${firstName} ${lastName}`);
|
|
518
|
+
}
|
|
519
|
+
notMeLinkElement.innerHTML = `<a href="#" onclick="return false;">${message}</a>`;
|
|
520
|
+
notMeLinkElement.onclick = this.remove_user_details.bind(this);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
remove_user_details() {
|
|
524
|
+
this.user_elq_email = '';
|
|
525
|
+
this.user_elq_firstname = '';
|
|
526
|
+
this.user_elq_lastname = '';
|
|
527
|
+
$('.' + this.params.notme_fields_class).val('');
|
|
528
|
+
$('#' + this.params.notme_link_id)
|
|
529
|
+
.find('a')
|
|
530
|
+
.remove();
|
|
531
|
+
//Flush out old user cookie
|
|
532
|
+
ElqLib._elqQ.push(['elqVisitorGuid', ' ']);
|
|
533
|
+
ElqLib._elqQ.push(['elqTrackPageView']);
|
|
534
|
+
return false;
|
|
535
|
+
}
|
|
536
|
+
// private remove_user_details(): boolean {
|
|
537
|
+
// // Clear user data and reset form fields
|
|
538
|
+
// // ... implementation ...
|
|
539
|
+
// return false; // To prevent default link action
|
|
540
|
+
// }
|
|
533
541
|
// Private Method to load Eloqua Scripts
|
|
534
542
|
async_load() {
|
|
535
543
|
const scriptUrl = 'https://img.en25.com/i/elqCfg.min.js';
|
|
@@ -556,7 +564,7 @@ ElqLib._elqQ = window['_elqQ'] || [];
|
|
|
556
564
|
// Static member initialization
|
|
557
565
|
//ElqLib._elqQ = window['_elqQ'] || [];
|
|
558
566
|
|
|
559
|
-
const ptcDataLookupCss = ":host{display:block}";
|
|
567
|
+
const ptcDataLookupCss = ":host{display:block}#not-me-link-id{color:var(--color-gray-10);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-bold);line-height:normal;margin-bottom:var(--ptc-element-spacing-03)}#not-me-link-id a{color:var(--color-blue-07);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-bold);line-height:normal;text-decoration-line:underline}.not-me-additional-text{color:var(--color-gray-10);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-regular);line-height:normal;margin-bottom:var(--ptc-element-spacing-03)}";
|
|
560
568
|
|
|
561
569
|
const PtcDataLookup = class {
|
|
562
570
|
constructor(hostRef) {
|
|
@@ -578,6 +586,7 @@ const PtcDataLookup = class {
|
|
|
578
586
|
}
|
|
579
587
|
componentWillLoad() {
|
|
580
588
|
this.initializeElqLib();
|
|
589
|
+
this.elqLib.add_field_mapping({ elementId: 'email-field', elqFieldName: 'C_EmailAddress' });
|
|
581
590
|
}
|
|
582
591
|
initializeElqLib() {
|
|
583
592
|
this.elqLib = new ElqLib({
|
|
@@ -11313,7 +11322,7 @@ const PtcTextfield = class {
|
|
|
11313
11322
|
this.mdcTextfield = mdcTextfield;
|
|
11314
11323
|
} }, index.h("span", { class: "mdc-notched-outline ptc-textfield-outline" }, index.h("span", { class: "mdc-notched-outline__leading" }), index.h("span", { class: "mdc-notched-outline__trailing" })), index.h("input", Object.assign({ ref: customInput => {
|
|
11315
11324
|
this.customInput = customInput;
|
|
11316
|
-
} }, (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, value: this.inputValue }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null)))),
|
|
11325
|
+
}, 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, value: this.inputValue }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null)))),
|
|
11317
11326
|
index.h("div", { class: `mdc-text-field-helper-line
|
|
11318
11327
|
${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, index.h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.name }, index.h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { "clip-path": "url(#clip0_12_1424)" }, index.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" })), index.h("defs", null, index.h("clipPath", { id: "clip0_12_1424" }, index.h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.ptcMaxLength ? (index.h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null),
|
|
11319
11328
|
]) : (index.h("input", { type: "hidden", "data-eloqua-name": this.ptcDataEloquaName, value: this.inputValue }))));
|
|
@@ -182,6 +182,87 @@ const PtcPricingPackagingTable = class {
|
|
|
182
182
|
this.handleScrollButtonsVisibility();
|
|
183
183
|
this.handleFillEmptySpace();
|
|
184
184
|
};
|
|
185
|
+
this.preProcessTableDescription = () => {
|
|
186
|
+
let tableDescription = this.el.querySelector('[slot="table-description"]');
|
|
187
|
+
if (tableDescription) {
|
|
188
|
+
this.tableDescription = tableDescription;
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
this.preProcessdesktopHeaderFirstCell = () => {
|
|
192
|
+
let desktopHeaderFirstCellSlot = this.el.querySelector('[slot="desktop-header-first-cell"]');
|
|
193
|
+
let desktopHeaderFirstCellText = desktopHeaderFirstCellSlot.innerHTML;
|
|
194
|
+
this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-desktop-header-first-cell">${desktopHeaderFirstCellText}</span>`);
|
|
195
|
+
};
|
|
196
|
+
this.preProcessColumnHeaders = () => {
|
|
197
|
+
let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
|
|
198
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
199
|
+
let slotValue = columnHeaders[i].getAttribute('slot');
|
|
200
|
+
let headerText = columnHeaders[i].innerHTML;
|
|
201
|
+
this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-${slotValue}">${headerText}</span>`);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
this.preProcessHeaderLinks = () => {
|
|
205
|
+
let headerLink;
|
|
206
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
207
|
+
headerLink = this.el.querySelector(`[slot^="header-link-${i + 1}"]`);
|
|
208
|
+
if (headerLink) {
|
|
209
|
+
let linkHref = headerLink.getAttribute('href');
|
|
210
|
+
let linkText = headerLink.innerHTML;
|
|
211
|
+
let linkTarget = headerLink.getAttribute('target');
|
|
212
|
+
this.columnHeaderLinks.push({ linkHref, linkText, linkTarget });
|
|
213
|
+
headerLink.remove();
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
this.columnHeaderLinks.push(null);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
this.preProcessRowHeaders = () => {
|
|
221
|
+
let rowHeader;
|
|
222
|
+
for (let i = 0; i < this.dataRows; i++) {
|
|
223
|
+
rowHeader = this.el.querySelector(`[slot^="row-header-${i + 1}"]`);
|
|
224
|
+
let tableRowHeaderP = rowHeader.querySelectorAll('.table-row-header-p');
|
|
225
|
+
for (let i = 0; i < tableRowHeaderP.length; i++) {
|
|
226
|
+
let ptcPara = document.createElement('ptc-para');
|
|
227
|
+
ptcPara.setAttribute("font-size", "small");
|
|
228
|
+
ptcPara.setAttribute("font-weight", "w-6");
|
|
229
|
+
ptcPara.setAttribute("para-align", "left");
|
|
230
|
+
ptcPara.setAttribute("para-color", "primary-grey");
|
|
231
|
+
ptcPara.setAttribute("para-line-h", "line-height-p");
|
|
232
|
+
ptcPara.setAttribute("para-margin", "margin-flush");
|
|
233
|
+
ptcPara.innerHTML = tableRowHeaderP[i].innerHTML;
|
|
234
|
+
tableRowHeaderP[i].replaceWith(ptcPara);
|
|
235
|
+
}
|
|
236
|
+
let slotValue = rowHeader.getAttribute('slot');
|
|
237
|
+
let headerContent = rowHeader.innerHTML;
|
|
238
|
+
this.el.insertAdjacentHTML('afterbegin', `<div slot="desktop-${slotValue}">${headerContent}</div><div slot="mobile-${slotValue}">${headerContent}</div>`);
|
|
239
|
+
rowHeader.remove();
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
this.preProcessCtaButtons = () => {
|
|
243
|
+
let ctaButton;
|
|
244
|
+
this.showCtaButtonsRow = false;
|
|
245
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
246
|
+
ctaButton = this.el.querySelector(`[slot^="cta-button-${i + 1}"]`);
|
|
247
|
+
if (ctaButton) {
|
|
248
|
+
let linkHref = ctaButton.getAttribute('href');
|
|
249
|
+
let linkText = ctaButton.innerHTML;
|
|
250
|
+
let linkTarget = ctaButton.getAttribute('target');
|
|
251
|
+
this.ctaButtons.push({ linkHref, linkText, linkTarget });
|
|
252
|
+
ctaButton.remove();
|
|
253
|
+
this.showCtaButtonsRow = true;
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
this.ctaButtons.push(null);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
this.preProcessDisclaimers = () => {
|
|
261
|
+
let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
|
|
262
|
+
for (let i = 0; i < this.disclaimerCount; i++) {
|
|
263
|
+
this.disclaimers.push(disclaimers[i].innerHTML);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
185
266
|
this.pageWithSubnav = false;
|
|
186
267
|
this.tableTitle = undefined;
|
|
187
268
|
this.tableSubTitle = "";
|
|
@@ -207,50 +288,13 @@ const PtcPricingPackagingTable = class {
|
|
|
207
288
|
this.tableDescription = undefined;
|
|
208
289
|
}
|
|
209
290
|
componentWillLoad() {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
this.
|
|
217
|
-
let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
|
|
218
|
-
for (let i = 0; i < this.dataCols; i++) {
|
|
219
|
-
let slotValue = columnHeaders[i].getAttribute('slot');
|
|
220
|
-
let headerText = columnHeaders[i].innerHTML;
|
|
221
|
-
this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-${slotValue}">${headerText}</span>`);
|
|
222
|
-
}
|
|
223
|
-
let headerLinks = this.el.querySelectorAll('[slot^="header-link"]');
|
|
224
|
-
if (headerLinks.length > 0) {
|
|
225
|
-
for (let i = 0; i < this.dataCols; i++) {
|
|
226
|
-
let linkHref = headerLinks[i].getAttribute('href');
|
|
227
|
-
let linkText = headerLinks[i].innerHTML;
|
|
228
|
-
let linkTarget = headerLinks[i].getAttribute('target');
|
|
229
|
-
this.columnHeaderLinks.push({ linkHref, linkText, linkTarget });
|
|
230
|
-
headerLinks[i].remove();
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
let rowHeaders = this.el.querySelectorAll('[slot^="row-header"]');
|
|
234
|
-
for (let i = 0; i < this.dataRows; i++) {
|
|
235
|
-
let slotValue = rowHeaders[i].getAttribute('slot');
|
|
236
|
-
let headerText = rowHeaders[i].innerHTML;
|
|
237
|
-
this.el.insertAdjacentHTML('afterbegin', `<span slot="desktop-${slotValue}">${headerText}</span><span slot="mobile-${slotValue}">${headerText}</span>`);
|
|
238
|
-
rowHeaders[i].remove();
|
|
239
|
-
}
|
|
240
|
-
let ctaButtons = this.el.querySelectorAll('[slot^="cta-button"]');
|
|
241
|
-
this.showCtaButtonsRow = (ctaButtons.length !== 0);
|
|
242
|
-
for (let i = 0; i < this.dataCols; i++) {
|
|
243
|
-
this.ctaButtons.push({
|
|
244
|
-
linkHref: ctaButtons[i].getAttribute('href'),
|
|
245
|
-
linkText: ctaButtons[i].innerHTML,
|
|
246
|
-
linkTarget: ctaButtons[i].getAttribute('target')
|
|
247
|
-
});
|
|
248
|
-
ctaButtons[i].remove();
|
|
249
|
-
}
|
|
250
|
-
let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
|
|
251
|
-
for (let i = 0; i < this.disclaimerCount; i++) {
|
|
252
|
-
this.disclaimers.push(disclaimers[i].innerHTML);
|
|
253
|
-
}
|
|
291
|
+
this.preProcessTableDescription();
|
|
292
|
+
this.preProcessdesktopHeaderFirstCell();
|
|
293
|
+
this.preProcessColumnHeaders();
|
|
294
|
+
this.preProcessHeaderLinks();
|
|
295
|
+
this.preProcessRowHeaders();
|
|
296
|
+
this.preProcessCtaButtons();
|
|
297
|
+
this.preProcessDisclaimers();
|
|
254
298
|
}
|
|
255
299
|
componentDidLoad() {
|
|
256
300
|
this.handleTableReset();
|
|
@@ -277,7 +321,7 @@ const PtcPricingPackagingTable = class {
|
|
|
277
321
|
return index.h("div", { id: "table-header", class: this.headerType, onScroll: () => this.handleHorizontalScroll() }, index.h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
|
|
278
322
|
index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: "desktop-header-first-cell" }))
|
|
279
323
|
: null, index.h("div", { class: "scroll-button", id: "previous-scroll-button" }, index.h("div", { onClick: () => this.handleBackwardScroll() }, index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-left", color: "primary-gray" }), index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "More"))), index.h("div", { class: "scroll-button", id: "next-scroll-button" }, index.h("div", { onClick: () => this.handleForwardScroll() }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "More"), index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })))), ([...Array(this.dataCols).keys()]).map(col => {
|
|
280
|
-
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, index.h("slot", { name: `column-header-${col + 1}` })), (this.columnHeaderLinks.length === this.dataCols) ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'small', size: "small" }), index.h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}" }, this.isDesktopView ?
|
|
324
|
+
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, index.h("slot", { name: `column-header-${col + 1}` })), ((this.columnHeaderLinks.length === this.dataCols) && (this.columnHeaderLinks[col])) ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'small', size: "small" }), index.h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}" }, this.isDesktopView ?
|
|
281
325
|
index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" })
|
|
282
326
|
: this.columnHeaderLinks[col].linkText)) : null);
|
|
283
327
|
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
|
|
@@ -286,15 +330,15 @@ const PtcPricingPackagingTable = class {
|
|
|
286
330
|
return index.h("div", { id: "table-header-placeholder", class: this.headerType }, index.h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
|
|
287
331
|
index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: "placeholder-desktop-header-first-cell" }))
|
|
288
332
|
: null), ([...Array(this.dataCols).keys()]).map(col => {
|
|
289
|
-
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, index.h("slot", { name: `placeholder-column-header-${col + 1}` })), (this.columnHeaderLinks.length === this.dataCols) ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'small', size: "small" }), index.h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}" }, this.isDesktopView ?
|
|
333
|
+
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, index.h("slot", { name: `placeholder-column-header-${col + 1}` })), ((this.columnHeaderLinks.length === this.dataCols) && (this.columnHeaderLinks[col])) ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'small', size: "small" }), index.h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}" }, this.isDesktopView ?
|
|
290
334
|
index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" })
|
|
291
335
|
: this.columnHeaderLinks[col].linkText)) : null);
|
|
292
336
|
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
|
|
293
337
|
};
|
|
294
338
|
const TableDataRows = () => {
|
|
295
339
|
return ([...Array(this.dataRows).keys()]).map(row => {
|
|
296
|
-
return index.h(index.Fragment, null, index.h("div", { class: "mobile-sticky-row-header" }, index.h("
|
|
297
|
-
index.h("div", { class: `desktop-sticky-row-header ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, index.h("
|
|
340
|
+
return index.h(index.Fragment, null, index.h("div", { class: "mobile-sticky-row-header" }, index.h("slot", { name: `mobile-row-header-${row + 1}` })), index.h("div", { class: `table-row ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, (this.isDesktopView) ?
|
|
341
|
+
index.h("div", { class: `desktop-sticky-row-header ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, index.h("slot", { name: `desktop-row-header-${row + 1}` })) : null, ([...Array(this.dataCols).keys()]).map(col => {
|
|
298
342
|
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, index.h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
|
|
299
343
|
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
|
|
300
344
|
});
|
|
@@ -304,9 +348,10 @@ const PtcPricingPackagingTable = class {
|
|
|
304
348
|
index.h("div", { class: "table-cta-row" }, (this.isDesktopView) ?
|
|
305
349
|
index.h("div", { class: "desktop-sticky-row-header" })
|
|
306
350
|
: null, ([...Array(this.dataCols).keys()]).map(col => {
|
|
307
|
-
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` },
|
|
308
|
-
index.h("ptc-
|
|
309
|
-
|
|
351
|
+
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, (this.ctaButtons[col]) ?
|
|
352
|
+
index.h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: `${this.ctaButtons[col].linkTarget}` }, this.isDesktopView ?
|
|
353
|
+
index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.ctaButtons[col].linkText, position: "top" })
|
|
354
|
+
: this.ctaButtons[col].linkText) : null);
|
|
310
355
|
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })) : null;
|
|
311
356
|
};
|
|
312
357
|
const TableDisclaimers = () => {
|
|
@@ -91,7 +91,7 @@ export class EmbeddedForm {
|
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
93
|
const formClass = this.isSubmitted ? "ptc-form-roll-up" : "";
|
|
94
|
-
return (h(Host, null, h("div", { class: "ptc-container ptc-section-standard flex-adjustments" }, h("div", { class: "form-wrapper ptc-embedded-form" }, h("max-width-container", { "max-width": "277", breakpoint: 480 }, h("ptc-title", { type: "h2", "text-align": "center", "title-size": "x-small", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-6", "is-plm-hub": "false" }, "Please fill out the form and a PTC sales representative will be in touch."), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "small", size: "small" })), h("form", { onSubmit: event => this.handleSubmit(event), class: formClass }, h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", name: "firstname" }), h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", name: "lastname" }), h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", name: "company-field" }), h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", name: "email" }), h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", name: "country" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" })), h("li", { class: "mdc-list-item", "data-value": "USA" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "USA")), h("li", { class: "mdc-list-item", "data-value": "Canada" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Canada")), h("li", { class: "mdc-list-item", "data-value": "China" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "China")))), h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", name: "phone" }), h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", name: "inquiryreason", "field-id": "contact-inquiry" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" })), h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), h("li", { class: "mdc-list-item", "data-value": "CAD" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), h("ptc-textfield", { "field-id": "self-reporting", "label-text": "How can we help you?*", type: "text", "ptc-data-eloqua-name": "HowHearSelfReport", "ptc-max-length": "100", name: "howhearselfreport" }), h("ptc-textfield", { type: "hidden", "ptc-data-eloqua-name": "test", "input-value": "test" }), h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "policy1" }), h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; margin-top: 48px; display:block; text-align:right;}" }, "Submit"))))));
|
|
94
|
+
return (h(Host, null, h("div", { class: "ptc-container ptc-section-standard flex-adjustments" }, h("div", { class: "form-wrapper ptc-embedded-form" }, h("max-width-container", { "max-width": "277", breakpoint: 480 }, h("ptc-title", { type: "h2", "text-align": "center", "title-size": "x-small", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-6", "is-plm-hub": "false" }, "Please fill out the form and a PTC sales representative will be in touch."), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "small", size: "small" })), h("form", { onSubmit: event => this.handleSubmit(event), class: formClass }, h("div", { id: "not-me-link-id" }), h("div", { id: "not-me-additional-top", class: "not-me-additional-text" }), h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", name: "firstname" }), h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", name: "lastname" }), h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", name: "company-field" }), h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", name: "email" }), h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", name: "country" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" })), h("li", { class: "mdc-list-item", "data-value": "USA" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "USA")), h("li", { class: "mdc-list-item", "data-value": "Canada" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Canada")), h("li", { class: "mdc-list-item", "data-value": "China" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "China")))), h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", name: "phone" }), h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", name: "inquiryreason", "field-id": "contact-inquiry" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" })), h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), h("li", { class: "mdc-list-item", "data-value": "CAD" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), h("ptc-textfield", { "field-id": "self-reporting", "label-text": "How can we help you?*", type: "text", "ptc-data-eloqua-name": "HowHearSelfReport", "ptc-max-length": "100", name: "howhearselfreport" }), h("ptc-textfield", { type: "hidden", "ptc-data-eloqua-name": "test", "input-value": "test" }), h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "policy1" }), h("div", { id: "not-me-additional-bottom", class: "not-me-additional-text" }), h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; margin-top: 48px; display:block; text-align:right;}" }, "Submit"))))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "embedded-form"; }
|
|
97
97
|
static get originalStyleUrls() {
|
|
@@ -1,3 +1,32 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#not-me-link-id {
|
|
6
|
+
color: var(--color-gray-10);
|
|
7
|
+
font-family: var(--ptc-font-latin);
|
|
8
|
+
font-size: var(--ptc-font-size-medium);
|
|
9
|
+
font-style: normal;
|
|
10
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
11
|
+
line-height: normal;
|
|
12
|
+
margin-bottom: var(--ptc-element-spacing-03);
|
|
13
|
+
}
|
|
14
|
+
#not-me-link-id a {
|
|
15
|
+
color: var(--color-blue-07);
|
|
16
|
+
font-family: var(--ptc-font-latin);
|
|
17
|
+
font-size: var(--ptc-font-size-medium);
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
20
|
+
line-height: normal;
|
|
21
|
+
text-decoration-line: underline;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.not-me-additional-text {
|
|
25
|
+
color: var(--color-gray-10);
|
|
26
|
+
font-family: var(--ptc-font-latin);
|
|
27
|
+
font-size: var(--ptc-font-size-medium);
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: var(--ptc-font-weight-regular);
|
|
30
|
+
line-height: normal;
|
|
31
|
+
margin-bottom: var(--ptc-element-spacing-03);
|
|
3
32
|
}
|