@brightspace-ui/core 3.216.0 → 3.216.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.
|
@@ -34,7 +34,8 @@ const minBackdropWidthMobile = 30;
|
|
|
34
34
|
const minOpenerSizeNoShift = 52;
|
|
35
35
|
const pointerLength = 16;
|
|
36
36
|
const pointerRotatedLength = Math.SQRT2 * parseFloat(pointerLength);
|
|
37
|
-
|
|
37
|
+
|
|
38
|
+
export const isPopoverSupported = ('popover' in HTMLElement.prototype);
|
|
38
39
|
|
|
39
40
|
const getScrollbarWidth = () => {
|
|
40
41
|
const width = window.innerWidth - document.documentElement.clientWidth;
|
|
@@ -258,7 +259,7 @@ export const PopoverMixin = superclass => class extends superclass {
|
|
|
258
259
|
this.configure();
|
|
259
260
|
this._mobile = false;
|
|
260
261
|
this._showBackdrop = false;
|
|
261
|
-
this._useNativePopover =
|
|
262
|
+
this._useNativePopover = isPopoverSupported ? 'manual' : undefined;
|
|
262
263
|
this.#handleAncestorMutationBound = this.#handleAncestorMutation.bind(this);
|
|
263
264
|
this.#handleAutoCloseClickBound = this.#handleAutoCloseClick.bind(this);
|
|
264
265
|
this.#handleAutoCloseFocusBound = this.#handleAutoCloseFocus.bind(this);
|
|
@@ -4,9 +4,14 @@ import { css, html, LitElement, nothing } from 'lit';
|
|
|
4
4
|
import { cssSizes } from '../inputs/input-checkbox.js';
|
|
5
5
|
import { getComposedParent } from '../../helpers/dom.js';
|
|
6
6
|
import { getFlag } from '../../helpers/flags.js';
|
|
7
|
+
import { isPopoverSupported } from '../popover/popover-mixin.js';
|
|
7
8
|
import { PageableMixin } from '../paging/pageable-mixin.js';
|
|
8
9
|
import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
|
|
9
10
|
import { SelectionMixin } from '../selection/selection-mixin.js';
|
|
11
|
+
import { usePopoverMixin as useDropdownPopover } from '../dropdown/dropdown-popover-mixin.js';
|
|
12
|
+
import { usePopoverMixin as useTooltipPopover } from '../tooltip/tooltip.js';
|
|
13
|
+
|
|
14
|
+
export const isUsingNativePopover = isPopoverSupported && useDropdownPopover && useTooltipPopover;
|
|
10
15
|
|
|
11
16
|
const colSyncFix = getFlag('GAUD-8228-8186-improved-table-col-sync', true);
|
|
12
17
|
|
|
@@ -733,7 +738,7 @@ export class TableWrapper extends PageableMixin(SelectionMixin(LitElement)) {
|
|
|
733
738
|
}
|
|
734
739
|
|
|
735
740
|
_updateStickyAncestor(node, popoverOpened) {
|
|
736
|
-
if (!this.stickyHeaders) return;
|
|
741
|
+
if (!this.stickyHeaders || isUsingNativePopover) return;
|
|
737
742
|
|
|
738
743
|
node = getComposedParent(node);
|
|
739
744
|
while (node) {
|
|
@@ -13,7 +13,7 @@ import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
|
|
|
13
13
|
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
|
14
14
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
15
15
|
|
|
16
|
-
const usePopoverMixin = getFlag('GAUD-7355-tooltip-popover', true);
|
|
16
|
+
export const usePopoverMixin = getFlag('GAUD-7355-tooltip-popover', true);
|
|
17
17
|
|
|
18
18
|
const contentBorderSize = 1;
|
|
19
19
|
const contentHorizontalPadding = 15;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.216.
|
|
3
|
+
"version": "3.216.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",
|