@openeuropa/bcl-theme-default 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/bcl-builder.config.js +16 -2
- package/css/oe-bcl-ckeditor5.min.css +2 -0
- package/css/oe-bcl-ckeditor5.min.css.map +1 -0
- package/css/oe-bcl-default.css +11 -152
- package/css/oe-bcl-default.css.map +1 -1
- package/css/oe-bcl-default.min.css +1 -1
- package/css/oe-bcl-default.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-default.bundle.js +8 -8
- package/js/oe-bcl-default.bundle.js.map +1 -1
- package/js/oe-bcl-default.bundle.min.js +1 -1
- package/js/oe-bcl-default.bundle.min.js.map +1 -1
- package/js/oe-bcl-default.esm.js +5 -4
- package/js/oe-bcl-default.esm.js.map +1 -1
- package/js/oe-bcl-default.esm.min.js +1 -1
- package/js/oe-bcl-default.esm.min.js.map +1 -1
- package/js/oe-bcl-default.umd.js +8 -8
- package/js/oe-bcl-default.umd.js.map +1 -1
- package/js/oe-bcl-default.umd.min.js +1 -1
- package/js/oe-bcl-default.umd.min.js.map +1 -1
- package/package.json +9 -9
- package/src/icons/custom-icons/email.svg +3 -0
- package/src/icons/custom-icons/flickr.svg +3 -0
- package/src/icons/custom-icons/pinterest.svg +10 -0
- package/src/icons/custom-icons/storify.svg +10 -0
- package/src/icons/custom-icons/yammer.svg +3 -0
- package/src/icons/custom-icons.js +8 -0
- package/src/js/gallery/gallery.js +4 -3
- package/src/scss/_badge.scss +1 -30
- package/src/scss/_multiselect.scss +6 -2
- package/templates/bcl-badge/badge.html.twig +2 -1
- package/templates/bcl-offcanvas/offcanvas.html.twig +1 -0
|
@@ -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(' ');
|
|
@@ -2103,10 +2103,9 @@
|
|
|
2103
2103
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2104
2104
|
// cleanly divide the values into the appropriate subpixels.
|
|
2105
2105
|
|
|
2106
|
-
function roundOffsetsByDPR(_ref) {
|
|
2106
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
2107
2107
|
var x = _ref.x,
|
|
2108
2108
|
y = _ref.y;
|
|
2109
|
-
var win = window;
|
|
2110
2109
|
var dpr = win.devicePixelRatio || 1;
|
|
2111
2110
|
return {
|
|
2112
2111
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -2179,7 +2178,7 @@
|
|
|
2179
2178
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
2180
2179
|
x: x,
|
|
2181
2180
|
y: y
|
|
2182
|
-
}) : {
|
|
2181
|
+
}, getWindow(popper)) : {
|
|
2183
2182
|
x: x,
|
|
2184
2183
|
y: y
|
|
2185
2184
|
};
|
|
@@ -3736,12 +3735,13 @@
|
|
|
3736
3735
|
class Gallery extends BaseComponent {
|
|
3737
3736
|
constructor(element, config) {
|
|
3738
3737
|
super(element, config);
|
|
3739
|
-
|
|
3740
|
-
this.
|
|
3738
|
+
/* eslint no-underscore-dangle: ["error", { "allow": ["_element"] }] */
|
|
3739
|
+
this.carousel = SelectorEngine.findOne(CAROUSEL_SELECTOR, this._element);
|
|
3740
|
+
this.carouselPager = SelectorEngine.findOne(CAROUSEL_PAGER_SELECTOR, this._element);
|
|
3741
3741
|
this.carouselStartIndex = element.getAttribute('data-gallery-start');
|
|
3742
3742
|
this.carouselActiveItem = SelectorEngine.find(CAROUSEL_ITEM_SELECTOR, this.carousel)[this.carouselStartIndex];
|
|
3743
3743
|
this.carouselPager.textContent = Number(this.carouselStartIndex) + 1;
|
|
3744
|
-
this.modal = SelectorEngine.findOne(MODAL_SELECTOR, this.
|
|
3744
|
+
this.modal = SelectorEngine.findOne(MODAL_SELECTOR, this._element);
|
|
3745
3745
|
this.addEventListeners();
|
|
3746
3746
|
this.carouselLazyLoad(this.carouselActiveItem);
|
|
3747
3747
|
}
|
|
@@ -5735,7 +5735,7 @@
|
|
|
5735
5735
|
// Static
|
|
5736
5736
|
static jQueryInterface(config) {
|
|
5737
5737
|
return this.each(function () {
|
|
5738
|
-
const data = ScrollSpy
|
|
5738
|
+
const data = ScrollSpy.getOrCreateInstance(this, config);
|
|
5739
5739
|
if (typeof config !== 'string') {
|
|
5740
5740
|
return;
|
|
5741
5741
|
}
|