@brightspace-ui/core 2.23.3 → 2.24.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.
@@ -176,7 +176,7 @@ function hideAccessible(target) {
176
176
  };
177
177
 
178
178
  let parent = getComposedParent(target);
179
- while (parent !== document.documentElement) {
179
+ while (parent !== document.documentElement && parent !== null) {
180
180
  if (parent.nodeType === Node.ELEMENT_NODE) {
181
181
  path.push(parent);
182
182
  hideAccessibleChildren(parent);
@@ -286,7 +286,7 @@ A tag-list allowing the user to see (and remove) the currently applied filters.
286
286
  | Property | Type | Description |
287
287
  |---|---|---|
288
288
  | `filter-ids` | String, required | Id(s) (space-delimited) of the filter component(s) to subscribe to |
289
- | `label-text` | String | The text displayed in this component's label |
289
+ | `label` | String | The text displayed in this component's label |
290
290
  <!-- docs: end hidden content -->
291
291
 
292
292
  ## Filter Dimension: Date [d2l-filter-dimension-date]
@@ -111,7 +111,7 @@ export const SelectionMixin = superclass => class extends RtlMixin(superclass) {
111
111
  this._selectAllPages = (selected && selectAllPages);
112
112
 
113
113
  this._selectionSelectables.forEach(selectable => {
114
- if (!!selectable.selected !== selected) {
114
+ if (!selectable.disabled && !!selectable.selected !== selected) {
115
115
  selectable.selected = selected;
116
116
  }
117
117
  });
@@ -8,6 +8,8 @@ import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
8
8
  import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
9
9
  import { styleMap } from 'lit/directives/style-map.js';
10
10
 
11
+ const CLEAR_ALL_THRESHOLD = 4;
12
+ const GAP = 6;
11
13
  const PAGE_SIZE = {
12
14
  medium: 600,
13
15
  large: 970
@@ -17,7 +19,6 @@ const PAGE_SIZE_LINES = {
17
19
  medium: 2,
18
20
  small: 3
19
21
  };
20
- const GAP = 6;
21
22
 
22
23
  async function filterAsync(arr, callback) {
23
24
  const fail = Symbol();
@@ -177,7 +178,7 @@ class TagList extends LocalizeCoreElement(InteractiveMixin(ArrowKeysMixin(LitEle
177
178
  }
178
179
  const clearableClasses = {
179
180
  'd2l-tag-list-clear-button': true,
180
- 'd2l-tag-list-clear-button-visible': this.clearable && this._items && this._items.length > 0
181
+ 'd2l-tag-list-clear-button-visible': this.clearable && this._items && this._items.length >= CLEAR_ALL_THRESHOLD
181
182
  };
182
183
 
183
184
  const containerClasses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.23.3",
3
+ "version": "2.24.2",
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",