@brightspace-ui/core 3.154.0 → 3.155.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.
@@ -175,6 +175,11 @@
175
175
  <d2l-filter-dimension-set-date-text-value key="6months2" range="6months"></d2l-filter-dimension-set-date-text-value>
176
176
  <d2l-filter-dimension-set-date-time-range-value key="custom3" text="Custom Date Range with Time" start-value="2024-10-12T12:00:00Z"></d2l-filter-dimension-set-date-time-range-value>
177
177
  </d2l-filter-dimension-set>
178
+ <d2l-filter-dimension-set key="dates3" text="Start and End Ranges" ignore-enforce-selection-single>
179
+ <d2l-filter-dimension-set-date-text-value key="6months" range="6months"></d2l-filter-dimension-set-date-text-value>
180
+ <d2l-filter-dimension-set-date-time-range-value key="custom4" text="Start Date"></d2l-filter-dimension-set-date-time-range-value>
181
+ <d2l-filter-dimension-set-date-time-range-value key="custom5" text="End Date"></d2l-filter-dimension-set-date-time-range-value>
182
+ </d2l-filter-dimension-set>
178
183
  <d2l-filter-dimension-set key="role" text="Role" selected-first>
179
184
  <d2l-filter-dimension-set-value key="admin" text="Admin" count="0"></d2l-filter-dimension-set-value>
180
185
  <d2l-filter-dimension-set-value key="instructor" text="Instructor" count="22"></d2l-filter-dimension-set-value>
@@ -40,6 +40,10 @@ class FilterDimensionSet extends LitElement {
40
40
  * @ignore
41
41
  */
42
42
  minWidth: { type: Number },
43
+ /**
44
+ * ADVANCED: Whether to ignore the enforce single selection setting for this dimension.
45
+ */
46
+ ignoreEnforceSelectionSingle: { type: Boolean, attribute: 'ignore-enforce-selection-single' },
43
47
  /**
44
48
  * Whether to hide the search input, perform a simple text search, or fire an event on search
45
49
  * @type {'none'|'automatic'|'manual'}
@@ -79,6 +83,7 @@ class FilterDimensionSet extends LitElement {
79
83
  this.introductoryText = '';
80
84
  this.loading = false;
81
85
  this.hasMore = false;
86
+ this.ignoreEnforceSelectionSingle = false;
82
87
  this.searchType = 'automatic';
83
88
  this.selectAll = false;
84
89
  this.selectedFirst = false;
@@ -151,7 +156,7 @@ class FilterDimensionSet extends LitElement {
151
156
  return value.getValueDetails();
152
157
  });
153
158
  if (noSearchSupport) this.searchType = 'none';
154
- if (enforceSingleSelection) this.selectionSingle = true;
159
+ if (enforceSingleSelection && !this.ignoreEnforceSelectionSingle) this.selectionSingle = true;
155
160
  if (minWidth) this.minWidth = minWidth;
156
161
  return values;
157
162
  }
@@ -4440,6 +4440,12 @@
4440
4440
  "type": "boolean",
4441
4441
  "default": "false"
4442
4442
  },
4443
+ {
4444
+ "name": "ignore-enforce-selection-single",
4445
+ "description": "ADVANCED: Whether to ignore the enforce single selection setting for this dimension.",
4446
+ "type": "boolean",
4447
+ "default": "false"
4448
+ },
4443
4449
  {
4444
4450
  "name": "search-type",
4445
4451
  "description": "Whether to hide the search input, perform a simple text search, or fire an event on search",
@@ -4512,6 +4518,13 @@
4512
4518
  "type": "boolean",
4513
4519
  "default": "false"
4514
4520
  },
4521
+ {
4522
+ "name": "ignoreEnforceSelectionSingle",
4523
+ "attribute": "ignore-enforce-selection-single",
4524
+ "description": "ADVANCED: Whether to ignore the enforce single selection setting for this dimension.",
4525
+ "type": "boolean",
4526
+ "default": "false"
4527
+ },
4515
4528
  {
4516
4529
  "name": "searchType",
4517
4530
  "attribute": "search-type",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.154.0",
3
+ "version": "3.155.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",