@ptcwebops/ptcw-design 4.1.0 → 4.1.1
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-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/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 +142 -12
- 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 +1 -1
- 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-9d049707.entry.js → p-9202e5f9.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-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
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
h1,
|
|
2
|
+
h2,
|
|
3
|
+
h3,
|
|
4
|
+
h4,
|
|
5
|
+
h5,
|
|
6
|
+
h6,
|
|
7
|
+
p,
|
|
8
|
+
ul,
|
|
9
|
+
li,
|
|
10
|
+
ptc-subnav,
|
|
11
|
+
ptc-tab-list,
|
|
12
|
+
ptc-link, ptc-square-card {
|
|
13
|
+
word-break: break-word;
|
|
14
|
+
hyphens: manual;
|
|
15
|
+
-webkit-hyphens: manual;
|
|
16
|
+
-moz-hyphens: manual;
|
|
17
|
+
-ms-hyphens: manual;
|
|
18
|
+
}
|
|
19
|
+
@supports (hyphenate-limit-chars: 12 3 3) {
|
|
20
|
+
h1,
|
|
21
|
+
h2,
|
|
22
|
+
h3,
|
|
23
|
+
h4,
|
|
24
|
+
h5,
|
|
25
|
+
h6,
|
|
26
|
+
p,
|
|
27
|
+
ul,
|
|
28
|
+
li,
|
|
29
|
+
ptc-subnav,
|
|
30
|
+
ptc-tab-list,
|
|
31
|
+
ptc-link, ptc-square-card {
|
|
32
|
+
hyphens: auto;
|
|
33
|
+
-webkit-hyphenate-limit-before: 3;
|
|
34
|
+
/* For Safari */
|
|
35
|
+
-webkit-hyphenate-limit-after: 3;
|
|
36
|
+
/* For Safari */
|
|
37
|
+
hyphenate-limit-chars: 12 3 3;
|
|
38
|
+
hyphenate-limit-lines: 2;
|
|
39
|
+
hyphenate-limit-last: always;
|
|
40
|
+
hyphenate-limit-zone: 6%;
|
|
41
|
+
-webkit-hyphens: auto;
|
|
42
|
+
-webkit-hyphenate-limit-before: 3;
|
|
43
|
+
-webkit-hyphenate-limit-after: 3;
|
|
44
|
+
-webkit-hyphenate-limit-chars: 12 3 3;
|
|
45
|
+
-webkit-hyphenate-limit-lines: 2;
|
|
46
|
+
-moz-hyphens: auto;
|
|
47
|
+
-moz-hyphenate-limit-chars: 12 3 3;
|
|
48
|
+
-moz-hyphenate-limit-lines: 2;
|
|
49
|
+
-ms-hyphens: auto;
|
|
50
|
+
-ms-hyphenate-limit-chars: 12 3 3;
|
|
51
|
+
-ms-hyphenate-limit-lines: 2;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
ptc-footer {
|
|
56
|
+
display: block;
|
|
57
|
+
color: var(--color-white);
|
|
58
|
+
background-color: var(--color-gray-12);
|
|
59
|
+
position: relative;
|
|
60
|
+
}
|
|
61
|
+
ptc-footer ul {
|
|
62
|
+
padding: 0;
|
|
63
|
+
margin: 0;
|
|
64
|
+
list-style: none;
|
|
65
|
+
}
|
|
66
|
+
ptc-footer ul li a {
|
|
67
|
+
text-decoration: none;
|
|
68
|
+
color: var(--color-white);
|
|
69
|
+
border-bottom: 1px solid transparent;
|
|
70
|
+
transition: border-bottom-color var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
71
|
+
}
|
|
72
|
+
ptc-footer ul li a:hover {
|
|
73
|
+
color: var(--color-white) !important;
|
|
74
|
+
border-bottom-color: var(--color-white);
|
|
75
|
+
}
|
|
76
|
+
ptc-footer ul li a:visited {
|
|
77
|
+
color: var(--color-gray-4);
|
|
78
|
+
border-bottom-color: var(--color-gray-4);
|
|
79
|
+
}
|
|
80
|
+
ptc-footer .gap-20 {
|
|
81
|
+
grid-column-gap: 20px;
|
|
82
|
+
grid-row-gap: 20px;
|
|
83
|
+
}
|
|
84
|
+
ptc-footer .footer-bg-wrap {
|
|
85
|
+
position: relative;
|
|
86
|
+
}
|
|
87
|
+
ptc-footer .footer-bg {
|
|
88
|
+
position: absolute;
|
|
89
|
+
width: 100%;
|
|
90
|
+
text-align: center;
|
|
91
|
+
height: 100%;
|
|
92
|
+
background-repeat: no-repeat;
|
|
93
|
+
background-position: center center;
|
|
94
|
+
z-index: 0;
|
|
95
|
+
opacity: 0.4;
|
|
96
|
+
}
|
|
97
|
+
ptc-footer .footer-top {
|
|
98
|
+
padding-top: 48px;
|
|
99
|
+
padding-bottom: 48px;
|
|
100
|
+
position: relative;
|
|
101
|
+
z-index: 1;
|
|
102
|
+
max-width: 500px;
|
|
103
|
+
margin: auto;
|
|
104
|
+
}
|
|
105
|
+
@media only screen and (min-width: 992px) {
|
|
106
|
+
ptc-footer .footer-top {
|
|
107
|
+
padding-top: var(--ptc-layout-spacing-06);
|
|
108
|
+
padding-bottom: var(--ptc-layout-spacing-06);
|
|
109
|
+
max-width: 1136px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
@media only screen and (min-width: 1200px) {
|
|
113
|
+
ptc-footer .footer-top {
|
|
114
|
+
padding-bottom: var(--ptc-layout-spacing-04);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
@media only screen and (min-width: 1440px) {
|
|
118
|
+
ptc-footer .footer-top {
|
|
119
|
+
max-width: 1200px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
ptc-footer .footer-top ptc-title {
|
|
123
|
+
margin-bottom: 24px;
|
|
124
|
+
display: block;
|
|
125
|
+
}
|
|
126
|
+
ptc-footer .footer-top .f-menu {
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
}
|
|
129
|
+
@media only screen and (min-width: 992px) {
|
|
130
|
+
ptc-footer .footer-top .f-menu {
|
|
131
|
+
justify-content: flex-start;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
ptc-footer .footer-top .f-menu ul li {
|
|
135
|
+
padding: 6px 0;
|
|
136
|
+
}
|
|
137
|
+
ptc-footer .footer-top .f-menu ul li:first-child {
|
|
138
|
+
padding-top: 0;
|
|
139
|
+
}
|
|
140
|
+
ptc-footer .footer-top .f-menu ul li:last-child {
|
|
141
|
+
padding-bottom: 0;
|
|
142
|
+
}
|
|
143
|
+
ptc-footer .footer-top .f-menu ul li a {
|
|
144
|
+
display: inline-block;
|
|
145
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
146
|
+
line-height: var(--ptc-line-height-p);
|
|
147
|
+
}
|
|
148
|
+
@media only screen and (min-width: 992px) {
|
|
149
|
+
ptc-footer .footer-top .f-menu .f-menu-1 {
|
|
150
|
+
margin-right: 56px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
@media only screen and (min-width: 1200px) {
|
|
154
|
+
ptc-footer .footer-top .f-menu .f-menu-1 {
|
|
155
|
+
margin-right: 88px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
ptc-footer ptc-mobile-select {
|
|
159
|
+
display: block;
|
|
160
|
+
}
|
|
161
|
+
@media only screen and (min-width: 1200px) {
|
|
162
|
+
ptc-footer ptc-mobile-select {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
ptc-footer .footer-bottom {
|
|
167
|
+
background-color: var(--color-gray-11);
|
|
168
|
+
padding-top: var(--ptc-layout-spacing-02);
|
|
169
|
+
padding-bottom: var(--ptc-layout-spacing-02);
|
|
170
|
+
text-align: center;
|
|
171
|
+
font-size: var(--ptc-font-size-xx-small);
|
|
172
|
+
}
|
|
173
|
+
@media only screen and (min-width: 768px) {
|
|
174
|
+
ptc-footer .footer-bottom {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
justify-content: space-between;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
ptc-footer .footer-bottom .logo {
|
|
181
|
+
margin-bottom: var(--ptc-element-spacing-06);
|
|
182
|
+
}
|
|
183
|
+
@media only screen and (min-width: 768px) {
|
|
184
|
+
ptc-footer .footer-bottom .logo {
|
|
185
|
+
margin-bottom: 0;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
@media only screen and (min-width: 768px) {
|
|
189
|
+
ptc-footer .footer-bottom .copyright-list {
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
ptc-footer .footer-bottom .copyright-list ul {
|
|
195
|
+
margin-top: var(--ptc-element-spacing-04);
|
|
196
|
+
}
|
|
197
|
+
@media only screen and (min-width: 768px) {
|
|
198
|
+
ptc-footer .footer-bottom .copyright-list ul {
|
|
199
|
+
margin-left: 40px;
|
|
200
|
+
margin-top: 0;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
ptc-footer .footer-bottom .copyright-list ul li {
|
|
204
|
+
display: inline-block;
|
|
205
|
+
margin: 0 12px;
|
|
206
|
+
}
|
|
207
|
+
ptc-footer .footer-bottom .copyright-list ul li a {
|
|
208
|
+
display: block;
|
|
209
|
+
padding: 6px 0;
|
|
210
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
// import footerBg from '../../media/svg-imgs/footer-background.svg';
|
|
3
|
+
export class PtcFooter {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.backgroundImage = undefined;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, null, h("div", { class: "footer-bg-wrap" }, h("div", { class: 'footer-bg', style: { backgroundImage: `url(${this.backgroundImage})` } }), h("slot", null)), h("slot", { name: 'footer-bottom-slot' })));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "ptc-footer"; }
|
|
11
|
+
static get originalStyleUrls() {
|
|
12
|
+
return {
|
|
13
|
+
"$": ["ptc-footer-v2.scss"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get styleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["ptc-footer-v2.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
"backgroundImage": {
|
|
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": "background-image",
|
|
38
|
+
"reflect": false
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
h1,
|
|
2
|
+
h2,
|
|
3
|
+
h3,
|
|
4
|
+
h4,
|
|
5
|
+
h5,
|
|
6
|
+
h6,
|
|
7
|
+
p,
|
|
8
|
+
ul,
|
|
9
|
+
li,
|
|
10
|
+
ptc-subnav,
|
|
11
|
+
ptc-tab-list,
|
|
12
|
+
ptc-link, ptc-square-card {
|
|
13
|
+
word-break: break-word;
|
|
14
|
+
hyphens: manual;
|
|
15
|
+
-webkit-hyphens: manual;
|
|
16
|
+
-moz-hyphens: manual;
|
|
17
|
+
-ms-hyphens: manual;
|
|
18
|
+
}
|
|
19
|
+
@supports (hyphenate-limit-chars: 12 3 3) {
|
|
20
|
+
h1,
|
|
21
|
+
h2,
|
|
22
|
+
h3,
|
|
23
|
+
h4,
|
|
24
|
+
h5,
|
|
25
|
+
h6,
|
|
26
|
+
p,
|
|
27
|
+
ul,
|
|
28
|
+
li,
|
|
29
|
+
ptc-subnav,
|
|
30
|
+
ptc-tab-list,
|
|
31
|
+
ptc-link, ptc-square-card {
|
|
32
|
+
hyphens: auto;
|
|
33
|
+
-webkit-hyphenate-limit-before: 3;
|
|
34
|
+
/* For Safari */
|
|
35
|
+
-webkit-hyphenate-limit-after: 3;
|
|
36
|
+
/* For Safari */
|
|
37
|
+
hyphenate-limit-chars: 12 3 3;
|
|
38
|
+
hyphenate-limit-lines: 2;
|
|
39
|
+
hyphenate-limit-last: always;
|
|
40
|
+
hyphenate-limit-zone: 6%;
|
|
41
|
+
-webkit-hyphens: auto;
|
|
42
|
+
-webkit-hyphenate-limit-before: 3;
|
|
43
|
+
-webkit-hyphenate-limit-after: 3;
|
|
44
|
+
-webkit-hyphenate-limit-chars: 12 3 3;
|
|
45
|
+
-webkit-hyphenate-limit-lines: 2;
|
|
46
|
+
-moz-hyphens: auto;
|
|
47
|
+
-moz-hyphenate-limit-chars: 12 3 3;
|
|
48
|
+
-moz-hyphenate-limit-lines: 2;
|
|
49
|
+
-ms-hyphens: auto;
|
|
50
|
+
-ms-hyphenate-limit-chars: 12 3 3;
|
|
51
|
+
-ms-hyphenate-limit-lines: 2;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host {
|
|
56
|
+
display: block;
|
|
57
|
+
height: 100%;
|
|
58
|
+
}
|
|
59
|
+
:host a {
|
|
60
|
+
display: block;
|
|
61
|
+
padding: var(--ptc-layout-spacing-03);
|
|
62
|
+
background-color: var(--color-gray-10);
|
|
63
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
64
|
+
align-items: center;
|
|
65
|
+
text-decoration: none;
|
|
66
|
+
text-align: center;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
height: 100%;
|
|
69
|
+
transition: background-color var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
70
|
+
}
|
|
71
|
+
@media only screen and (min-width: 480px) {
|
|
72
|
+
:host a {
|
|
73
|
+
display: flex;
|
|
74
|
+
text-align: left;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
:host a:hover {
|
|
78
|
+
background-color: var(--color-gray-08);
|
|
79
|
+
}
|
|
80
|
+
:host a:active {
|
|
81
|
+
background-color: var(--color-gray-09);
|
|
82
|
+
}
|
|
83
|
+
:host a span {
|
|
84
|
+
display: block;
|
|
85
|
+
}
|
|
86
|
+
:host .card-icon {
|
|
87
|
+
width: 2rem;
|
|
88
|
+
height: 2rem;
|
|
89
|
+
margin: auto;
|
|
90
|
+
margin-bottom: 1rem;
|
|
91
|
+
}
|
|
92
|
+
@media only screen and (min-width: 480px) {
|
|
93
|
+
:host .card-icon {
|
|
94
|
+
margin: 0 var(--ptc-element-spacing-04) 0 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
:host .card-title {
|
|
98
|
+
font-weight: var(--ptc-font-weight-extrabold);
|
|
99
|
+
color: var(--color-white);
|
|
100
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
export class PtcIconCard {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.cardTitle = undefined;
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
return (h(Host, null, h("a", { href: "#", title: this.cardTitle }, h("span", { class: 'card-icon' }, h("slot", null)), h("span", { class: 'card-title' }, this.cardTitle))));
|
|
8
|
+
}
|
|
9
|
+
static get is() { return "ptc-icon-card"; }
|
|
10
|
+
static get encapsulation() { return "shadow"; }
|
|
11
|
+
static get originalStyleUrls() {
|
|
12
|
+
return {
|
|
13
|
+
"$": ["ptc-icon-card.scss"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get styleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["ptc-icon-card.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
"cardTitle": {
|
|
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": "card-title",
|
|
38
|
+
"reflect": false
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -548,6 +548,14 @@ ptc-link, ptc-square-card {
|
|
|
548
548
|
white-space: nowrap;
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
+
.u-text-medium {
|
|
552
|
+
font-weight: var(--ptc-font-weight-medium);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.u-text-semibold {
|
|
556
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
557
|
+
}
|
|
558
|
+
|
|
551
559
|
.u-text-bold {
|
|
552
560
|
font-weight: var(--ptc-font-weight-bold);
|
|
553
561
|
}
|
|
@@ -109,8 +109,8 @@ ptc-link, ptc-square-card {
|
|
|
109
109
|
height: 100%;
|
|
110
110
|
}
|
|
111
111
|
.wrapper .modal-popup.sm-modal {
|
|
112
|
-
width:
|
|
113
|
-
max-width:
|
|
112
|
+
width: 341px;
|
|
113
|
+
max-width: 341px;
|
|
114
114
|
}
|
|
115
115
|
@media only screen and (max-width: 360px) {
|
|
116
116
|
.wrapper .modal-popup.sm-modal {
|
|
@@ -124,22 +124,16 @@ ptc-link, ptc-square-card {
|
|
|
124
124
|
width: 360px;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
@media only screen and (min-width: 480px)
|
|
128
|
-
.wrapper .modal-popup.sm-modal {
|
|
129
|
-
|
|
130
|
-
width:
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
@media only screen and (min-width: 768px) and (max-width: 991.55px) {
|
|
134
|
-
.wrapper .modal-popup.sm-modal {
|
|
135
|
-
max-width: 620px;
|
|
136
|
-
width: 620px;
|
|
127
|
+
@media only screen and (min-width: 480px) {
|
|
128
|
+
.wrapper .modal-popup.sm-modal.modal-with-content {
|
|
129
|
+
width: 371px;
|
|
130
|
+
max-width: 371px;
|
|
137
131
|
}
|
|
138
132
|
}
|
|
139
|
-
@media only screen and (min-width:
|
|
133
|
+
@media only screen and (min-width: 360px) and (max-width: 479.55px) {
|
|
140
134
|
.wrapper .modal-popup.sm-modal.modal-with-content {
|
|
141
|
-
width:
|
|
142
|
-
|
|
135
|
+
max-width: 360px;
|
|
136
|
+
width: 360px;
|
|
143
137
|
}
|
|
144
138
|
}
|
|
145
139
|
.wrapper .modal-popup .modal-body {
|
|
@@ -10,6 +10,7 @@ export class PtcOfficeLocationCard {
|
|
|
10
10
|
this.isContactEmpty = false;
|
|
11
11
|
this.officeName = undefined;
|
|
12
12
|
this.showFullAddressModal = false;
|
|
13
|
+
this.showFullAddressText = 'Show Full Address';
|
|
13
14
|
}
|
|
14
15
|
handleClick() {
|
|
15
16
|
// Emit the addressClicked event with the address as the detail
|
|
@@ -22,7 +23,7 @@ export class PtcOfficeLocationCard {
|
|
|
22
23
|
}
|
|
23
24
|
render() {
|
|
24
25
|
return (h(Host, null, h("div", { class: 'ofc-card-wrapper', onClick: () => this.handleClick() }, this.showFullAddressModal &&
|
|
25
|
-
h("div", { class: 'show-full-cta', onClick: (e) => { this.showFullAddress(e); } },
|
|
26
|
+
h("div", { class: 'show-full-cta', onClick: (e) => { this.showFullAddress(e); } }, this.showFullAddressText, h("span", { innerHTML: showAll })), h("div", { class: 'ofc-title' }, this.officeName), h("div", { class: 'map-link' }, h("span", { class: "ofc-icon", innerHTML: showMapSVG }), h("slot", { name: "map-link" })), h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
26
27
|
h("span", { class: "ofc-icon", innerHTML: phone }), h("slot", { name: "contact-number" })), h("slot", null)), this.showFullAddressModal &&
|
|
27
28
|
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;}" }, h("div", { class: 'ofc-title' }, this.officeName), h("div", { class: 'map-link' }, h("span", { class: "ofc-icon", innerHTML: showMapSVG }), h("slot", { name: 'map-link-modal' })), h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
28
29
|
h("span", { class: "ofc-icon", innerHTML: phone }), h("slot", { name: 'contact-number-modal' })))));
|
|
@@ -144,6 +145,24 @@ export class PtcOfficeLocationCard {
|
|
|
144
145
|
"attribute": "show-full-address-modal",
|
|
145
146
|
"reflect": false,
|
|
146
147
|
"defaultValue": "false"
|
|
148
|
+
},
|
|
149
|
+
"showFullAddressText": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "string",
|
|
154
|
+
"resolved": "string",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": ""
|
|
162
|
+
},
|
|
163
|
+
"attribute": "show-full-address-text",
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"defaultValue": "'Show Full Address'"
|
|
147
166
|
}
|
|
148
167
|
};
|
|
149
168
|
}
|
|
@@ -185,7 +185,6 @@ ptc-link, ptc-square-card {
|
|
|
185
185
|
}
|
|
186
186
|
:host .region-list .region {
|
|
187
187
|
position: relative;
|
|
188
|
-
height: 100%;
|
|
189
188
|
}
|
|
190
189
|
:host .region-list .region .region-btn {
|
|
191
190
|
margin: 0 0.5rem;
|
|
@@ -213,6 +212,7 @@ ptc-link, ptc-square-card {
|
|
|
213
212
|
align-items: center;
|
|
214
213
|
padding: 12px 8px 12px 16px;
|
|
215
214
|
border-right: 1px solid var(--color-gray-03);
|
|
215
|
+
text-align: center;
|
|
216
216
|
}
|
|
217
217
|
@media only screen and (min-width: 1200px) {
|
|
218
218
|
:host .region-list .region .region-btn .continent-name {
|
|
@@ -370,7 +370,6 @@ ptc-link, ptc-square-card {
|
|
|
370
370
|
color: var(--color-gray-10);
|
|
371
371
|
border: 1px solid transparent;
|
|
372
372
|
transition: border 0.25s ease-out;
|
|
373
|
-
height: 43px;
|
|
374
373
|
box-sizing: border-box;
|
|
375
374
|
}
|
|
376
375
|
@media only screen and (min-width: 1200px) {
|
|
@@ -13,6 +13,10 @@ export class PtcOfficeLocations {
|
|
|
13
13
|
this.regionListManual = undefined;
|
|
14
14
|
this.showMapText = 'Show Map';
|
|
15
15
|
this.hideMapText = 'Hide Map';
|
|
16
|
+
this.filtersText = 'Filters';
|
|
17
|
+
this.allRegionsText = 'All Regions';
|
|
18
|
+
this.applyText = 'Apply';
|
|
19
|
+
this.clearText = 'Clear';
|
|
16
20
|
this.showMap = false;
|
|
17
21
|
}
|
|
18
22
|
handleResize() {
|
|
@@ -191,7 +195,7 @@ export class PtcOfficeLocations {
|
|
|
191
195
|
renderCountrylist(region) {
|
|
192
196
|
const uniqueLocations = [...new Map(this.locations
|
|
193
197
|
.filter(location => location.region === region).map(item => [item['country'], item])).values()];
|
|
194
|
-
return (h("ul", { id: 'region-list-' + region.replace(/\s+/g, '') }, h("li", null, h("label", { htmlFor: 'all-regions-' + region.replace(/\s+/g, '') },
|
|
198
|
+
return (h("ul", { id: 'region-list-' + region.replace(/\s+/g, '') }, h("li", null, h("label", { htmlFor: 'all-regions-' + region.replace(/\s+/g, '') }, this.allRegionsText, 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) }), h("span", { class: 'checkmark' }))), uniqueLocations
|
|
195
199
|
.map(location => (h("li", { key: location.id }, h("label", { htmlFor: location.country }, location.country, h("input", { type: "checkbox", id: location.country, value: location.country, "data-continent": region, onChange: (e) => this.updateCheckboxStatus(region.replace(/\s+/g, ''), e) }), h("span", { class: 'checkmark' })))))));
|
|
196
200
|
}
|
|
197
201
|
toggleMap() {
|
|
@@ -209,9 +213,9 @@ export class PtcOfficeLocations {
|
|
|
209
213
|
render() {
|
|
210
214
|
const classMap = this.getCssClassMap();
|
|
211
215
|
return (h(Host, null, !this.isMobile &&
|
|
212
|
-
h("div", { class: "region-list" }, this.regions.map(region => (h("div", { class: `region ${this.openRegion === region ? 'active' : ''}`, key: region.id, id: 'region-wrap-' + region.replace(/\s+/g, '') }, h("span", { class: "region-btn" }, h("span", { class: "continent-name", onClick: () => { this.updateSelectedClass(region.replace(/\s+/g, '')); } }, region), h("span", { class: "continent-arrow", onClick: () => this.toggleCountryList(region) }, h("svg", { width: "10", height: "7", viewBox: "0 0 10 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1 1L5 5L9 1", stroke: "#40434A", "stroke-width": "2", "stroke-linecap": "round" })))), h("div", { class: `country-list country-list-desktop` }, this.renderCountrylist(region), h("div", { class: "country-list-footer" }, 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}' },
|
|
213
|
-
h("button", { class: "filter-cta", onClick: () => { this.openFilterModal(); } }, " ", h("span", { class: "svg-close", innerHTML: filterSVG }),
|
|
214
|
-
h("ptc-modal", { id: "modal-example", show: false, size: "lg", fixed: true, rounded: true, "show-header-footer": "true" }, h("div", { slot: "header" }, h("ptc-title", { type: 'h4', upperline: "no-upperline", "text-align": 'center', "title-margin": "margin-5" },
|
|
216
|
+
h("div", { class: "region-list" }, this.regions.map(region => (h("div", { class: `region ${this.openRegion === region ? 'active' : ''}`, key: region.id, id: 'region-wrap-' + region.replace(/\s+/g, '') }, h("span", { class: "region-btn" }, h("span", { class: "continent-name", onClick: () => { this.updateSelectedClass(region.replace(/\s+/g, '')); } }, region), h("span", { class: "continent-arrow", onClick: () => this.toggleCountryList(region) }, h("svg", { width: "10", height: "7", viewBox: "0 0 10 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1 1L5 5L9 1", stroke: "#40434A", "stroke-width": "2", "stroke-linecap": "round" })))), h("div", { class: `country-list country-list-desktop` }, this.renderCountrylist(region), h("div", { class: "country-list-footer" }, 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), h("ptc-button", { color: "ptc-secondary", "link-title": "Apply", type: "button", size: "small", onClick: () => this.applyFilter(region) }, this.applyText)))))), h("span", { class: "map-btn", onClick: () => { this.toggleMap(); } }, h("span", { class: 'map-icon', innerHTML: this.showMap ? hideMapSVG : showMapSVG }), h("span", null, this.showMap ? this.hideMapText : this.showMapText, " "))), this.isMobile &&
|
|
217
|
+
h("button", { class: "filter-cta", onClick: () => { this.openFilterModal(); } }, " ", h("span", { class: "svg-close", innerHTML: filterSVG }), this.filtersText), this.isMobile &&
|
|
218
|
+
h("ptc-modal", { id: "modal-example", show: false, size: "lg", fixed: true, rounded: true, "show-header-footer": "true" }, h("div", { slot: "header" }, h("ptc-title", { type: 'h4', upperline: "no-upperline", "text-align": 'center', "title-margin": "margin-5" }, this.filtersText)), h("div", { slot: "footer", class: 'modal-footer' }, 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), h("ptc-button", { color: "ptc-secondary", "link-title": "Apply", type: "button", size: "small", onClick: () => { this.applyFilterMobile(); } }, this.applyText)), h("div", { slot: "body" }, h("div", { class: "filter-modal-body" }, this.regions.map(region => (h("div", { class: "country-list country-list-mobile", key: region.id, id: 'region-wrap-' + region.replace(/\s+/g, '') }, h("span", { class: "continent-name" }, region), this.renderCountrylist(region))))))), h("div", { class: classMap }, h("div", { class: `ol-list-bg ` }, h("slot", null)), !this.isMobile &&
|
|
215
219
|
h("div", { class: "map-embed" }, 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}` })))));
|
|
216
220
|
}
|
|
217
221
|
getCssClassMap() {
|
|
@@ -286,6 +290,78 @@ export class PtcOfficeLocations {
|
|
|
286
290
|
"attribute": "hide-map-text",
|
|
287
291
|
"reflect": false,
|
|
288
292
|
"defaultValue": "'Hide Map'"
|
|
293
|
+
},
|
|
294
|
+
"filtersText": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"mutable": false,
|
|
297
|
+
"complexType": {
|
|
298
|
+
"original": "string",
|
|
299
|
+
"resolved": "string",
|
|
300
|
+
"references": {}
|
|
301
|
+
},
|
|
302
|
+
"required": false,
|
|
303
|
+
"optional": false,
|
|
304
|
+
"docs": {
|
|
305
|
+
"tags": [],
|
|
306
|
+
"text": ""
|
|
307
|
+
},
|
|
308
|
+
"attribute": "filters-text",
|
|
309
|
+
"reflect": false,
|
|
310
|
+
"defaultValue": "'Filters'"
|
|
311
|
+
},
|
|
312
|
+
"allRegionsText": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"mutable": false,
|
|
315
|
+
"complexType": {
|
|
316
|
+
"original": "string",
|
|
317
|
+
"resolved": "string",
|
|
318
|
+
"references": {}
|
|
319
|
+
},
|
|
320
|
+
"required": false,
|
|
321
|
+
"optional": false,
|
|
322
|
+
"docs": {
|
|
323
|
+
"tags": [],
|
|
324
|
+
"text": ""
|
|
325
|
+
},
|
|
326
|
+
"attribute": "all-regions-text",
|
|
327
|
+
"reflect": false,
|
|
328
|
+
"defaultValue": "'All Regions'"
|
|
329
|
+
},
|
|
330
|
+
"applyText": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"mutable": false,
|
|
333
|
+
"complexType": {
|
|
334
|
+
"original": "string",
|
|
335
|
+
"resolved": "string",
|
|
336
|
+
"references": {}
|
|
337
|
+
},
|
|
338
|
+
"required": false,
|
|
339
|
+
"optional": false,
|
|
340
|
+
"docs": {
|
|
341
|
+
"tags": [],
|
|
342
|
+
"text": ""
|
|
343
|
+
},
|
|
344
|
+
"attribute": "apply-text",
|
|
345
|
+
"reflect": false,
|
|
346
|
+
"defaultValue": "'Apply'"
|
|
347
|
+
},
|
|
348
|
+
"clearText": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"mutable": false,
|
|
351
|
+
"complexType": {
|
|
352
|
+
"original": "string",
|
|
353
|
+
"resolved": "string",
|
|
354
|
+
"references": {}
|
|
355
|
+
},
|
|
356
|
+
"required": false,
|
|
357
|
+
"optional": false,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": ""
|
|
361
|
+
},
|
|
362
|
+
"attribute": "clear-text",
|
|
363
|
+
"reflect": false,
|
|
364
|
+
"defaultValue": "'Clear'"
|
|
289
365
|
}
|
|
290
366
|
};
|
|
291
367
|
}
|
|
@@ -493,6 +493,14 @@ ptc-link, ptc-square-card {
|
|
|
493
493
|
white-space: nowrap;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
+
.u-text-medium {
|
|
497
|
+
font-weight: var(--ptc-font-weight-medium);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.u-text-semibold {
|
|
501
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
502
|
+
}
|
|
503
|
+
|
|
496
504
|
.u-text-bold {
|
|
497
505
|
font-weight: var(--ptc-font-weight-bold);
|
|
498
506
|
}
|