@openeuropa/bcl-theme-default 0.4185.202512021245 → 0.4230.202512021730
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-ckeditor5.min.css +1 -1
- package/css/oe-bcl-ckeditor5.min.css.map +1 -1
- package/css/oe-bcl-default.css +48 -50
- 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/js/oe-bcl-default.bundle.js +1 -68
- 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 +1 -67
- 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 +1 -68
- 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 +5 -5
- package/src/js/index.esm.js +0 -2
- package/src/js/index.umd.js +0 -2
- package/src/scss/_header.scss +2 -3
- package/src/scss/_mega-menu.scss +58 -47
- package/templates/bcl-accordion/accordion.html.twig +0 -3
- package/templates/bcl-alert/alert.html.twig +0 -3
- package/templates/bcl-badge/badge.html.twig +0 -3
- package/templates/bcl-banner/banner.html.twig +0 -3
- package/templates/bcl-base-templates/content-type.html.twig +0 -3
- package/templates/bcl-blockquote/blockquote.html.twig +0 -3
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +0 -3
- package/templates/bcl-button/button.html.twig +0 -3
- package/templates/bcl-button-group/button-group.html.twig +0 -3
- package/templates/bcl-card/card.html.twig +0 -3
- package/templates/bcl-card-layout/card-layout.html.twig +0 -3
- package/templates/bcl-carousel/carousel.html.twig +0 -3
- package/templates/bcl-content-banner/content-banner.html.twig +0 -3
- package/templates/bcl-date-block/date-block.html.twig +0 -3
- package/templates/bcl-description-list/description-list-details.html.twig +0 -3
- package/templates/bcl-description-list/description-list-title.html.twig +0 -3
- package/templates/bcl-description-list/description-list.html.twig +0 -3
- package/templates/bcl-dropdown/dropdown.html.twig +0 -3
- package/templates/bcl-fact-figures/fact-figures.html.twig +0 -3
- package/templates/bcl-featured-media/featured-media.html.twig +0 -3
- package/templates/bcl-file/file-translations.html.twig +0 -3
- package/templates/bcl-file/file.html.twig +0 -3
- package/templates/bcl-footer/footer.html.twig +0 -3
- package/templates/bcl-form/form.html.twig +0 -3
- package/templates/bcl-form-input/form-input.html.twig +0 -3
- package/templates/bcl-gallery/gallery-item.html.twig +0 -3
- package/templates/bcl-gallery/gallery.html.twig +0 -3
- package/templates/bcl-header/header.html.twig +50 -46
- package/templates/bcl-heading/heading.html.twig +0 -3
- package/templates/bcl-icon/icon.html.twig +0 -3
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +0 -3
- package/templates/bcl-language-list/language-list-grid.html.twig +0 -3
- package/templates/bcl-language-list/language-list.html.twig +0 -3
- package/templates/bcl-language-switcher/language-switcher.html.twig +0 -3
- package/templates/bcl-link/link.html.twig +0 -3
- package/templates/bcl-links-block/links-block.html.twig +0 -3
- package/templates/bcl-list-group/list-group.html.twig +0 -3
- package/templates/bcl-listing/listing.html.twig +0 -3
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +0 -3
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +6 -12
- package/templates/bcl-mega-menu/mega-menu.html.twig +0 -3
- package/templates/bcl-modal/modal.html.twig +0 -3
- package/templates/bcl-navbar/navbar.html.twig +0 -3
- package/templates/bcl-navigation/navigation.html.twig +1 -6
- package/templates/bcl-offcanvas/offcanvas.html.twig +0 -3
- package/templates/bcl-pagination/pagination-item.html.twig +0 -3
- package/templates/bcl-pagination/pagination.html.twig +0 -3
- package/templates/bcl-pagination-v2/pagination-item.html.twig +0 -3
- package/templates/bcl-pagination-v2/pagination.html.twig +0 -3
- package/templates/bcl-placeholder/placeholder.html.twig +0 -3
- package/templates/bcl-progress/progress.html.twig +0 -3
- package/templates/bcl-project/project-lists.html.twig +0 -4
- package/templates/bcl-project-status/project-contributions.html.twig +0 -3
- package/templates/bcl-project-status/project-status.html.twig +0 -3
- package/templates/bcl-recent-activities/recent-activities.html.twig +0 -3
- package/templates/bcl-search-form/search-form.html.twig +0 -3
- package/templates/bcl-select/select.html.twig +0 -3
- package/templates/bcl-spinner/spinner.html.twig +0 -3
- package/templates/bcl-subscription-block/subscription-block.html.twig +0 -3
- package/templates/bcl-table/table.html.twig +0 -3
- package/templates/bcl-textarea/textarea.html.twig +0 -3
- package/templates/bcl-timeline/timeline-item.html.twig +0 -3
- package/templates/bcl-timeline/timeline.html.twig +0 -3
- package/templates/bcl-toasts/toasts.html.twig +0 -3
- package/templates/bcl-user/user-compact.html.twig +0 -3
- package/src/js/header/header.js +0 -91
|
@@ -6923,72 +6923,6 @@
|
|
|
6923
6923
|
}
|
|
6924
6924
|
}
|
|
6925
6925
|
|
|
6926
|
-
const HEADER_SELECTOR = ".bcl-header";
|
|
6927
|
-
const TOGGLER_SELECTOR = ".bcl-navbar-toggler";
|
|
6928
|
-
const OFFSET_VARIABLE = "--oel-mega-menu-offset-top";
|
|
6929
|
-
class Header {
|
|
6930
|
-
scheduleUpdate = () => {
|
|
6931
|
-
if (this.frameRequest) {
|
|
6932
|
-
return;
|
|
6933
|
-
}
|
|
6934
|
-
this.frameRequest = window.requestAnimationFrame(() => {
|
|
6935
|
-
this.frameRequest = null;
|
|
6936
|
-
this.updateOffset();
|
|
6937
|
-
});
|
|
6938
|
-
};
|
|
6939
|
-
constructor(element) {
|
|
6940
|
-
this.element = element;
|
|
6941
|
-
this.frameRequest = null;
|
|
6942
|
-
this.resizeObserver = null;
|
|
6943
|
-
this.init();
|
|
6944
|
-
}
|
|
6945
|
-
init() {
|
|
6946
|
-
this.updateOffset();
|
|
6947
|
-
EventHandler.on(window, "resize", this.scheduleUpdate);
|
|
6948
|
-
EventHandler.on(window, "orientationchange", this.scheduleUpdate);
|
|
6949
|
-
const togglers = SelectorEngine.find(TOGGLER_SELECTOR, this.element);
|
|
6950
|
-
togglers.forEach(toggler => {
|
|
6951
|
-
// Some layouts move the header when the nav toggler expands; keep offset in sync.
|
|
6952
|
-
EventHandler.on(toggler, "click", this.scheduleUpdate);
|
|
6953
|
-
});
|
|
6954
|
-
}
|
|
6955
|
-
updateOffset() {
|
|
6956
|
-
if (!this.element) {
|
|
6957
|
-
return;
|
|
6958
|
-
}
|
|
6959
|
-
const rect = this.element.getBoundingClientRect();
|
|
6960
|
-
const offset = Math.max(0, rect.top);
|
|
6961
|
-
const value = `${offset}px`;
|
|
6962
|
-
if (this.element.style.getPropertyValue(OFFSET_VARIABLE) === value) {
|
|
6963
|
-
return;
|
|
6964
|
-
}
|
|
6965
|
-
this.element.style.setProperty(OFFSET_VARIABLE, value);
|
|
6966
|
-
}
|
|
6967
|
-
static init(root) {
|
|
6968
|
-
if (typeof document === "undefined" || typeof window === "undefined") {
|
|
6969
|
-
return;
|
|
6970
|
-
}
|
|
6971
|
-
const resolvedRoot = root || document;
|
|
6972
|
-
const context = resolvedRoot instanceof Element ? resolvedRoot : resolvedRoot.documentElement || document.documentElement;
|
|
6973
|
-
const headers = SelectorEngine.find(HEADER_SELECTOR, context);
|
|
6974
|
-
headers.forEach(headerElement => {
|
|
6975
|
-
if (headerElement.dataset.headerOffsetInitialized === "true") {
|
|
6976
|
-
return;
|
|
6977
|
-
}
|
|
6978
|
-
headerElement.dataset.headerOffsetInitialized = "true";
|
|
6979
|
-
new Header(headerElement);
|
|
6980
|
-
});
|
|
6981
|
-
}
|
|
6982
|
-
}
|
|
6983
|
-
if (typeof document !== "undefined") {
|
|
6984
|
-
const initializeHeaderOffset = () => Header.init();
|
|
6985
|
-
if (document.readyState === "loading") {
|
|
6986
|
-
document.addEventListener("DOMContentLoaded", initializeHeaderOffset);
|
|
6987
|
-
} else {
|
|
6988
|
-
initializeHeaderOffset();
|
|
6989
|
-
}
|
|
6990
|
-
}
|
|
6991
|
-
|
|
6992
6926
|
/**
|
|
6993
6927
|
* --------------------------------------------------------------------------
|
|
6994
6928
|
* Bootstrap (v5.1.0): index.esm.js
|
|
@@ -7014,8 +6948,7 @@
|
|
|
7014
6948
|
Tooltip,
|
|
7015
6949
|
Gallery,
|
|
7016
6950
|
AccessibleToggle,
|
|
7017
|
-
AccordionToggle
|
|
7018
|
-
Header
|
|
6951
|
+
AccordionToggle
|
|
7019
6952
|
};
|
|
7020
6953
|
|
|
7021
6954
|
return index_umd;
|