@openeuropa/bcl-theme-joinup 1.10.7 → 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/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/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
package/js/oe-bcl-joinup.esm.js
CHANGED
|
@@ -638,7 +638,7 @@ class Config {
|
|
|
638
638
|
* Constants
|
|
639
639
|
*/
|
|
640
640
|
|
|
641
|
-
const VERSION = '5.3.
|
|
641
|
+
const VERSION = '5.3.8';
|
|
642
642
|
|
|
643
643
|
/**
|
|
644
644
|
* Class definition
|
|
@@ -1844,9 +1844,6 @@ class Dropdown extends BaseComponent {
|
|
|
1844
1844
|
this._element.setAttribute('aria-expanded', 'false');
|
|
1845
1845
|
Manipulator$1.removeDataAttribute(this._menu, 'popper');
|
|
1846
1846
|
EventHandler.trigger(this._element, EVENT_HIDDEN$5, relatedTarget);
|
|
1847
|
-
|
|
1848
|
-
// Explicitly return focus to the trigger element
|
|
1849
|
-
this._element.focus();
|
|
1850
1847
|
}
|
|
1851
1848
|
_getConfig(config) {
|
|
1852
1849
|
config = super._getConfig(config);
|
|
@@ -3130,7 +3127,6 @@ class AccessibleToggle {
|
|
|
3130
3127
|
}
|
|
3131
3128
|
|
|
3132
3129
|
class AccordionToggle {
|
|
3133
|
-
static isInitialized = false;
|
|
3134
3130
|
constructor(buttonElement) {
|
|
3135
3131
|
this.buttonElement = buttonElement;
|
|
3136
3132
|
this.targetAccordionId = buttonElement.getAttribute("data-target");
|
|
@@ -3157,15 +3153,24 @@ class AccordionToggle {
|
|
|
3157
3153
|
}
|
|
3158
3154
|
});
|
|
3159
3155
|
}
|
|
3160
|
-
static init() {
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3156
|
+
static init(root = document.documentElement) {
|
|
3157
|
+
const context = root instanceof Document ? root.documentElement : root;
|
|
3158
|
+
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]');
|
|
3159
|
+
toggleButtons.forEach(buttonElement => {
|
|
3160
|
+
if (buttonElement.dataset.accordionToggleInitialized === "true") {
|
|
3161
|
+
return;
|
|
3162
|
+
}
|
|
3163
|
+
new AccordionToggle(buttonElement);
|
|
3164
|
+
buttonElement.dataset.accordionToggleInitialized = "true";
|
|
3165
|
+
});
|
|
3167
3166
|
}
|
|
3168
3167
|
}
|
|
3168
|
+
const initializeAccordionToggle = () => AccordionToggle.init();
|
|
3169
|
+
if (document.readyState === "loading") {
|
|
3170
|
+
document.addEventListener("DOMContentLoaded", initializeAccordionToggle);
|
|
3171
|
+
} else {
|
|
3172
|
+
initializeAccordionToggle();
|
|
3173
|
+
}
|
|
3169
3174
|
|
|
3170
3175
|
class MainNavigation {
|
|
3171
3176
|
constructor(toggler) {
|
|
@@ -3407,7 +3412,6 @@ const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longde
|
|
|
3407
3412
|
*
|
|
3408
3413
|
* Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38
|
|
3409
3414
|
*/
|
|
3410
|
-
// eslint-disable-next-line unicorn/better-regex
|
|
3411
3415
|
const SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;
|
|
3412
3416
|
const allowedAttribute = (attribute, allowedAttributeList) => {
|
|
3413
3417
|
const attributeName = attribute.nodeName.toLowerCase();
|
|
@@ -3951,6 +3955,7 @@ class Tooltip extends BaseComponent {
|
|
|
3951
3955
|
if (trigger === 'click') {
|
|
3952
3956
|
EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, event => {
|
|
3953
3957
|
const context = this._initializeOnDelegatedTarget(event);
|
|
3958
|
+
context._activeTrigger[TRIGGER_CLICK] = !(context._isShown() && context._activeTrigger[TRIGGER_CLICK]);
|
|
3954
3959
|
context.toggle();
|
|
3955
3960
|
});
|
|
3956
3961
|
} else if (trigger !== TRIGGER_MANUAL) {
|