@brightspace-ui/core 2.124.0 → 2.125.0

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.
@@ -89,7 +89,7 @@ class FilterSearchDemo extends LitElement {
89
89
  });
90
90
 
91
91
  setTimeout(() => {
92
- e.detail.searchCompleteCallback(keysToDisplay);
92
+ e.detail.searchCompleteCallback({ keysToDisplay: keysToDisplay });
93
93
  // eslint-disable-next-line no-console
94
94
  console.log(`Filter dimension "${e.detail.key}" searched: ${e.detail.value}`);
95
95
  }, 2000);
@@ -765,8 +765,9 @@ class Filter extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement))) {
765
765
  detail: {
766
766
  key: dimension.key,
767
767
  value: searchValue,
768
- searchCompleteCallback: function(keysToDisplay) {
768
+ searchCompleteCallback: function({ keysToDisplay = [], displayAllKeys = false } = {}) {
769
769
  requestAnimationFrame(() => {
770
+ dimension.displayAllKeys = displayAllKeys;
770
771
  dimension.searchKeysToDisplay = keysToDisplay;
771
772
  this._performDimensionSearch(dimension);
772
773
  dimension.loading = false;
@@ -861,7 +862,7 @@ class Filter extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement))) {
861
862
  switch (dimension.type) {
862
863
  case 'd2l-filter-dimension-set':
863
864
  dimension.values.forEach(value => {
864
- if (dimension.searchValue === '') {
865
+ if (dimension.searchValue === '' || dimension.displayAllKeys) {
865
866
  value.hidden = false;
866
867
  return;
867
868
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.124.0",
3
+ "version": "2.125.0",
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",