@brightspace-ui/core 3.262.0 → 3.262.1
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.
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { addResizeNoopEventListener, findComposedAncestor, getComposedParent, isComposedAncestor, removeResizeNoopEventListener } from '../../helpers/dom.js';
|
|
2
2
|
import { getNextFocusable, getPreviousFocusable } from '../../helpers/focus.js';
|
|
3
3
|
import { css } from 'lit';
|
|
4
|
-
import { getFlag } from '../../helpers/flags.js';
|
|
5
|
-
|
|
6
|
-
const ignoreNoopResizeEventsFlag = getFlag('GAUD-9520-ignore-no-op-resize-events', true);
|
|
7
4
|
|
|
8
5
|
const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
9
6
|
const __nativeFocus = document.createElement('div').focus;
|
|
@@ -144,11 +141,7 @@ export const HierarchicalViewMixin = superclass => class extends superclass {
|
|
|
144
141
|
this.addEventListener('focus', this.__focusCapture, true);
|
|
145
142
|
this.addEventListener('focusout', this.__focusOutCapture, true);
|
|
146
143
|
this.__onWindowResize = this.__onWindowResize.bind(this);
|
|
147
|
-
|
|
148
|
-
addResizeNoopEventListener(this.__onWindowResize);
|
|
149
|
-
} else {
|
|
150
|
-
window.addEventListener('resize', this.__onWindowResize);
|
|
151
|
-
}
|
|
144
|
+
addResizeNoopEventListener(this.__onWindowResize);
|
|
152
145
|
}
|
|
153
146
|
});
|
|
154
147
|
}
|
|
@@ -158,11 +151,7 @@ export const HierarchicalViewMixin = superclass => class extends superclass {
|
|
|
158
151
|
|
|
159
152
|
this.removeEventListener('focus', this.__focusCapture);
|
|
160
153
|
this.removeEventListener('focusout', this.__focusOutCapture);
|
|
161
|
-
|
|
162
|
-
removeResizeNoopEventListener(this.__onWindowResize);
|
|
163
|
-
} else {
|
|
164
|
-
window.removeEventListener('resize', this.__onWindowResize);
|
|
165
|
-
}
|
|
154
|
+
removeResizeNoopEventListener(this.__onWindowResize);
|
|
166
155
|
|
|
167
156
|
if (this.__intersectionObserver) {
|
|
168
157
|
this.__intersectionObserver.disconnect();
|
|
@@ -8,12 +8,9 @@ import { css, html, nothing } from 'lit';
|
|
|
8
8
|
import { getComposedActiveElement, getFirstFocusableDescendant, getPreviousFocusableAncestor } from '../../helpers/focus.js';
|
|
9
9
|
import { _offscreenStyleDeclarations } from '../offscreen/offscreen.js';
|
|
10
10
|
import { classMap } from 'lit/directives/class-map.js';
|
|
11
|
-
import { getFlag } from '../../helpers/flags.js';
|
|
12
11
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
13
12
|
import { tryGetIfrauBackdropService } from '../../helpers/ifrauBackdropService.js';
|
|
14
13
|
|
|
15
|
-
const ignoreNoopResizeEventsFlag = getFlag('GAUD-9520-ignore-no-op-resize-events', true);
|
|
16
|
-
|
|
17
14
|
export const positionLocations = Object.freeze({
|
|
18
15
|
blockEnd: 'block-end',
|
|
19
16
|
blockStart: 'block-start',
|
|
@@ -625,12 +622,7 @@ export const PopoverMixin = superclass => class extends superclass {
|
|
|
625
622
|
|
|
626
623
|
this.#removeRepositionHandlers();
|
|
627
624
|
this.#ancestorMutations = new Map();
|
|
628
|
-
|
|
629
|
-
if (ignoreNoopResizeEventsFlag) {
|
|
630
|
-
addResizeNoopEventListener(this.#handleResizeBound);
|
|
631
|
-
} else {
|
|
632
|
-
window.addEventListener('resize', this.#handleResizeBound);
|
|
633
|
-
}
|
|
625
|
+
addResizeNoopEventListener(this.#handleResizeBound);
|
|
634
626
|
|
|
635
627
|
this._ancestorMutationObserver ??= new MutationObserver(this.#handleAncestorMutationBound);
|
|
636
628
|
const mutationConfig = { attributes: true, childList: true, subtree: true };
|
|
@@ -1204,11 +1196,7 @@ export const PopoverMixin = superclass => class extends superclass {
|
|
|
1204
1196
|
});
|
|
1205
1197
|
this._scrollablesObserved = null;
|
|
1206
1198
|
this._ancestorMutationObserver?.disconnect();
|
|
1207
|
-
|
|
1208
|
-
removeResizeNoopEventListener(this.#handleResizeBound);
|
|
1209
|
-
} else {
|
|
1210
|
-
window.removeEventListener('resize', this.#handleResizeBound);
|
|
1211
|
-
}
|
|
1199
|
+
removeResizeNoopEventListener(this.#handleResizeBound);
|
|
1212
1200
|
}
|
|
1213
1201
|
|
|
1214
1202
|
#reposition() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.262.
|
|
3
|
+
"version": "3.262.1",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|