@brightspace-ui/core 3.176.3 → 3.176.5

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.
@@ -9,9 +9,9 @@ The sort menu allows the user to adjust the sort order of data in a list.
9
9
  import '@brightspace-ui/core/components/sorting/sort-item.js';
10
10
  </script>
11
11
  <d2l-sort>
12
- <d2l-sort-item text="Most Relevant" selected></d2l-sort-item>
13
- <d2l-sort-item text="Recently Updated"></d2l-sort-item>
14
- <d2l-sort-item text="Highest Rated"></d2l-sort-item>
12
+ <d2l-sort-item text="Most Relevant" value="relevant" selected></d2l-sort-item>
13
+ <d2l-sort-item text="Recently Updated" value="updated"></d2l-sort-item>
14
+ <d2l-sort-item text="Highest Rated" value="rating"></d2l-sort-item>
15
15
  </d2l-sort>
16
16
  ```
17
17
 
@@ -78,7 +78,7 @@ class Sort extends FocusMixin(LocalizeCoreElement(LitElement)) {
78
78
  if (this._selectedItemValue === e.target.value) return;
79
79
 
80
80
  this._selectedItemText = e.target.text;
81
- this._selectedItemValue = e.target;
81
+ this._selectedItemValue = e.target.value;
82
82
  this.dispatchEvent(new CustomEvent(
83
83
  'd2l-sort-change', {
84
84
  detail: { value: e.detail.value }
@@ -14924,7 +14924,7 @@
14924
14924
  {
14925
14925
  "name": "has-form",
14926
14926
  "description": "Whether to render an encompassing form over all panels",
14927
- "type": " Boolean ",
14927
+ "type": "boolean",
14928
14928
  "default": "false"
14929
14929
  }
14930
14930
  ],
@@ -14976,7 +14976,7 @@
14976
14976
  "name": "hasForm",
14977
14977
  "attribute": "has-form",
14978
14978
  "description": "Whether to render an encompassing form over all panels",
14979
- "type": " Boolean ",
14979
+ "type": "boolean",
14980
14980
  "default": "false"
14981
14981
  }
14982
14982
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.176.3",
3
+ "version": "3.176.5",
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",
@@ -53,6 +53,7 @@ If either of the panels contain an `iframe`, resizing may not work properly. Thi
53
53
  | Property | Type | Description |
54
54
  |---|---|---|
55
55
  | `background-shading` | String, default: `'none'` | Controls whether the primary and secondary panels have shaded backgrounds. Can be one of `'primary'`, `'secondary'`, `'none'`. |
56
+ | `has-form` | Boolean, default: `false` | Whether to render an encompassing form over all panels |
56
57
  | `primary-overflow` | String, default: `'default'` | Controls how the primary panel's contents overflow. Can be one of `'default'`, `'hidden'`. |
57
58
  | `resizable` | Boolean, default: `false` | Whether the panels are user resizable. This only applies to desktop users, mobile users will always be able to resize. |
58
59
  | `secondary-first` | Boolean, default: `false` | When set to true, the secondary panel will be displayed on the left (or the right in RTL) in the desktop view. This attribute has no effect on the mobile view. |
@@ -594,7 +594,7 @@ class TemplatePrimarySecondary extends LocalizeCoreElement(LitElement) {
594
594
  widthType: { type: String, attribute: 'width-type', reflect: true },
595
595
  /**
596
596
  * Whether to render an encompassing form over all panels
597
- * @type { Boolean }
597
+ * @type {boolean}
598
598
  */
599
599
  hasForm: { type: Boolean, attribute: 'has-form' },
600
600
  _formErrorSummary: { type: Array },