@brightspace-ui/core 3.219.4 → 3.219.6

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.
@@ -197,8 +197,8 @@ export const ListItemMixin = superclass => class extends composeMixins(
197
197
  :host([_hovering-selection]) [slot="control-container"]::after,
198
198
  :host([_hovering-primary-action]) [slot="control-container"]::before,
199
199
  :host([_hovering-primary-action]) [slot="control-container"]::after,
200
- :host([selectable][_focusing]) [slot="control-container"]::before,
201
- :host([selectable][_focusing]) [slot="control-container"]::after,
200
+ :host([selectable][_focusing]:not([selection-disabled])) [slot="control-container"]::before,
201
+ :host([selectable][_focusing]:not([selection-disabled])) [slot="control-container"]::after,
202
202
  :host([_focusing-primary-action]) [slot="control-container"]::before,
203
203
  :host([_focusing-primary-action]) [slot="control-container"]::after,
204
204
  :host([selected]:not([selection-disabled]):not([skeleton])) [slot="control-container"]::before,
@@ -4,7 +4,6 @@ import '../backdrop/backdrop-loading.js';
4
4
  import { css, html, LitElement, nothing } from 'lit';
5
5
  import { cssSizes } from '../inputs/input-checkbox.js';
6
6
  import { getComposedParent } from '../../helpers/dom.js';
7
- import { getFlag } from '../../helpers/flags.js';
8
7
  import { isPopoverSupported } from '../popover/popover-mixin.js';
9
8
  import { PageableMixin } from '../paging/pageable-mixin.js';
10
9
  import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
@@ -14,8 +13,6 @@ import { usePopoverMixin as useTooltipPopover } from '../tooltip/tooltip.js';
14
13
 
15
14
  export const isUsingNativePopover = isPopoverSupported && useDropdownPopover && useTooltipPopover;
16
15
 
17
- const colSyncFix = getFlag('GAUD-8228-8186-improved-table-col-sync', true);
18
-
19
16
  export const tableStyles = css`
20
17
  .d2l-table {
21
18
  border-collapse: separate; /* needed to override reset stylesheets */
@@ -228,22 +225,17 @@ export const tableStyles = css`
228
225
  }
229
226
 
230
227
  /* sticky + scroll-wrapper */
231
- ${colSyncFix ? css`
232
- d2l-table-wrapper[sticky-headers][sticky-headers-scroll-wrapper]:not([_no-scroll-width]) .d2l-table {
233
- display: flex;
234
- flex-direction: column;
235
- }
228
+ d2l-table-wrapper[sticky-headers][sticky-headers-scroll-wrapper]:not([_no-scroll-width]) .d2l-table {
229
+ display: flex;
230
+ flex-direction: column;
231
+ }
236
232
 
237
- d2l-table-wrapper[sticky-headers][sticky-headers-scroll-wrapper][_no-scroll-width] .d2l-table > thead {
238
- display: table-header-group;
239
- }
233
+ d2l-table-wrapper[sticky-headers][sticky-headers-scroll-wrapper][_no-scroll-width] .d2l-table > thead {
234
+ display: table-header-group;
235
+ }
240
236
 
241
- d2l-table-wrapper[sticky-headers][sticky-headers-scroll-wrapper][_no-scroll-width] .d2l-table > tbody {
242
- display: table-row-group;
243
- }` : css`
244
- d2l-table-wrapper[sticky-headers][sticky-headers-scroll-wrapper] .d2l-table {
245
- display: block;
246
- }`
237
+ d2l-table-wrapper[sticky-headers][sticky-headers-scroll-wrapper][_no-scroll-width] .d2l-table > tbody {
238
+ display: table-row-group;
247
239
  }
248
240
 
249
241
  d2l-table-wrapper[sticky-headers][sticky-headers-scroll-wrapper] .d2l-table > thead {
@@ -392,7 +384,7 @@ export class TableWrapper extends PageableMixin(SelectionMixin(LitElement)) {
392
384
  this._controlsMutationObserver = null;
393
385
  this._controlsScrolled = false;
394
386
  this._controlsScrolledMutationObserver = null;
395
- this._noScrollWidth = colSyncFix;
387
+ this._noScrollWidth = true;
396
388
  this._table = null;
397
389
  this._tableIntersectionObserver = null;
398
390
  this._tableMutationObserver = null;
@@ -598,7 +590,7 @@ export class TableWrapper extends PageableMixin(SelectionMixin(LitElement)) {
598
590
 
599
591
  if (!this._tableResizeObserver) this._tableResizeObserver = new ResizeObserver(entries => this._syncColumnWidths(entries));
600
592
  this._tableResizeObserver.observe(this._table);
601
- colSyncFix && this.querySelectorAll('tr:first-child *').forEach(el => this._tableResizeObserver.observe(el));
593
+ this.querySelectorAll('tr:first-child *').forEach(el => this._tableResizeObserver.observe(el));
602
594
 
603
595
  this._handleTableChange();
604
596
  }
@@ -633,7 +625,7 @@ export class TableWrapper extends PageableMixin(SelectionMixin(LitElement)) {
633
625
 
634
626
  if (updates.count) this._updateItemShowingCount();
635
627
  if (updates.classNames) this._applyClassNames();
636
- colSyncFix && await Promise.all([...updateList, ...this.querySelectorAll('d2l-table-col-sort-button')].map(n => n.updateComplete));
628
+ await Promise.all([...updateList, ...this.querySelectorAll('d2l-table-col-sort-button')].map(n => n.updateComplete));
637
629
  if (updates.syncWidths) this._syncColumnWidths();
638
630
  if (updates.sticky) this._updateStickyTops();
639
631
  }
@@ -652,12 +644,10 @@ export class TableWrapper extends PageableMixin(SelectionMixin(LitElement)) {
652
644
  const head = this._table.querySelector('thead');
653
645
  const body = this._table.querySelector('tbody');
654
646
 
655
- if (colSyncFix) {
656
- const maxScrollWidth = Math.max(head?.scrollWidth, body?.scrollWidth);
657
- setTimeout(() => {
658
- this._noScrollWidth = this.clientWidth === maxScrollWidth;
659
- });
660
- }
647
+ const maxScrollWidth = Math.max(head?.scrollWidth, body?.scrollWidth);
648
+ setTimeout(() => {
649
+ this._noScrollWidth = this.clientWidth === maxScrollWidth;
650
+ });
661
651
  if (!head || !body || !this._table || !this.stickyHeaders || !this.stickyHeadersScrollWrapper || this._noScrollWidth) return;
662
652
 
663
653
  const candidateRowHeadCells = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.219.4",
3
+ "version": "3.219.6",
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",