@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.
Files changed (94) hide show
  1. package/bcl-builder.config.js +2 -0
  2. package/css/oe-bcl-joinup.css +207 -136
  3. package/css/oe-bcl-joinup.css.map +1 -1
  4. package/css/oe-bcl-joinup.min.css +1 -1
  5. package/css/oe-bcl-joinup.min.css.map +1 -1
  6. package/fonts/files/roboto-cyrillic-400-italic.woff +0 -0
  7. package/fonts/files/roboto-cyrillic-400-italic.woff2 +0 -0
  8. package/fonts/files/roboto-cyrillic-400-normal.woff +0 -0
  9. package/fonts/files/roboto-cyrillic-400-normal.woff2 +0 -0
  10. package/fonts/files/roboto-cyrillic-500-italic.woff +0 -0
  11. package/fonts/files/roboto-cyrillic-500-italic.woff2 +0 -0
  12. package/fonts/files/roboto-cyrillic-500-normal.woff +0 -0
  13. package/fonts/files/roboto-cyrillic-500-normal.woff2 +0 -0
  14. package/fonts/files/roboto-cyrillic-700-italic.woff +0 -0
  15. package/fonts/files/roboto-cyrillic-700-italic.woff2 +0 -0
  16. package/fonts/files/roboto-cyrillic-700-normal.woff +0 -0
  17. package/fonts/files/roboto-cyrillic-700-normal.woff2 +0 -0
  18. package/fonts/files/roboto-greek-400-italic.woff +0 -0
  19. package/fonts/files/roboto-greek-400-italic.woff2 +0 -0
  20. package/fonts/files/roboto-greek-400-normal.woff +0 -0
  21. package/fonts/files/roboto-greek-400-normal.woff2 +0 -0
  22. package/fonts/files/roboto-greek-500-italic.woff +0 -0
  23. package/fonts/files/roboto-greek-500-italic.woff2 +0 -0
  24. package/fonts/files/roboto-greek-500-normal.woff +0 -0
  25. package/fonts/files/roboto-greek-500-normal.woff2 +0 -0
  26. package/fonts/files/roboto-greek-700-italic.woff +0 -0
  27. package/fonts/files/roboto-greek-700-italic.woff2 +0 -0
  28. package/fonts/files/roboto-greek-700-normal.woff +0 -0
  29. package/fonts/files/roboto-greek-700-normal.woff2 +0 -0
  30. package/fonts/files/roboto-latin-400-italic.woff +0 -0
  31. package/fonts/files/roboto-latin-400-italic.woff2 +0 -0
  32. package/fonts/files/roboto-latin-400-normal.woff +0 -0
  33. package/fonts/files/roboto-latin-400-normal.woff2 +0 -0
  34. package/fonts/files/roboto-latin-500-italic.woff +0 -0
  35. package/fonts/files/roboto-latin-500-italic.woff2 +0 -0
  36. package/fonts/files/roboto-latin-500-normal.woff +0 -0
  37. package/fonts/files/roboto-latin-500-normal.woff2 +0 -0
  38. package/fonts/files/roboto-latin-700-italic.woff +0 -0
  39. package/fonts/files/roboto-latin-700-italic.woff2 +0 -0
  40. package/fonts/files/roboto-latin-700-normal.woff +0 -0
  41. package/fonts/files/roboto-latin-700-normal.woff2 +0 -0
  42. package/fonts/files/roboto-latin-ext-400-italic.woff +0 -0
  43. package/fonts/files/roboto-latin-ext-400-italic.woff2 +0 -0
  44. package/fonts/files/roboto-latin-ext-400-normal.woff +0 -0
  45. package/fonts/files/roboto-latin-ext-400-normal.woff2 +0 -0
  46. package/fonts/files/roboto-latin-ext-500-italic.woff +0 -0
  47. package/fonts/files/roboto-latin-ext-500-italic.woff2 +0 -0
  48. package/fonts/files/roboto-latin-ext-500-normal.woff +0 -0
  49. package/fonts/files/roboto-latin-ext-500-normal.woff2 +0 -0
  50. package/fonts/files/roboto-latin-ext-700-italic.woff +0 -0
  51. package/fonts/files/roboto-latin-ext-700-italic.woff2 +0 -0
  52. package/fonts/files/roboto-latin-ext-700-normal.woff +0 -0
  53. package/fonts/files/roboto-latin-ext-700-normal.woff2 +0 -0
  54. package/icons/bcl-default-icons.svg +1 -1
  55. package/icons/bootstrap-icons.svg +1 -1
  56. package/js/oe-bcl-joinup.bundle.js +18 -13
  57. package/js/oe-bcl-joinup.bundle.js.map +1 -1
  58. package/js/oe-bcl-joinup.bundle.min.js +1 -1
  59. package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
  60. package/js/oe-bcl-joinup.esm.js +18 -13
  61. package/js/oe-bcl-joinup.esm.js.map +1 -1
  62. package/js/oe-bcl-joinup.esm.min.js +1 -1
  63. package/js/oe-bcl-joinup.esm.min.js.map +1 -1
  64. package/js/oe-bcl-joinup.umd.js +18 -13
  65. package/js/oe-bcl-joinup.umd.js.map +1 -1
  66. package/js/oe-bcl-joinup.umd.min.js +1 -1
  67. package/js/oe-bcl-joinup.umd.min.js.map +1 -1
  68. package/js/slim-select-2/slimselect.min.js +1 -1
  69. package/package.json +12 -12
  70. package/src/scss/oe-bcl-joinup.scss +3 -2
  71. package/templates/bcl-base-templates/listing-page.html.twig +17 -19
  72. package/templates/bcl-contact-form/contact-form.html.twig +3 -3
  73. package/templates/bcl-content-banner/content-banner.html.twig +3 -0
  74. package/templates/bcl-dropdown/dropdown.html.twig +12 -7
  75. package/templates/bcl-event/event.html.twig +5 -5
  76. package/templates/bcl-glossary/glossary-detail.html.twig +4 -5
  77. package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
  78. package/templates/bcl-group/group-landing.html.twig +5 -5
  79. package/templates/bcl-group/group.html.twig +3 -3
  80. package/templates/bcl-landing-page/landing-page.html.twig +5 -8
  81. package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
  82. package/templates/bcl-modal/modal.html.twig +16 -4
  83. package/templates/bcl-navigation/navigation.html.twig +8 -0
  84. package/templates/bcl-page/page.html.twig +5 -5
  85. package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
  86. package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
  87. package/templates/bcl-person/person.html.twig +5 -5
  88. package/templates/bcl-project/project.html.twig +7 -7
  89. package/templates/bcl-project-status/project-contributions.html.twig +1 -1
  90. package/templates/bcl-search/search.html.twig +3 -3
  91. package/templates/bcl-subscription/subscription.html.twig +5 -5
  92. package/templates/bcl-toast/toasts.html.twig +17 -8
  93. package/templates/bcl-user/user-terms.html.twig +3 -3
  94. 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.6';
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
- if (AccordionToggle.isInitialized) {
4829
- return;
4830
- }
4831
- const toggleButtons = SelectorEngine.find('[data-action][data-target]');
4832
- toggleButtons.forEach(buttonElement => new AccordionToggle(buttonElement));
4833
- AccordionToggle.isInitialized = true;
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) {