@ptcwebops/ptcw-design 6.2.14 → 6.2.15
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/{component-35540bfb.js → component-06dda623.js} +1 -1
- package/dist/cjs/{component-1b8ad4d2.js → component-5b5b6a98.js} +1 -1
- package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +1382 -0
- package/dist/cjs/event-podcast-slider-example.cjs.entry.js +61 -0
- package/dist/cjs/featured-events-slider-example.cjs.entry.js +2 -387
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mousewheel-e9520f0f.js +391 -0
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +67 -0
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -2
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +2 -2
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +31 -17
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +48 -8
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +1222 -0
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.js +80 -0
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +65 -2
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +10 -2
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +13 -0
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +22 -2
- package/dist/collection/components/ptc-link/ptc-link.css +5 -0
- package/dist/collection/components/ptc-modal/ptc-modal.css +62 -0
- package/dist/collection/components/ptc-modal/ptc-modal.js +79 -2
- package/dist/collection/components/ptc-scroll-button/ptc-scroll-button.js +94 -3
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +185 -21
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/{component-8c53e377.js → component-274da230.js} +1 -1
- package/dist/esm/{component-9beac35b.js → component-341e4eaa.js} +1 -1
- package/dist/esm/event-jumbotron-example_15.entry.js +1364 -0
- package/dist/esm/event-podcast-slider-example.entry.js +57 -0
- package/dist/esm/featured-events-slider-example.entry.js +2 -387
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/mousewheel-6b2f6590.js +389 -0
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-card-bottom.entry.js +63 -0
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +2 -2
- package/dist/esm/ptc-form-checkbox_2.entry.js +2 -2
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +3 -3
- package/dist/esm/ptc-pricing-packaging-table.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/{utils-1bbe0c30.js → utils-b7c6422e.js} +1 -1
- package/dist/ptcw-design/{p-dee4bb6c.entry.js → p-103ec637.entry.js} +1 -1
- package/dist/ptcw-design/{p-5dae4f30.entry.js → p-1ca8a5bf.entry.js} +1 -1
- package/dist/ptcw-design/{p-717d3a75.entry.js → p-2335d57c.entry.js} +1 -1
- package/dist/ptcw-design/p-246df0d6.entry.js +1 -0
- package/dist/ptcw-design/{p-4036055e.entry.js → p-29639cd4.entry.js} +1 -1
- package/dist/ptcw-design/p-2db141e6.entry.js +1 -0
- package/dist/ptcw-design/{p-873c711b.entry.js → p-34610052.entry.js} +1 -1
- package/dist/ptcw-design/{p-b4564411.entry.js → p-34b270c1.entry.js} +1 -1
- package/dist/ptcw-design/p-36cb30ee.js +1 -0
- package/dist/ptcw-design/{p-56a4c6d4.entry.js → p-4c096997.entry.js} +1 -1
- package/dist/ptcw-design/{p-990bcbc4.entry.js → p-52b82ac5.entry.js} +1 -1
- package/dist/ptcw-design/p-6e8ed2ee.entry.js +1 -0
- package/dist/ptcw-design/{p-4fc9c83b.entry.js → p-760507e1.entry.js} +1 -1
- package/dist/ptcw-design/{p-deebd138.entry.js → p-7e7ebf0a.entry.js} +1 -1
- package/dist/ptcw-design/{p-ad87bdab.js → p-841b807d.js} +1 -1
- package/dist/ptcw-design/{p-0b8a73e1.entry.js → p-863b5b20.entry.js} +1 -1
- package/dist/ptcw-design/{p-65f19054.entry.js → p-999d1c9f.entry.js} +1 -1
- package/dist/ptcw-design/p-9fe0c27d.entry.js +1 -0
- package/dist/ptcw-design/{p-98844b50.js → p-be533f0d.js} +1 -1
- package/dist/ptcw-design/{p-e614999d.entry.js → p-c1ebaf0f.entry.js} +1 -1
- package/dist/ptcw-design/{p-f07e64f2.entry.js → p-cffebefe.entry.js} +1 -1
- package/dist/ptcw-design/{p-53f49500.entry.js → p-df8526a2.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ac7e3ce.entry.js → p-e38ed0e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-942850e0.entry.js → p-eab1042e.entry.js} +1 -1
- package/dist/ptcw-design/{p-2a672c0e.entry.js → p-f05fec22.entry.js} +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 +5 -3
- package/dist/types/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.d.ts +11 -0
- package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +3 -1
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +1 -1
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +3 -1
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +4 -0
- package/dist/types/components/ptc-scroll-button/ptc-scroll-button.d.ts +12 -0
- package/dist/types/components.d.ts +48 -6
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -127
- package/dist/cjs/icon-asset.cjs.entry.js +0 -65
- package/dist/cjs/list-item.cjs.entry.js +0 -48
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
- package/dist/cjs/ptc-button.cjs.entry.js +0 -84
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -132
- package/dist/cjs/ptc-card-content.cjs.entry.js +0 -68
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -213
- package/dist/cjs/ptc-img.cjs.entry.js +0 -133
- package/dist/cjs/ptc-link.cjs.entry.js +0 -95
- package/dist/cjs/ptc-para.cjs.entry.js +0 -127
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -84
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-title.cjs.entry.js +0 -152
- package/dist/esm/event-jumbotron-example.entry.js +0 -123
- package/dist/esm/icon-asset.entry.js +0 -61
- package/dist/esm/list-item.entry.js +0 -44
- package/dist/esm/ptc-breadcrumb.entry.js +0 -43
- package/dist/esm/ptc-button.entry.js +0 -80
- package/dist/esm/ptc-card-bottom_2.entry.js +0 -127
- package/dist/esm/ptc-card-content.entry.js +0 -64
- package/dist/esm/ptc-close-icon_2.entry.js +0 -208
- package/dist/esm/ptc-img.entry.js +0 -129
- package/dist/esm/ptc-link.entry.js +0 -91
- package/dist/esm/ptc-para.entry.js +0 -123
- package/dist/esm/ptc-scroll-button.entry.js +0 -80
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-title.entry.js +0 -148
- package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
- package/dist/ptcw-design/p-158f6d50.entry.js +0 -1
- package/dist/ptcw-design/p-25a25451.entry.js +0 -1
- package/dist/ptcw-design/p-2cfcba27.entry.js +0 -1
- package/dist/ptcw-design/p-2e19248b.entry.js +0 -1
- package/dist/ptcw-design/p-5d885144.entry.js +0 -1
- package/dist/ptcw-design/p-7793babb.entry.js +0 -1
- package/dist/ptcw-design/p-9e9ae28c.entry.js +0 -1
- package/dist/ptcw-design/p-a870cd4a.entry.js +0 -1
- package/dist/ptcw-design/p-b35ad9ee.entry.js +0 -1
- package/dist/ptcw-design/p-b3bbd17d.entry.js +0 -1
- package/dist/ptcw-design/p-b6e5379a.entry.js +0 -1
- package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
- package/dist/ptcw-design/p-bb15d7e5.entry.js +0 -1
- package/dist/ptcw-design/p-fcad5568.entry.js +0 -1
- /package/dist/ptcw-design/{p-98426799.js → p-c1513c3f.js} +0 -0
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const core = require('./core-58fa1795.js');
|
|
4
|
+
|
|
5
|
+
/* eslint-disable consistent-return */
|
|
6
|
+
function Mousewheel({
|
|
7
|
+
swiper,
|
|
8
|
+
extendParams,
|
|
9
|
+
on,
|
|
10
|
+
emit
|
|
11
|
+
}) {
|
|
12
|
+
const window = core.getWindow();
|
|
13
|
+
extendParams({
|
|
14
|
+
mousewheel: {
|
|
15
|
+
enabled: false,
|
|
16
|
+
releaseOnEdges: false,
|
|
17
|
+
invert: false,
|
|
18
|
+
forceToAxis: false,
|
|
19
|
+
sensitivity: 1,
|
|
20
|
+
eventsTarget: 'container',
|
|
21
|
+
thresholdDelta: null,
|
|
22
|
+
thresholdTime: null,
|
|
23
|
+
noMousewheelClass: 'swiper-no-mousewheel'
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
swiper.mousewheel = {
|
|
27
|
+
enabled: false
|
|
28
|
+
};
|
|
29
|
+
let timeout;
|
|
30
|
+
let lastScrollTime = core.now();
|
|
31
|
+
let lastEventBeforeSnap;
|
|
32
|
+
const recentWheelEvents = [];
|
|
33
|
+
function normalize(e) {
|
|
34
|
+
// Reasonable defaults
|
|
35
|
+
const PIXEL_STEP = 10;
|
|
36
|
+
const LINE_HEIGHT = 40;
|
|
37
|
+
const PAGE_HEIGHT = 800;
|
|
38
|
+
let sX = 0;
|
|
39
|
+
let sY = 0; // spinX, spinY
|
|
40
|
+
let pX = 0;
|
|
41
|
+
let pY = 0; // pixelX, pixelY
|
|
42
|
+
|
|
43
|
+
// Legacy
|
|
44
|
+
if ('detail' in e) {
|
|
45
|
+
sY = e.detail;
|
|
46
|
+
}
|
|
47
|
+
if ('wheelDelta' in e) {
|
|
48
|
+
sY = -e.wheelDelta / 120;
|
|
49
|
+
}
|
|
50
|
+
if ('wheelDeltaY' in e) {
|
|
51
|
+
sY = -e.wheelDeltaY / 120;
|
|
52
|
+
}
|
|
53
|
+
if ('wheelDeltaX' in e) {
|
|
54
|
+
sX = -e.wheelDeltaX / 120;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// side scrolling on FF with DOMMouseScroll
|
|
58
|
+
if ('axis' in e && e.axis === e.HORIZONTAL_AXIS) {
|
|
59
|
+
sX = sY;
|
|
60
|
+
sY = 0;
|
|
61
|
+
}
|
|
62
|
+
pX = sX * PIXEL_STEP;
|
|
63
|
+
pY = sY * PIXEL_STEP;
|
|
64
|
+
if ('deltaY' in e) {
|
|
65
|
+
pY = e.deltaY;
|
|
66
|
+
}
|
|
67
|
+
if ('deltaX' in e) {
|
|
68
|
+
pX = e.deltaX;
|
|
69
|
+
}
|
|
70
|
+
if (e.shiftKey && !pX) {
|
|
71
|
+
// if user scrolls with shift he wants horizontal scroll
|
|
72
|
+
pX = pY;
|
|
73
|
+
pY = 0;
|
|
74
|
+
}
|
|
75
|
+
if ((pX || pY) && e.deltaMode) {
|
|
76
|
+
if (e.deltaMode === 1) {
|
|
77
|
+
// delta in LINE units
|
|
78
|
+
pX *= LINE_HEIGHT;
|
|
79
|
+
pY *= LINE_HEIGHT;
|
|
80
|
+
} else {
|
|
81
|
+
// delta in PAGE units
|
|
82
|
+
pX *= PAGE_HEIGHT;
|
|
83
|
+
pY *= PAGE_HEIGHT;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Fall-back if spin cannot be determined
|
|
88
|
+
if (pX && !sX) {
|
|
89
|
+
sX = pX < 1 ? -1 : 1;
|
|
90
|
+
}
|
|
91
|
+
if (pY && !sY) {
|
|
92
|
+
sY = pY < 1 ? -1 : 1;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
spinX: sX,
|
|
96
|
+
spinY: sY,
|
|
97
|
+
pixelX: pX,
|
|
98
|
+
pixelY: pY
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function handleMouseEnter() {
|
|
102
|
+
if (!swiper.enabled) return;
|
|
103
|
+
swiper.mouseEntered = true;
|
|
104
|
+
}
|
|
105
|
+
function handleMouseLeave() {
|
|
106
|
+
if (!swiper.enabled) return;
|
|
107
|
+
swiper.mouseEntered = false;
|
|
108
|
+
}
|
|
109
|
+
function animateSlider(newEvent) {
|
|
110
|
+
if (swiper.params.mousewheel.thresholdDelta && newEvent.delta < swiper.params.mousewheel.thresholdDelta) {
|
|
111
|
+
// Prevent if delta of wheel scroll delta is below configured threshold
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
if (swiper.params.mousewheel.thresholdTime && core.now() - lastScrollTime < swiper.params.mousewheel.thresholdTime) {
|
|
115
|
+
// Prevent if time between scrolls is below configured threshold
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// If the movement is NOT big enough and
|
|
120
|
+
// if the last time the user scrolled was too close to the current one (avoid continuously triggering the slider):
|
|
121
|
+
// Don't go any further (avoid insignificant scroll movement).
|
|
122
|
+
if (newEvent.delta >= 6 && core.now() - lastScrollTime < 60) {
|
|
123
|
+
// Return false as a default
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
// If user is scrolling towards the end:
|
|
127
|
+
// If the slider hasn't hit the latest slide or
|
|
128
|
+
// if the slider is a loop and
|
|
129
|
+
// if the slider isn't moving right now:
|
|
130
|
+
// Go to next slide and
|
|
131
|
+
// emit a scroll event.
|
|
132
|
+
// Else (the user is scrolling towards the beginning) and
|
|
133
|
+
// if the slider hasn't hit the first slide or
|
|
134
|
+
// if the slider is a loop and
|
|
135
|
+
// if the slider isn't moving right now:
|
|
136
|
+
// Go to prev slide and
|
|
137
|
+
// emit a scroll event.
|
|
138
|
+
if (newEvent.direction < 0) {
|
|
139
|
+
if ((!swiper.isEnd || swiper.params.loop) && !swiper.animating) {
|
|
140
|
+
swiper.slideNext();
|
|
141
|
+
emit('scroll', newEvent.raw);
|
|
142
|
+
}
|
|
143
|
+
} else if ((!swiper.isBeginning || swiper.params.loop) && !swiper.animating) {
|
|
144
|
+
swiper.slidePrev();
|
|
145
|
+
emit('scroll', newEvent.raw);
|
|
146
|
+
}
|
|
147
|
+
// If you got here is because an animation has been triggered so store the current time
|
|
148
|
+
lastScrollTime = new window.Date().getTime();
|
|
149
|
+
// Return false as a default
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
function releaseScroll(newEvent) {
|
|
153
|
+
const params = swiper.params.mousewheel;
|
|
154
|
+
if (newEvent.direction < 0) {
|
|
155
|
+
if (swiper.isEnd && !swiper.params.loop && params.releaseOnEdges) {
|
|
156
|
+
// Return true to animate scroll on edges
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
} else if (swiper.isBeginning && !swiper.params.loop && params.releaseOnEdges) {
|
|
160
|
+
// Return true to animate scroll on edges
|
|
161
|
+
return true;
|
|
162
|
+
}
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
function handle(event) {
|
|
166
|
+
let e = event;
|
|
167
|
+
let disableParentSwiper = true;
|
|
168
|
+
if (!swiper.enabled) return;
|
|
169
|
+
|
|
170
|
+
// Ignore event if the target or its parents have the swiper-no-mousewheel class
|
|
171
|
+
if (event.target.closest(`.${swiper.params.mousewheel.noMousewheelClass}`)) return;
|
|
172
|
+
const params = swiper.params.mousewheel;
|
|
173
|
+
if (swiper.params.cssMode) {
|
|
174
|
+
e.preventDefault();
|
|
175
|
+
}
|
|
176
|
+
let targetEl = swiper.el;
|
|
177
|
+
if (swiper.params.mousewheel.eventsTarget !== 'container') {
|
|
178
|
+
targetEl = document.querySelector(swiper.params.mousewheel.eventsTarget);
|
|
179
|
+
}
|
|
180
|
+
const targetElContainsTarget = targetEl && targetEl.contains(e.target);
|
|
181
|
+
if (!swiper.mouseEntered && !targetElContainsTarget && !params.releaseOnEdges) return true;
|
|
182
|
+
if (e.originalEvent) e = e.originalEvent; // jquery fix
|
|
183
|
+
let delta = 0;
|
|
184
|
+
const rtlFactor = swiper.rtlTranslate ? -1 : 1;
|
|
185
|
+
const data = normalize(e);
|
|
186
|
+
if (params.forceToAxis) {
|
|
187
|
+
if (swiper.isHorizontal()) {
|
|
188
|
+
if (Math.abs(data.pixelX) > Math.abs(data.pixelY)) delta = -data.pixelX * rtlFactor;else return true;
|
|
189
|
+
} else if (Math.abs(data.pixelY) > Math.abs(data.pixelX)) delta = -data.pixelY;else return true;
|
|
190
|
+
} else {
|
|
191
|
+
delta = Math.abs(data.pixelX) > Math.abs(data.pixelY) ? -data.pixelX * rtlFactor : -data.pixelY;
|
|
192
|
+
}
|
|
193
|
+
if (delta === 0) return true;
|
|
194
|
+
if (params.invert) delta = -delta;
|
|
195
|
+
|
|
196
|
+
// Get the scroll positions
|
|
197
|
+
let positions = swiper.getTranslate() + delta * params.sensitivity;
|
|
198
|
+
if (positions >= swiper.minTranslate()) positions = swiper.minTranslate();
|
|
199
|
+
if (positions <= swiper.maxTranslate()) positions = swiper.maxTranslate();
|
|
200
|
+
|
|
201
|
+
// When loop is true:
|
|
202
|
+
// the disableParentSwiper will be true.
|
|
203
|
+
// When loop is false:
|
|
204
|
+
// if the scroll positions is not on edge,
|
|
205
|
+
// then the disableParentSwiper will be true.
|
|
206
|
+
// if the scroll on edge positions,
|
|
207
|
+
// then the disableParentSwiper will be false.
|
|
208
|
+
disableParentSwiper = swiper.params.loop ? true : !(positions === swiper.minTranslate() || positions === swiper.maxTranslate());
|
|
209
|
+
if (disableParentSwiper && swiper.params.nested) e.stopPropagation();
|
|
210
|
+
if (!swiper.params.freeMode || !swiper.params.freeMode.enabled) {
|
|
211
|
+
// Register the new event in a variable which stores the relevant data
|
|
212
|
+
const newEvent = {
|
|
213
|
+
time: core.now(),
|
|
214
|
+
delta: Math.abs(delta),
|
|
215
|
+
direction: Math.sign(delta),
|
|
216
|
+
raw: event
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
// Keep the most recent events
|
|
220
|
+
if (recentWheelEvents.length >= 2) {
|
|
221
|
+
recentWheelEvents.shift(); // only store the last N events
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;
|
|
225
|
+
recentWheelEvents.push(newEvent);
|
|
226
|
+
|
|
227
|
+
// If there is at least one previous recorded event:
|
|
228
|
+
// If direction has changed or
|
|
229
|
+
// if the scroll is quicker than the previous one:
|
|
230
|
+
// Animate the slider.
|
|
231
|
+
// Else (this is the first time the wheel is moved):
|
|
232
|
+
// Animate the slider.
|
|
233
|
+
if (prevEvent) {
|
|
234
|
+
if (newEvent.direction !== prevEvent.direction || newEvent.delta > prevEvent.delta || newEvent.time > prevEvent.time + 150) {
|
|
235
|
+
animateSlider(newEvent);
|
|
236
|
+
}
|
|
237
|
+
} else {
|
|
238
|
+
animateSlider(newEvent);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// If it's time to release the scroll:
|
|
242
|
+
// Return now so you don't hit the preventDefault.
|
|
243
|
+
if (releaseScroll(newEvent)) {
|
|
244
|
+
return true;
|
|
245
|
+
}
|
|
246
|
+
} else {
|
|
247
|
+
// Freemode or scrollContainer:
|
|
248
|
+
|
|
249
|
+
// If we recently snapped after a momentum scroll, then ignore wheel events
|
|
250
|
+
// to give time for the deceleration to finish. Stop ignoring after 500 msecs
|
|
251
|
+
// or if it's a new scroll (larger delta or inverse sign as last event before
|
|
252
|
+
// an end-of-momentum snap).
|
|
253
|
+
const newEvent = {
|
|
254
|
+
time: core.now(),
|
|
255
|
+
delta: Math.abs(delta),
|
|
256
|
+
direction: Math.sign(delta)
|
|
257
|
+
};
|
|
258
|
+
const ignoreWheelEvents = lastEventBeforeSnap && newEvent.time < lastEventBeforeSnap.time + 500 && newEvent.delta <= lastEventBeforeSnap.delta && newEvent.direction === lastEventBeforeSnap.direction;
|
|
259
|
+
if (!ignoreWheelEvents) {
|
|
260
|
+
lastEventBeforeSnap = undefined;
|
|
261
|
+
let position = swiper.getTranslate() + delta * params.sensitivity;
|
|
262
|
+
const wasBeginning = swiper.isBeginning;
|
|
263
|
+
const wasEnd = swiper.isEnd;
|
|
264
|
+
if (position >= swiper.minTranslate()) position = swiper.minTranslate();
|
|
265
|
+
if (position <= swiper.maxTranslate()) position = swiper.maxTranslate();
|
|
266
|
+
swiper.setTransition(0);
|
|
267
|
+
swiper.setTranslate(position);
|
|
268
|
+
swiper.updateProgress();
|
|
269
|
+
swiper.updateActiveIndex();
|
|
270
|
+
swiper.updateSlidesClasses();
|
|
271
|
+
if (!wasBeginning && swiper.isBeginning || !wasEnd && swiper.isEnd) {
|
|
272
|
+
swiper.updateSlidesClasses();
|
|
273
|
+
}
|
|
274
|
+
if (swiper.params.loop) {
|
|
275
|
+
swiper.loopFix({
|
|
276
|
+
direction: newEvent.direction < 0 ? 'next' : 'prev',
|
|
277
|
+
byMousewheel: true
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
if (swiper.params.freeMode.sticky) {
|
|
281
|
+
// When wheel scrolling starts with sticky (aka snap) enabled, then detect
|
|
282
|
+
// the end of a momentum scroll by storing recent (N=15?) wheel events.
|
|
283
|
+
// 1. do all N events have decreasing or same (absolute value) delta?
|
|
284
|
+
// 2. did all N events arrive in the last M (M=500?) msecs?
|
|
285
|
+
// 3. does the earliest event have an (absolute value) delta that's
|
|
286
|
+
// at least P (P=1?) larger than the most recent event's delta?
|
|
287
|
+
// 4. does the latest event have a delta that's smaller than Q (Q=6?) pixels?
|
|
288
|
+
// If 1-4 are "yes" then we're near the end of a momentum scroll deceleration.
|
|
289
|
+
// Snap immediately and ignore remaining wheel events in this scroll.
|
|
290
|
+
// See comment above for "remaining wheel events in this scroll" determination.
|
|
291
|
+
// If 1-4 aren't satisfied, then wait to snap until 500ms after the last event.
|
|
292
|
+
clearTimeout(timeout);
|
|
293
|
+
timeout = undefined;
|
|
294
|
+
if (recentWheelEvents.length >= 15) {
|
|
295
|
+
recentWheelEvents.shift(); // only store the last N events
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;
|
|
299
|
+
const firstEvent = recentWheelEvents[0];
|
|
300
|
+
recentWheelEvents.push(newEvent);
|
|
301
|
+
if (prevEvent && (newEvent.delta > prevEvent.delta || newEvent.direction !== prevEvent.direction)) {
|
|
302
|
+
// Increasing or reverse-sign delta means the user started scrolling again. Clear the wheel event log.
|
|
303
|
+
recentWheelEvents.splice(0);
|
|
304
|
+
} else if (recentWheelEvents.length >= 15 && newEvent.time - firstEvent.time < 500 && firstEvent.delta - newEvent.delta >= 1 && newEvent.delta <= 6) {
|
|
305
|
+
// We're at the end of the deceleration of a momentum scroll, so there's no need
|
|
306
|
+
// to wait for more events. Snap ASAP on the next tick.
|
|
307
|
+
// Also, because there's some remaining momentum we'll bias the snap in the
|
|
308
|
+
// direction of the ongoing scroll because it's better UX for the scroll to snap
|
|
309
|
+
// in the same direction as the scroll instead of reversing to snap. Therefore,
|
|
310
|
+
// if it's already scrolled more than 20% in the current direction, keep going.
|
|
311
|
+
const snapToThreshold = delta > 0 ? 0.8 : 0.2;
|
|
312
|
+
lastEventBeforeSnap = newEvent;
|
|
313
|
+
recentWheelEvents.splice(0);
|
|
314
|
+
timeout = core.nextTick(() => {
|
|
315
|
+
swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);
|
|
316
|
+
}, 0); // no delay; move on next tick
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (!timeout) {
|
|
320
|
+
// if we get here, then we haven't detected the end of a momentum scroll, so
|
|
321
|
+
// we'll consider a scroll "complete" when there haven't been any wheel events
|
|
322
|
+
// for 500ms.
|
|
323
|
+
timeout = core.nextTick(() => {
|
|
324
|
+
const snapToThreshold = 0.5;
|
|
325
|
+
lastEventBeforeSnap = newEvent;
|
|
326
|
+
recentWheelEvents.splice(0);
|
|
327
|
+
swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);
|
|
328
|
+
}, 500);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// Emit event
|
|
333
|
+
if (!ignoreWheelEvents) emit('scroll', e);
|
|
334
|
+
|
|
335
|
+
// Stop autoplay
|
|
336
|
+
if (swiper.params.autoplay && swiper.params.autoplayDisableOnInteraction) swiper.autoplay.stop();
|
|
337
|
+
// Return page scroll on edge positions
|
|
338
|
+
if (position === swiper.minTranslate() || position === swiper.maxTranslate()) return true;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
if (e.preventDefault) e.preventDefault();else e.returnValue = false;
|
|
342
|
+
return false;
|
|
343
|
+
}
|
|
344
|
+
function events(method) {
|
|
345
|
+
let targetEl = swiper.el;
|
|
346
|
+
if (swiper.params.mousewheel.eventsTarget !== 'container') {
|
|
347
|
+
targetEl = document.querySelector(swiper.params.mousewheel.eventsTarget);
|
|
348
|
+
}
|
|
349
|
+
targetEl[method]('mouseenter', handleMouseEnter);
|
|
350
|
+
targetEl[method]('mouseleave', handleMouseLeave);
|
|
351
|
+
targetEl[method]('wheel', handle);
|
|
352
|
+
}
|
|
353
|
+
function enable() {
|
|
354
|
+
if (swiper.params.cssMode) {
|
|
355
|
+
swiper.wrapperEl.removeEventListener('wheel', handle);
|
|
356
|
+
return true;
|
|
357
|
+
}
|
|
358
|
+
if (swiper.mousewheel.enabled) return false;
|
|
359
|
+
events('addEventListener');
|
|
360
|
+
swiper.mousewheel.enabled = true;
|
|
361
|
+
return true;
|
|
362
|
+
}
|
|
363
|
+
function disable() {
|
|
364
|
+
if (swiper.params.cssMode) {
|
|
365
|
+
swiper.wrapperEl.addEventListener(event, handle);
|
|
366
|
+
return true;
|
|
367
|
+
}
|
|
368
|
+
if (!swiper.mousewheel.enabled) return false;
|
|
369
|
+
events('removeEventListener');
|
|
370
|
+
swiper.mousewheel.enabled = false;
|
|
371
|
+
return true;
|
|
372
|
+
}
|
|
373
|
+
on('init', () => {
|
|
374
|
+
if (!swiper.params.mousewheel.enabled && swiper.params.cssMode) {
|
|
375
|
+
disable();
|
|
376
|
+
}
|
|
377
|
+
if (swiper.params.mousewheel.enabled) enable();
|
|
378
|
+
});
|
|
379
|
+
on('destroy', () => {
|
|
380
|
+
if (swiper.params.cssMode) {
|
|
381
|
+
enable();
|
|
382
|
+
}
|
|
383
|
+
if (swiper.mousewheel.enabled) disable();
|
|
384
|
+
});
|
|
385
|
+
Object.assign(swiper.mousewheel, {
|
|
386
|
+
enable,
|
|
387
|
+
disable
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
exports.Mousewheel = Mousewheel;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-63ddc79c.js');
|
|
6
|
+
|
|
7
|
+
const ptcCardBottomCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host ::slotted([slot=seo-content]){display:none}:host(.card-tall) .ptc-card-bottom-wrapper,:host(.card-wide) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0 var(--ptc-element-spacing-07) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06);z-index:2}:host(.card-2up) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0px 24px 24px 16px}:host(.card-playlist){flex:72% 2 1;align-self:center}:host(.mouse-hover-card-bottom) .ptc-card-bottom-wrapper{z-index:5;cursor:pointer}:host(.extra-tall){position:absolute;top:0;left:0}:host(.extra-tall) .ptc-card-bottom-wrapper{position:relative;top:0px;left:0px;bottom:0px;right:0px;display:flex;flex-direction:column;align-items:center;width:calc(100% - 64px);padding:var(--ptc-layout-spacing-05) var(--ptc-element-spacing-07);padding-bottom:calc(var(--ptc-layout-spacing-03) + var(--ptc-layout-spacing-05));z-index:2}@media only screen and (min-width: 768px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-bottom:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 992px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 1200px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-04) + var(--ptc-layout-spacing-05))}}@media only screen and (min-width: 1440px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-05) * 2)}}:host(.color-outlined) .ptc-card-bottom-wrapper{position:absolute;top:50%;transform:translateY(-50%);display:flex;justify-content:center;flex-direction:column;align-items:center;width:calc(100% - 80px);height:100%;padding:0px var(--ptc-element-spacing-08)}:host(.most-popular){padding:0 16px 14px 16px}@media only screen and (min-width: 768px){:host(.card-2up) .ptc-card-bottom-wrapper{padding:0 32px 32px 24px}}@media only screen and (min-width: 1200px){:host(.card-video-intro){flex:20% 2 1;justify-content:flex-end}:host(.card-video-intro) .ptc-card-bottom-wrapper{display:flex;justify-content:flex-end}}@media only screen and (min-width: 1440px){:host(.card-2up) .ptc-card-bottom-wrapper{width:70%}}@media only screen and (min-width: 1980px){:host(.card-2up) .ptc-card-bottom-wrapper{width:60%}}";
|
|
8
|
+
|
|
9
|
+
const PtcCardBottom = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.hoverEvent = index.createEvent(this, "hoverEvent", 7);
|
|
13
|
+
this.leaveEvent = index.createEvent(this, "leaveEvent", 7);
|
|
14
|
+
this.cardType = undefined;
|
|
15
|
+
this.styles = undefined;
|
|
16
|
+
}
|
|
17
|
+
hoverEventHandler() {
|
|
18
|
+
this.hoverEvent.emit();
|
|
19
|
+
//if statement: the card type that doesn't need a hover event
|
|
20
|
+
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && !this.el.classList.contains('extra-tall')) {
|
|
21
|
+
this.el.previousElementSibling.classList.add('mouse-hover');
|
|
22
|
+
this.el.classList.add('mouse-hover-card-bottom');
|
|
23
|
+
}
|
|
24
|
+
if (this.el.classList.contains('event-podcast')) {
|
|
25
|
+
this.addClassOnDefaultSlot();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
leaveEventHandler() {
|
|
29
|
+
this.hoverEvent.emit();
|
|
30
|
+
//if statement: the card type that doesn't need a hover event
|
|
31
|
+
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && !this.el.classList.contains('extra-tall')) {
|
|
32
|
+
this.el.previousElementSibling.classList.remove('mouse-hover');
|
|
33
|
+
this.el.classList.remove('mouse-hover-card-bottom');
|
|
34
|
+
}
|
|
35
|
+
if (this.el.classList.contains('event-podcast')) {
|
|
36
|
+
this.removeClassOnDefaultSlot();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async addClassOnDefaultSlot() {
|
|
40
|
+
const slot = this.el.shadowRoot.querySelector('slot:not([name])');
|
|
41
|
+
console.log('slot: ' + slot);
|
|
42
|
+
const assignedElements = slot.assignedElements();
|
|
43
|
+
assignedElements.forEach((ele) => {
|
|
44
|
+
!ele.classList.contains('event-podcast') && ele.classList.add('event-podcast');
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
async removeClassOnDefaultSlot() {
|
|
48
|
+
const slot = this.el.shadowRoot.querySelector('slot:not([name])');
|
|
49
|
+
const assignedElements = slot.assignedElements();
|
|
50
|
+
assignedElements.forEach((ele) => {
|
|
51
|
+
ele.classList.contains('event-podcast') && ele.classList.remove('event-podcast');
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
const classMap = this.getCssClassMap();
|
|
56
|
+
return (index.h(index.Host, { part: "card-bottom", class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, this.styles && index.h("style", null, this.styles), index.h("slot", { name: "slot-content" }), index.h("div", { class: "ptc-card-bottom-wrapper" }, index.h("slot", null))));
|
|
57
|
+
}
|
|
58
|
+
getCssClassMap() {
|
|
59
|
+
return {
|
|
60
|
+
[this.cardType]: this.cardType ? true : false,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
get el() { return index.getElement(this); }
|
|
64
|
+
};
|
|
65
|
+
PtcCardBottom.style = ptcCardBottomCss;
|
|
66
|
+
|
|
67
|
+
exports.ptc_card_bottom = PtcCardBottom;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-63ddc79c.js');
|
|
6
|
-
const component = require('./component-
|
|
7
|
-
require('./component-
|
|
6
|
+
const component = require('./component-06dda623.js');
|
|
7
|
+
require('./component-5b5b6a98.js');
|
|
8
8
|
|
|
9
9
|
// Define the ElqLib class
|
|
10
10
|
class ElqLib {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-63ddc79c.js');
|
|
6
6
|
const validationMessages = require('./validation-messages-33a4f26b.js');
|
|
7
7
|
const utils = require('./utils-87d7b99f.js');
|
|
8
|
-
const component = require('./component-
|
|
8
|
+
const component = require('./component-5b5b6a98.js');
|
|
9
9
|
const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-63ddc79c.js');
|
|
6
6
|
const validationMessages = require('./validation-messages-33a4f26b.js');
|
|
7
7
|
const utils = require('./utils-87d7b99f.js');
|
|
8
|
-
const component = require('./component-
|
|
9
|
-
require('./component-
|
|
8
|
+
const component = require('./component-06dda623.js');
|
|
9
|
+
require('./component-5b5b6a98.js');
|
|
10
10
|
|
|
11
11
|
const ptcMultiSelectCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.ptc-multi-select{position:relative;display:block;margin-bottom:var(--ptc-element-spacing-04)}.ptc-multi-select.invalid::before{content:\"\";position:absolute;width:calc(100% + 16px);height:calc(100% + 8px);background:#FEF3F3;display:flex;flex-direction:column;justify-content:center;z-index:0;left:50%;top:50%;transform:translate(-50%, -50%)}.ptc-multi-select.invalid .mdc-select-helper-text--validation-msg{z-index:2;opacity:1;position:relative;color:#AF3231;font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-style:normal;font-weight:var(--ptc-font-weight-semibold);line-height:var(--ptc-line-height-densest);opacity:1;height:auto;margin-left:8px;margin-top:var(--ptc-element-spacing-02)}.ptc-multi-select.invalid .mdc-select-helper-text--validation-msg svg{transform:translate(-8px, 3px)}.ptc-multi-select .multi-select-label{display:block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-semibold);line-height:normal;margin-bottom:var(--ptc-element-spacing-01);z-index:1;position:relative;color:#40434A}.ptc-multi-select .selected-items{cursor:pointer;background-color:#fff;border:1px solid rgba(0, 0, 0, 0.38);padding:8px;border-radius:0px;position:relative;user-select:none;color:var(--color-gray-12);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);max-width:100%;max-height:34px;overflow:hidden;line-height:24px;display:flex;align-items:center}.ptc-multi-select .selected-items:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);outline-offset:-4px}.ptc-multi-select .selected-items:focus{border:2px solid var(--color-blue-07)}.ptc-multi-select .selected-items[aria-expanded]{border:2px solid var(--color-blue-07)}.ptc-multi-select .selected-items .input-text{width:calc(100% - 18px);display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.ptc-multi-select .multi-select-icon{fill:rgba(0, 0, 0, 0.54);position:absolute;right:var(--ptc-element-spacing-02);width:18px;height:18px;margin:0 auto}.ptc-multi-select .multi-select-icon .multi-arrow-svg{transform:translate(-50%, 25%);position:relative;left:50%;bottom:25%}.ptc-multi-select .dropdown{display:none;list-style:none;padding:0;margin:0;border:1px solid #ccc;max-height:350px;overflow-y:auto;position:absolute;width:100%;background-color:#fff;z-index:1000;}.ptc-multi-select .dropdown.show{display:block}.ptc-multi-select .dropdown li{display:flex;align-items:center;padding:5px 8px;cursor:pointer;color:var(--color-gray-10);position:relative;}.ptc-multi-select .dropdown li:hover,.ptc-multi-select .dropdown li:focus-within{background-color:var(--color-gray-02)}.ptc-multi-select .dropdown li.selected{background-color:var(--color-gray-02)}.ptc-multi-select .dropdown li.selected:hover{background-color:var(--color-gray-04)}.ptc-multi-select .dropdown li label{display:-webkit-box;font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);position:relative;padding-left:22px;cursor:pointer;width:100%;overflow:hidden;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;line-height:24px}.ptc-multi-select .dropdown li:focus-within{background-color:var(--color-gray-02);outline:none}.ptc-multi-select .dropdown li:last-child{border-bottom:none}.ptc-multi-select .dropdown input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}.ptc-multi-select .dropdown input[type=checkbox]:checked{background-color:var(--color-green-07)}.ptc-multi-select .dropdown label::before{content:\"\";position:absolute;left:0;top:5px;width:14px;height:14px;background-color:#fff;border:1px solid #ccc;box-sizing:border-box}.ptc-multi-select .dropdown input[type=checkbox]:checked+label::before{background-color:var(--color-green-07);border-color:var(--color-green-07)}.ptc-multi-select .dropdown input[type=checkbox]:checked+label::after{content:url(\"data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.15341 1.14134C7.0572 1.04719 6.94024 1 6.80262 1C6.66499 1 6.54771 1.04719 6.45158 1.14134L3.06571 4.45979L1.5485 2.96965C1.45197 2.8755 1.33501 2.82831 1.19738 2.82831C1.05976 2.82831 0.942797 2.8755 0.846348 2.96965L0.144437 3.65645C0.0482247 3.75091 0 3.86528 0 4.00004C0 4.13472 0.0482247 4.2494 0.144437 4.34355L2.01277 6.17186L2.71492 6.85866C2.81113 6.95312 2.92809 7 3.06571 7C3.20334 7 3.3203 6.95312 3.41675 6.85866L4.11866 6.17186L7.85556 2.51525C7.95177 2.42086 8 2.30641 8 2.17173C8 2.03705 7.95177 1.9226 7.85556 1.82814L7.15341 1.14134Z' fill='white'/%3E%3C/svg%3E\");position:absolute;left:3px;top:0px;color:white;width:8px;height:24px}.ptc-multi-select button.ddl-click-text{all:unset;cursor:pointer;color:var(--color-gray-7);text-decoration:underline;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-semibold)}.ptc-multi-select .tooltip{position:absolute;transform:translate(0, -12px);z-index:1001;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:2px;width:auto;height:fit-content;text-align:left;text-shadow:none;white-space:normal}.ptc-multi-select .tooltip::after{position:absolute;content:\"\";bottom:0px;border:8px solid transparent;border-top:8px solid var(--color-gray-09);left:50%;transform:translate(-50%, 100%)}@media only screen and (min-width: 992px){.ptc-multi-select .tooltip{width:273px;transform:translate(-100%, 80%)}.ptc-multi-select .tooltip::after{right:8px;left:auto;transform:translateY(100%)}}.ptc-multi-select .tooltip span{word-break:initial}";
|
|
12
12
|
|