@openeuropa/bcl-theme-joinup 1.8.2 → 1.9.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 +8 -3
- package/css/oe-bcl-joinup.css +480 -359
- 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/fonts/cyrillic-400-italic.css +3 -4
- package/fonts/cyrillic-400.css +3 -4
- package/fonts/cyrillic-500-italic.css +3 -4
- package/fonts/cyrillic-500.css +3 -4
- package/fonts/cyrillic-700-italic.css +3 -4
- package/fonts/cyrillic-700.css +3 -4
- package/fonts/cyrillic-ext-400-italic.css +3 -4
- package/fonts/cyrillic-ext-400.css +3 -4
- package/fonts/cyrillic-ext-500-italic.css +3 -4
- package/fonts/cyrillic-ext-500.css +3 -4
- package/fonts/cyrillic-ext-700-italic.css +3 -4
- package/fonts/cyrillic-ext-700.css +3 -4
- package/fonts/files/roboto-cyrillic-400-italic.woff +0 -0
- package/fonts/files/roboto-cyrillic-400-italic.woff2 +0 -0
- package/fonts/files/roboto-cyrillic-400-normal.woff +0 -0
- package/fonts/files/roboto-cyrillic-400-normal.woff2 +0 -0
- package/fonts/files/roboto-cyrillic-500-italic.woff +0 -0
- package/fonts/files/roboto-cyrillic-500-italic.woff2 +0 -0
- package/fonts/files/roboto-cyrillic-500-normal.woff +0 -0
- package/fonts/files/roboto-cyrillic-500-normal.woff2 +0 -0
- package/fonts/files/roboto-cyrillic-700-italic.woff +0 -0
- package/fonts/files/roboto-cyrillic-700-italic.woff2 +0 -0
- package/fonts/files/roboto-cyrillic-700-normal.woff +0 -0
- package/fonts/files/roboto-cyrillic-700-normal.woff2 +0 -0
- package/fonts/files/roboto-greek-400-italic.woff +0 -0
- package/fonts/files/roboto-greek-400-italic.woff2 +0 -0
- package/fonts/files/roboto-greek-400-normal.woff +0 -0
- package/fonts/files/roboto-greek-400-normal.woff2 +0 -0
- package/fonts/files/roboto-greek-500-italic.woff +0 -0
- package/fonts/files/roboto-greek-500-italic.woff2 +0 -0
- package/fonts/files/roboto-greek-500-normal.woff +0 -0
- package/fonts/files/roboto-greek-500-normal.woff2 +0 -0
- package/fonts/files/roboto-greek-700-italic.woff +0 -0
- package/fonts/files/roboto-greek-700-italic.woff2 +0 -0
- package/fonts/files/roboto-greek-700-normal.woff +0 -0
- package/fonts/files/roboto-greek-700-normal.woff2 +0 -0
- package/fonts/files/roboto-latin-400-italic.woff +0 -0
- package/fonts/files/roboto-latin-400-italic.woff2 +0 -0
- package/fonts/files/roboto-latin-400-normal.woff +0 -0
- package/fonts/files/roboto-latin-400-normal.woff2 +0 -0
- package/fonts/files/roboto-latin-500-italic.woff +0 -0
- package/fonts/files/roboto-latin-500-italic.woff2 +0 -0
- package/fonts/files/roboto-latin-500-normal.woff +0 -0
- package/fonts/files/roboto-latin-500-normal.woff2 +0 -0
- package/fonts/files/roboto-latin-700-italic.woff +0 -0
- package/fonts/files/roboto-latin-700-italic.woff2 +0 -0
- package/fonts/files/roboto-latin-700-normal.woff +0 -0
- package/fonts/files/roboto-latin-700-normal.woff2 +0 -0
- package/fonts/files/roboto-latin-ext-400-italic.woff +0 -0
- package/fonts/files/roboto-latin-ext-400-italic.woff2 +0 -0
- package/fonts/files/roboto-latin-ext-400-normal.woff +0 -0
- package/fonts/files/roboto-latin-ext-400-normal.woff2 +0 -0
- package/fonts/files/roboto-latin-ext-500-italic.woff +0 -0
- package/fonts/files/roboto-latin-ext-500-italic.woff2 +0 -0
- package/fonts/files/roboto-latin-ext-500-normal.woff +0 -0
- package/fonts/files/roboto-latin-ext-500-normal.woff2 +0 -0
- package/fonts/files/roboto-latin-ext-700-italic.woff +0 -0
- package/fonts/files/roboto-latin-ext-700-italic.woff2 +0 -0
- package/fonts/files/roboto-latin-ext-700-normal.woff +0 -0
- package/fonts/files/roboto-latin-ext-700-normal.woff2 +0 -0
- package/fonts/greek-400-italic.css +3 -4
- package/fonts/greek-400.css +3 -4
- package/fonts/greek-500-italic.css +3 -4
- package/fonts/greek-500.css +3 -4
- package/fonts/greek-700-italic.css +3 -4
- package/fonts/greek-700.css +3 -4
- package/fonts/greek-ext-400-italic.css +3 -4
- package/fonts/greek-ext-400.css +3 -4
- package/fonts/greek-ext-500-italic.css +3 -4
- package/fonts/greek-ext-500.css +3 -4
- package/fonts/greek-ext-700-italic.css +3 -4
- package/fonts/greek-ext-700.css +3 -4
- package/fonts/latin-400-italic.css +3 -4
- package/fonts/latin-400.css +3 -4
- package/fonts/latin-500-italic.css +3 -4
- package/fonts/latin-500.css +3 -4
- package/fonts/latin-700-italic.css +3 -4
- package/fonts/latin-700.css +3 -4
- package/fonts/latin-ext-400-italic.css +3 -4
- package/fonts/latin-ext-400.css +3 -4
- package/fonts/latin-ext-500-italic.css +3 -4
- package/fonts/latin-ext-500.css +3 -4
- package/fonts/latin-ext-700-italic.css +3 -4
- package/fonts/latin-ext-700.css +3 -4
- package/js/oe-bcl-joinup.bundle.js +40 -5
- 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 +40 -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 +40 -5
- 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/js/slim-select-2/slimselect.min.js +1 -0
- package/js/slimselect.min.js +1 -1
- package/package.json +18 -17
- package/src/js/index.esm.js +2 -0
- package/src/js/index.umd.js +2 -0
- package/src/scss/base/_utilities.scss +4 -8
- package/templates/bcl-accordion/accordion.html.twig +85 -46
- package/templates/bcl-carousel/carousel.html.twig +2 -2
- package/templates/bcl-header/header.html.twig +1 -0
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +9 -1
package/fonts/latin-ext-700.css
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/* roboto-latin-ext-700-normal*/
|
|
1
|
+
/* roboto-latin-ext-700-normal */
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: 'Roboto';
|
|
4
4
|
font-style: normal;
|
|
5
5
|
font-display: swap;
|
|
6
6
|
font-weight: 700;
|
|
7
|
-
src: url(
|
|
8
|
-
|
|
9
|
-
}
|
|
7
|
+
src: url(./files/roboto-latin-ext-700-normal.woff2) format('woff2'), url(./files/roboto-latin-ext-700-normal.woff) format('woff');
|
|
8
|
+
}
|
|
@@ -2562,7 +2562,6 @@
|
|
|
2562
2562
|
var popperOffsets = computeOffsets({
|
|
2563
2563
|
reference: referenceClientRect,
|
|
2564
2564
|
element: popperRect,
|
|
2565
|
-
strategy: 'absolute',
|
|
2566
2565
|
placement: placement
|
|
2567
2566
|
});
|
|
2568
2567
|
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
@@ -2855,7 +2854,6 @@
|
|
|
2855
2854
|
state.modifiersData[name] = computeOffsets({
|
|
2856
2855
|
reference: state.rects.reference,
|
|
2857
2856
|
element: state.rects.popper,
|
|
2858
|
-
strategy: 'absolute',
|
|
2859
2857
|
placement: state.placement
|
|
2860
2858
|
});
|
|
2861
2859
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3774,8 +3772,6 @@
|
|
|
3774
3772
|
const currentSlide = SelectorEngine.findOne(CAROUSEL_ACTIVE_SELECTOR, this.carousel);
|
|
3775
3773
|
this.stopVideo(currentSlide);
|
|
3776
3774
|
}
|
|
3777
|
-
|
|
3778
|
-
// eslint-disable-next-line class-methods-use-this
|
|
3779
3775
|
stopVideo(slide) {
|
|
3780
3776
|
const iframe = SelectorEngine.findOne('iframe', slide);
|
|
3781
3777
|
const video = SelectorEngine.findOne('video', slide);
|
|
@@ -3787,7 +3783,6 @@
|
|
|
3787
3783
|
}
|
|
3788
3784
|
|
|
3789
3785
|
// Private
|
|
3790
|
-
// eslint-disable-next-line class-methods-use-this
|
|
3791
3786
|
carouselLazyLoad(slide) {
|
|
3792
3787
|
const media = SelectorEngine.findOne('[data-src]', slide);
|
|
3793
3788
|
if (media && !media.src) {
|
|
@@ -4747,6 +4742,45 @@
|
|
|
4747
4742
|
}
|
|
4748
4743
|
}
|
|
4749
4744
|
|
|
4745
|
+
/* eslint-disable prefer-destructuring */
|
|
4746
|
+
class AccordionToggle {
|
|
4747
|
+
static isInitialized = false;
|
|
4748
|
+
constructor(buttonElement) {
|
|
4749
|
+
this.buttonElement = buttonElement;
|
|
4750
|
+
this.targetAccordionId = buttonElement.getAttribute("data-target");
|
|
4751
|
+
this.action = buttonElement.getAttribute("data-action");
|
|
4752
|
+
this.accordionElement = SelectorEngine.findOne(`#${this.targetAccordionId}`);
|
|
4753
|
+
this.accordionItems = SelectorEngine.find(".accordion-collapse", this.accordionElement);
|
|
4754
|
+
this.addEventListeners();
|
|
4755
|
+
}
|
|
4756
|
+
addEventListeners() {
|
|
4757
|
+
EventHandler.on(this.buttonElement, "click", event => this.handleAccordionAction(event));
|
|
4758
|
+
}
|
|
4759
|
+
handleAccordionAction(event) {
|
|
4760
|
+
const item = event.target;
|
|
4761
|
+
const action = item.getAttribute('data-action');
|
|
4762
|
+
const accordionItems = this.accordionItems;
|
|
4763
|
+
accordionItems.forEach(accordionItem => {
|
|
4764
|
+
const collapseInstance = Collapse.getOrCreateInstance(accordionItem, {
|
|
4765
|
+
toggle: false
|
|
4766
|
+
});
|
|
4767
|
+
if (action === 'expand') {
|
|
4768
|
+
collapseInstance.show();
|
|
4769
|
+
} else if (action === 'collapse') {
|
|
4770
|
+
collapseInstance.hide();
|
|
4771
|
+
}
|
|
4772
|
+
});
|
|
4773
|
+
}
|
|
4774
|
+
static init() {
|
|
4775
|
+
if (AccordionToggle.isInitialized) {
|
|
4776
|
+
return;
|
|
4777
|
+
}
|
|
4778
|
+
const toggleButtons = SelectorEngine.find('[data-action][data-target]');
|
|
4779
|
+
toggleButtons.forEach(buttonElement => new AccordionToggle(buttonElement));
|
|
4780
|
+
AccordionToggle.isInitialized = true;
|
|
4781
|
+
}
|
|
4782
|
+
}
|
|
4783
|
+
|
|
4750
4784
|
/**
|
|
4751
4785
|
* --------------------------------------------------------------------------
|
|
4752
4786
|
* Bootstrap (v5.2.3): util/sanitizer.js
|
|
@@ -6562,6 +6596,7 @@
|
|
|
6562
6596
|
Gallery,
|
|
6563
6597
|
Modal,
|
|
6564
6598
|
AccessibleToggle,
|
|
6599
|
+
AccordionToggle,
|
|
6565
6600
|
Offcanvas,
|
|
6566
6601
|
Popover,
|
|
6567
6602
|
ScrollSpyV2: ScrollSpy$1,
|