@openeuropa/bcl-theme-default 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-ckeditor5.min.css +1 -1
- package/css/oe-bcl-ckeditor5.min.css.map +1 -1
- package/css/oe-bcl-default.css +139 -124
- 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 +17 -14
- 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 +17 -14
- 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 +17 -14
- 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/scss/_inpage-navigation.scss +7 -0
- package/src/scss/_multiselect-2.scss +1 -1
- package/src/scss/base/_layout.scss +6 -3
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +10 -6
package/js/oe-bcl-default.esm.js
CHANGED
|
@@ -196,7 +196,7 @@ const noop = () => {};
|
|
|
196
196
|
* @param {HTMLElement} element
|
|
197
197
|
* @return void
|
|
198
198
|
*
|
|
199
|
-
* @see https://www.
|
|
199
|
+
* @see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
|
|
200
200
|
*/
|
|
201
201
|
const reflow = element => {
|
|
202
202
|
element.offsetHeight; // eslint-disable-line no-unused-expressions
|
|
@@ -241,7 +241,7 @@ const defineJQueryPlugin$1 = plugin => {
|
|
|
241
241
|
});
|
|
242
242
|
};
|
|
243
243
|
const execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {
|
|
244
|
-
return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;
|
|
244
|
+
return typeof possibleCallback === 'function' ? possibleCallback.call(...args) : defaultValue;
|
|
245
245
|
};
|
|
246
246
|
const executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {
|
|
247
247
|
if (!waitForTransition) {
|
|
@@ -563,7 +563,7 @@ const Manipulator$1 = {
|
|
|
563
563
|
const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'));
|
|
564
564
|
for (const key of bsKeys) {
|
|
565
565
|
let pureKey = key.replace(/^bs/, '');
|
|
566
|
-
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1
|
|
566
|
+
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1);
|
|
567
567
|
attributes[pureKey] = normalizeData$1(element.dataset[key]);
|
|
568
568
|
}
|
|
569
569
|
return attributes;
|
|
@@ -638,7 +638,7 @@ class Config {
|
|
|
638
638
|
* Constants
|
|
639
639
|
*/
|
|
640
640
|
|
|
641
|
-
const VERSION = '5.3.
|
|
641
|
+
const VERSION = '5.3.6';
|
|
642
642
|
|
|
643
643
|
/**
|
|
644
644
|
* Class definition
|
|
@@ -664,6 +664,8 @@ class BaseComponent extends Config {
|
|
|
664
664
|
this[propertyName] = null;
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
|
+
|
|
668
|
+
// Private
|
|
667
669
|
_queueCallback(callback, element, isAnimated = true) {
|
|
668
670
|
executeAfterTransition(callback, element, isAnimated);
|
|
669
671
|
}
|
|
@@ -1595,11 +1597,11 @@ class Collapse extends BaseComponent {
|
|
|
1595
1597
|
this._element.style[dimension] = '';
|
|
1596
1598
|
this._queueCallback(complete, this._element, true);
|
|
1597
1599
|
}
|
|
1600
|
+
|
|
1601
|
+
// Private
|
|
1598
1602
|
_isShown(element = this._element) {
|
|
1599
1603
|
return element.classList.contains(CLASS_NAME_SHOW$7);
|
|
1600
1604
|
}
|
|
1601
|
-
|
|
1602
|
-
// Private
|
|
1603
1605
|
_configAfterMerge(config) {
|
|
1604
1606
|
config.toggle = Boolean(config.toggle); // Coerce string values
|
|
1605
1607
|
config.parent = getElement$1(config.parent);
|
|
@@ -1842,6 +1844,9 @@ class Dropdown extends BaseComponent {
|
|
|
1842
1844
|
this._element.setAttribute('aria-expanded', 'false');
|
|
1843
1845
|
Manipulator$1.removeDataAttribute(this._menu, 'popper');
|
|
1844
1846
|
EventHandler.trigger(this._element, EVENT_HIDDEN$5, relatedTarget);
|
|
1847
|
+
|
|
1848
|
+
// Explicitly return focus to the trigger element
|
|
1849
|
+
this._element.focus();
|
|
1845
1850
|
}
|
|
1846
1851
|
_getConfig(config) {
|
|
1847
1852
|
config = super._getConfig(config);
|
|
@@ -1853,7 +1858,7 @@ class Dropdown extends BaseComponent {
|
|
|
1853
1858
|
}
|
|
1854
1859
|
_createPopper() {
|
|
1855
1860
|
if (typeof Popper === 'undefined') {
|
|
1856
|
-
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
|
1861
|
+
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org/docs/v2/)');
|
|
1857
1862
|
}
|
|
1858
1863
|
let referenceElement = this._element;
|
|
1859
1864
|
if (this._config.reference === 'parent') {
|
|
@@ -1932,7 +1937,7 @@ class Dropdown extends BaseComponent {
|
|
|
1932
1937
|
}
|
|
1933
1938
|
return {
|
|
1934
1939
|
...defaultBsPopperConfig,
|
|
1935
|
-
...execute(this._config.popperConfig, [defaultBsPopperConfig])
|
|
1940
|
+
...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
|
|
1936
1941
|
};
|
|
1937
1942
|
}
|
|
1938
1943
|
_selectMenuItem({
|
|
@@ -3119,7 +3124,7 @@ class TemplateFactory extends Config {
|
|
|
3119
3124
|
return this._config.sanitize ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg;
|
|
3120
3125
|
}
|
|
3121
3126
|
_resolvePossibleFunction(arg) {
|
|
3122
|
-
return execute(arg, [this]);
|
|
3127
|
+
return execute(arg, [undefined, this]);
|
|
3123
3128
|
}
|
|
3124
3129
|
_putElementInTemplate(element, templateElement) {
|
|
3125
3130
|
if (this._config.html) {
|
|
@@ -3218,7 +3223,7 @@ const DefaultType$3 = {
|
|
|
3218
3223
|
class Tooltip extends BaseComponent {
|
|
3219
3224
|
constructor(element, config) {
|
|
3220
3225
|
if (typeof Popper === 'undefined') {
|
|
3221
|
-
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
|
3226
|
+
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org/docs/v2/)');
|
|
3222
3227
|
}
|
|
3223
3228
|
super(element, config);
|
|
3224
3229
|
|
|
@@ -3264,7 +3269,6 @@ class Tooltip extends BaseComponent {
|
|
|
3264
3269
|
if (!this._isEnabled) {
|
|
3265
3270
|
return;
|
|
3266
3271
|
}
|
|
3267
|
-
this._activeTrigger.click = !this._activeTrigger.click;
|
|
3268
3272
|
if (this._isShown()) {
|
|
3269
3273
|
this._leave();
|
|
3270
3274
|
return;
|
|
@@ -3452,7 +3456,7 @@ class Tooltip extends BaseComponent {
|
|
|
3452
3456
|
return offset;
|
|
3453
3457
|
}
|
|
3454
3458
|
_resolvePossibleFunction(arg) {
|
|
3455
|
-
return execute(arg, [this._element]);
|
|
3459
|
+
return execute(arg, [this._element, this._element]);
|
|
3456
3460
|
}
|
|
3457
3461
|
_getPopperConfig(attachment) {
|
|
3458
3462
|
const defaultBsPopperConfig = {
|
|
@@ -3490,7 +3494,7 @@ class Tooltip extends BaseComponent {
|
|
|
3490
3494
|
};
|
|
3491
3495
|
return {
|
|
3492
3496
|
...defaultBsPopperConfig,
|
|
3493
|
-
...execute(this._config.popperConfig, [defaultBsPopperConfig])
|
|
3497
|
+
...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
|
|
3494
3498
|
};
|
|
3495
3499
|
}
|
|
3496
3500
|
_setListeners() {
|
|
@@ -4726,7 +4730,6 @@ class Toast extends BaseComponent {
|
|
|
4726
4730
|
}
|
|
4727
4731
|
|
|
4728
4732
|
// Private
|
|
4729
|
-
|
|
4730
4733
|
_maybeScheduleHide() {
|
|
4731
4734
|
if (!this._config.autohide) {
|
|
4732
4735
|
return;
|