@ptcwebops/ptcw-design 4.1.0 → 4.1.2
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/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container.cjs.entry.js +54 -0
- package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-button.cjs.entry.js +79 -0
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-footer.cjs.entry.js +20 -0
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +8 -7
- package/dist/cjs/ptc-icon-card.cjs.entry.js +20 -0
- package/dist/cjs/ptc-office-location-card.cjs.entry.js +2 -1
- package/dist/cjs/ptc-office-locations.cjs.entry.js +9 -5
- package/dist/cjs/ptc-para.cjs.entry.js +70 -0
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +95 -0
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +56 -0
- package/dist/cjs/ptc-title.cjs.entry.js +99 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/icon-asset/media/designer.svg +50 -0
- package/dist/collection/components/ptc-footer/ptc-footer-v2.css +210 -0
- package/dist/collection/components/ptc-footer/ptc-footer.js +42 -0
- package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +100 -0
- package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +42 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +8 -0
- package/dist/collection/components/ptc-modal/ptc-modal.css +9 -15
- package/dist/collection/components/ptc-office-location-card/ptc-office-location-card.js +20 -1
- package/dist/collection/components/ptc-office-locations/ptc-office-locations.css +1 -2
- package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +80 -4
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +8 -0
- package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +104 -0
- package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +176 -0
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +8 -7
- package/dist/collection/media/svg-imgs/facebook.svg +6 -0
- package/dist/collection/media/svg-imgs/instagram.svg +4 -0
- package/dist/collection/media/svg-imgs/linkedin.svg +12 -0
- package/dist/collection/media/svg-imgs/wechat.svg +6 -0
- package/dist/collection/media/svg-imgs/weibo.svg +6 -0
- package/dist/collection/media/svg-imgs/x.svg +6 -0
- package/dist/collection/media/svg-imgs/yk.svg +6 -0
- package/dist/collection/media/svg-imgs/youtube.svg +6 -0
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +150 -19
- package/dist/esm/loader.js +1 -1
- package/dist/esm/max-width-container.entry.js +50 -0
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +75 -0
- package/dist/esm/ptc-close-icon_2.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +16 -0
- package/dist/esm/ptc-form-checkbox_2.entry.js +9 -8
- package/dist/esm/ptc-icon-card.entry.js +16 -0
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +1 -1
- package/dist/esm/ptc-office-location-card.entry.js +2 -1
- package/dist/esm/ptc-office-locations.entry.js +9 -5
- package/dist/esm/ptc-para.entry.js +66 -0
- package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
- package/dist/esm/ptc-social-icons-footer.entry.js +91 -0
- package/dist/esm/ptc-text-copy-with-background.entry.js +52 -0
- package/dist/esm/ptc-title.entry.js +95 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-e340941d.js → utils-5a73ed80.js} +1 -1
- package/dist/ptcw-design/media/designer.svg +50 -0
- package/dist/ptcw-design/{p-6fbd25a6.entry.js → p-01de9a0b.entry.js} +1 -1
- package/dist/ptcw-design/p-03bfbe0a.entry.js +1 -0
- package/dist/ptcw-design/{p-855a0b03.entry.js → p-0529c70d.entry.js} +1 -1
- package/dist/ptcw-design/p-084a07b9.entry.js +1 -0
- package/dist/ptcw-design/p-1b98e9ca.entry.js +1 -0
- package/dist/ptcw-design/{p-8ca1c864.entry.js → p-3884e48e.entry.js} +1 -1
- package/dist/ptcw-design/{p-fb16dada.js → p-40057c0b.js} +1 -1
- package/dist/ptcw-design/p-41b921e2.entry.js +1 -0
- package/dist/ptcw-design/p-52d6e19b.entry.js +1 -0
- package/dist/ptcw-design/{p-4f813e50.entry.js → p-62b3514b.entry.js} +1 -1
- package/dist/ptcw-design/{p-f8cea22c.entry.js → p-66a26780.entry.js} +1 -1
- package/dist/ptcw-design/{p-55376fa0.entry.js → p-8edcb1a3.entry.js} +1 -1
- package/dist/ptcw-design/p-95523b72.entry.js +1 -0
- package/dist/ptcw-design/p-c82ffa69.entry.js +1 -0
- package/dist/ptcw-design/{p-9d049707.entry.js → p-ce543bd6.entry.js} +2 -2
- package/dist/ptcw-design/p-dccf42d9.entry.js +1 -0
- package/dist/ptcw-design/p-ddb6887d.entry.js +1 -0
- package/dist/ptcw-design/p-dfff555d.entry.js +1 -0
- package/dist/ptcw-design/{p-4c85cf33.entry.js → p-e8e9a067.entry.js} +1 -1
- package/dist/ptcw-design/{p-cdd46a55.entry.js → p-f4143deb.entry.js} +1 -1
- package/dist/ptcw-design/p-f6ed7fd0.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-footer/ptc-footer.d.ts +4 -0
- package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +4 -0
- package/dist/types/components/ptc-office-location-card/ptc-office-location-card.d.ts +1 -0
- package/dist/types/components/ptc-office-locations/ptc-office-locations.d.ts +4 -0
- package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +11 -0
- package/dist/types/components.d.ts +69 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/max-width-container_5.cjs.entry.js +0 -332
- package/dist/esm/max-width-container_5.entry.js +0 -324
- package/dist/ptcw-design/p-59408eee.entry.js +0 -1
- package/dist/ptcw-design/p-7ced0879.entry.js +0 -1
- package/dist/ptcw-design/p-7d72b6c4.entry.js +0 -1
- package/dist/ptcw-design/p-f9bdb953.entry.js +0 -1
|
@@ -4195,7 +4195,7 @@ const PtcTextfield = class {
|
|
|
4195
4195
|
}
|
|
4196
4196
|
//this.customInput.reportValidity();
|
|
4197
4197
|
}
|
|
4198
|
-
this.setHelperText();
|
|
4198
|
+
//this.setHelperText();
|
|
4199
4199
|
}
|
|
4200
4200
|
handleFocus(event) {
|
|
4201
4201
|
const target = event.target;
|
|
@@ -4262,8 +4262,6 @@ const PtcTextfield = class {
|
|
|
4262
4262
|
}
|
|
4263
4263
|
}
|
|
4264
4264
|
getValidationMessage(type) {
|
|
4265
|
-
// console.log("lang: " + this.language);
|
|
4266
|
-
// console.log("type: " + type);
|
|
4267
4265
|
return validationMessages.ValidationMessages[this.language][type];
|
|
4268
4266
|
}
|
|
4269
4267
|
getPhoneValidation() {
|
|
@@ -4322,9 +4320,9 @@ const PtcTextfield = class {
|
|
|
4322
4320
|
}
|
|
4323
4321
|
getValidationPattern() {
|
|
4324
4322
|
let validationPattern = '';
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4323
|
+
if (this.type === 'email' && this.fieldName === 'email') {
|
|
4324
|
+
validationPattern = "[a-z0-9._%+\\-]+@[a-z0-9.\\-]+\\.(?!.*\\..*\\.)[a-z]{2,7}$";
|
|
4325
|
+
}
|
|
4328
4326
|
if (this.fieldName === 'firstname' || this.fieldName === 'lastname') {
|
|
4329
4327
|
validationPattern = '^[^!*@&$¥£€>#^~+=<>%]+$';
|
|
4330
4328
|
}
|
|
@@ -4337,9 +4335,12 @@ const PtcTextfield = class {
|
|
|
4337
4335
|
if (this.customInput.validity.valueMissing) {
|
|
4338
4336
|
this.helpertext = this.getValidationMessage('email');
|
|
4339
4337
|
}
|
|
4340
|
-
else if (this.customInput.validity.
|
|
4338
|
+
else if (!this.customInput.validity.valid) {
|
|
4341
4339
|
this.helpertext = this.getValidationMessage('validemail');
|
|
4342
4340
|
}
|
|
4341
|
+
else if (this.customInput.validity.valid) {
|
|
4342
|
+
this.helpertext = '';
|
|
4343
|
+
}
|
|
4343
4344
|
}
|
|
4344
4345
|
else if (this.fieldName === 'firstname') {
|
|
4345
4346
|
if (this.customInput.validity.valueMissing) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-4b85b38a.js');
|
|
6
|
+
|
|
7
|
+
const ptcIconCardCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;height:100%}:host a{display:block;padding:var(--ptc-layout-spacing-03);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);align-items:center;text-decoration:none;text-align:center;box-sizing:border-box;height:100%;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}@media only screen and (min-width: 480px){:host a{display:flex;text-align:left}}:host a:hover{background-color:var(--color-gray-08)}:host a:active{background-color:var(--color-gray-09)}:host a span{display:block}:host .card-icon{width:2rem;height:2rem;margin:auto;margin-bottom:1rem}@media only screen and (min-width: 480px){:host .card-icon{margin:0 var(--ptc-element-spacing-04) 0 0}}:host .card-title{font-weight:var(--ptc-font-weight-extrabold);color:var(--color-white)}";
|
|
8
|
+
|
|
9
|
+
const PtcIconCard = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.cardTitle = undefined;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, null, index.h("a", { href: "#", title: this.cardTitle }, index.h("span", { class: 'card-icon' }, index.h("slot", null)), index.h("span", { class: 'card-title' }, this.cardTitle))));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
PtcIconCard.style = ptcIconCardCss;
|
|
19
|
+
|
|
20
|
+
exports.ptc_icon_card = PtcIconCard;
|
|
@@ -39,6 +39,7 @@ const PtcOfficeLocationCard = class {
|
|
|
39
39
|
this.isContactEmpty = false;
|
|
40
40
|
this.officeName = undefined;
|
|
41
41
|
this.showFullAddressModal = false;
|
|
42
|
+
this.showFullAddressText = 'Show Full Address';
|
|
42
43
|
}
|
|
43
44
|
handleClick() {
|
|
44
45
|
// Emit the addressClicked event with the address as the detail
|
|
@@ -51,7 +52,7 @@ const PtcOfficeLocationCard = class {
|
|
|
51
52
|
}
|
|
52
53
|
render() {
|
|
53
54
|
return (index.h(index.Host, null, index.h("div", { class: 'ofc-card-wrapper', onClick: () => this.handleClick() }, this.showFullAddressModal &&
|
|
54
|
-
index.h("div", { class: 'show-full-cta', onClick: (e) => { this.showFullAddress(e); } },
|
|
55
|
+
index.h("div", { class: 'show-full-cta', onClick: (e) => { this.showFullAddress(e); } }, this.showFullAddressText, index.h("span", { innerHTML: showAll })), index.h("div", { class: 'ofc-title' }, this.officeName), index.h("div", { class: 'map-link' }, index.h("span", { class: "ofc-icon", innerHTML: showMapIcon.showMapSVG }), index.h("slot", { name: "map-link" })), index.h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
55
56
|
index.h("span", { class: "ofc-icon", innerHTML: phone }), index.h("slot", { name: "contact-number" })), index.h("slot", null)), this.showFullAddressModal &&
|
|
56
57
|
index.h("ptc-modal", { id: "show-full-add", show: false, size: "md", fixed: true, rounded: true, overlay: true, "keep-in-viewport": true, styles: ".modal-body{padding: 0 32px 32px 32px;box-sizing: border-box;}" }, index.h("div", { class: 'ofc-title' }, this.officeName), index.h("div", { class: 'map-link' }, index.h("span", { class: "ofc-icon", innerHTML: showMapIcon.showMapSVG }), index.h("slot", { name: 'map-link-modal' })), index.h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
57
58
|
index.h("span", { class: "ofc-icon", innerHTML: phone }), index.h("slot", { name: 'contact-number-modal' })))));
|
|
@@ -27,7 +27,7 @@ const hideMapSVG = `<svg width="16" height="17" viewBox="0 0 16 17" fill="none"
|
|
|
27
27
|
</svg>
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
|
-
const ptcOfficeLocationsCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host .country-list{z-index:1056;min-width:278px;position:absolute;top:100%;left:16px;width:max-content;margin-top:8px;-webkit-box-orient:vertical;-webkit-box-direction:normal;border-radius:var(--ptc-border-radius-standard);box-shadow:0 8px 24px rgba(0, 0, 0, 0.25);background-color:var(--color-white);border-top:none;overflow:hidden;max-height:0;transition:max-height 0.25s ease-out}:host .country-list ul{list-style:none;margin:0;padding:24px 24px 8px 24px;border-bottom:1px solid var(--color-gray-02);max-height:480px}@media only screen and (min-width: 992px){:host .country-list ul{overflow:auto}}:host .country-list ul::-webkit-scrollbar{width:8px}:host .country-list ul::-webkit-scrollbar-track{background:transparent}:host .country-list ul::-webkit-scrollbar-thumb{background:var(--color-gray-02);border-radius:var(--ptc-border-radius-pill)}:host .country-list li{margin-bottom:1rem;cursor:pointer;transition:background-color 0.3s ease}:host .country-list li label{display:block;position:relative;padding:0 0 4px 32px;font-weight:var(--ptc-font-weight-medium);color:var(--color-gray-10);cursor:pointer}:host .country-list li label .checkmark{background-color:var(--color-white);border:1px solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard);-webkit-box-sizing:border-box;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;width:20px}:host .country-list li label .checkmark::after{background-image:url('data:image/svg+xml,<svg width=\"14\" height=\"10\" viewBox=\"0 0 14 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1.5 4L5.5 8L12.5 1\" stroke=\"white\" stroke-width=\"2\"/></svg>');background-position:50%;background-repeat:no-repeat;background-size:75% 100%;content:\"\";display:none;height:20px;left:-1px;position:absolute;top:-1px;width:20px}:host .country-list li label input[type=checkbox]{cursor:pointer;height:0;opacity:0;position:absolute;width:0;margin:0}:host .country-list li label input:checked~.checkmark{background-color:#1f2024}:host .country-list li label input:checked~.checkmark::after{display:block}:host .country-list li label:hover .checkmark{background-color:var(--color-gray-02)}:host .country-list .country-list-footer{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:1rem}:host .country-list.country-list-mobile{display:block;position:relative;overflow:auto;max-height:100%;width:100%;box-shadow:none;margin:0;padding:24px 32px;border-top:1px solid var(--color-gray-02)}:host .country-list.country-list-mobile .continent-name{color:var(--color-gray-10);font-size:var(--ptc-font-size-large);font-weight:var(--ptc-font-weight-bold);margin-bottom:1rem}:host .country-list.country-list-mobile ul{border:none;padding:16px 0 0 0}:host .region-list{display:flex;justify-content:center;height:100%}:host .region-list .region{position:relative
|
|
30
|
+
const ptcOfficeLocationsCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host .country-list{z-index:1056;min-width:278px;position:absolute;top:100%;left:16px;width:max-content;margin-top:8px;-webkit-box-orient:vertical;-webkit-box-direction:normal;border-radius:var(--ptc-border-radius-standard);box-shadow:0 8px 24px rgba(0, 0, 0, 0.25);background-color:var(--color-white);border-top:none;overflow:hidden;max-height:0;transition:max-height 0.25s ease-out}:host .country-list ul{list-style:none;margin:0;padding:24px 24px 8px 24px;border-bottom:1px solid var(--color-gray-02);max-height:480px}@media only screen and (min-width: 992px){:host .country-list ul{overflow:auto}}:host .country-list ul::-webkit-scrollbar{width:8px}:host .country-list ul::-webkit-scrollbar-track{background:transparent}:host .country-list ul::-webkit-scrollbar-thumb{background:var(--color-gray-02);border-radius:var(--ptc-border-radius-pill)}:host .country-list li{margin-bottom:1rem;cursor:pointer;transition:background-color 0.3s ease}:host .country-list li label{display:block;position:relative;padding:0 0 4px 32px;font-weight:var(--ptc-font-weight-medium);color:var(--color-gray-10);cursor:pointer}:host .country-list li label .checkmark{background-color:var(--color-white);border:1px solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard);-webkit-box-sizing:border-box;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;width:20px}:host .country-list li label .checkmark::after{background-image:url('data:image/svg+xml,<svg width=\"14\" height=\"10\" viewBox=\"0 0 14 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1.5 4L5.5 8L12.5 1\" stroke=\"white\" stroke-width=\"2\"/></svg>');background-position:50%;background-repeat:no-repeat;background-size:75% 100%;content:\"\";display:none;height:20px;left:-1px;position:absolute;top:-1px;width:20px}:host .country-list li label input[type=checkbox]{cursor:pointer;height:0;opacity:0;position:absolute;width:0;margin:0}:host .country-list li label input:checked~.checkmark{background-color:#1f2024}:host .country-list li label input:checked~.checkmark::after{display:block}:host .country-list li label:hover .checkmark{background-color:var(--color-gray-02)}:host .country-list .country-list-footer{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:1rem}:host .country-list.country-list-mobile{display:block;position:relative;overflow:auto;max-height:100%;width:100%;box-shadow:none;margin:0;padding:24px 32px;border-top:1px solid var(--color-gray-02)}:host .country-list.country-list-mobile .continent-name{color:var(--color-gray-10);font-size:var(--ptc-font-size-large);font-weight:var(--ptc-font-weight-bold);margin-bottom:1rem}:host .country-list.country-list-mobile ul{border:none;padding:16px 0 0 0}:host .region-list{display:flex;justify-content:center;height:100%}:host .region-list .region{position:relative}:host .region-list .region .region-btn{margin:0 0.5rem;height:100%;display:flex;cursor:pointer;position:relative}:host .region-list .region .region-btn .continent-arrow,:host .region-list .region .region-btn .continent-name{background-color:var(--color-gray-02);transition:background-color ease-out 250ms;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-semibold);color:var(--color-gray-10)}:host .region-list .region .region-btn .continent-arrow:hover,:host .region-list .region .region-btn .continent-name:hover{background-color:var(--color-gray-03)}:host .region-list .region .region-btn .continent-name{display:flex;border-top-left-radius:270px;border-bottom-left-radius:270px;align-items:center;padding:12px 8px 12px 16px;border-right:1px solid var(--color-gray-03);text-align:center}@media only screen and (min-width: 1200px){:host .region-list .region .region-btn .continent-name{padding:12px 12px 12px 20px}}:host .region-list .region .region-btn .continent-arrow{display:flex;align-items:center;border-top-right-radius:270px;border-bottom-right-radius:270px;padding:12px 16px 12px 12px}@media only screen and (min-width: 1200px){:host .region-list .region .region-btn .continent-arrow{padding:12px 18px 12px 12px}}:host .region-list .region .region-btn .continent-arrow svg{transition:transform ease-out 250ms}:host .region-list .region.active .country-list{max-height:800px;}:host .region-list .region.active .region-btn .continent-arrow svg{transform:rotate(-180deg)}:host .region-list .region.selected .continent-arrow,:host .region-list .region.selected .continent-name{background-color:var(--color-gray-12);transition:background-color ease-out 250ms;color:var(--color-white)}:host .region-list .region.selected .continent-arrow:hover,:host .region-list .region.selected .continent-name:hover{background-color:var(--color-gray-12);color:var(--color-white)}:host .region-list .region.selected .continent-arrow svg path{stroke:var(--color-white)}:host .office-location-list-wrapper{opacity:1;transition:opacity 0.25s ease-out;margin-top:2rem}:host .office-location-list-wrapper.updating{opacity:0}:host .office-location-list-wrapper .ol-list-bg{background-color:var(--color-white);display:grid;align-content:flex-start;padding:16px;column-gap:16px;row-gap:16px;grid-template-columns:1fr;overflow-y:auto}@media only screen and (min-width: 768px){:host .office-location-list-wrapper .ol-list-bg{grid-template-columns:1fr 1fr}}@media only screen and (min-width: 1200px){:host .office-location-list-wrapper .ol-list-bg{grid-template-columns:1fr 1fr 1fr}}:host .office-location-list-wrapper .map-embed{display:none}:host .office-location-list-wrapper.showing-map{display:flex;flex-direction:row;height:56rem;max-width:1736rem}:host .office-location-list-wrapper.showing-map .ol-list-bg{width:100%;grid-template-columns:1fr}@media only screen and (min-width: 992px){:host .office-location-list-wrapper.showing-map .ol-list-bg{width:40%}}@media only screen and (min-width: 1200px){:host .office-location-list-wrapper.showing-map .ol-list-bg{width:35%}}@media only screen and (min-width: 1440px){:host .office-location-list-wrapper.showing-map .ol-list-bg{width:65%;grid-template-columns:1fr 1fr}}@media only screen and (min-width: 992px){:host .office-location-list-wrapper.showing-map .map-embed{width:60%}}@media only screen and (min-width: 1200px){:host .office-location-list-wrapper.showing-map .map-embed{width:65%}}@media only screen and (min-width: 1440px){:host .office-location-list-wrapper.showing-map .map-embed{width:35%}}:host .office-location-list-wrapper.showing-map .map-embed{display:block}:host .filter-cta{background:var(--color-white);border:1px solid transparent;border-radius:var(--ptc-border-radius-pill);display:flex;flex-direction:row;margin:0 auto;padding:12px 20px;transition:border 0.25s ease-out;font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);color:var(--color-gray-10)}:host .filter-cta svg{margin-right:10px}:host .filter-cta:hover{border:1px solid var(--color-gray-02)}:host .modal-footer{display:flex;justify-items:center;justify-content:space-between;padding:0 1rem}:host .map-btn{margin:0 0.5rem;height:100%;display:flex;align-items:center;cursor:pointer;position:relative;background-color:var(--color-white);padding:9px 20px;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-semibold);border-radius:var(--ptc-border-radius-pill);color:var(--color-gray-10);border:1px solid transparent;transition:border 0.25s ease-out;box-sizing:border-box}@media only screen and (min-width: 1200px){:host .map-btn{margin:0 1rem}}:host .map-btn:hover{border:1px solid var(--color-gray-04)}:host .map-btn .map-icon{margin-right:10px;min-height:20px}";
|
|
31
31
|
|
|
32
32
|
const PtcOfficeLocations = class {
|
|
33
33
|
constructor(hostRef) {
|
|
@@ -41,6 +41,10 @@ const PtcOfficeLocations = class {
|
|
|
41
41
|
this.regionListManual = undefined;
|
|
42
42
|
this.showMapText = 'Show Map';
|
|
43
43
|
this.hideMapText = 'Hide Map';
|
|
44
|
+
this.filtersText = 'Filters';
|
|
45
|
+
this.allRegionsText = 'All Regions';
|
|
46
|
+
this.applyText = 'Apply';
|
|
47
|
+
this.clearText = 'Clear';
|
|
44
48
|
this.showMap = false;
|
|
45
49
|
}
|
|
46
50
|
handleResize() {
|
|
@@ -219,7 +223,7 @@ const PtcOfficeLocations = class {
|
|
|
219
223
|
renderCountrylist(region) {
|
|
220
224
|
const uniqueLocations = [...new Map(this.locations
|
|
221
225
|
.filter(location => location.region === region).map(item => [item['country'], item])).values()];
|
|
222
|
-
return (index.h("ul", { id: 'region-list-' + region.replace(/\s+/g, '') }, index.h("li", null, index.h("label", { htmlFor: 'all-regions-' + region.replace(/\s+/g, '') },
|
|
226
|
+
return (index.h("ul", { id: 'region-list-' + region.replace(/\s+/g, '') }, index.h("li", null, index.h("label", { htmlFor: 'all-regions-' + region.replace(/\s+/g, '') }, this.allRegionsText, index.h("input", { type: "checkbox", class: 'all-region-label', id: 'all-regions-' + region.replace(/\s+/g, ''), value: region, "data-continent": region, onChange: (e) => this.updateCheckboxStatus(region.replace(/\s+/g, ''), e) }), index.h("span", { class: 'checkmark' }))), uniqueLocations
|
|
223
227
|
.map(location => (index.h("li", { key: location.id }, index.h("label", { htmlFor: location.country }, location.country, index.h("input", { type: "checkbox", id: location.country, value: location.country, "data-continent": region, onChange: (e) => this.updateCheckboxStatus(region.replace(/\s+/g, ''), e) }), index.h("span", { class: 'checkmark' })))))));
|
|
224
228
|
}
|
|
225
229
|
toggleMap() {
|
|
@@ -237,9 +241,9 @@ const PtcOfficeLocations = class {
|
|
|
237
241
|
render() {
|
|
238
242
|
const classMap = this.getCssClassMap();
|
|
239
243
|
return (index.h(index.Host, null, !this.isMobile &&
|
|
240
|
-
index.h("div", { class: "region-list" }, this.regions.map(region => (index.h("div", { class: `region ${this.openRegion === region ? 'active' : ''}`, key: region.id, id: 'region-wrap-' + region.replace(/\s+/g, '') }, index.h("span", { class: "region-btn" }, index.h("span", { class: "continent-name", onClick: () => { this.updateSelectedClass(region.replace(/\s+/g, '')); } }, region), index.h("span", { class: "continent-arrow", onClick: () => this.toggleCountryList(region) }, index.h("svg", { width: "10", height: "7", viewBox: "0 0 10 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1 1L5 5L9 1", stroke: "#40434A", "stroke-width": "2", "stroke-linecap": "round" })))), index.h("div", { class: `country-list country-list-desktop` }, this.renderCountrylist(region), index.h("div", { class: "country-list-footer" }, index.h("ptc-button", { color: "ptc-tertiary", "link-title": "Clear", type: "button", size: "small", onClick: () => this.clearFilter(region), styles: 'button { border: none !important;} button:hover { background-color: transparent !important;} button:hover span{ text-decoration: underline !important}' },
|
|
241
|
-
index.h("button", { class: "filter-cta", onClick: () => { this.openFilterModal(); } }, " ", index.h("span", { class: "svg-close", innerHTML: filterSVG }),
|
|
242
|
-
index.h("ptc-modal", { id: "modal-example", show: false, size: "lg", fixed: true, rounded: true, "show-header-footer": "true" }, index.h("div", { slot: "header" }, index.h("ptc-title", { type: 'h4', upperline: "no-upperline", "text-align": 'center', "title-margin": "margin-5" },
|
|
244
|
+
index.h("div", { class: "region-list" }, this.regions.map(region => (index.h("div", { class: `region ${this.openRegion === region ? 'active' : ''}`, key: region.id, id: 'region-wrap-' + region.replace(/\s+/g, '') }, index.h("span", { class: "region-btn" }, index.h("span", { class: "continent-name", onClick: () => { this.updateSelectedClass(region.replace(/\s+/g, '')); } }, region), index.h("span", { class: "continent-arrow", onClick: () => this.toggleCountryList(region) }, index.h("svg", { width: "10", height: "7", viewBox: "0 0 10 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1 1L5 5L9 1", stroke: "#40434A", "stroke-width": "2", "stroke-linecap": "round" })))), index.h("div", { class: `country-list country-list-desktop` }, this.renderCountrylist(region), index.h("div", { class: "country-list-footer" }, index.h("ptc-button", { color: "ptc-tertiary", "link-title": "Clear", type: "button", size: "small", onClick: () => this.clearFilter(region), styles: 'button { border: none !important;} button:hover { background-color: transparent !important;} button:hover span{ text-decoration: underline !important}' }, this.clearText), index.h("ptc-button", { color: "ptc-secondary", "link-title": "Apply", type: "button", size: "small", onClick: () => this.applyFilter(region) }, this.applyText)))))), index.h("span", { class: "map-btn", onClick: () => { this.toggleMap(); } }, index.h("span", { class: 'map-icon', innerHTML: this.showMap ? hideMapSVG : showMapIcon.showMapSVG }), index.h("span", null, this.showMap ? this.hideMapText : this.showMapText, " "))), this.isMobile &&
|
|
245
|
+
index.h("button", { class: "filter-cta", onClick: () => { this.openFilterModal(); } }, " ", index.h("span", { class: "svg-close", innerHTML: filterSVG }), this.filtersText), this.isMobile &&
|
|
246
|
+
index.h("ptc-modal", { id: "modal-example", show: false, size: "lg", fixed: true, rounded: true, "show-header-footer": "true" }, index.h("div", { slot: "header" }, index.h("ptc-title", { type: 'h4', upperline: "no-upperline", "text-align": 'center', "title-margin": "margin-5" }, this.filtersText)), index.h("div", { slot: "footer", class: 'modal-footer' }, index.h("ptc-button", { color: "ptc-tertiary", "link-title": "Clear", type: "button", size: "small", onClick: () => { this.clearFiltersMobile(); }, styles: 'button { border: none !important;} button:hover { background-color: transparent !important;} button:hover span{ text-decoration: underline !important}' }, this.clearText), index.h("ptc-button", { color: "ptc-secondary", "link-title": "Apply", type: "button", size: "small", onClick: () => { this.applyFilterMobile(); } }, this.applyText)), index.h("div", { slot: "body" }, index.h("div", { class: "filter-modal-body" }, this.regions.map(region => (index.h("div", { class: "country-list country-list-mobile", key: region.id, id: 'region-wrap-' + region.replace(/\s+/g, '') }, index.h("span", { class: "continent-name" }, region), this.renderCountrylist(region))))))), index.h("div", { class: classMap }, index.h("div", { class: `ol-list-bg ` }, index.h("slot", null)), !this.isMobile &&
|
|
243
247
|
index.h("div", { class: "map-embed" }, index.h("iframe", { frameborder: "0", referrerPolicy: "no-referrer-when-downgrade", width: '100%', height: '100%', style: { border: '0' }, allowfullScreen: true, src: `https://www.google.com/maps/embed/v1/place?key=AIzaSyATvSgSVv2hH0yXiKMcBYsF26j67d3oPLg&q=${this.address}` })))));
|
|
244
248
|
}
|
|
245
249
|
getCssClassMap() {
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-4b85b38a.js');
|
|
6
|
+
const utils = require('./utils-f88137bf.js');
|
|
7
|
+
|
|
8
|
+
const ptcParaCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.gray-darker{color:var(--color-gray-11)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.htmlquote-para{font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 992px){p.htmlquote-para{font-size:var(--ptc-font-size-large)}}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
9
|
+
|
|
10
|
+
const PtcPara = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.fontSize = 'x-small';
|
|
14
|
+
this.fontWeight = 'w-4';
|
|
15
|
+
this.paraStyle = 'default';
|
|
16
|
+
this.paraColor = 'primary-grey';
|
|
17
|
+
this.paraLineH = 'line-height-normal';
|
|
18
|
+
this.paraMargin = undefined;
|
|
19
|
+
this.paraAlign = undefined;
|
|
20
|
+
this.ellipsisLineCutoff = undefined;
|
|
21
|
+
this.paraZIndex = undefined;
|
|
22
|
+
this.styles = undefined;
|
|
23
|
+
this.seoCompatibilityMode = false;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
if (this.seoCompatibilityMode) {
|
|
27
|
+
utils.seoSlotReset(this.el);
|
|
28
|
+
}
|
|
29
|
+
return this.standardRender();
|
|
30
|
+
}
|
|
31
|
+
standardRender() {
|
|
32
|
+
const classMap = this.getCssClassMap();
|
|
33
|
+
const colorClass = this.addWhiteClass();
|
|
34
|
+
const cutOff = this.getLineCuttoff();
|
|
35
|
+
return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
|
|
36
|
+
}
|
|
37
|
+
getCssClassMap() {
|
|
38
|
+
return {
|
|
39
|
+
[this.fontSize]: true,
|
|
40
|
+
[this.fontWeight]: true,
|
|
41
|
+
[this.paraStyle]: true,
|
|
42
|
+
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
43
|
+
[this.paraColor]: true,
|
|
44
|
+
[this.paraLineH]: true,
|
|
45
|
+
[this.paraAlign]: !!this.paraAlign ? true : false,
|
|
46
|
+
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//WEB-2392
|
|
50
|
+
addWhiteClass() {
|
|
51
|
+
if (this.paraColor == 'white') {
|
|
52
|
+
return {
|
|
53
|
+
[this.paraColor]: true,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
getLineCuttoff() {
|
|
58
|
+
let result;
|
|
59
|
+
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
60
|
+
result = {
|
|
61
|
+
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
get el() { return index.getElement(this); }
|
|
67
|
+
};
|
|
68
|
+
PtcPara.style = ptcParaCss;
|
|
69
|
+
|
|
70
|
+
exports.ptc_para = PtcPara;
|