@openeuropa/bcl-theme-joinup 1.10.1 → 1.10.2
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 +139 -124
- 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/js/oe-bcl-joinup.bundle.js +17 -14
- 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 +17 -14
- 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 +17 -14
- 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 +10 -10
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +10 -6
package/js/oe-bcl-joinup.umd.js
CHANGED
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
* @param {HTMLElement} element
|
|
201
201
|
* @return void
|
|
202
202
|
*
|
|
203
|
-
* @see https://www.
|
|
203
|
+
* @see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
|
|
204
204
|
*/
|
|
205
205
|
const reflow = element => {
|
|
206
206
|
element.offsetHeight; // eslint-disable-line no-unused-expressions
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
});
|
|
246
246
|
};
|
|
247
247
|
const execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {
|
|
248
|
-
return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;
|
|
248
|
+
return typeof possibleCallback === 'function' ? possibleCallback.call(...args) : defaultValue;
|
|
249
249
|
};
|
|
250
250
|
const executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {
|
|
251
251
|
if (!waitForTransition) {
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'));
|
|
568
568
|
for (const key of bsKeys) {
|
|
569
569
|
let pureKey = key.replace(/^bs/, '');
|
|
570
|
-
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1
|
|
570
|
+
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1);
|
|
571
571
|
attributes[pureKey] = normalizeData$1(element.dataset[key]);
|
|
572
572
|
}
|
|
573
573
|
return attributes;
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
* Constants
|
|
643
643
|
*/
|
|
644
644
|
|
|
645
|
-
const VERSION = '5.3.
|
|
645
|
+
const VERSION = '5.3.6';
|
|
646
646
|
|
|
647
647
|
/**
|
|
648
648
|
* Class definition
|
|
@@ -668,6 +668,8 @@
|
|
|
668
668
|
this[propertyName] = null;
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
|
+
|
|
672
|
+
// Private
|
|
671
673
|
_queueCallback(callback, element, isAnimated = true) {
|
|
672
674
|
executeAfterTransition(callback, element, isAnimated);
|
|
673
675
|
}
|
|
@@ -1599,11 +1601,11 @@
|
|
|
1599
1601
|
this._element.style[dimension] = '';
|
|
1600
1602
|
this._queueCallback(complete, this._element, true);
|
|
1601
1603
|
}
|
|
1604
|
+
|
|
1605
|
+
// Private
|
|
1602
1606
|
_isShown(element = this._element) {
|
|
1603
1607
|
return element.classList.contains(CLASS_NAME_SHOW$7);
|
|
1604
1608
|
}
|
|
1605
|
-
|
|
1606
|
-
// Private
|
|
1607
1609
|
_configAfterMerge(config) {
|
|
1608
1610
|
config.toggle = Boolean(config.toggle); // Coerce string values
|
|
1609
1611
|
config.parent = getElement$1(config.parent);
|
|
@@ -3509,6 +3511,9 @@
|
|
|
3509
3511
|
this._element.setAttribute('aria-expanded', 'false');
|
|
3510
3512
|
Manipulator$1.removeDataAttribute(this._menu, 'popper');
|
|
3511
3513
|
EventHandler.trigger(this._element, EVENT_HIDDEN$5, relatedTarget);
|
|
3514
|
+
|
|
3515
|
+
// Explicitly return focus to the trigger element
|
|
3516
|
+
this._element.focus();
|
|
3512
3517
|
}
|
|
3513
3518
|
_getConfig(config) {
|
|
3514
3519
|
config = super._getConfig(config);
|
|
@@ -3520,7 +3525,7 @@
|
|
|
3520
3525
|
}
|
|
3521
3526
|
_createPopper() {
|
|
3522
3527
|
if (typeof Popper === 'undefined') {
|
|
3523
|
-
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
|
3528
|
+
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org/docs/v2/)');
|
|
3524
3529
|
}
|
|
3525
3530
|
let referenceElement = this._element;
|
|
3526
3531
|
if (this._config.reference === 'parent') {
|
|
@@ -3599,7 +3604,7 @@
|
|
|
3599
3604
|
}
|
|
3600
3605
|
return {
|
|
3601
3606
|
...defaultBsPopperConfig,
|
|
3602
|
-
...execute(this._config.popperConfig, [defaultBsPopperConfig])
|
|
3607
|
+
...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
|
|
3603
3608
|
};
|
|
3604
3609
|
}
|
|
3605
3610
|
_selectMenuItem({
|
|
@@ -5049,7 +5054,7 @@
|
|
|
5049
5054
|
return this._config.sanitize ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg;
|
|
5050
5055
|
}
|
|
5051
5056
|
_resolvePossibleFunction(arg) {
|
|
5052
|
-
return execute(arg, [this]);
|
|
5057
|
+
return execute(arg, [undefined, this]);
|
|
5053
5058
|
}
|
|
5054
5059
|
_putElementInTemplate(element, templateElement) {
|
|
5055
5060
|
if (this._config.html) {
|
|
@@ -5148,7 +5153,7 @@
|
|
|
5148
5153
|
class Tooltip extends BaseComponent {
|
|
5149
5154
|
constructor(element, config) {
|
|
5150
5155
|
if (typeof Popper === 'undefined') {
|
|
5151
|
-
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
|
5156
|
+
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org/docs/v2/)');
|
|
5152
5157
|
}
|
|
5153
5158
|
super(element, config);
|
|
5154
5159
|
|
|
@@ -5194,7 +5199,6 @@
|
|
|
5194
5199
|
if (!this._isEnabled) {
|
|
5195
5200
|
return;
|
|
5196
5201
|
}
|
|
5197
|
-
this._activeTrigger.click = !this._activeTrigger.click;
|
|
5198
5202
|
if (this._isShown()) {
|
|
5199
5203
|
this._leave();
|
|
5200
5204
|
return;
|
|
@@ -5382,7 +5386,7 @@
|
|
|
5382
5386
|
return offset;
|
|
5383
5387
|
}
|
|
5384
5388
|
_resolvePossibleFunction(arg) {
|
|
5385
|
-
return execute(arg, [this._element]);
|
|
5389
|
+
return execute(arg, [this._element, this._element]);
|
|
5386
5390
|
}
|
|
5387
5391
|
_getPopperConfig(attachment) {
|
|
5388
5392
|
const defaultBsPopperConfig = {
|
|
@@ -5420,7 +5424,7 @@
|
|
|
5420
5424
|
};
|
|
5421
5425
|
return {
|
|
5422
5426
|
...defaultBsPopperConfig,
|
|
5423
|
-
...execute(this._config.popperConfig, [defaultBsPopperConfig])
|
|
5427
|
+
...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
|
|
5424
5428
|
};
|
|
5425
5429
|
}
|
|
5426
5430
|
_setListeners() {
|
|
@@ -6656,7 +6660,6 @@
|
|
|
6656
6660
|
}
|
|
6657
6661
|
|
|
6658
6662
|
// Private
|
|
6659
|
-
|
|
6660
6663
|
_maybeScheduleHide() {
|
|
6661
6664
|
if (!this._config.autohide) {
|
|
6662
6665
|
return;
|