@ptcwebops/ptcw-design 0.6.6 → 0.6.8
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/icon-asset_13.cjs.entry.js +42 -13
- package/dist/cjs/list-item.cjs.entry.js +0 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/{ptc-card-content_2.cjs.entry.js → ptc-card-content.cjs.entry.js} +2 -176
- package/dist/cjs/ptc-card.cjs.entry.js +3 -2
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +186 -42
- package/dist/cjs/ptc-pagenation.cjs.entry.js +1 -1
- package/dist/cjs/ptc-picture.cjs.entry.js +180 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/tab-header.cjs.entry.js +1 -1
- package/dist/cjs/{utils-dc2c222f.js → utils-2ac2a528.js} +16 -0
- package/dist/collection/components/icon-asset/icon-asset.css +25 -0
- package/dist/collection/components/icon-asset/icon-asset.js +4 -4
- package/dist/collection/components/icon-asset/media/designer.svg +7 -4
- package/dist/collection/components/list-item/list-item.js +0 -1
- package/dist/collection/components/ptc-card/ptc-card.css +424 -26
- package/dist/collection/components/ptc-card/ptc-card.js +45 -4
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +2 -2
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +1 -1
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.css +130 -57
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +316 -47
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +1 -0
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +15 -0
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +45 -10
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +1 -1
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +2 -2
- package/dist/collection/components/tab-header/tab-header.js +1 -2
- package/dist/collection/utils/utils.js +16 -0
- package/dist/custom-elements/index.js +253 -66
- package/dist/esm/icon-asset_13.entry.js +42 -13
- package/dist/esm/{interfaces-c1c73092.js → interfaces-3cb94654.js} +1 -1
- package/dist/esm/list-item.entry.js +0 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/{ptc-card-content_2.entry.js → ptc-card-content.entry.js} +3 -176
- package/dist/esm/ptc-card.entry.js +3 -2
- package/dist/esm/ptc-collapse-list.entry.js +186 -42
- package/dist/esm/ptc-img.entry.js +1 -1
- package/dist/esm/ptc-pagenation.entry.js +1 -1
- package/dist/esm/ptc-picture.entry.js +176 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/esm/{utils-334d53bc.js → utils-2dbb41dc.js} +16 -1
- package/dist/ptcw-design/media/designer.svg +7 -4
- package/dist/ptcw-design/{p-50e52c88.js → p-240733ce.js} +1 -1
- package/dist/ptcw-design/{p-57f553f0.entry.js → p-3f2c3e47.entry.js} +1 -1
- package/dist/ptcw-design/{p-b2527cde.entry.js → p-3f65b998.entry.js} +1 -1
- package/dist/ptcw-design/p-5e98555a.js +1 -0
- package/dist/ptcw-design/p-70693e51.entry.js +1 -0
- package/dist/ptcw-design/p-7274d38e.entry.js +1 -0
- package/dist/ptcw-design/p-848f34bb.entry.js +1 -0
- package/dist/ptcw-design/p-a2ca6ff1.entry.js +1 -0
- package/dist/ptcw-design/{p-cc5e59ce.entry.js → p-b30ba340.entry.js} +1 -1
- package/dist/ptcw-design/p-c9ba3915.entry.js +1 -0
- package/dist/ptcw-design/{p-dac5d058.entry.js → p-e7e07b91.entry.js} +1 -1
- package/dist/ptcw-design/p-f2d7ecd0.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/icon-asset/icon-asset.d.ts +2 -2
- package/dist/types/components/ptc-card/ptc-card.d.ts +9 -1
- package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +19 -2
- package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +7 -1
- package/dist/types/components.d.ts +34 -15
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-0b1a9208.entry.js +0 -1
- package/dist/ptcw-design/p-2bec91cd.entry.js +0 -1
- package/dist/ptcw-design/p-2e496d31.js +0 -1
- package/dist/ptcw-design/p-4a653f7f.entry.js +0 -1
- package/dist/ptcw-design/p-8466b65b.entry.js +0 -1
- package/dist/ptcw-design/p-90266709.entry.js +0 -1
|
@@ -43,9 +43,16 @@ export class PtcCard {
|
|
|
43
43
|
h("div", { class: "card-border", part: "border-wrapper" },
|
|
44
44
|
h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.ribbonText ? { rel: this.ribbonText } : {})),
|
|
45
45
|
this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? h("slot", { name: this.getMediaSlot() }) : null)) : null,
|
|
46
|
-
!!this.ribbonText && this.cardType == '
|
|
46
|
+
!!this.ribbonText && this.cardType == 'resource-center-card' ? h("div", { class: "ribbon-text" }, `${this.ribbonText}`) : null,
|
|
47
47
|
h("div", { class: "card-body", part: "body-wrapper" },
|
|
48
|
-
!!this.cardDate && (this.cardType === 'listing-card' || this.cardType === 'listing-card-horizontal') ?
|
|
48
|
+
!!this.cardDate && (this.cardType === 'listing-card' || this.cardType === 'listing-card-horizontal') ?
|
|
49
|
+
h("div", { class: "card-date-text" },
|
|
50
|
+
h("ptc-date", { "date-string": `${this.cardDate}` }),
|
|
51
|
+
!!this.eventType ? h("p", null,
|
|
52
|
+
"\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A0",
|
|
53
|
+
this.eventType) : null) : null,
|
|
54
|
+
this.cardType === 'case-studies-card' ? Object.assign({}, !!this.cardLogo ? h("div", { class: "card-logo-container" },
|
|
55
|
+
h("ptc-picture", { alt: "", "object-fit": "cover", "max-width": "280", src: this.cardLogo, height: "40" })) : h("div", { class: "card-logo-none" })) : null,
|
|
49
56
|
h("slot", { name: "slot-before-heading" }),
|
|
50
57
|
!!this.heading
|
|
51
58
|
? [
|
|
@@ -89,8 +96,8 @@ export class PtcCard {
|
|
|
89
96
|
"type": "string",
|
|
90
97
|
"mutable": false,
|
|
91
98
|
"complexType": {
|
|
92
|
-
"original": "'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card' | 'listing-card' | 'horizontal-card' | 'listing-card-horizontal'",
|
|
93
|
-
"resolved": "\"clip-edge-card\" | \"custom-card\" | \"hightlight-card\" | \"horizontal-card\" | \"listing-card\" | \"listing-card-horizontal\" | \"lottie-card\" | \"simple-card\"",
|
|
99
|
+
"original": "'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card' | 'listing-card' | 'horizontal-card' | 'listing-card-horizontal' | 'resource-center-card' | 'case-studies-card'",
|
|
100
|
+
"resolved": "\"case-studies-card\" | \"clip-edge-card\" | \"custom-card\" | \"hightlight-card\" | \"horizontal-card\" | \"listing-card\" | \"listing-card-horizontal\" | \"lottie-card\" | \"resource-center-card\" | \"simple-card\"",
|
|
94
101
|
"references": {}
|
|
95
102
|
},
|
|
96
103
|
"required": false,
|
|
@@ -296,6 +303,40 @@ export class PtcCard {
|
|
|
296
303
|
},
|
|
297
304
|
"attribute": "ribbon-text",
|
|
298
305
|
"reflect": false
|
|
306
|
+
},
|
|
307
|
+
"eventType": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "string",
|
|
312
|
+
"resolved": "string",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": true,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": "Event Type"
|
|
320
|
+
},
|
|
321
|
+
"attribute": "event-type",
|
|
322
|
+
"reflect": false
|
|
323
|
+
},
|
|
324
|
+
"cardLogo": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"mutable": false,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "string",
|
|
329
|
+
"resolved": "string",
|
|
330
|
+
"references": {}
|
|
331
|
+
},
|
|
332
|
+
"required": false,
|
|
333
|
+
"optional": true,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [],
|
|
336
|
+
"text": "Card Logo"
|
|
337
|
+
},
|
|
338
|
+
"attribute": "card-logo",
|
|
339
|
+
"reflect": false
|
|
299
340
|
}
|
|
300
341
|
}; }
|
|
301
342
|
}
|
|
@@ -4,7 +4,7 @@ export class PtcCardContent {
|
|
|
4
4
|
if (!this.el.classList.contains('speed-bump') && !this.el.classList.contains('card-video-intro') && !this.el.classList.contains('card-dynamic')) {
|
|
5
5
|
this.hoverEvent.emit();
|
|
6
6
|
this.el.classList.add('mouse-hover');
|
|
7
|
-
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist')) {
|
|
7
|
+
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && this.el.nextElementSibling) {
|
|
8
8
|
this.el.nextElementSibling.classList.add('mouse-hover-card-bottom');
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -13,7 +13,7 @@ export class PtcCardContent {
|
|
|
13
13
|
if (!this.el.classList.contains('speed-bump') && !this.el.classList.contains('card-video-intro') && !this.el.classList.contains('card-dynamic')) {
|
|
14
14
|
this.hoverEvent.emit();
|
|
15
15
|
this.el.classList.remove('mouse-hover');
|
|
16
|
-
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist')) {
|
|
16
|
+
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && this.el.nextElementSibling) {
|
|
17
17
|
this.el.nextElementSibling.classList.remove('mouse-hover-card-bottom');
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -30,7 +30,7 @@ export class PtcCheckbox {
|
|
|
30
30
|
h("input", { type: "checkbox", checked: this.checked == "checked", name: this.inputName, value: this.value, onChange: (e) => this.handleClick(e) }),
|
|
31
31
|
h("span", { class: "check" },
|
|
32
32
|
h("span", { class: "mark" },
|
|
33
|
-
h("icon-asset", { type: "ptc", size: "xx-small", name: "checkmark" }))))));
|
|
33
|
+
h("icon-asset", { type: "ptc", color: "white", size: "xx-small", name: "checkmark" }))))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "ptc-checkbox"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: block;
|
|
3
|
+
height: 100%;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.container {
|
|
6
7
|
border-right: 1px solid rgba(112, 112, 112, 0.25);
|
|
7
8
|
position: relative;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
.container > ul {
|
|
12
|
+
overflow: visible;
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
a {
|
|
@@ -19,40 +24,70 @@ ul {
|
|
|
19
24
|
margin: 0;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
|
-
|
|
27
|
+
li {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.level-1 > ul {
|
|
32
|
+
max-height: 0;
|
|
33
|
+
}
|
|
34
|
+
.level-1 > ul > li {
|
|
35
|
+
margin: 12px 0;
|
|
36
|
+
}
|
|
37
|
+
.level-1 > ul > li:first-child {
|
|
38
|
+
margin-top: 20px;
|
|
39
|
+
}
|
|
40
|
+
.level-1 > ul > li:last-child {
|
|
41
|
+
margin-bottom: 10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.level-2 > ul, .level-3 > ul, .level-4 > ul, .level-5 > ul {
|
|
23
45
|
max-height: 0;
|
|
24
46
|
}
|
|
47
|
+
.level-2 > ul > li, .level-3 > ul > li, .level-4 > ul > li, .level-5 > ul > li {
|
|
48
|
+
margin: 8px 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.level-2 > ul {
|
|
52
|
+
padding-left: 2.25rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.level-3 > ul {
|
|
56
|
+
padding-left: 3rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.level-4 > ul {
|
|
60
|
+
padding-left: 3.75rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.level-5 > ul {
|
|
64
|
+
padding-left: 4.5rem;
|
|
65
|
+
}
|
|
25
66
|
|
|
26
67
|
.level-1 {
|
|
27
68
|
position: relative;
|
|
28
|
-
padding: 17px 20px 17px 0;
|
|
29
|
-
border-bottom: 1px solid rgba(112, 112, 112, 0.25);
|
|
30
69
|
}
|
|
31
70
|
.level-1 > a {
|
|
71
|
+
position: relative;
|
|
72
|
+
padding: 16px 20px 17.5px 0;
|
|
73
|
+
display: block;
|
|
32
74
|
font-size: 18px;
|
|
33
75
|
letter-spacing: 0.45px;
|
|
34
76
|
font-weight: 800;
|
|
35
|
-
color:
|
|
77
|
+
color: var(--color-gray-08);
|
|
36
78
|
text-decoration: none;
|
|
79
|
+
border-bottom: 1px solid rgba(112, 112, 112, 0.25);
|
|
37
80
|
}
|
|
38
81
|
.level-1 > a:hover, .level-1 > a:active, .level-1 > a:focus {
|
|
39
82
|
text-decoration: none;
|
|
40
83
|
}
|
|
41
|
-
.level-1 > icon-asset {
|
|
42
|
-
transition: transform ease-out
|
|
84
|
+
.level-1 > a > icon-asset {
|
|
85
|
+
transition: transform var(--ptc-ease-out) var(--ptc-transition-medium), padding var(--ptc-ease-out) var(--ptc-transition-medium);
|
|
43
86
|
position: absolute;
|
|
44
|
-
right:
|
|
87
|
+
right: 20px;
|
|
88
|
+
padding-top: 2px;
|
|
45
89
|
}
|
|
46
|
-
.level-1 >
|
|
47
|
-
padding-top: 0;
|
|
48
|
-
}
|
|
49
|
-
.level-1.expanded > icon-asset {
|
|
50
|
-
transform: rotate(-180deg);
|
|
51
|
-
}
|
|
52
|
-
.level-1.expanded > ul {
|
|
53
|
-
padding-top: 14px;
|
|
54
|
-
}
|
|
55
|
-
.level-1:after {
|
|
90
|
+
.level-1 > a:after {
|
|
56
91
|
content: "";
|
|
57
92
|
display: block;
|
|
58
93
|
position: absolute;
|
|
@@ -60,62 +95,100 @@ ul {
|
|
|
60
95
|
left: 0;
|
|
61
96
|
height: 3px;
|
|
62
97
|
width: 40px;
|
|
63
|
-
background-color:
|
|
98
|
+
background-color: var(--color-green-07);
|
|
99
|
+
transition: background-color var(--ptc-ease-out) var(--ptc-transition-medium);
|
|
100
|
+
}
|
|
101
|
+
.level-1.expanded a > icon-asset {
|
|
102
|
+
transform: rotate(-180deg);
|
|
103
|
+
padding-top: 0;
|
|
104
|
+
}
|
|
105
|
+
.level-1.expanded a > ul {
|
|
106
|
+
padding-top: 14px;
|
|
107
|
+
}
|
|
108
|
+
.level-1.expanded a:after {
|
|
109
|
+
background-color: var(--color-gray-11);
|
|
110
|
+
}
|
|
111
|
+
.level-1 > ul {
|
|
112
|
+
padding-top: 0;
|
|
113
|
+
}
|
|
114
|
+
.level-1:first-child > a {
|
|
115
|
+
padding-top: 20px;
|
|
64
116
|
}
|
|
65
117
|
|
|
66
|
-
.level-2 {
|
|
67
|
-
|
|
118
|
+
.level-2, .level-3, .level-4, .level-5 {
|
|
119
|
+
position: relative;
|
|
68
120
|
}
|
|
69
|
-
.level-2 > a {
|
|
121
|
+
.level-2 > a, .level-3 > a, .level-4 > a, .level-5 > a {
|
|
70
122
|
font-size: 15px;
|
|
71
123
|
font-weight: 500;
|
|
72
124
|
letter-spacing: 0.4px;
|
|
73
|
-
color:
|
|
125
|
+
color: var(--color-gray-10);
|
|
74
126
|
text-decoration: none;
|
|
127
|
+
display: inline-block;
|
|
128
|
+
margin-left: 20px;
|
|
75
129
|
}
|
|
76
|
-
.level-2 > a:hover, .level-2 > a:active, .level-
|
|
130
|
+
.level-2 > a:hover, .level-2 > a:active, .level-3 > a:hover, .level-3 > a:active, .level-4 > a:hover, .level-4 > a:active, .level-5 > a:hover, .level-5 > a:active {
|
|
77
131
|
font-weight: 800;
|
|
78
|
-
color:
|
|
132
|
+
color: var(--color-green-07);
|
|
79
133
|
text-decoration: none;
|
|
80
134
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
font-weight: 500;
|
|
86
|
-
color: var(--color-gray-07);
|
|
87
|
-
box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.16);
|
|
88
|
-
border: solid 1px var(--color-gray-07);
|
|
89
|
-
background-color: #ffffff;
|
|
90
|
-
}
|
|
91
|
-
input[type=text]::-ms-clear {
|
|
92
|
-
display: none;
|
|
135
|
+
.level-2 .expander-icon, .level-3 .expander-icon, .level-4 .expander-icon, .level-5 .expander-icon {
|
|
136
|
+
position: absolute;
|
|
137
|
+
left: -18px;
|
|
138
|
+
top: 2px;
|
|
93
139
|
}
|
|
94
|
-
|
|
95
|
-
|
|
140
|
+
|
|
141
|
+
.level-3:before, .level-4:before, .level-5:before {
|
|
142
|
+
position: absolute;
|
|
143
|
+
content: "";
|
|
144
|
+
width: 2rem;
|
|
145
|
+
height: 1px;
|
|
146
|
+
display: block;
|
|
147
|
+
left: 0;
|
|
148
|
+
top: 9px;
|
|
149
|
+
background-color: var(--color-gray-02);
|
|
96
150
|
}
|
|
97
|
-
|
|
98
|
-
|
|
151
|
+
|
|
152
|
+
.level-3:before {
|
|
153
|
+
width: 2rem;
|
|
154
|
+
left: -2.25rem;
|
|
99
155
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
156
|
+
|
|
157
|
+
.level-4:before {
|
|
158
|
+
width: 2.75rem;
|
|
159
|
+
left: -3rem;
|
|
104
160
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
161
|
+
|
|
162
|
+
.level-5:before {
|
|
163
|
+
width: 3.5rem;
|
|
164
|
+
left: -3.75rem;
|
|
109
165
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
166
|
+
|
|
167
|
+
.search-box {
|
|
168
|
+
display: flex;
|
|
169
|
+
width: 100%;
|
|
170
|
+
}
|
|
171
|
+
.search-box input[type=text] {
|
|
172
|
+
font-family: var(--ptc-font-latin);
|
|
173
|
+
padding: 8px 45px 8px 18px;
|
|
174
|
+
font-size: 1rem;
|
|
175
|
+
font-weight: 400;
|
|
176
|
+
color: var(--color-gray-12);
|
|
177
|
+
box-shadow: var(--ptc-shadow-x-small);
|
|
178
|
+
border: solid 1px var(--color-gray-06);
|
|
179
|
+
transition: border var(--ptc-transition-medium) var(--ptc-ease-out), box-shadow var(--ptc-transition-medium) var(--ptc-ease-out);
|
|
180
|
+
background-color: var(--color-white);
|
|
181
|
+
width: 100%;
|
|
182
|
+
margin-right: 2rem;
|
|
183
|
+
}
|
|
184
|
+
.search-box input[type=text]::-ms-clear {
|
|
185
|
+
display: none;
|
|
113
186
|
}
|
|
114
|
-
input[type=text]
|
|
115
|
-
|
|
116
|
-
|
|
187
|
+
.search-box input[type=text]:focus {
|
|
188
|
+
outline: none;
|
|
189
|
+
box-shadow: var(--ptc-shadow-small);
|
|
190
|
+
border: solid 1px var(--color-gray-12);
|
|
117
191
|
}
|
|
118
|
-
input[type=text]
|
|
119
|
-
|
|
120
|
-
color: var(--color-gray-02);
|
|
192
|
+
.search-box input[type=text]::placeholder {
|
|
193
|
+
color: var(--color-gray-07);
|
|
121
194
|
}
|