@openeuropa/bcl-theme-joinup 1.0.2 → 1.1.1
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/css/oe-bcl-joinup.css +12 -165
- package/css/oe-bcl-joinup.css.map +1 -1
- package/css/oe-bcl-joinup.min.css +1 -1
- package/css/oe-bcl-joinup.min.css.map +1 -1
- package/icons/bcl-default-icons.svg +1 -1
- package/icons/bootstrap-icons.svg +1 -1
- package/icons/icons-flag.svg +1 -1
- package/js/oe-bcl-joinup.bundle.js +8 -8
- package/js/oe-bcl-joinup.bundle.js.map +1 -1
- package/js/oe-bcl-joinup.bundle.min.js +1 -1
- package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
- package/js/oe-bcl-joinup.esm.js +5 -4
- package/js/oe-bcl-joinup.esm.js.map +1 -1
- package/js/oe-bcl-joinup.esm.min.js +1 -1
- package/js/oe-bcl-joinup.esm.min.js.map +1 -1
- package/js/oe-bcl-joinup.umd.js +8 -8
- package/js/oe-bcl-joinup.umd.js.map +1 -1
- package/js/oe-bcl-joinup.umd.min.js +1 -1
- package/js/oe-bcl-joinup.umd.min.js.map +1 -1
- package/package.json +13 -13
- package/templates/bcl-badge/badge.html.twig +2 -1
- package/templates/bcl-offcanvas/offcanvas.html.twig +1 -0
package/js/oe-bcl-joinup.umd.js
CHANGED
|
@@ -1816,7 +1816,7 @@
|
|
|
1816
1816
|
|
|
1817
1817
|
function getUAString() {
|
|
1818
1818
|
var uaData = navigator.userAgentData;
|
|
1819
|
-
if (uaData != null && uaData.brands) {
|
|
1819
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
1820
1820
|
return uaData.brands.map(function (item) {
|
|
1821
1821
|
return item.brand + "/" + item.version;
|
|
1822
1822
|
}).join(' ');
|
|
@@ -2111,10 +2111,9 @@
|
|
|
2111
2111
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2112
2112
|
// cleanly divide the values into the appropriate subpixels.
|
|
2113
2113
|
|
|
2114
|
-
function roundOffsetsByDPR(_ref) {
|
|
2114
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
2115
2115
|
var x = _ref.x,
|
|
2116
2116
|
y = _ref.y;
|
|
2117
|
-
var win = window;
|
|
2118
2117
|
var dpr = win.devicePixelRatio || 1;
|
|
2119
2118
|
return {
|
|
2120
2119
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -2187,7 +2186,7 @@
|
|
|
2187
2186
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
2188
2187
|
x: x,
|
|
2189
2188
|
y: y
|
|
2190
|
-
}) : {
|
|
2189
|
+
}, getWindow(popper)) : {
|
|
2191
2190
|
x: x,
|
|
2192
2191
|
y: y
|
|
2193
2192
|
};
|
|
@@ -3885,12 +3884,13 @@
|
|
|
3885
3884
|
class Gallery extends BaseComponent {
|
|
3886
3885
|
constructor(element, config) {
|
|
3887
3886
|
super(element, config);
|
|
3888
|
-
|
|
3889
|
-
this.
|
|
3887
|
+
/* eslint no-underscore-dangle: ["error", { "allow": ["_element"] }] */
|
|
3888
|
+
this.carousel = SelectorEngine.findOne(CAROUSEL_SELECTOR, this._element);
|
|
3889
|
+
this.carouselPager = SelectorEngine.findOne(CAROUSEL_PAGER_SELECTOR, this._element);
|
|
3890
3890
|
this.carouselStartIndex = element.getAttribute('data-gallery-start');
|
|
3891
3891
|
this.carouselActiveItem = SelectorEngine.find(CAROUSEL_ITEM_SELECTOR, this.carousel)[this.carouselStartIndex];
|
|
3892
3892
|
this.carouselPager.textContent = Number(this.carouselStartIndex) + 1;
|
|
3893
|
-
this.modal = SelectorEngine.findOne(MODAL_SELECTOR, this.
|
|
3893
|
+
this.modal = SelectorEngine.findOne(MODAL_SELECTOR, this._element);
|
|
3894
3894
|
this.addEventListeners();
|
|
3895
3895
|
this.carouselLazyLoad(this.carouselActiveItem);
|
|
3896
3896
|
}
|
|
@@ -5884,7 +5884,7 @@
|
|
|
5884
5884
|
// Static
|
|
5885
5885
|
static jQueryInterface(config) {
|
|
5886
5886
|
return this.each(function () {
|
|
5887
|
-
const data = ScrollSpy
|
|
5887
|
+
const data = ScrollSpy.getOrCreateInstance(this, config);
|
|
5888
5888
|
if (typeof config !== 'string') {
|
|
5889
5889
|
return;
|
|
5890
5890
|
}
|