@content-blocks/js 0.7.0 → 0.7.2
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/content-accordion_11.cjs.entry.js +45 -1545
- package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
- package/dist/cjs/content-blocks.cjs.js +1 -1
- package/dist/cjs/content-carousel.cjs.entry.js +6 -5
- package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/content-navigation-block.cjs.entry.js +41 -24
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
- package/dist/cjs/focus-trap.esm-a1e3774c.js +1509 -0
- package/dist/cjs/focus-trap.esm-a1e3774c.js.map +1 -0
- package/dist/cjs/index-f38d389e.js +5224 -0
- package/dist/cjs/index-f38d389e.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{swiper-4fade542.js → swiper-e5a68ae2.js} +68 -469
- package/dist/cjs/swiper-e5a68ae2.js.map +1 -0
- package/dist/cjs/utils-c04e978e.js +457 -0
- package/dist/cjs/utils-c04e978e.js.map +1 -0
- package/dist/cjs/window-resize-service-ac5c2012.js.map +1 -1
- package/dist/collection/components/content-carousel/content-carousel.js +5 -4
- package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.css +55 -13
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +51 -24
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
- package/dist/collection/components/content-overlay/content-overlay.css +11 -6
- package/dist/collection/components/content-overlay/content-overlay.js +69 -34
- package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
- package/dist/collection/elements/content-image/content-image.js +4 -4
- package/dist/collection/elements/content-image/content-image.js.map +1 -1
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +4 -3
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +37 -0
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
- package/dist/collection/formatters/content-spacer/content-spacer.css +3 -4
- package/dist/collection/formatters/content-spacer/content-spacer.js +13 -5
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
- package/dist/collection/services/window-resize-service.js.map +1 -1
- package/dist/collection/stories/ContentNavigationBlock.stories.js +1 -1
- package/dist/collection/stories/ContentNavigationBlock.stories.js.map +1 -1
- package/dist/collection/stories/ContentTextBlock.stories.js +5 -5
- package/dist/collection/stories/ContentTextBlock.stories.js.map +1 -1
- package/dist/collection/stories/FullPageExample.stories.js +164 -214
- package/dist/collection/stories/FullPageExample.stories.js.map +1 -1
- package/dist/components/content-carousel.js +5 -4
- package/dist/components/content-carousel.js.map +1 -1
- package/dist/components/content-grid-formatter2.js +9 -1
- package/dist/components/content-grid-formatter2.js.map +1 -1
- package/dist/components/content-image.js +4 -4
- package/dist/components/content-image.js.map +1 -1
- package/dist/components/content-navigation-block.js +48 -25
- package/dist/components/content-navigation-block.js.map +1 -1
- package/dist/components/content-overlay.js +32 -1538
- package/dist/components/content-overlay.js.map +1 -1
- package/dist/components/content-spacer.js +3 -3
- package/dist/components/content-spacer.js.map +1 -1
- package/dist/components/focus-trap.esm.js +1507 -0
- package/dist/components/focus-trap.esm.js.map +1 -0
- package/dist/components/index2.js +5200 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/swiper.js +1 -402
- package/dist/components/swiper.js.map +1 -1
- package/dist/components/utils2.js +433 -0
- package/dist/components/utils2.js.map +1 -0
- package/dist/components/window-resize-service.js.map +1 -1
- package/dist/content-blocks/content-blocks.esm.js +1 -1
- package/dist/content-blocks/content-blocks.esm.js.map +1 -1
- package/dist/content-blocks/p-75ac85e9.js +2 -0
- package/dist/content-blocks/p-75ac85e9.js.map +1 -0
- package/dist/content-blocks/p-7ff352fe.entry.js +2 -0
- package/dist/content-blocks/p-7ff352fe.entry.js.map +1 -0
- package/dist/content-blocks/p-878dc806.js +10 -0
- package/dist/content-blocks/p-878dc806.js.map +1 -0
- package/dist/content-blocks/p-97c4ca9d.js +2 -0
- package/dist/content-blocks/p-97c4ca9d.js.map +1 -0
- package/dist/content-blocks/{p-271fb304.entry.js → p-cbc1dd73.entry.js} +2 -2
- package/dist/content-blocks/p-cbc1dd73.entry.js.map +1 -0
- package/dist/content-blocks/p-cfb4593f.js.map +1 -1
- package/dist/content-blocks/p-e2907508.js +2 -0
- package/dist/content-blocks/p-e2907508.js.map +1 -0
- package/dist/content-blocks/p-ef45f146.entry.js +2 -0
- package/dist/content-blocks/p-ef45f146.entry.js.map +1 -0
- package/dist/esm/content-accordion_11.entry.js +45 -1545
- package/dist/esm/content-accordion_11.entry.js.map +1 -1
- package/dist/esm/content-blocks.js +1 -1
- package/dist/esm/content-carousel.entry.js +6 -5
- package/dist/esm/content-carousel.entry.js.map +1 -1
- package/dist/esm/content-navigation-block.entry.js +41 -24
- package/dist/esm/content-navigation-block.entry.js.map +1 -1
- package/dist/esm/focus-trap.esm-49c9613c.js +1507 -0
- package/dist/esm/focus-trap.esm-49c9613c.js.map +1 -0
- package/dist/esm/index-d9f353de.js +5200 -0
- package/dist/esm/index-d9f353de.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{swiper-3e7be625.js → swiper-3394f7fd.js} +2 -403
- package/dist/esm/swiper-3394f7fd.js.map +1 -0
- package/dist/esm/utils-075121ec.js +433 -0
- package/dist/esm/utils-075121ec.js.map +1 -0
- package/dist/esm/window-resize-service-f40ec51c.js.map +1 -1
- package/dist/types/components/content-carousel/content-carousel.d.ts +3 -3
- package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +11 -0
- package/dist/types/components/content-overlay/content-overlay.d.ts +9 -0
- package/dist/types/components.d.ts +34 -2
- package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +8 -1
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +2 -1
- package/dist/types/stories/ContentNavigationBlock.stories.d.ts +1 -3
- package/dist/types/stories/ContentTextBlock.stories.d.ts +1 -7
- package/package.json +2 -2
- package/dist/cjs/swiper-4fade542.js.map +0 -1
- package/dist/content-blocks/p-10819bfa.js +0 -2
- package/dist/content-blocks/p-10819bfa.js.map +0 -1
- package/dist/content-blocks/p-24657e66.entry.js +0 -10
- package/dist/content-blocks/p-24657e66.entry.js.map +0 -1
- package/dist/content-blocks/p-271fb304.entry.js.map +0 -1
- package/dist/content-blocks/p-6a177aef.entry.js +0 -2
- package/dist/content-blocks/p-6a177aef.entry.js.map +0 -1
- package/dist/esm/swiper-3e7be625.js.map +0 -1
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SSR Window 4.0.2
|
|
3
|
+
* Better handling for window object in SSR environment
|
|
4
|
+
* https://github.com/nolimits4web/ssr-window
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2021, Vladimir Kharlampidi
|
|
7
|
+
*
|
|
8
|
+
* Licensed under MIT
|
|
9
|
+
*
|
|
10
|
+
* Released on: December 13, 2021
|
|
11
|
+
*/
|
|
12
|
+
/* eslint-disable no-param-reassign */
|
|
13
|
+
function isObject$1(obj) {
|
|
14
|
+
return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;
|
|
15
|
+
}
|
|
16
|
+
function extend$1(target, src) {
|
|
17
|
+
if (target === void 0) {
|
|
18
|
+
target = {};
|
|
19
|
+
}
|
|
20
|
+
if (src === void 0) {
|
|
21
|
+
src = {};
|
|
22
|
+
}
|
|
23
|
+
Object.keys(src).forEach(key => {
|
|
24
|
+
if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject$1(src[key]) && isObject$1(target[key]) && Object.keys(src[key]).length > 0) {
|
|
25
|
+
extend$1(target[key], src[key]);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const ssrDocument = {
|
|
30
|
+
body: {},
|
|
31
|
+
addEventListener() {},
|
|
32
|
+
removeEventListener() {},
|
|
33
|
+
activeElement: {
|
|
34
|
+
blur() {},
|
|
35
|
+
nodeName: ''
|
|
36
|
+
},
|
|
37
|
+
querySelector() {
|
|
38
|
+
return null;
|
|
39
|
+
},
|
|
40
|
+
querySelectorAll() {
|
|
41
|
+
return [];
|
|
42
|
+
},
|
|
43
|
+
getElementById() {
|
|
44
|
+
return null;
|
|
45
|
+
},
|
|
46
|
+
createEvent() {
|
|
47
|
+
return {
|
|
48
|
+
initEvent() {}
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
createElement() {
|
|
52
|
+
return {
|
|
53
|
+
children: [],
|
|
54
|
+
childNodes: [],
|
|
55
|
+
style: {},
|
|
56
|
+
setAttribute() {},
|
|
57
|
+
getElementsByTagName() {
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
createElementNS() {
|
|
63
|
+
return {};
|
|
64
|
+
},
|
|
65
|
+
importNode() {
|
|
66
|
+
return null;
|
|
67
|
+
},
|
|
68
|
+
location: {
|
|
69
|
+
hash: '',
|
|
70
|
+
host: '',
|
|
71
|
+
hostname: '',
|
|
72
|
+
href: '',
|
|
73
|
+
origin: '',
|
|
74
|
+
pathname: '',
|
|
75
|
+
protocol: '',
|
|
76
|
+
search: ''
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
function getDocument() {
|
|
80
|
+
const doc = typeof document !== 'undefined' ? document : {};
|
|
81
|
+
extend$1(doc, ssrDocument);
|
|
82
|
+
return doc;
|
|
83
|
+
}
|
|
84
|
+
const ssrWindow = {
|
|
85
|
+
document: ssrDocument,
|
|
86
|
+
navigator: {
|
|
87
|
+
userAgent: ''
|
|
88
|
+
},
|
|
89
|
+
location: {
|
|
90
|
+
hash: '',
|
|
91
|
+
host: '',
|
|
92
|
+
hostname: '',
|
|
93
|
+
href: '',
|
|
94
|
+
origin: '',
|
|
95
|
+
pathname: '',
|
|
96
|
+
protocol: '',
|
|
97
|
+
search: ''
|
|
98
|
+
},
|
|
99
|
+
history: {
|
|
100
|
+
replaceState() {},
|
|
101
|
+
pushState() {},
|
|
102
|
+
go() {},
|
|
103
|
+
back() {}
|
|
104
|
+
},
|
|
105
|
+
CustomEvent: function CustomEvent() {
|
|
106
|
+
return this;
|
|
107
|
+
},
|
|
108
|
+
addEventListener() {},
|
|
109
|
+
removeEventListener() {},
|
|
110
|
+
getComputedStyle() {
|
|
111
|
+
return {
|
|
112
|
+
getPropertyValue() {
|
|
113
|
+
return '';
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
Image() {},
|
|
118
|
+
Date() {},
|
|
119
|
+
screen: {},
|
|
120
|
+
setTimeout() {},
|
|
121
|
+
clearTimeout() {},
|
|
122
|
+
matchMedia() {
|
|
123
|
+
return {};
|
|
124
|
+
},
|
|
125
|
+
requestAnimationFrame(callback) {
|
|
126
|
+
if (typeof setTimeout === 'undefined') {
|
|
127
|
+
callback();
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
return setTimeout(callback, 0);
|
|
131
|
+
},
|
|
132
|
+
cancelAnimationFrame(id) {
|
|
133
|
+
if (typeof setTimeout === 'undefined') {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
clearTimeout(id);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
function getWindow() {
|
|
140
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
141
|
+
extend$1(win, ssrWindow);
|
|
142
|
+
return win;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function classesToTokens(classes) {
|
|
146
|
+
if (classes === void 0) {
|
|
147
|
+
classes = '';
|
|
148
|
+
}
|
|
149
|
+
return classes.trim().split(' ').filter(c => !!c.trim());
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function deleteProps(obj) {
|
|
153
|
+
const object = obj;
|
|
154
|
+
Object.keys(object).forEach(key => {
|
|
155
|
+
try {
|
|
156
|
+
object[key] = null;
|
|
157
|
+
} catch (e) {
|
|
158
|
+
// no getter for object
|
|
159
|
+
}
|
|
160
|
+
try {
|
|
161
|
+
delete object[key];
|
|
162
|
+
} catch (e) {
|
|
163
|
+
// something got wrong
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function nextTick(callback, delay) {
|
|
168
|
+
if (delay === void 0) {
|
|
169
|
+
delay = 0;
|
|
170
|
+
}
|
|
171
|
+
return setTimeout(callback, delay);
|
|
172
|
+
}
|
|
173
|
+
function now() {
|
|
174
|
+
return Date.now();
|
|
175
|
+
}
|
|
176
|
+
function getComputedStyle(el) {
|
|
177
|
+
const window = getWindow();
|
|
178
|
+
let style;
|
|
179
|
+
if (window.getComputedStyle) {
|
|
180
|
+
style = window.getComputedStyle(el, null);
|
|
181
|
+
}
|
|
182
|
+
if (!style && el.currentStyle) {
|
|
183
|
+
style = el.currentStyle;
|
|
184
|
+
}
|
|
185
|
+
if (!style) {
|
|
186
|
+
style = el.style;
|
|
187
|
+
}
|
|
188
|
+
return style;
|
|
189
|
+
}
|
|
190
|
+
function getTranslate(el, axis) {
|
|
191
|
+
if (axis === void 0) {
|
|
192
|
+
axis = 'x';
|
|
193
|
+
}
|
|
194
|
+
const window = getWindow();
|
|
195
|
+
let matrix;
|
|
196
|
+
let curTransform;
|
|
197
|
+
let transformMatrix;
|
|
198
|
+
const curStyle = getComputedStyle(el);
|
|
199
|
+
if (window.WebKitCSSMatrix) {
|
|
200
|
+
curTransform = curStyle.transform || curStyle.webkitTransform;
|
|
201
|
+
if (curTransform.split(',').length > 6) {
|
|
202
|
+
curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');
|
|
203
|
+
}
|
|
204
|
+
// Some old versions of Webkit choke when 'none' is passed; pass
|
|
205
|
+
// empty string instead in this case
|
|
206
|
+
transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);
|
|
207
|
+
} else {
|
|
208
|
+
transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
|
|
209
|
+
matrix = transformMatrix.toString().split(',');
|
|
210
|
+
}
|
|
211
|
+
if (axis === 'x') {
|
|
212
|
+
// Latest Chrome and webkits Fix
|
|
213
|
+
if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;
|
|
214
|
+
// Crazy IE10 Matrix
|
|
215
|
+
else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);
|
|
216
|
+
// Normal Browsers
|
|
217
|
+
else curTransform = parseFloat(matrix[4]);
|
|
218
|
+
}
|
|
219
|
+
if (axis === 'y') {
|
|
220
|
+
// Latest Chrome and webkits Fix
|
|
221
|
+
if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;
|
|
222
|
+
// Crazy IE10 Matrix
|
|
223
|
+
else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);
|
|
224
|
+
// Normal Browsers
|
|
225
|
+
else curTransform = parseFloat(matrix[5]);
|
|
226
|
+
}
|
|
227
|
+
return curTransform || 0;
|
|
228
|
+
}
|
|
229
|
+
function isObject(o) {
|
|
230
|
+
return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';
|
|
231
|
+
}
|
|
232
|
+
function isNode(node) {
|
|
233
|
+
// eslint-disable-next-line
|
|
234
|
+
if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {
|
|
235
|
+
return node instanceof HTMLElement;
|
|
236
|
+
}
|
|
237
|
+
return node && (node.nodeType === 1 || node.nodeType === 11);
|
|
238
|
+
}
|
|
239
|
+
function extend() {
|
|
240
|
+
const to = Object(arguments.length <= 0 ? undefined : arguments[0]);
|
|
241
|
+
const noExtend = ['__proto__', 'constructor', 'prototype'];
|
|
242
|
+
for (let i = 1; i < arguments.length; i += 1) {
|
|
243
|
+
const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];
|
|
244
|
+
if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {
|
|
245
|
+
const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);
|
|
246
|
+
for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
|
|
247
|
+
const nextKey = keysArray[nextIndex];
|
|
248
|
+
const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
|
|
249
|
+
if (desc !== undefined && desc.enumerable) {
|
|
250
|
+
if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
|
|
251
|
+
if (nextSource[nextKey].__swiper__) {
|
|
252
|
+
to[nextKey] = nextSource[nextKey];
|
|
253
|
+
} else {
|
|
254
|
+
extend(to[nextKey], nextSource[nextKey]);
|
|
255
|
+
}
|
|
256
|
+
} else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
|
|
257
|
+
to[nextKey] = {};
|
|
258
|
+
if (nextSource[nextKey].__swiper__) {
|
|
259
|
+
to[nextKey] = nextSource[nextKey];
|
|
260
|
+
} else {
|
|
261
|
+
extend(to[nextKey], nextSource[nextKey]);
|
|
262
|
+
}
|
|
263
|
+
} else {
|
|
264
|
+
to[nextKey] = nextSource[nextKey];
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return to;
|
|
271
|
+
}
|
|
272
|
+
function setCSSProperty(el, varName, varValue) {
|
|
273
|
+
el.style.setProperty(varName, varValue);
|
|
274
|
+
}
|
|
275
|
+
function animateCSSModeScroll(_ref) {
|
|
276
|
+
let {
|
|
277
|
+
swiper,
|
|
278
|
+
targetPosition,
|
|
279
|
+
side
|
|
280
|
+
} = _ref;
|
|
281
|
+
const window = getWindow();
|
|
282
|
+
const startPosition = -swiper.translate;
|
|
283
|
+
let startTime = null;
|
|
284
|
+
let time;
|
|
285
|
+
const duration = swiper.params.speed;
|
|
286
|
+
swiper.wrapperEl.style.scrollSnapType = 'none';
|
|
287
|
+
window.cancelAnimationFrame(swiper.cssModeFrameID);
|
|
288
|
+
const dir = targetPosition > startPosition ? 'next' : 'prev';
|
|
289
|
+
const isOutOfBound = (current, target) => {
|
|
290
|
+
return dir === 'next' && current >= target || dir === 'prev' && current <= target;
|
|
291
|
+
};
|
|
292
|
+
const animate = () => {
|
|
293
|
+
time = new Date().getTime();
|
|
294
|
+
if (startTime === null) {
|
|
295
|
+
startTime = time;
|
|
296
|
+
}
|
|
297
|
+
const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);
|
|
298
|
+
const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;
|
|
299
|
+
let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);
|
|
300
|
+
if (isOutOfBound(currentPosition, targetPosition)) {
|
|
301
|
+
currentPosition = targetPosition;
|
|
302
|
+
}
|
|
303
|
+
swiper.wrapperEl.scrollTo({
|
|
304
|
+
[side]: currentPosition
|
|
305
|
+
});
|
|
306
|
+
if (isOutOfBound(currentPosition, targetPosition)) {
|
|
307
|
+
swiper.wrapperEl.style.overflow = 'hidden';
|
|
308
|
+
swiper.wrapperEl.style.scrollSnapType = '';
|
|
309
|
+
setTimeout(() => {
|
|
310
|
+
swiper.wrapperEl.style.overflow = '';
|
|
311
|
+
swiper.wrapperEl.scrollTo({
|
|
312
|
+
[side]: currentPosition
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
window.cancelAnimationFrame(swiper.cssModeFrameID);
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
swiper.cssModeFrameID = window.requestAnimationFrame(animate);
|
|
319
|
+
};
|
|
320
|
+
animate();
|
|
321
|
+
}
|
|
322
|
+
function getSlideTransformEl(slideEl) {
|
|
323
|
+
return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;
|
|
324
|
+
}
|
|
325
|
+
function elementChildren(element, selector) {
|
|
326
|
+
if (selector === void 0) {
|
|
327
|
+
selector = '';
|
|
328
|
+
}
|
|
329
|
+
return [...element.children].filter(el => el.matches(selector));
|
|
330
|
+
}
|
|
331
|
+
function showWarning(text) {
|
|
332
|
+
try {
|
|
333
|
+
console.warn(text);
|
|
334
|
+
return;
|
|
335
|
+
} catch (err) {
|
|
336
|
+
// err
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
function createElement(tag, classes) {
|
|
340
|
+
if (classes === void 0) {
|
|
341
|
+
classes = [];
|
|
342
|
+
}
|
|
343
|
+
const el = document.createElement(tag);
|
|
344
|
+
el.classList.add(...(Array.isArray(classes) ? classes : classesToTokens(classes)));
|
|
345
|
+
return el;
|
|
346
|
+
}
|
|
347
|
+
function elementOffset(el) {
|
|
348
|
+
const window = getWindow();
|
|
349
|
+
const document = getDocument();
|
|
350
|
+
const box = el.getBoundingClientRect();
|
|
351
|
+
const body = document.body;
|
|
352
|
+
const clientTop = el.clientTop || body.clientTop || 0;
|
|
353
|
+
const clientLeft = el.clientLeft || body.clientLeft || 0;
|
|
354
|
+
const scrollTop = el === window ? window.scrollY : el.scrollTop;
|
|
355
|
+
const scrollLeft = el === window ? window.scrollX : el.scrollLeft;
|
|
356
|
+
return {
|
|
357
|
+
top: box.top + scrollTop - clientTop,
|
|
358
|
+
left: box.left + scrollLeft - clientLeft
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
function elementPrevAll(el, selector) {
|
|
362
|
+
const prevEls = [];
|
|
363
|
+
while (el.previousElementSibling) {
|
|
364
|
+
const prev = el.previousElementSibling; // eslint-disable-line
|
|
365
|
+
if (selector) {
|
|
366
|
+
if (prev.matches(selector)) prevEls.push(prev);
|
|
367
|
+
} else prevEls.push(prev);
|
|
368
|
+
el = prev;
|
|
369
|
+
}
|
|
370
|
+
return prevEls;
|
|
371
|
+
}
|
|
372
|
+
function elementNextAll(el, selector) {
|
|
373
|
+
const nextEls = [];
|
|
374
|
+
while (el.nextElementSibling) {
|
|
375
|
+
const next = el.nextElementSibling; // eslint-disable-line
|
|
376
|
+
if (selector) {
|
|
377
|
+
if (next.matches(selector)) nextEls.push(next);
|
|
378
|
+
} else nextEls.push(next);
|
|
379
|
+
el = next;
|
|
380
|
+
}
|
|
381
|
+
return nextEls;
|
|
382
|
+
}
|
|
383
|
+
function elementStyle(el, prop) {
|
|
384
|
+
const window = getWindow();
|
|
385
|
+
return window.getComputedStyle(el, null).getPropertyValue(prop);
|
|
386
|
+
}
|
|
387
|
+
function elementIndex(el) {
|
|
388
|
+
let child = el;
|
|
389
|
+
let i;
|
|
390
|
+
if (child) {
|
|
391
|
+
i = 0;
|
|
392
|
+
// eslint-disable-next-line
|
|
393
|
+
while ((child = child.previousSibling) !== null) {
|
|
394
|
+
if (child.nodeType === 1) i += 1;
|
|
395
|
+
}
|
|
396
|
+
return i;
|
|
397
|
+
}
|
|
398
|
+
return undefined;
|
|
399
|
+
}
|
|
400
|
+
function elementParents(el, selector) {
|
|
401
|
+
const parents = []; // eslint-disable-line
|
|
402
|
+
let parent = el.parentElement; // eslint-disable-line
|
|
403
|
+
while (parent) {
|
|
404
|
+
if (selector) {
|
|
405
|
+
if (parent.matches(selector)) parents.push(parent);
|
|
406
|
+
} else {
|
|
407
|
+
parents.push(parent);
|
|
408
|
+
}
|
|
409
|
+
parent = parent.parentElement;
|
|
410
|
+
}
|
|
411
|
+
return parents;
|
|
412
|
+
}
|
|
413
|
+
function elementTransitionEnd(el, callback) {
|
|
414
|
+
function fireCallBack(e) {
|
|
415
|
+
if (e.target !== el) return;
|
|
416
|
+
callback.call(el, e);
|
|
417
|
+
el.removeEventListener('transitionend', fireCallBack);
|
|
418
|
+
}
|
|
419
|
+
if (callback) {
|
|
420
|
+
el.addEventListener('transitionend', fireCallBack);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function elementOuterSize(el, size, includeMargins) {
|
|
424
|
+
const window = getWindow();
|
|
425
|
+
if (includeMargins) {
|
|
426
|
+
return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));
|
|
427
|
+
}
|
|
428
|
+
return el.offsetWidth;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export { elementChildren as a, elementIndex as b, createElement as c, elementStyle as d, extend as e, deleteProps as f, getDocument as g, getWindow as h, elementParents as i, elementOuterSize as j, elementNextAll as k, elementPrevAll as l, getTranslate as m, animateCSSModeScroll as n, nextTick as o, showWarning as p, now as q, elementOffset as r, setCSSProperty as s, classesToTokens as t, elementTransitionEnd as u, isObject as v, getSlideTransformEl as w };
|
|
432
|
+
|
|
433
|
+
//# sourceMappingURL=utils-075121ec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"utils-075121ec.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,UAAQ,CAAC,GAAG,EAAE;AACvB,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,KAAK,MAAM,CAAC;AACvG,CAAC;AACD,SAASC,QAAM,CAAC,MAAM,EAAE,GAAG,EAAE;AAC7B,EAAE,IAAI,MAAM,KAAK,KAAK,CAAC,EAAE;AACzB,IAAI,MAAM,GAAG,EAAE,CAAC;AAChB,GAAG;AACH,EAAE,IAAI,GAAG,KAAK,KAAK,CAAC,EAAE;AACtB,IAAI,GAAG,GAAG,EAAE,CAAC;AACb,GAAG;AACH,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI;AAClC,IAAI,IAAI,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,IAAID,UAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,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I,IAAI,CAAC,CAAC,MAAM,KAAK,EAAE,EAAE,OAAO;AAChC,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AACzB,IAAI,EAAE,CAAC,mBAAmB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;AAC1D,GAAG;AACH,EAAE,IAAI,QAAQ,EAAE;AAChB,IAAI,EAAE,CAAC,gBAAgB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;AACvD,GAAG;AACH,CAAC;AACD,SAAS,gBAAgB,CAAC,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;AACpD,EAAE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;AAC7B,EAAE,IAAI,cAAc,EAAE;AACtB,IAAI,OAAO,EAAE,CAAC,IAAI,KAAK,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,gBAAgB,CAAC,IAAI,KAAK,OAAO,GAAG,cAAc,GAAG,YAAY,CAAC,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,gBAAgB,CAAC,IAAI,KAAK,OAAO,GAAG,aAAa,GAAG,eAAe,CAAC,CAAC,CAAC;AACzS,GAAG;AACH,EAAE,OAAO,EAAE,CAAC,WAAW,CAAC;AACxB;;;;","names":["isObject","extend"],"sources":["../../node_modules/swiper/shared/ssr-window.esm.mjs","../../node_modules/swiper/shared/utils.mjs"],"sourcesContent":["/**\n * SSR Window 4.0.2\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2021, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: December 13, 2021\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n if (target === void 0) {\n target = {};\n }\n if (src === void 0) {\n src = {};\n }\n Object.keys(src).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { getWindow as a, getDocument as g };\n","import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\n\nfunction classesToTokens(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return classes.trim().split(' ').filter(c => !!c.trim());\n}\n\nfunction deleteProps(obj) {\n const object = obj;\n Object.keys(object).forEach(key => {\n try {\n object[key] = null;\n } catch (e) {\n // no getter for object\n }\n try {\n delete object[key];\n } catch (e) {\n // something got wrong\n }\n });\n}\nfunction nextTick(callback, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return setTimeout(callback, delay);\n}\nfunction now() {\n return Date.now();\n}\nfunction getComputedStyle(el) {\n const window = getWindow();\n let style;\n if (window.getComputedStyle) {\n style = window.getComputedStyle(el, null);\n }\n if (!style && el.currentStyle) {\n style = el.currentStyle;\n }\n if (!style) {\n style = el.style;\n }\n return style;\n}\nfunction getTranslate(el, axis) {\n if (axis === void 0) {\n axis = 'x';\n }\n const window = getWindow();\n let matrix;\n let curTransform;\n let transformMatrix;\n const curStyle = getComputedStyle(el);\n if (window.WebKitCSSMatrix) {\n curTransform = curStyle.transform || curStyle.webkitTransform;\n if (curTransform.split(',').length > 6) {\n curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');\n }\n // Some old versions of Webkit choke when 'none' is passed; pass\n // empty string instead in this case\n transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\n } else {\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\n matrix = transformMatrix.toString().split(',');\n }\n if (axis === 'x') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[4]);\n }\n if (axis === 'y') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[5]);\n }\n return curTransform || 0;\n}\nfunction isObject(o) {\n return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';\n}\nfunction isNode(node) {\n // eslint-disable-next-line\n if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {\n return node instanceof HTMLElement;\n }\n return node && (node.nodeType === 1 || node.nodeType === 11);\n}\nfunction extend() {\n const to = Object(arguments.length <= 0 ? undefined : arguments[0]);\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n for (let i = 1; i < arguments.length; i += 1) {\n const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];\n if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {\n const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);\n for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\n const nextKey = keysArray[nextIndex];\n const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n to[nextKey] = {};\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n }\n return to;\n}\nfunction setCSSProperty(el, varName, varValue) {\n el.style.setProperty(varName, varValue);\n}\nfunction animateCSSModeScroll(_ref) {\n let {\n swiper,\n targetPosition,\n side\n } = _ref;\n const window = getWindow();\n const startPosition = -swiper.translate;\n let startTime = null;\n let time;\n const duration = swiper.params.speed;\n swiper.wrapperEl.style.scrollSnapType = 'none';\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n const dir = targetPosition > startPosition ? 'next' : 'prev';\n const isOutOfBound = (current, target) => {\n return dir === 'next' && current >= target || dir === 'prev' && current <= target;\n };\n const animate = () => {\n time = new Date().getTime();\n if (startTime === null) {\n startTime = time;\n }\n const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);\n const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;\n let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);\n if (isOutOfBound(currentPosition, targetPosition)) {\n currentPosition = targetPosition;\n }\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n if (isOutOfBound(currentPosition, targetPosition)) {\n swiper.wrapperEl.style.overflow = 'hidden';\n swiper.wrapperEl.style.scrollSnapType = '';\n setTimeout(() => {\n swiper.wrapperEl.style.overflow = '';\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n });\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n return;\n }\n swiper.cssModeFrameID = window.requestAnimationFrame(animate);\n };\n animate();\n}\nfunction getSlideTransformEl(slideEl) {\n return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;\n}\nfunction elementChildren(element, selector) {\n if (selector === void 0) {\n selector = '';\n }\n return [...element.children].filter(el => el.matches(selector));\n}\nfunction showWarning(text) {\n try {\n console.warn(text);\n return;\n } catch (err) {\n // err\n }\n}\nfunction createElement(tag, classes) {\n if (classes === void 0) {\n classes = [];\n }\n const el = document.createElement(tag);\n el.classList.add(...(Array.isArray(classes) ? classes : classesToTokens(classes)));\n return el;\n}\nfunction elementOffset(el) {\n const window = getWindow();\n const document = getDocument();\n const box = el.getBoundingClientRect();\n const body = document.body;\n const clientTop = el.clientTop || body.clientTop || 0;\n const clientLeft = el.clientLeft || body.clientLeft || 0;\n const scrollTop = el === window ? window.scrollY : el.scrollTop;\n const scrollLeft = el === window ? window.scrollX : el.scrollLeft;\n return {\n top: box.top + scrollTop - clientTop,\n left: box.left + scrollLeft - clientLeft\n };\n}\nfunction elementPrevAll(el, selector) {\n const prevEls = [];\n while (el.previousElementSibling) {\n const prev = el.previousElementSibling; // eslint-disable-line\n if (selector) {\n if (prev.matches(selector)) prevEls.push(prev);\n } else prevEls.push(prev);\n el = prev;\n }\n return prevEls;\n}\nfunction elementNextAll(el, selector) {\n const nextEls = [];\n while (el.nextElementSibling) {\n const next = el.nextElementSibling; // eslint-disable-line\n if (selector) {\n if (next.matches(selector)) nextEls.push(next);\n } else nextEls.push(next);\n el = next;\n }\n return nextEls;\n}\nfunction elementStyle(el, prop) {\n const window = getWindow();\n return window.getComputedStyle(el, null).getPropertyValue(prop);\n}\nfunction elementIndex(el) {\n let child = el;\n let i;\n if (child) {\n i = 0;\n // eslint-disable-next-line\n while ((child = child.previousSibling) !== null) {\n if (child.nodeType === 1) i += 1;\n }\n return i;\n }\n return undefined;\n}\nfunction elementParents(el, selector) {\n const parents = []; // eslint-disable-line\n let parent = el.parentElement; // eslint-disable-line\n while (parent) {\n if (selector) {\n if (parent.matches(selector)) parents.push(parent);\n } else {\n parents.push(parent);\n }\n parent = parent.parentElement;\n }\n return parents;\n}\nfunction elementTransitionEnd(el, callback) {\n function fireCallBack(e) {\n if (e.target !== el) return;\n callback.call(el, e);\n el.removeEventListener('transitionend', fireCallBack);\n }\n if (callback) {\n el.addEventListener('transitionend', fireCallBack);\n }\n}\nfunction elementOuterSize(el, size, includeMargins) {\n const window = getWindow();\n if (includeMargins) {\n return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));\n }\n return el.offsetWidth;\n}\n\nexport { elementParents as a, elementOffset as b, createElement as c, now as d, elementChildren as e, elementOuterSize as f, elementIndex as g, classesToTokens as h, getTranslate as i, elementTransitionEnd as j, isObject as k, getSlideTransformEl as l, elementStyle as m, nextTick as n, elementNextAll as o, elementPrevAll as p, animateCSSModeScroll as q, showWarning as r, setCSSProperty as s, extend as t, deleteProps as u };\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"window-resize-service-f40ec51c.js","mappings":";;;AAIA,MAAM,sBAAsB;;IAK1B;QAJA,sBAAiB,GAAG,yBAAyB,EAAE,CAAC;QAChD,qBAAgB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;
|
|
1
|
+
{"file":"window-resize-service-f40ec51c.js","mappings":";;;AAIA,MAAM,sBAAsB;;IAK1B;QAJA,sBAAiB,GAAG,yBAAyB,EAAE,CAAC;QAChD,qBAAgB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAItF,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,QAAQ;YAChD,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAClC;YACD,IAAI,WAAW,GAAG,yBAAyB,EAAE,CAAC;YAC9C,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,EAAE;gBAC/C,OAAO,KAAK,CAAC;aACd;YACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACzC,CAAC,CAAC;QAEH,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KAC9C;IAED,YAAY,CAAC,eAAe;QAC1B,OAAO,IAAI,UAAU,CAAC,QAAQ;YAC5B,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC;gBAC9B,IAAI,SAAS,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;gBACjD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC1B,CAAC,CAAC;SACJ,CAAC,CAAC;KACJ;CACF;MAEY,mBAAmB,GAAG,IAAI,sBAAsB;;;;","names":[],"sources":["src/services/window-resize-service.ts"],"sourcesContent":["import { BehaviorSubject, Observable } from \"rxjs\";\nimport { getCurrentBreakpointIndex, getCurrentValue } from \"../utils/utils\";\nimport _ from 'underscore';\n\nclass WindowResizeController {\n currentBreakpoint = getCurrentBreakpointIndex();\n breakpointIndex$: BehaviorSubject<number> = new BehaviorSubject(this.currentBreakpoint);\n timeoutHolder: number;\n // timeoutHolder: Timeout;\n constructor() {\n const resizeObserver = new ResizeObserver(_entries => {\n if (this.timeoutHolder) {\n clearTimeout(this.timeoutHolder);\n }\n let activeValue = getCurrentBreakpointIndex();\n if (this.breakpointIndex$.value === activeValue) {\n return false;\n }\n this.breakpointIndex$.next(activeValue);\n });\n\n resizeObserver.observe(window.document.body);\n }\n\n registerProp(activePropValue): Observable<string | boolean | number> {\n return new Observable(observer => {\n observer.next(getCurrentValue(activePropValue));\n this.breakpointIndex$.subscribe(() => {\n let nextValue = getCurrentValue(activePropValue);\n observer.next(nextValue);\n });\n });\n }\n}\n\nexport const WindowResizeService = new WindowResizeController();"],"version":3}
|
|
@@ -22,12 +22,12 @@ export declare class ContentCarousel {
|
|
|
22
22
|
swiper?: HTMLDivElement;
|
|
23
23
|
swiperWrapper?: HTMLDivElement;
|
|
24
24
|
swiperPagination?: HTMLDivElement;
|
|
25
|
-
swiperPrevElement?:
|
|
26
|
-
swiperNextElement?:
|
|
25
|
+
swiperPrevElement?: HTMLButtonElement;
|
|
26
|
+
swiperNextElement?: HTMLButtonElement;
|
|
27
27
|
swiperScrollbar?: HTMLDivElement;
|
|
28
28
|
swiperOptionsFinal: any;
|
|
29
29
|
loadStatus: BehaviorSubject<boolean>;
|
|
30
|
-
getSwiperOptions(newOptions: string):
|
|
30
|
+
getSwiperOptions(newOptions: string): object;
|
|
31
31
|
componentDidLoad(): void;
|
|
32
32
|
setSwiperOptionsCallback(event: CustomEvent): void;
|
|
33
33
|
initSwiper(): Promise<void>;
|
|
@@ -3,6 +3,7 @@ import { ResponsiveString } from '../../typings';
|
|
|
3
3
|
/**
|
|
4
4
|
* @slot openButton - This slot will expand the navigation when clicked.
|
|
5
5
|
* @slot closeButton - This slot will close the navigation when clicked.
|
|
6
|
+
* @slot skipContent - This slot is a keyboard-focus link that lets a screen-reader or keyboard user skip the navigation block and scroll to the end.
|
|
6
7
|
* @slot content - Default slot
|
|
7
8
|
*/
|
|
8
9
|
export declare class ContentNavigationBlock {
|
|
@@ -11,6 +12,7 @@ export declare class ContentNavigationBlock {
|
|
|
11
12
|
* @responsive
|
|
12
13
|
* @options fixed
|
|
13
14
|
* @options absolute
|
|
15
|
+
* @options sticky
|
|
14
16
|
* @options static
|
|
15
17
|
* @options none
|
|
16
18
|
*/
|
|
@@ -24,8 +26,17 @@ export declare class ContentNavigationBlock {
|
|
|
24
26
|
hostElement: HTMLStencilElement;
|
|
25
27
|
ariaExpanded: string;
|
|
26
28
|
bodyToggle: boolean;
|
|
29
|
+
skipAccessibilityMessage: HTMLElement;
|
|
30
|
+
hasOpenButton: boolean;
|
|
31
|
+
hasCloseButton: boolean;
|
|
32
|
+
openButton: HTMLElement;
|
|
33
|
+
closeButton: HTMLElement;
|
|
34
|
+
contentSlot: HTMLElement;
|
|
35
|
+
focusTrap: any;
|
|
27
36
|
componentWillLoad(): void;
|
|
28
37
|
componentDidLoad(): void;
|
|
38
|
+
openMenu(): void;
|
|
39
|
+
closeMenu(): void;
|
|
29
40
|
render(): any;
|
|
30
41
|
}
|
|
31
42
|
//# sourceMappingURL=content-navigation-block.d.ts.map
|
|
@@ -52,6 +52,15 @@ export declare class ContentOverlay {
|
|
|
52
52
|
* @type String
|
|
53
53
|
*/
|
|
54
54
|
closeTitle: string;
|
|
55
|
+
/**
|
|
56
|
+
* Position of the overlay.
|
|
57
|
+
* @type Select
|
|
58
|
+
* @options absolute
|
|
59
|
+
* @options fixed
|
|
60
|
+
* @options static
|
|
61
|
+
* @options sticky
|
|
62
|
+
*/
|
|
63
|
+
position: ResponsiveString;
|
|
55
64
|
isActive: boolean;
|
|
56
65
|
activeClass: string;
|
|
57
66
|
classString: string;
|
|
@@ -128,6 +128,11 @@ export namespace Components {
|
|
|
128
128
|
* @responsive
|
|
129
129
|
*/
|
|
130
130
|
"horizontal": FLEX_JUSTIFY_OPTIONS;
|
|
131
|
+
/**
|
|
132
|
+
* @type Number
|
|
133
|
+
* @responsive
|
|
134
|
+
*/
|
|
135
|
+
"rowGap": ResponsiveNumber;
|
|
131
136
|
/**
|
|
132
137
|
* Flex or grid
|
|
133
138
|
* @type Select
|
|
@@ -267,6 +272,7 @@ export namespace Components {
|
|
|
267
272
|
* @responsive
|
|
268
273
|
* @options fixed
|
|
269
274
|
* @options absolute
|
|
275
|
+
* @options sticky
|
|
270
276
|
* @options static
|
|
271
277
|
* @options none
|
|
272
278
|
*/
|
|
@@ -305,6 +311,15 @@ export namespace Components {
|
|
|
305
311
|
*/
|
|
306
312
|
"open": ResponsiveBoolean;
|
|
307
313
|
"openOverlay": () => Promise<void>;
|
|
314
|
+
/**
|
|
315
|
+
* Position of the overlay.
|
|
316
|
+
* @type Select
|
|
317
|
+
* @options absolute
|
|
318
|
+
* @options fixed
|
|
319
|
+
* @options static
|
|
320
|
+
* @options sticky
|
|
321
|
+
*/
|
|
322
|
+
"position": ResponsiveString;
|
|
308
323
|
/**
|
|
309
324
|
* @type String
|
|
310
325
|
* @responsive
|
|
@@ -391,9 +406,10 @@ export namespace Components {
|
|
|
391
406
|
* @options top
|
|
392
407
|
* @options center
|
|
393
408
|
* @options bottom
|
|
409
|
+
* @options default
|
|
394
410
|
* @responsive
|
|
395
411
|
*/
|
|
396
|
-
"vertical": ContentVerticalAlignments;
|
|
412
|
+
"vertical": ResponsiveString | ContentVerticalAlignments;
|
|
397
413
|
}
|
|
398
414
|
interface ContentSplitBlock {
|
|
399
415
|
/**
|
|
@@ -761,6 +777,11 @@ declare namespace LocalJSX {
|
|
|
761
777
|
* @responsive
|
|
762
778
|
*/
|
|
763
779
|
"horizontal"?: FLEX_JUSTIFY_OPTIONS;
|
|
780
|
+
/**
|
|
781
|
+
* @type Number
|
|
782
|
+
* @responsive
|
|
783
|
+
*/
|
|
784
|
+
"rowGap"?: ResponsiveNumber;
|
|
764
785
|
/**
|
|
765
786
|
* Flex or grid
|
|
766
787
|
* @type Select
|
|
@@ -900,6 +921,7 @@ declare namespace LocalJSX {
|
|
|
900
921
|
* @responsive
|
|
901
922
|
* @options fixed
|
|
902
923
|
* @options absolute
|
|
924
|
+
* @options sticky
|
|
903
925
|
* @options static
|
|
904
926
|
* @options none
|
|
905
927
|
*/
|
|
@@ -937,6 +959,15 @@ declare namespace LocalJSX {
|
|
|
937
959
|
* @responsive
|
|
938
960
|
*/
|
|
939
961
|
"open"?: ResponsiveBoolean;
|
|
962
|
+
/**
|
|
963
|
+
* Position of the overlay.
|
|
964
|
+
* @type Select
|
|
965
|
+
* @options absolute
|
|
966
|
+
* @options fixed
|
|
967
|
+
* @options static
|
|
968
|
+
* @options sticky
|
|
969
|
+
*/
|
|
970
|
+
"position"?: ResponsiveString;
|
|
940
971
|
/**
|
|
941
972
|
* @type String
|
|
942
973
|
* @responsive
|
|
@@ -1023,9 +1054,10 @@ declare namespace LocalJSX {
|
|
|
1023
1054
|
* @options top
|
|
1024
1055
|
* @options center
|
|
1025
1056
|
* @options bottom
|
|
1057
|
+
* @options default
|
|
1026
1058
|
* @responsive
|
|
1027
1059
|
*/
|
|
1028
|
-
"vertical"?: ContentVerticalAlignments;
|
|
1060
|
+
"vertical"?: ResponsiveString | ContentVerticalAlignments;
|
|
1029
1061
|
}
|
|
1030
1062
|
interface ContentSplitBlock {
|
|
1031
1063
|
/**
|