@ptcwebops/ptcw-design 3.3.2 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/list-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-background-video.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-quote.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-content-highlight.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-content.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-intro.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-layout.cjs.entry.js +47 -3
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +2 -2
- package/dist/cjs/ptc-white-paper.cjs.entry.js +5 -225
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/ptc-background-video/ptc-background-video.js +1 -1
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +2 -0
- package/dist/collection/components/ptc-quote/ptc-quote.css +14 -4
- package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.css +7 -7
- package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.css +7 -7
- package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.css +9 -9
- package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.css +9 -3
- package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.css +76 -26
- package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +54 -4
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +18 -6
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.js +1 -1
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +10 -229
- package/dist/custom-elements/index.js +64 -240
- package/dist/esm/list-item.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-value-led-card.entry.js +1 -1
- package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
- package/dist/esm/ptc-value-led-content.entry.js +1 -1
- package/dist/esm/ptc-value-led-intro.entry.js +1 -1
- package/dist/esm/ptc-value-led-layout.entry.js +47 -3
- package/dist/esm/ptc-value-led-speed-bump.entry.js +2 -2
- package/dist/esm/ptc-white-paper.entry.js +5 -225
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-0f44c924.entry.js +1 -0
- package/dist/ptcw-design/p-37ba88b9.entry.js +1 -0
- package/dist/ptcw-design/p-3eee7c0b.entry.js +1 -0
- package/dist/ptcw-design/p-4b1bb2ca.entry.js +1 -0
- package/dist/ptcw-design/p-63d80a6a.entry.js +1 -0
- package/dist/ptcw-design/p-88cb7080.entry.js +1 -0
- package/dist/ptcw-design/p-98726195.entry.js +1 -0
- package/dist/ptcw-design/{p-7c079ff8.entry.js → p-a665cc11.entry.js} +1 -1
- package/dist/ptcw-design/{p-236073e1.entry.js → p-d6adaf89.entry.js} +1 -1
- package/dist/ptcw-design/{p-579fc018.entry.js → p-f8e41992.entry.js} +1 -1
- package/dist/ptcw-design/p-fa0bac17.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-value-led-layout/ptc-value-led-layout.d.ts +3 -1
- package/dist/types/components/ptc-white-paper/ptc-white-paper.d.ts +2 -2
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-036234e7.entry.js +0 -1
- package/dist/ptcw-design/p-0fb9aa7d.entry.js +0 -1
- package/dist/ptcw-design/p-137ddeeb.entry.js +0 -1
- package/dist/ptcw-design/p-1c99d17d.entry.js +0 -1
- package/dist/ptcw-design/p-1cd21bb3.entry.js +0 -1
- package/dist/ptcw-design/p-523f57c3.entry.js +0 -1
- package/dist/ptcw-design/p-ab3c80b0.entry.js +0 -1
- package/dist/ptcw-design/p-ae99e19e.entry.js +0 -1
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
display: block;
|
|
3
3
|
border-left: 7px solid var(--color-green-07);
|
|
4
4
|
padding-left: 32px;
|
|
5
|
-
margin:
|
|
5
|
+
margin: 40px 0 40px 0;
|
|
6
6
|
}
|
|
7
7
|
@media only screen and (min-width: 480px) {
|
|
8
8
|
:host {
|
|
9
|
-
margin:
|
|
9
|
+
margin: 48px 40px 48px 40px;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
@media only screen and (min-width: 992px) {
|
|
13
13
|
:host {
|
|
14
|
-
margin:
|
|
14
|
+
margin: 56px 48px 56px 48px;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
:host::slotted(p) {
|
|
18
18
|
color: var(--color-gray-10);
|
|
19
|
-
font-size:
|
|
20
|
-
font-weight:
|
|
21
|
-
line-height:
|
|
19
|
+
font-size: var(--ptc-font-size-small);
|
|
20
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
21
|
+
line-height: var(--ptc-line-height-p);
|
|
22
22
|
}
|
|
23
23
|
:host::slotted(ul li) {
|
|
24
24
|
color: var(--color-gray-10);
|
|
25
|
-
font-size:
|
|
26
|
-
font-weight:
|
|
27
|
-
line-height:
|
|
25
|
+
font-size: var(--ptc-font-size-small);
|
|
26
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
27
|
+
line-height: var(--ptc-line-height-p);
|
|
28
28
|
}
|
|
29
29
|
:host::slotted(ul) {
|
|
30
30
|
padding-left: 12px;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: block;
|
|
3
|
-
padding-bottom:
|
|
4
|
-
padding-top:
|
|
3
|
+
padding-bottom: var(--ptc-element-spacing-07);
|
|
4
|
+
padding-top: var(--ptc-element-spacing-07);
|
|
5
5
|
}
|
|
6
6
|
@media only screen and (min-width: 768px) {
|
|
7
7
|
:host {
|
|
8
8
|
padding-top: 0;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
@media only screen and (min-width: 1440px) {
|
|
12
|
+
:host {
|
|
13
|
+
padding-bottom: var(--ptc-element-spacing-09);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
11
16
|
:host .content-tag {
|
|
12
17
|
font-size: var(--ptc-font-size-xx-small);
|
|
13
18
|
line-height: var(--ptc-line-height-p);
|
|
14
|
-
font-weight: var(--ptc-font-weight-
|
|
19
|
+
font-weight: var(--ptc-font-weight-medium);
|
|
15
20
|
margin-bottom: var(--ptc-element-spacing-01);
|
|
21
|
+
color: var(--color-gray-10);
|
|
16
22
|
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
box-sizing: border-box;
|
|
64
64
|
}
|
|
65
65
|
:host .top-image {
|
|
66
|
-
background-color: rgba(0, 0, 0, 0.
|
|
66
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
67
67
|
background-blend-mode: multiply;
|
|
68
68
|
position: absolute;
|
|
69
69
|
z-index: -1;
|
|
@@ -73,31 +73,43 @@
|
|
|
73
73
|
background-position: center;
|
|
74
74
|
}
|
|
75
75
|
:host .pdf-slot-wrapper {
|
|
76
|
-
padding:
|
|
76
|
+
padding: var(--ptc-element-spacing-04) 0;
|
|
77
77
|
width: 100%;
|
|
78
78
|
text-align: right;
|
|
79
79
|
}
|
|
80
80
|
:host .vl-layout-wrap {
|
|
81
|
-
margin-top:
|
|
81
|
+
margin-top: var(--ptc-element-spacing-04);
|
|
82
82
|
width: 100%;
|
|
83
83
|
position: relative;
|
|
84
84
|
}
|
|
85
85
|
@media only screen and (min-width: 992px) {
|
|
86
86
|
:host .vl-layout-wrap {
|
|
87
87
|
display: flex;
|
|
88
|
+
margin-top: 40px;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
@media only screen and (min-width: 992px) {
|
|
91
92
|
:host .vl-layout-wrap .vl-sidebar {
|
|
92
93
|
width: 22%;
|
|
94
|
+
margin-right: var(--ptc-layout-spacing-03);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@media only screen and (min-width: 1200px) {
|
|
98
|
+
:host .vl-layout-wrap .vl-sidebar {
|
|
93
99
|
margin-right: var(--ptc-layout-spacing-04);
|
|
94
100
|
}
|
|
95
101
|
}
|
|
102
|
+
@media only screen and (min-width: 1440px) {
|
|
103
|
+
:host .vl-layout-wrap .vl-sidebar {
|
|
104
|
+
margin-right: 40px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
96
107
|
:host .vl-layout-wrap .vl-list-wrap {
|
|
97
108
|
width: 100%;
|
|
98
109
|
padding: 8px 0;
|
|
110
|
+
box-shadow: var(--ptc-shadow-x-large);
|
|
99
111
|
max-height: calc(100vh - 64px);
|
|
100
|
-
background-color:
|
|
112
|
+
background-color: var(--color-white);
|
|
101
113
|
border-radius: var(--ptc-border-radius-standard);
|
|
102
114
|
}
|
|
103
115
|
@media only screen and (min-width: 992px) {
|
|
@@ -110,6 +122,12 @@
|
|
|
110
122
|
float: right;
|
|
111
123
|
overflow-y: auto;
|
|
112
124
|
overflow-x: hidden;
|
|
125
|
+
padding: var(--ptc-layout-spacing-03) 0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@media only screen and (min-width: 1200px) {
|
|
129
|
+
:host .vl-layout-wrap .vl-list-wrap {
|
|
130
|
+
padding: var(--ptc-layout-spacing-04) 0;
|
|
113
131
|
}
|
|
114
132
|
}
|
|
115
133
|
:host .vl-layout-wrap .vl-list-wrap ul {
|
|
@@ -123,13 +141,18 @@
|
|
|
123
141
|
@media only screen and (min-width: 992px) {
|
|
124
142
|
:host .vl-layout-wrap .vl-list-wrap ul li {
|
|
125
143
|
display: block;
|
|
144
|
+
margin: 0 16px 4px 16px;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
@media only screen and (min-width: 1200px) {
|
|
148
|
+
:host .vl-layout-wrap .vl-list-wrap ul li {
|
|
126
149
|
margin: 0 16px 8px 16px;
|
|
127
150
|
}
|
|
128
151
|
}
|
|
129
152
|
:host .vl-layout-wrap .vl-list-wrap ul li a {
|
|
130
153
|
display: block;
|
|
131
154
|
padding: 8px 16px;
|
|
132
|
-
font-size: var(--ptc-font-size-small);
|
|
155
|
+
font-size: var(--ptc-font-size-x-small);
|
|
133
156
|
line-height: var(--ptc-line-height-densest);
|
|
134
157
|
text-decoration: none;
|
|
135
158
|
color: var(--color-gray-10);
|
|
@@ -137,6 +160,11 @@
|
|
|
137
160
|
background-color: transparent;
|
|
138
161
|
border-radius: var(--ptc-border-radius-standard);
|
|
139
162
|
}
|
|
163
|
+
@media only screen and (min-width: 1200px) {
|
|
164
|
+
:host .vl-layout-wrap .vl-list-wrap ul li a {
|
|
165
|
+
font-size: var(--ptc-font-size-small);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
140
168
|
:host .vl-layout-wrap .vl-list-wrap ul li a::before {
|
|
141
169
|
content: "";
|
|
142
170
|
display: block;
|
|
@@ -144,7 +172,7 @@
|
|
|
144
172
|
height: calc(100% - 16px);
|
|
145
173
|
background-color: transparent;
|
|
146
174
|
position: absolute;
|
|
147
|
-
left:
|
|
175
|
+
left: 4px;
|
|
148
176
|
}
|
|
149
177
|
:host .vl-layout-wrap .vl-list-wrap ul li a:hover {
|
|
150
178
|
background-color: var(--color-gray-02);
|
|
@@ -153,7 +181,7 @@
|
|
|
153
181
|
display: block;
|
|
154
182
|
}
|
|
155
183
|
:host .vl-layout-wrap .vl-list-wrap ul li.active a {
|
|
156
|
-
font-weight:
|
|
184
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
157
185
|
}
|
|
158
186
|
:host .vl-layout-wrap .vl-list-wrap ul li.active a::before {
|
|
159
187
|
background-color: var(--color-green-07);
|
|
@@ -170,13 +198,14 @@
|
|
|
170
198
|
}
|
|
171
199
|
:host .vl-layout-wrap .vl-list-wrap select {
|
|
172
200
|
z-index: 105;
|
|
173
|
-
background-color:
|
|
201
|
+
background-color: var(--color-white);
|
|
174
202
|
}
|
|
175
203
|
:host .vl-layout-wrap .vl-content-wrap {
|
|
176
204
|
width: 100%;
|
|
177
205
|
padding: 0 20px 20px 20px;
|
|
178
|
-
background-color:
|
|
206
|
+
background-color: var(--color-white);
|
|
179
207
|
border-radius: var(--ptc-border-radius-standard);
|
|
208
|
+
box-shadow: var(--ptc-shadow-x-large);
|
|
180
209
|
}
|
|
181
210
|
@media only screen and (min-width: 480px) {
|
|
182
211
|
:host .vl-layout-wrap .vl-content-wrap {
|
|
@@ -201,6 +230,8 @@
|
|
|
201
230
|
background: var(--color-white);
|
|
202
231
|
width: calc(100% + 40px);
|
|
203
232
|
margin-left: -20px;
|
|
233
|
+
border-top-left-radius: 4px;
|
|
234
|
+
border-top-right-radius: 4px;
|
|
204
235
|
}
|
|
205
236
|
@media only screen and (min-width: 480px) {
|
|
206
237
|
:host .vl-layout-wrap .vl-content-wrap .mobile-select {
|
|
@@ -221,22 +252,37 @@
|
|
|
221
252
|
background-color: transparent;
|
|
222
253
|
border-radius: 0.25rem;
|
|
223
254
|
cursor: pointer;
|
|
224
|
-
font-weight:
|
|
225
|
-
line-height:
|
|
226
|
-
font-size:
|
|
255
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
256
|
+
line-height: var(--ptc-line-height-p);
|
|
257
|
+
font-size: var(--ptc-font-size-small);
|
|
227
258
|
display: flex;
|
|
228
259
|
justify-content: space-between;
|
|
229
260
|
align-items: center;
|
|
230
261
|
border-radius: 4px 4px 0px 0px;
|
|
231
|
-
box-shadow:
|
|
232
|
-
padding:
|
|
262
|
+
box-shadow: var(--ptc-shadow-x-large);
|
|
263
|
+
padding: var(--ptc-element-spacing-06);
|
|
233
264
|
border: none;
|
|
265
|
+
color: var(--color-gray-10);
|
|
266
|
+
position: relative;
|
|
267
|
+
}
|
|
268
|
+
:host .vl-layout-wrap .vl-content-wrap .mobile-select.custom-select .select-button::after {
|
|
269
|
+
content: "";
|
|
270
|
+
width: 100%;
|
|
271
|
+
height: 0;
|
|
272
|
+
background-color: transparent;
|
|
273
|
+
display: block;
|
|
274
|
+
position: absolute;
|
|
275
|
+
bottom: 0;
|
|
276
|
+
box-shadow: 0 16px 16px rgba(0, 0, 0, 0.2);
|
|
277
|
+
left: 0;
|
|
278
|
+
right: 0;
|
|
279
|
+
z-index: 105666;
|
|
234
280
|
}
|
|
235
281
|
:host .vl-layout-wrap .vl-content-wrap .mobile-select.custom-select .select-button .selected-value {
|
|
236
282
|
text-align: left;
|
|
237
|
-
font-weight:
|
|
238
|
-
line-height:
|
|
239
|
-
font-size:
|
|
283
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
284
|
+
line-height: var(--ptc-line-height-p);
|
|
285
|
+
font-size: var(--ptc-font-size-small);
|
|
240
286
|
display: -webkit-box;
|
|
241
287
|
-webkit-line-clamp: 1;
|
|
242
288
|
-webkit-box-orient: vertical;
|
|
@@ -260,13 +306,13 @@
|
|
|
260
306
|
border-radius: 0 0 4px 4px;
|
|
261
307
|
background: var(--color-white);
|
|
262
308
|
margin: 0;
|
|
263
|
-
padding: 0;
|
|
264
|
-
/* Drop Shadow (X-Large) */
|
|
265
|
-
box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.24);
|
|
309
|
+
padding: 16px 0;
|
|
266
310
|
max-height: 70vh;
|
|
267
311
|
overflow-y: auto;
|
|
268
312
|
transition: 0.5s ease;
|
|
269
313
|
z-index: 30000;
|
|
314
|
+
box-shadow: 0px 16px 16px rgba(0, 0, 0, 0.24);
|
|
315
|
+
border-top: 1px solid var(--color-gray-02);
|
|
270
316
|
opacity: 0;
|
|
271
317
|
visibility: hidden;
|
|
272
318
|
}
|
|
@@ -283,9 +329,10 @@
|
|
|
283
329
|
box-sizing: border-box;
|
|
284
330
|
padding: 16px 32px;
|
|
285
331
|
cursor: pointer;
|
|
286
|
-
font-size:
|
|
287
|
-
line-height:
|
|
288
|
-
font-weight:
|
|
332
|
+
font-size: var(--ptc-font-size-small);
|
|
333
|
+
line-height: var(--ptc-line-height-densest);
|
|
334
|
+
font-weight: var(--ptc-font-weight-regular);
|
|
335
|
+
color: var(--color-gray-10);
|
|
289
336
|
}
|
|
290
337
|
:host .vl-layout-wrap .vl-content-wrap .mobile-select.custom-select .select-dropdown li label::before {
|
|
291
338
|
content: "";
|
|
@@ -314,11 +361,11 @@
|
|
|
314
361
|
width: 7px;
|
|
315
362
|
}
|
|
316
363
|
:host .vl-layout-wrap .vl-content-wrap .mobile-select.custom-select .select-dropdown::-webkit-scrollbar-track {
|
|
317
|
-
background:
|
|
364
|
+
background: var(--color-white);
|
|
318
365
|
border-radius: 25px;
|
|
319
366
|
}
|
|
320
367
|
:host .vl-layout-wrap .vl-content-wrap .mobile-select.custom-select .select-dropdown::-webkit-scrollbar-thumb {
|
|
321
|
-
background:
|
|
368
|
+
background: var(--color-gray-02);
|
|
322
369
|
border-radius: 25px;
|
|
323
370
|
}
|
|
324
371
|
:host .vl-layout-wrap .vl-content-wrap .mobile-select.custom-select.active .arrow {
|
|
@@ -328,6 +375,9 @@
|
|
|
328
375
|
opacity: 1;
|
|
329
376
|
visibility: visible;
|
|
330
377
|
}
|
|
378
|
+
:host .vl-layout-wrap .vl-content-wrap .mobile-select.custom-select.scroll-top.active .select-button::after {
|
|
379
|
+
height: 16px;
|
|
380
|
+
}
|
|
331
381
|
:host .vl-layout-wrap .vl-content-wrap .mobile-select:focus-visible {
|
|
332
382
|
outline: none;
|
|
333
383
|
}
|
|
@@ -336,7 +386,7 @@
|
|
|
336
386
|
}
|
|
337
387
|
@media only screen and (min-width: 768px) {
|
|
338
388
|
:host .vl-layout-wrap .vl-content-wrap .vl-content-slot-wrap {
|
|
339
|
-
padding-top:
|
|
389
|
+
padding-top: var(--ptc-element-spacing-07);
|
|
340
390
|
}
|
|
341
391
|
}
|
|
342
392
|
@media only screen and (min-width: 992px) {
|
|
@@ -38,15 +38,59 @@ export class PtcValueLedLayout {
|
|
|
38
38
|
this.optionsList = this.hostElement.shadowRoot.querySelectorAll(".select-dropdown li");
|
|
39
39
|
this.selectBtn.addEventListener('click', this.handleSelectButtonClick.bind(this));
|
|
40
40
|
this.customSelectDropdown();
|
|
41
|
+
document.querySelectorAll('.video-embad-container-value-led-class').forEach(item => {
|
|
42
|
+
const ptcContainer = item.querySelector('.ptc-container');
|
|
43
|
+
if (ptcContainer) {
|
|
44
|
+
ptcContainer.classList.remove('ptc-container');
|
|
45
|
+
item.classList.add('u-paddingTop-flush');
|
|
46
|
+
}
|
|
47
|
+
});
|
|
41
48
|
}
|
|
42
|
-
|
|
49
|
+
// @Listen('scroll', { target: 'window' })
|
|
50
|
+
// handleScroll() {
|
|
51
|
+
// this.setActiveItem();
|
|
52
|
+
// }
|
|
53
|
+
handleWheel(event) {
|
|
54
|
+
console.log(event);
|
|
43
55
|
this.setActiveItem();
|
|
44
56
|
}
|
|
57
|
+
handleKeyDown(event) {
|
|
58
|
+
if (event.key === 'ArrowUp' ||
|
|
59
|
+
event.key === 'ArrowDown' ||
|
|
60
|
+
event.key === 'PageUp' ||
|
|
61
|
+
event.key === 'PageDown') {
|
|
62
|
+
this.setActiveItem();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
45
65
|
handleResize() {
|
|
46
66
|
this.isMobile = window.innerWidth < 992;
|
|
47
67
|
this.setActiveItem();
|
|
48
68
|
this.customSelectDropdown();
|
|
49
69
|
}
|
|
70
|
+
handleDropdownScroll() {
|
|
71
|
+
let dropdownWrap = this.hostElement.shadowRoot.querySelector('.custom-select');
|
|
72
|
+
if (dropdownWrap) {
|
|
73
|
+
let body = dropdownWrap.querySelector('.select-dropdown');
|
|
74
|
+
var height = body.clientHeight;
|
|
75
|
+
var scrollHeight = body.scrollHeight;
|
|
76
|
+
var scrollTop = body.scrollTop;
|
|
77
|
+
var offset = body.offsetHeight;
|
|
78
|
+
if (height < scrollHeight) { //has scrollbar
|
|
79
|
+
if (scrollTop > 0) { //can scroll up
|
|
80
|
+
dropdownWrap.classList.add('scroll-top');
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
dropdownWrap.classList.remove('scroll-top');
|
|
84
|
+
}
|
|
85
|
+
if (offset + scrollTop < scrollHeight) { //can scroll down
|
|
86
|
+
dropdownWrap.classList.add('scroll-bottom');
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
dropdownWrap.classList.remove('scroll-bottom');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
50
94
|
handleSelectButtonClick() {
|
|
51
95
|
this.customSelect.classList.toggle("active");
|
|
52
96
|
this.selectBtn.setAttribute("aria-expanded", this.selectBtn.getAttribute("aria-expanded") === "true" ? "false" : "true");
|
|
@@ -144,7 +188,7 @@ export class PtcValueLedLayout {
|
|
|
144
188
|
}
|
|
145
189
|
}
|
|
146
190
|
render() {
|
|
147
|
-
return (h(Host, null, h("div", { class: 'top-image', style: { backgroundImage: `url(${this.topBackgroundImage})` } }), h("div", { class: 'ptc-container' }, h("div", { class: "pdf-slot-wrapper" }, h("slot", { name: 'pdf-slot' })), h("div", { class: "vl-layout-wrap" }, (this.sidebarData.length > 0 && !this.isMobile) && (h("div", { class: 'vl-sidebar' }, h("div", { class: 'vl-list-wrap' }, h("ul", null, this.sidebarData.map((item) => (h("li", null, h("a", { href: "#" + item.ref }, h("ptc-tooltip", { "max-length": "70", description: item.title, "no-overflow": "true" }))))))))), h("span", { style: { display: 'none !important' } }), h("div", { class: 'vl-content-wrap' }, h("div", { class: "custom-select mobile-select" }, h("button", { class: "select-button", role: "combobox", "aria-labelledby": "select button", "aria-haspopup": "listbox", "aria-expanded": "false", "aria-controls": "select-dropdown" }, h("span", { class: "selected-value" }, "Select option"), h("span", { class: "arrow" })), h("ul", { class: "select-dropdown", role: "listbox", id: "select-dropdown" }, this.sidebarData.map((item, index) => (h("li", { role: "option", id: index }, h("input", { type: "radio", id: item.title, name: "vl-drop-list" }), h("label", { htmlFor: item.title }, h("i", { class: "bx bxl-github" }), item.title)))))), h("div", { class: 'vl-content-slot-wrap' }, h("slot", null)))))));
|
|
191
|
+
return (h(Host, null, h("div", { class: 'top-image', style: { backgroundImage: `url(${this.topBackgroundImage})` } }), h("div", { class: 'ptc-container' }, h("div", { class: "pdf-slot-wrapper" }, h("slot", { name: 'pdf-slot' })), h("div", { class: "vl-layout-wrap" }, (this.sidebarData.length > 0 && !this.isMobile) && (h("div", { class: 'vl-sidebar' }, h("div", { class: 'vl-list-wrap' }, h("ul", null, this.sidebarData.map((item, index) => (h("li", null, h("a", { href: "#" + item.ref, onClick: () => { this.updateActiveItem(index); } }, h("ptc-tooltip", { "max-length": "70", description: item.title, "no-overflow": "true" }))))))))), h("span", { style: { display: 'none !important' } }), h("div", { class: 'vl-content-wrap' }, h("div", { class: "custom-select mobile-select" }, h("button", { class: "select-button", role: "combobox", "aria-labelledby": "select button", "aria-haspopup": "listbox", "aria-expanded": "false", "aria-controls": "select-dropdown" }, h("span", { class: "selected-value" }, "Select option"), h("span", { class: "arrow" })), h("ul", { class: "select-dropdown", role: "listbox", id: "select-dropdown", onScroll: () => this.handleDropdownScroll() }, this.sidebarData.map((item, index) => (h("li", { role: "option", id: index }, h("input", { type: "radio", id: item.title, name: "vl-drop-list" }), h("label", { htmlFor: item.title }, h("i", { class: "bx bxl-github" }), item.title)))))), h("div", { class: 'vl-content-slot-wrap' }, h("slot", null)))))));
|
|
148
192
|
}
|
|
149
193
|
static get is() { return "ptc-value-led-layout"; }
|
|
150
194
|
static get encapsulation() { return "shadow"; }
|
|
@@ -204,11 +248,17 @@ export class PtcValueLedLayout {
|
|
|
204
248
|
static get elementRef() { return "hostElement"; }
|
|
205
249
|
static get listeners() {
|
|
206
250
|
return [{
|
|
207
|
-
"name": "
|
|
208
|
-
"method": "
|
|
251
|
+
"name": "wheel",
|
|
252
|
+
"method": "handleWheel",
|
|
209
253
|
"target": "window",
|
|
210
254
|
"capture": false,
|
|
211
255
|
"passive": true
|
|
256
|
+
}, {
|
|
257
|
+
"name": "keydown",
|
|
258
|
+
"method": "handleKeyDown",
|
|
259
|
+
"target": "window",
|
|
260
|
+
"capture": false,
|
|
261
|
+
"passive": false
|
|
212
262
|
}, {
|
|
213
263
|
"name": "resize",
|
|
214
264
|
"method": "handleResize",
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: block;
|
|
3
|
-
margin-bottom:
|
|
3
|
+
margin-bottom: var(--ptc-element-spacing-07);
|
|
4
|
+
}
|
|
5
|
+
@media only screen and (min-width: 1440px) {
|
|
6
|
+
:host {
|
|
7
|
+
margin-bottom: var(--ptc-element-spacing-09);
|
|
8
|
+
}
|
|
4
9
|
}
|
|
5
10
|
:host .sb-card {
|
|
6
11
|
display: block;
|
|
7
|
-
border-radius:
|
|
12
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
8
13
|
background: var(--color-white);
|
|
9
14
|
box-shadow: var(--ptc-shadow-x-small);
|
|
10
15
|
text-decoration: none;
|
|
@@ -18,30 +23,37 @@
|
|
|
18
23
|
width: 100%;
|
|
19
24
|
max-height: 120px;
|
|
20
25
|
overflow: hidden;
|
|
26
|
+
border-top-left-radius: var(--ptc-border-radius-standard);
|
|
27
|
+
border-top-right-radius: var(--ptc-border-radius-standard);
|
|
21
28
|
}
|
|
22
29
|
@media only screen and (min-width: 480px) {
|
|
23
30
|
:host .sb-card .img-wrap {
|
|
24
31
|
max-width: 120px;
|
|
25
32
|
max-height: initial;
|
|
33
|
+
border-top-left-radius: var(--ptc-border-radius-standard);
|
|
34
|
+
border-top-right-radius: 0px;
|
|
35
|
+
border-bottom-left-radius: var(--ptc-border-radius-standard);
|
|
26
36
|
}
|
|
27
37
|
}
|
|
28
38
|
:host .sb-card .img-wrap ptc-picture {
|
|
29
39
|
height: 100%;
|
|
40
|
+
min-height: 95px;
|
|
30
41
|
}
|
|
31
42
|
:host .sb-card .card-content-wrap {
|
|
32
43
|
display: flex;
|
|
33
44
|
justify-content: space-between;
|
|
34
45
|
align-items: center;
|
|
35
46
|
width: 100%;
|
|
36
|
-
padding:
|
|
47
|
+
padding: var(--ptc-element-spacing-04);
|
|
37
48
|
box-sizing: border-box;
|
|
38
49
|
}
|
|
39
50
|
@media only screen and (min-width: 768px) {
|
|
40
51
|
:host .sb-card .card-content-wrap .card-content {
|
|
41
|
-
padding-right:
|
|
52
|
+
padding-right: var(--ptc-element-spacing-06);
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
|
-
:host .sb-card .card-content-wrap h4,
|
|
55
|
+
:host .sb-card .card-content-wrap h4,
|
|
56
|
+
:host .sb-card .card-content-wrap p {
|
|
45
57
|
color: var(--color-gray-10);
|
|
46
58
|
font-size: var(--ptc-font-size-xx-small);
|
|
47
59
|
font-weight: var(--ptc-font-weight-bold);
|
|
@@ -51,7 +63,7 @@
|
|
|
51
63
|
}
|
|
52
64
|
:host .sb-card .card-content-wrap p {
|
|
53
65
|
margin: 0;
|
|
54
|
-
font-weight: var(--ptc-font-weight-
|
|
66
|
+
font-weight: var(--ptc-font-weight-medium);
|
|
55
67
|
}
|
|
56
68
|
:host .sb-card .card-content-wrap .cta-slot {
|
|
57
69
|
display: none;
|
|
@@ -16,7 +16,7 @@ export class PtcValueLedSpeedBump {
|
|
|
16
16
|
render() {
|
|
17
17
|
const Tag = !!this.isMobile ? 'a' : 'div';
|
|
18
18
|
return (h(Host, null, h(Tag, { class: "sb-card", href: this.ctaLink, target: this.ctaTarget }, this.cardImage &&
|
|
19
|
-
h("div", { class: 'img-wrap' }, h("ptc-picture", { alt: "image", "
|
|
19
|
+
h("div", { class: 'img-wrap' }, h("ptc-picture", { alt: "image", "display-image": "block", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: this.cardImage, styles: "img{ min-height: 95px}" })), h("div", { class: 'card-content-wrap' }, h("div", { class: 'card-content' }, h("h4", null, this.cardTitle), h("p", null, h("slot", null))), h("div", { class: 'cta-slot' }, h("slot", { name: 'cta-slot' }))))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "ptc-value-led-speed-bump"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|