@ptcwebops/ptcw-design 6.1.38 → 6.1.40
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/blog-detail-content_2.cjs.entry.js +1 -1
- package/dist/cjs/blog-detail-layout.cjs.entry.js +1 -1
- package/dist/cjs/{core-d64db970.js → core-58fa1795.js} +1 -0
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +114 -0
- package/dist/cjs/featured-events-slider-example.cjs.entry.js +443 -0
- package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pagination-468c8158.js → pagination-96df6fcc.js} +1 -1
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +3 -2
- package/dist/cjs/ptc-card_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +2 -2
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +5 -2
- package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +9 -2
- package/dist/cjs/ptc-filter-tag_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +76 -185
- package/dist/cjs/ptc-icon-component.cjs.entry.js +4 -349
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/scrollbar-18e63a0e.js +352 -0
- package/dist/cjs/sequential-bundle-example.cjs.entry.js +1 -1
- package/dist/cjs/sequential-bundle.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/icon-asset/icon-asset.css +2 -2
- package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.css +1 -1
- package/dist/collection/components/organism-bundles/blog-detail-layout/blog-detail-layout.css +1 -1
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +198 -0
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +143 -0
- package/dist/collection/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.css +1189 -0
- package/dist/collection/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.js +53 -0
- package/dist/collection/components/ptc-card/ptc-card.css +1 -1
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +10 -2
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +20 -1
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +31 -0
- package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.css +7 -7
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +2 -2
- package/dist/collection/components/ptc-link/ptc-link.css +0 -1
- package/dist/collection/components/ptc-modal/ptc-modal.js +5 -2
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +1 -1
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +2 -2
- package/dist/collection/components/ptc-social-share/ptc-social-share.css +8 -0
- package/dist/collection/components/ptc-social-share/ptc-social-share.js +20 -1
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +34 -51
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +1032 -584
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/{core-ebde74a2.js → core-9dcd68aa.js} +1 -1
- package/dist/esm/event-jumbotron-example.entry.js +110 -0
- package/dist/esm/featured-events-slider-example.entry.js +439 -0
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pagination-726fafd1.js → pagination-191217c1.js} +1 -1
- package/dist/esm/ptc-card-bottom_2.entry.js +3 -2
- package/dist/esm/ptc-card_2.entry.js +1 -1
- package/dist/esm/ptc-case-studies-slider.entry.js +2 -2
- package/dist/esm/ptc-close-icon_2.entry.js +5 -2
- package/dist/esm/ptc-filter-dropdown_4.entry.js +9 -2
- package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_2.entry.js +76 -185
- package/dist/esm/ptc-icon-component.entry.js +3 -348
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/scrollbar-b41be07f.js +350 -0
- package/dist/esm/sequential-bundle-example.entry.js +1 -1
- package/dist/esm/sequential-bundle.entry.js +1 -1
- package/dist/ptcw-design/{p-4fc9c83b.entry.js → p-05af3532.entry.js} +1 -1
- package/dist/ptcw-design/p-1deae4d9.entry.js +1 -0
- package/dist/ptcw-design/p-282b7d4e.entry.js +1 -0
- package/dist/ptcw-design/{p-b41dd762.entry.js → p-4036055e.entry.js} +1 -1
- package/dist/ptcw-design/{p-6914b70c.js → p-5292a000.js} +1 -1
- package/dist/ptcw-design/p-58a33388.entry.js +68 -0
- package/dist/ptcw-design/p-5d885144.entry.js +1 -0
- package/dist/ptcw-design/p-5db6308b.entry.js +1 -0
- package/dist/ptcw-design/p-7c865c34.entry.js +1 -0
- package/dist/ptcw-design/{p-65f19054.entry.js → p-84ec4bf1.entry.js} +1 -1
- package/dist/ptcw-design/{p-70c2573c.entry.js → p-850e9105.entry.js} +1 -1
- package/dist/ptcw-design/p-85c29073.entry.js +1 -0
- package/dist/ptcw-design/p-88cffbf9.entry.js +1 -0
- package/dist/ptcw-design/{p-f2529847.entry.js → p-a3a04f4e.entry.js} +1 -1
- package/dist/ptcw-design/{p-56a4c6d4.entry.js → p-a4798ed2.entry.js} +1 -1
- package/dist/ptcw-design/{p-c7f77978.entry.js → p-cae1202f.entry.js} +1 -1
- package/dist/ptcw-design/{p-00c7d87e.entry.js → p-d20cf3c5.entry.js} +1 -1
- package/dist/ptcw-design/p-d9c54a1d.js +1 -0
- package/dist/ptcw-design/{p-5b21bdc1.entry.js → p-dc8c0a06.entry.js} +1 -1
- package/dist/ptcw-design/{p-8f6af405.js → p-f5dfa530.js} +1 -1
- package/dist/ptcw-design/{p-3b69e2f2.entry.js → p-fcad5568.entry.js} +1 -1
- package/dist/ptcw-design/{p-818cac3a.entry.js → p-ff7baaf2.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.d.ts +28 -0
- package/dist/types/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.d.ts +10 -0
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +4 -0
- package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +1 -0
- package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +4 -0
- package/dist/types/components.d.ts +45 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-022bf022.entry.js +0 -1
- package/dist/ptcw-design/p-282d3fcd.entry.js +0 -68
- package/dist/ptcw-design/p-68cf7811.entry.js +0 -1
- package/dist/ptcw-design/p-6ccce058.entry.js +0 -1
- package/dist/ptcw-design/p-92889d11.entry.js +0 -1
- package/dist/ptcw-design/p-aea88da0.entry.js +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
import Swiper, { Navigation, Pagination, Scrollbar, Mousewheel } from 'swiper';
|
|
3
|
+
export class FeaturedEventsSliderExample {
|
|
4
|
+
componentDidLoad() {
|
|
5
|
+
// setTimeout(() => {
|
|
6
|
+
let list = this.el.querySelector('.fe-slider');
|
|
7
|
+
this.listSwp = new Swiper(list, {
|
|
8
|
+
// Customize options here
|
|
9
|
+
modules: [Navigation, Pagination, Scrollbar, Mousewheel],
|
|
10
|
+
slidesPerView: "auto",
|
|
11
|
+
spaceBetween: 24,
|
|
12
|
+
centeredSlides: true,
|
|
13
|
+
centeredSlidesBounds: true,
|
|
14
|
+
initialSlide: 1,
|
|
15
|
+
centerInsufficientSlides: true,
|
|
16
|
+
freeMode: true,
|
|
17
|
+
scrollbar: {
|
|
18
|
+
el: this.swiperPaginationRef,
|
|
19
|
+
draggable: true,
|
|
20
|
+
},
|
|
21
|
+
navigation: {
|
|
22
|
+
nextEl: this.swiperButtonNextRef,
|
|
23
|
+
prevEl: this.swiperButtonPrevRef,
|
|
24
|
+
},
|
|
25
|
+
mousewheel: {
|
|
26
|
+
forceToAxis: true,
|
|
27
|
+
sensitivity: 100,
|
|
28
|
+
},
|
|
29
|
+
breakpoints: {
|
|
30
|
+
// when window width is >= 991px
|
|
31
|
+
991: {
|
|
32
|
+
spaceBetween: 32
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
// }, 100);
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return (h(Host, null, h("div", { class: "fe-slider" }, h("div", { class: "swiper-wrapper" }, h("slot", null)), h("div", { class: "swiper-scrollbar", ref: el => this.swiperPaginationRef = el }), h("div", { class: "swiper-button-next", ref: el => this.swiperButtonNextRef = el }, h("svg", { width: "14", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.75 17.25L8 10L0.75 2.75L3.375 0.125L13.25 10L3.375 19.875L0.75 17.25Z", fill: "#323B42" }))), h("div", { class: "swiper-button-prev", ref: el => this.swiperButtonPrevRef = el }, h("svg", { width: "14", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M13.25 2.75L6 10L13.25 17.25L10.625 19.875L0.749999 10L10.625 0.125L13.25 2.75Z", fill: "#323B42" }))))));
|
|
40
|
+
}
|
|
41
|
+
static get is() { return "featured-events-slider-example"; }
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["featured-events-slider-example.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["featured-events-slider-example.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get elementRef() { return "el"; }
|
|
53
|
+
}
|
|
@@ -200,7 +200,7 @@ ptc-link, ptc-square-card,
|
|
|
200
200
|
border-radius: var(--ptc-border-radius-standard);
|
|
201
201
|
}
|
|
202
202
|
:host(.clip-edge-card) .card-body {
|
|
203
|
-
transform: translateY(calc(-1 * var(--ptc-element-spacing-04)));
|
|
203
|
+
transform: translateY(calc((-1) * var(--ptc-element-spacing-04)));
|
|
204
204
|
overflow: hidden;
|
|
205
205
|
width: calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-04));
|
|
206
206
|
font-size: var(--ptc-font-size-xx-small);
|
|
@@ -98,7 +98,9 @@ ptc-link, ptc-square-card,
|
|
|
98
98
|
|
|
99
99
|
:host(.card-tall) a:focus-visible::before,
|
|
100
100
|
:host(.card-wide) a:focus-visible::before,
|
|
101
|
-
:host(.card-video) a:focus-visible::before
|
|
101
|
+
:host(.card-video) a:focus-visible::before,
|
|
102
|
+
:host(.card-playlist) a:focus-visible::before,
|
|
103
|
+
:host(.card-2up) a:focus-visible::before {
|
|
102
104
|
content: "";
|
|
103
105
|
position: absolute;
|
|
104
106
|
top: 0;
|
|
@@ -107,9 +109,15 @@ ptc-link, ptc-square-card,
|
|
|
107
109
|
height: 100%;
|
|
108
110
|
z-index: 2;
|
|
109
111
|
border-radius: var(--ptc-border-radius-large);
|
|
110
|
-
border: 2px solid white;
|
|
111
112
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
112
113
|
}
|
|
114
|
+
:host(.card-tall) a.focus-state-dark-background:focus-visible::before,
|
|
115
|
+
:host(.card-wide) a.focus-state-dark-background:focus-visible::before,
|
|
116
|
+
:host(.card-video) a.focus-state-dark-background:focus-visible::before,
|
|
117
|
+
:host(.card-playlist) a.focus-state-dark-background:focus-visible::before,
|
|
118
|
+
:host(.card-2up) a.focus-state-dark-background:focus-visible::before {
|
|
119
|
+
border: 2px solid white;
|
|
120
|
+
}
|
|
113
121
|
|
|
114
122
|
:host(.card-playlist) div:not(.tracker-div),
|
|
115
123
|
:host(.card-playlist) a {
|
|
@@ -8,6 +8,7 @@ export class PtcCardPlm {
|
|
|
8
8
|
this.isLoading = false;
|
|
9
9
|
this.trackerId = undefined;
|
|
10
10
|
this.styles = undefined;
|
|
11
|
+
this.darkFocusState = false;
|
|
11
12
|
}
|
|
12
13
|
handleResize() {
|
|
13
14
|
this.checkScreenSize();
|
|
@@ -42,7 +43,7 @@ export class PtcCardPlm {
|
|
|
42
43
|
render() {
|
|
43
44
|
const classMap = this.getCssClassMap();
|
|
44
45
|
const Tag = !!this.cardLink ? 'a' : 'div';
|
|
45
|
-
return (h(Host, Object.assign({ class: classMap }, (!this.isLoading ? { onMouseEnter: this.hoverEventHandler.bind(this) } : {}), (!this.isLoading ? { onMouseLeave: this.leaveEventHandler.bind(this) } : {})), this.styles && h("style", null, this.styles), h("div", { class: "tracker-div mf-listen", id: this.trackerId }, h(Tag, Object.assign({ class:
|
|
46
|
+
return (h(Host, Object.assign({ class: classMap }, (!this.isLoading ? { onMouseEnter: this.hoverEventHandler.bind(this) } : {}), (!this.isLoading ? { onMouseLeave: this.leaveEventHandler.bind(this) } : {})), this.styles && h("style", null, this.styles), h("div", { class: "tracker-div mf-listen", id: this.trackerId }, h(Tag, Object.assign({ class: `mf-listen ${this.darkFocusState ? "focus-state-dark-background" : ""}` }, (!!this.cardLink && this.cardType !== "simple-card" ? { tabindex: '0' } : { tabindex: '-1' }), (!!this.cardLink && !this.isLoading ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink && !this.isLoading ? { target: this.linkTarget } : {}), (!!this.cardLink && !this.isLoading ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), h("slot", null)))));
|
|
46
47
|
}
|
|
47
48
|
getCssClassMap() {
|
|
48
49
|
return {
|
|
@@ -207,6 +208,24 @@ export class PtcCardPlm {
|
|
|
207
208
|
},
|
|
208
209
|
"attribute": "styles",
|
|
209
210
|
"reflect": false
|
|
211
|
+
},
|
|
212
|
+
"darkFocusState": {
|
|
213
|
+
"type": "boolean",
|
|
214
|
+
"mutable": false,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "boolean",
|
|
217
|
+
"resolved": "boolean",
|
|
218
|
+
"references": {}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": "darkFocusState for dark background"
|
|
225
|
+
},
|
|
226
|
+
"attribute": "dark-focus-state",
|
|
227
|
+
"reflect": false,
|
|
228
|
+
"defaultValue": "false"
|
|
210
229
|
}
|
|
211
230
|
};
|
|
212
231
|
}
|
|
@@ -12,6 +12,12 @@ export class PtcFilterDropdown {
|
|
|
12
12
|
let self = this;
|
|
13
13
|
self.clearFilter();
|
|
14
14
|
}
|
|
15
|
+
async setSelectedItem(tabId, tagName, value) {
|
|
16
|
+
const isExistingOption = (this.selectedOptions || []).find(opt => opt.tabId === tabId && opt.tagName === tagName && opt.value === value);
|
|
17
|
+
if (!isExistingOption) {
|
|
18
|
+
this.selectedOptions = [...(this.selectedOptions || []), { tabId, tagName, value }];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
15
21
|
componentDidLoad() {
|
|
16
22
|
this.dropdownPlaceholder = this.hostElement.shadowRoot.querySelector('.dropdown-placeholder .dropdown-filter-name');
|
|
17
23
|
}
|
|
@@ -180,6 +186,31 @@ export class PtcFilterDropdown {
|
|
|
180
186
|
"text": "",
|
|
181
187
|
"tags": []
|
|
182
188
|
}
|
|
189
|
+
},
|
|
190
|
+
"setSelectedItem": {
|
|
191
|
+
"complexType": {
|
|
192
|
+
"signature": "(tabId: string, tagName: string, value: string) => Promise<void>",
|
|
193
|
+
"parameters": [{
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": ""
|
|
196
|
+
}, {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": ""
|
|
199
|
+
}, {
|
|
200
|
+
"tags": [],
|
|
201
|
+
"text": ""
|
|
202
|
+
}],
|
|
203
|
+
"references": {
|
|
204
|
+
"Promise": {
|
|
205
|
+
"location": "global"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"return": "Promise<void>"
|
|
209
|
+
},
|
|
210
|
+
"docs": {
|
|
211
|
+
"text": "",
|
|
212
|
+
"tags": []
|
|
213
|
+
}
|
|
183
214
|
}
|
|
184
215
|
};
|
|
185
216
|
}
|
|
@@ -1133,29 +1133,29 @@ ptc-link, ptc-square-card,
|
|
|
1133
1133
|
|
|
1134
1134
|
.mdc-checkbox {
|
|
1135
1135
|
transform: translateX(-8px);
|
|
1136
|
-
padding:
|
|
1136
|
+
padding: calc((34px - 18px) / 2);
|
|
1137
1137
|
/* @alternate */
|
|
1138
1138
|
padding: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1139
|
-
margin:
|
|
1139
|
+
margin: calc((34px - 34px) / 2);
|
|
1140
1140
|
/* @alternate */
|
|
1141
1141
|
margin: calc((var(--mdc-checkbox-touch-target-size, 34px) - 34px) / 2);
|
|
1142
1142
|
}
|
|
1143
1143
|
.mdc-checkbox .mdc-checkbox__background {
|
|
1144
|
-
top:
|
|
1144
|
+
top: calc((34px - 18px) / 2);
|
|
1145
1145
|
/* @alternate */
|
|
1146
1146
|
top: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1147
|
-
left:
|
|
1147
|
+
left: calc((34px - 18px) / 2);
|
|
1148
1148
|
/* @alternate */
|
|
1149
1149
|
left: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1150
1150
|
}
|
|
1151
1151
|
.mdc-checkbox .mdc-checkbox__native-control {
|
|
1152
|
-
top:
|
|
1152
|
+
top: calc((34px - 34px) / 2);
|
|
1153
1153
|
/* @alternate */
|
|
1154
1154
|
top: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1155
|
-
right:
|
|
1155
|
+
right: calc((34px - 34px) / 2);
|
|
1156
1156
|
/* @alternate */
|
|
1157
1157
|
right: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1158
|
-
left:
|
|
1158
|
+
left: calc((34px - 34px) / 2);
|
|
1159
1159
|
/* @alternate */
|
|
1160
1160
|
left: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1161
1161
|
width: 34px;
|
|
@@ -1105,7 +1105,7 @@ ptc-link, ptc-square-card,
|
|
|
1105
1105
|
}
|
|
1106
1106
|
@media only screen and (min-width: 992px) {
|
|
1107
1107
|
.u-3-col-grid .u-3-col {
|
|
1108
|
-
width: calc(33.
|
|
1108
|
+
width: calc(33.333333333333% - 10.66666666px);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
.u-3-col-grid.u-col-space-lg {
|
|
@@ -1122,7 +1122,7 @@ ptc-link, ptc-square-card,
|
|
|
1122
1122
|
}
|
|
1123
1123
|
@media only screen and (min-width: 992px) {
|
|
1124
1124
|
.u-3-col-grid.u-col-space-lg .u-3-col {
|
|
1125
|
-
width: calc(33.
|
|
1125
|
+
width: calc(33.333333333333% - 21.3333333px);
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
@@ -377,7 +377,6 @@ ptc-link, ptc-square-card,
|
|
|
377
377
|
border-radius: var(--ptc-border-radius-standard);
|
|
378
378
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
379
379
|
transition: none;
|
|
380
|
-
color: var(--color-green-06);
|
|
381
380
|
transition: text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
382
381
|
}
|
|
383
382
|
.d-green-underline:focus-visible.focus-state-dark-background {
|
|
@@ -21,9 +21,14 @@ export class PtcModal {
|
|
|
21
21
|
}
|
|
22
22
|
fireOnClosed(modal) {
|
|
23
23
|
this.closed.emit(modal);
|
|
24
|
+
document.activeElement.blur();
|
|
24
25
|
}
|
|
25
26
|
fireOnOpened(modal) {
|
|
26
27
|
this.opened.emit(modal);
|
|
28
|
+
setTimeout(() => {
|
|
29
|
+
const wrapperEle = this.el.shadowRoot.querySelector('.wrapper');
|
|
30
|
+
wrapperEle && wrapperEle.focus();
|
|
31
|
+
}, 100);
|
|
27
32
|
}
|
|
28
33
|
componentWillLoad() {
|
|
29
34
|
let body = document.querySelector('body');
|
|
@@ -57,8 +62,6 @@ export class PtcModal {
|
|
|
57
62
|
componentDidLoad() {
|
|
58
63
|
if (this.show) {
|
|
59
64
|
this.fireOnOpened(this);
|
|
60
|
-
const wrapperEle = this.el.querySelector('.wrapper');
|
|
61
|
-
wrapperEle && wrapperEle.focus();
|
|
62
65
|
}
|
|
63
66
|
if (this.showHeaderFooter) {
|
|
64
67
|
this.handleScroll();
|
|
@@ -128,7 +128,7 @@ ptc-link, ptc-square-card,
|
|
|
128
128
|
width: 1.125rem;
|
|
129
129
|
height: 1.125rem;
|
|
130
130
|
border: 1px solid var(--color-gray-10);
|
|
131
|
-
border-radius: calc(var(--ptc-border-radius-standard)
|
|
131
|
+
border-radius: calc(var(--ptc-border-radius-standard)/2);
|
|
132
132
|
transition: background-color var(--ptc-ease-out) var(--ptc-transition-medium), fill var(--ptc-ease-out) var(--ptc-transition-medium), border-color var(--ptc-ease-out) var(--ptc-transition-medium);
|
|
133
133
|
}
|
|
134
134
|
.standard-filter .next-button:hover, .standard-filter .previous-button:hover {
|
|
@@ -1050,7 +1050,7 @@ ptc-link, ptc-square-card,
|
|
|
1050
1050
|
}
|
|
1051
1051
|
@media only screen and (min-width: 992px) {
|
|
1052
1052
|
.u-3-col-grid .u-3-col {
|
|
1053
|
-
width: calc(33.
|
|
1053
|
+
width: calc(33.333333333333% - 10.66666666px);
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
.u-3-col-grid.u-col-space-lg {
|
|
@@ -1067,7 +1067,7 @@ ptc-link, ptc-square-card,
|
|
|
1067
1067
|
}
|
|
1068
1068
|
@media only screen and (min-width: 992px) {
|
|
1069
1069
|
.u-3-col-grid.u-col-space-lg .u-3-col {
|
|
1070
|
-
width: calc(33.
|
|
1070
|
+
width: calc(33.333333333333% - 21.3333333px);
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
@@ -78,6 +78,14 @@ ptc-link, ptc-square-card,
|
|
|
78
78
|
border-radius: var(--ptc-border-radius-standard);
|
|
79
79
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
80
80
|
}
|
|
81
|
+
:host(.ptc-social-share) .focus-state.focus-state-dark-background:focus-visible {
|
|
82
|
+
padding: 2px;
|
|
83
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
84
|
+
border: 2px solid white;
|
|
85
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
86
|
+
transition: none;
|
|
87
|
+
text-decoration-line: none;
|
|
88
|
+
}
|
|
81
89
|
|
|
82
90
|
@media only screen and (min-width: 1200px) {
|
|
83
91
|
:host(.ptc-social-m-left) {
|
|
@@ -13,10 +13,11 @@ export class PtcSocialShare {
|
|
|
13
13
|
this.iconHoverColor = 'gray';
|
|
14
14
|
this.isHover = false;
|
|
15
15
|
this.iconSize = 'large';
|
|
16
|
+
this.darkFocusState = false;
|
|
16
17
|
}
|
|
17
18
|
render() {
|
|
18
19
|
const classMap = this.getCssClassMap();
|
|
19
|
-
return (h(Host, { class: classMap }, h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle(), class:
|
|
20
|
+
return (h(Host, { class: classMap }, h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle(), class: `focus-state mf-listen ${this.darkFocusState ? "focus-state-dark-background" : ""}`, tabindex: "0", onKeyDown: (event) => this.handleKeyDown(event), id: this.trackerId }, this.shareType == 'mail' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "twitter-x" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-mail' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "mail-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "linkedin-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "twitter-x-dark-circle" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "facebook-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? h("icon-asset", Object.assign({ type: "solid", size: this.iconSize, name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'download' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "download-arrow-news", color: "inherit" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null), this.shareType == 'download' &&
|
|
20
21
|
h("ptc-modal", { id: "download-modal", show: false, size: "lg", fixed: true, "is-bio-modal": true }, h("ptc-title", { type: 'h2', "text-align": 'center', "title-weight": "w-5", upperline: "no-upperline" }, "Thanks For Downloading"))));
|
|
21
22
|
}
|
|
22
23
|
handleKeyDown(event) {
|
|
@@ -278,6 +279,24 @@ export class PtcSocialShare {
|
|
|
278
279
|
"attribute": "icon-size",
|
|
279
280
|
"reflect": false,
|
|
280
281
|
"defaultValue": "'large'"
|
|
282
|
+
},
|
|
283
|
+
"darkFocusState": {
|
|
284
|
+
"type": "boolean",
|
|
285
|
+
"mutable": false,
|
|
286
|
+
"complexType": {
|
|
287
|
+
"original": "boolean",
|
|
288
|
+
"resolved": "boolean",
|
|
289
|
+
"references": {}
|
|
290
|
+
},
|
|
291
|
+
"required": false,
|
|
292
|
+
"optional": false,
|
|
293
|
+
"docs": {
|
|
294
|
+
"tags": [],
|
|
295
|
+
"text": "darkFocusState for dark background"
|
|
296
|
+
},
|
|
297
|
+
"attribute": "dark-focus-state",
|
|
298
|
+
"reflect": false,
|
|
299
|
+
"defaultValue": "false"
|
|
281
300
|
}
|
|
282
301
|
};
|
|
283
302
|
}
|
|
@@ -2215,9 +2215,9 @@
|
|
|
2215
2215
|
.iti__v-hide {
|
|
2216
2216
|
visibility: hidden;
|
|
2217
2217
|
}
|
|
2218
|
-
.iti input
|
|
2219
|
-
.iti input
|
|
2220
|
-
.iti input
|
|
2218
|
+
.iti input,
|
|
2219
|
+
.iti input[type=text],
|
|
2220
|
+
.iti input[type=tel] {
|
|
2221
2221
|
position: relative;
|
|
2222
2222
|
z-index: 0;
|
|
2223
2223
|
margin-top: 0 !important;
|
|
@@ -2256,35 +2256,26 @@
|
|
|
2256
2256
|
border-top: none;
|
|
2257
2257
|
border-bottom: 4px solid #555;
|
|
2258
2258
|
}
|
|
2259
|
-
.
|
|
2259
|
+
.iti__country-list {
|
|
2260
2260
|
position: absolute;
|
|
2261
2261
|
z-index: 2;
|
|
2262
|
-
|
|
2262
|
+
list-style: none;
|
|
2263
|
+
padding: 0;
|
|
2264
|
+
margin: 0 0 0 -1px;
|
|
2263
2265
|
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
|
|
2264
2266
|
background-color: white;
|
|
2265
2267
|
border: 1px solid #ccc;
|
|
2268
|
+
white-space: nowrap;
|
|
2266
2269
|
max-height: 200px;
|
|
2267
2270
|
overflow-y: scroll;
|
|
2268
2271
|
-webkit-overflow-scrolling: touch;
|
|
2269
2272
|
}
|
|
2270
|
-
.
|
|
2273
|
+
.iti__country-list--dropup {
|
|
2271
2274
|
bottom: 100%;
|
|
2272
2275
|
margin-bottom: -1px;
|
|
2273
2276
|
}
|
|
2274
|
-
.iti__search-input {
|
|
2275
|
-
width: 100%;
|
|
2276
|
-
border-width: 0;
|
|
2277
|
-
}
|
|
2278
|
-
.iti__country-list {
|
|
2279
|
-
list-style: none;
|
|
2280
|
-
padding: 0;
|
|
2281
|
-
margin: 0;
|
|
2282
|
-
}
|
|
2283
|
-
.iti--flexible-dropdown-width .iti__country-list {
|
|
2284
|
-
white-space: nowrap;
|
|
2285
|
-
}
|
|
2286
2277
|
@media (max-width: 500px) {
|
|
2287
|
-
.
|
|
2278
|
+
.iti__country-list {
|
|
2288
2279
|
white-space: normal;
|
|
2289
2280
|
}
|
|
2290
2281
|
}
|
|
@@ -2316,20 +2307,20 @@
|
|
|
2316
2307
|
margin-right: 0;
|
|
2317
2308
|
margin-left: 6px;
|
|
2318
2309
|
}
|
|
2319
|
-
.iti--allow-dropdown input
|
|
2320
|
-
.iti--allow-dropdown input
|
|
2321
|
-
.iti--allow-dropdown input
|
|
2322
|
-
.iti--separate-dial-code input
|
|
2323
|
-
.iti--separate-dial-code input
|
|
2310
|
+
.iti--allow-dropdown input,
|
|
2311
|
+
.iti--allow-dropdown input[type=text],
|
|
2312
|
+
.iti--allow-dropdown input[type=tel], .iti--separate-dial-code input,
|
|
2313
|
+
.iti--separate-dial-code input[type=text],
|
|
2314
|
+
.iti--separate-dial-code input[type=tel] {
|
|
2324
2315
|
padding-right: 6px;
|
|
2325
2316
|
padding-left: 52px;
|
|
2326
2317
|
margin-left: 0;
|
|
2327
2318
|
}
|
|
2328
|
-
[dir=rtl] .iti--allow-dropdown input
|
|
2329
|
-
[dir=rtl] .iti--allow-dropdown input
|
|
2330
|
-
[dir=rtl] .iti--allow-dropdown input
|
|
2331
|
-
[dir=rtl] .iti--separate-dial-code input
|
|
2332
|
-
[dir=rtl] .iti--separate-dial-code input
|
|
2319
|
+
[dir=rtl] .iti--allow-dropdown input,
|
|
2320
|
+
[dir=rtl] .iti--allow-dropdown input[type=text],
|
|
2321
|
+
[dir=rtl] .iti--allow-dropdown input[type=tel], [dir=rtl] .iti--separate-dial-code input,
|
|
2322
|
+
[dir=rtl] .iti--separate-dial-code input[type=text],
|
|
2323
|
+
[dir=rtl] .iti--separate-dial-code input[type=tel] {
|
|
2333
2324
|
padding-right: 52px;
|
|
2334
2325
|
padding-left: 6px;
|
|
2335
2326
|
margin-right: 0;
|
|
@@ -2348,12 +2339,12 @@
|
|
|
2348
2339
|
.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
|
|
2349
2340
|
background-color: rgba(0, 0, 0, 0.05);
|
|
2350
2341
|
}
|
|
2351
|
-
.iti--allow-dropdown .iti__flag-container:
|
|
2352
|
-
.iti--allow-dropdown .iti__flag-container:
|
|
2342
|
+
.iti--allow-dropdown input[disabled] + .iti__flag-container:hover,
|
|
2343
|
+
.iti--allow-dropdown input[readonly] + .iti__flag-container:hover {
|
|
2353
2344
|
cursor: default;
|
|
2354
2345
|
}
|
|
2355
|
-
.iti--allow-dropdown .iti__flag-container:
|
|
2356
|
-
.iti--allow-dropdown .iti__flag-container:
|
|
2346
|
+
.iti--allow-dropdown input[disabled] + .iti__flag-container:hover .iti__selected-flag,
|
|
2347
|
+
.iti--allow-dropdown input[readonly] + .iti__flag-container:hover .iti__selected-flag {
|
|
2357
2348
|
background-color: transparent;
|
|
2358
2349
|
}
|
|
2359
2350
|
.iti--separate-dial-code .iti__selected-flag {
|
|
@@ -2377,26 +2368,18 @@
|
|
|
2377
2368
|
cursor: pointer;
|
|
2378
2369
|
}
|
|
2379
2370
|
|
|
2380
|
-
.iti
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
right: 0;
|
|
2371
|
+
.iti-mobile .iti--container {
|
|
2372
|
+
top: 30px;
|
|
2373
|
+
bottom: 30px;
|
|
2374
|
+
left: 30px;
|
|
2375
|
+
right: 30px;
|
|
2386
2376
|
position: fixed;
|
|
2387
|
-
padding: 30px;
|
|
2388
|
-
display: flex;
|
|
2389
|
-
flex-direction: column;
|
|
2390
|
-
justify-content: center;
|
|
2391
|
-
}
|
|
2392
|
-
.iti--fullscreen-popup.iti--container.iti--country-search {
|
|
2393
|
-
justify-content: flex-start;
|
|
2394
2377
|
}
|
|
2395
|
-
.iti
|
|
2378
|
+
.iti-mobile .iti__country-list {
|
|
2396
2379
|
max-height: 100%;
|
|
2397
|
-
|
|
2380
|
+
width: 100%;
|
|
2398
2381
|
}
|
|
2399
|
-
.iti
|
|
2382
|
+
.iti-mobile .iti__country {
|
|
2400
2383
|
padding: 10px 10px;
|
|
2401
2384
|
line-height: 1.5em;
|
|
2402
2385
|
}
|
|
@@ -2422,7 +2405,7 @@
|
|
|
2422
2405
|
.iti__flag.iti__va {
|
|
2423
2406
|
width: 15px;
|
|
2424
2407
|
}
|
|
2425
|
-
@media (min-resolution:
|
|
2408
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2426
2409
|
.iti__flag {
|
|
2427
2410
|
background-size: 5762px 15px;
|
|
2428
2411
|
}
|
|
@@ -3488,7 +3471,7 @@
|
|
|
3488
3471
|
background-color: #dbdbdb;
|
|
3489
3472
|
background-position: 20px 0;
|
|
3490
3473
|
}
|
|
3491
|
-
@media (min-resolution:
|
|
3474
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
3492
3475
|
.iti__flag {
|
|
3493
3476
|
background-image: url("../img/flags@2x.png?1");
|
|
3494
3477
|
}
|
|
@@ -62,6 +62,18 @@ export const EmbeddedForm: {
|
|
|
62
62
|
new (): EmbeddedForm;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
interface EventJumbotronExample extends Components.EventJumbotronExample, HTMLElement {}
|
|
66
|
+
export const EventJumbotronExample: {
|
|
67
|
+
prototype: EventJumbotronExample;
|
|
68
|
+
new (): EventJumbotronExample;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
interface FeaturedEventsSliderExample extends Components.FeaturedEventsSliderExample, HTMLElement {}
|
|
72
|
+
export const FeaturedEventsSliderExample: {
|
|
73
|
+
prototype: FeaturedEventsSliderExample;
|
|
74
|
+
new (): FeaturedEventsSliderExample;
|
|
75
|
+
};
|
|
76
|
+
|
|
65
77
|
interface FeaturedList extends Components.FeaturedList, HTMLElement {}
|
|
66
78
|
export const FeaturedList: {
|
|
67
79
|
prototype: FeaturedList;
|