@openeuropa/bcl-theme-joinup 1.10.6 → 1.10.8
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 +2 -0
- package/css/oe-bcl-joinup.css +207 -136
- 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/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/icons/bcl-default-icons.svg +1 -1
- package/icons/bootstrap-icons.svg +1 -1
- package/js/oe-bcl-joinup.bundle.js +18 -13
- 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 +18 -13
- 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 +18 -13
- 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 -1
- package/package.json +12 -12
- package/src/scss/oe-bcl-joinup.scss +3 -2
- package/templates/bcl-base-templates/listing-page.html.twig +17 -19
- package/templates/bcl-contact-form/contact-form.html.twig +3 -3
- package/templates/bcl-content-banner/content-banner.html.twig +3 -0
- package/templates/bcl-dropdown/dropdown.html.twig +12 -7
- package/templates/bcl-event/event.html.twig +5 -5
- package/templates/bcl-glossary/glossary-detail.html.twig +4 -5
- package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
- package/templates/bcl-group/group-landing.html.twig +5 -5
- package/templates/bcl-group/group.html.twig +3 -3
- package/templates/bcl-landing-page/landing-page.html.twig +5 -8
- package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
- package/templates/bcl-modal/modal.html.twig +16 -4
- package/templates/bcl-navigation/navigation.html.twig +8 -0
- package/templates/bcl-page/page.html.twig +5 -5
- package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
- package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
- package/templates/bcl-person/person.html.twig +5 -5
- package/templates/bcl-project/project.html.twig +7 -7
- package/templates/bcl-project-status/project-contributions.html.twig +1 -1
- package/templates/bcl-search/search.html.twig +3 -3
- package/templates/bcl-subscription/subscription.html.twig +5 -5
- package/templates/bcl-toast/toasts.html.twig +17 -8
- package/templates/bcl-user/user-terms.html.twig +3 -3
- package/templates/bcl-user/user.html.twig +3 -3
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
* Constants
|
|
643
643
|
*/
|
|
644
644
|
|
|
645
|
-
const VERSION = '5.3.
|
|
645
|
+
const VERSION = '5.3.8';
|
|
646
646
|
|
|
647
647
|
/**
|
|
648
648
|
* Class definition
|
|
@@ -3511,9 +3511,6 @@
|
|
|
3511
3511
|
this._element.setAttribute('aria-expanded', 'false');
|
|
3512
3512
|
Manipulator$1.removeDataAttribute(this._menu, 'popper');
|
|
3513
3513
|
EventHandler.trigger(this._element, EVENT_HIDDEN$5, relatedTarget);
|
|
3514
|
-
|
|
3515
|
-
// Explicitly return focus to the trigger element
|
|
3516
|
-
this._element.focus();
|
|
3517
3514
|
}
|
|
3518
3515
|
_getConfig(config) {
|
|
3519
3516
|
config = super._getConfig(config);
|
|
@@ -4797,7 +4794,6 @@
|
|
|
4797
4794
|
}
|
|
4798
4795
|
|
|
4799
4796
|
class AccordionToggle {
|
|
4800
|
-
static isInitialized = false;
|
|
4801
4797
|
constructor(buttonElement) {
|
|
4802
4798
|
this.buttonElement = buttonElement;
|
|
4803
4799
|
this.targetAccordionId = buttonElement.getAttribute("data-target");
|
|
@@ -4824,15 +4820,24 @@
|
|
|
4824
4820
|
}
|
|
4825
4821
|
});
|
|
4826
4822
|
}
|
|
4827
|
-
static init() {
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4823
|
+
static init(root = document.documentElement) {
|
|
4824
|
+
const context = root instanceof Document ? root.documentElement : root;
|
|
4825
|
+
const toggleButtons = context instanceof Element ? SelectorEngine.find('[data-action][data-target]', context) : context && typeof context.querySelectorAll === "function" ? Array.from(context.querySelectorAll('[data-action][data-target]')) : SelectorEngine.find('[data-action][data-target]');
|
|
4826
|
+
toggleButtons.forEach(buttonElement => {
|
|
4827
|
+
if (buttonElement.dataset.accordionToggleInitialized === "true") {
|
|
4828
|
+
return;
|
|
4829
|
+
}
|
|
4830
|
+
new AccordionToggle(buttonElement);
|
|
4831
|
+
buttonElement.dataset.accordionToggleInitialized = "true";
|
|
4832
|
+
});
|
|
4834
4833
|
}
|
|
4835
4834
|
}
|
|
4835
|
+
const initializeAccordionToggle = () => AccordionToggle.init();
|
|
4836
|
+
if (document.readyState === "loading") {
|
|
4837
|
+
document.addEventListener("DOMContentLoaded", initializeAccordionToggle);
|
|
4838
|
+
} else {
|
|
4839
|
+
initializeAccordionToggle();
|
|
4840
|
+
}
|
|
4836
4841
|
|
|
4837
4842
|
class MainNavigation {
|
|
4838
4843
|
constructor(toggler) {
|
|
@@ -5074,7 +5079,6 @@
|
|
|
5074
5079
|
*
|
|
5075
5080
|
* Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38
|
|
5076
5081
|
*/
|
|
5077
|
-
// eslint-disable-next-line unicorn/better-regex
|
|
5078
5082
|
const SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;
|
|
5079
5083
|
const allowedAttribute = (attribute, allowedAttributeList) => {
|
|
5080
5084
|
const attributeName = attribute.nodeName.toLowerCase();
|
|
@@ -5618,6 +5622,7 @@
|
|
|
5618
5622
|
if (trigger === 'click') {
|
|
5619
5623
|
EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, event => {
|
|
5620
5624
|
const context = this._initializeOnDelegatedTarget(event);
|
|
5625
|
+
context._activeTrigger[TRIGGER_CLICK] = !(context._isShown() && context._activeTrigger[TRIGGER_CLICK]);
|
|
5621
5626
|
context.toggle();
|
|
5622
5627
|
});
|
|
5623
5628
|
} else if (trigger !== TRIGGER_MANUAL) {
|