@brightspace-ui/core 1.197.2 → 1.199.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.
@@ -117,6 +117,7 @@ If the dropdown is initially empty when it's opened, the dropdown pointer will n
117
117
  | `disabled` | Boolean, default: `false` | Disables the dropdown opener |
118
118
  | `no-auto-open` | Boolean, default: `false` | Prevents the dropdown from opening automatically on click or on key press |
119
119
  | `primary` | Boolean, default: `false` | Optionally render button as primary button |
120
+ | `open-on-hover` | Boolean, default: `false` | Optionally open dropdown on click or hover action |
120
121
  <!-- docs: end hidden content -->
121
122
 
122
123
  ## Opener: Button Subtle [d2l-dropdown-button-subtle]
@@ -160,6 +161,7 @@ If the dropdown is initially empty when it's opened, the dropdown pointer will n
160
161
  | `description` | String | A description to be added to the inner `button` opener for accessibility |
161
162
  | `disabled` | Boolean, default: `false` | Disables the dropdown opener |
162
163
  | `no-auto-open` | Boolean, default: `false` | Prevents the dropdown from automatically on click or on key press |
164
+ | `open-on-hover` | Boolean, default: `false` | Optionally open dropdown on click or hover action |
163
165
  <!-- docs: end hidden content -->
164
166
 
165
167
  ### Accessibility Properties
@@ -209,6 +211,7 @@ To make your `d2l-dropdown-button-subtle` accessible, use the following properti
209
211
  |---|---|---|
210
212
  | `disabled` | Boolean, default: `false` | Disables the dropdown opener |
211
213
  | `no-auto-open` | Boolean, default: `false` | Prevents the dropdown from opening automatically on click or on key press |
214
+ | `open-on-hover` | Boolean, default: `false` | Optionally open dropdown on click or hover action |
212
215
  | `text` | String | Used as `aria-label` for the button |
213
216
  | `translucent` | Boolean, default: `false` | Attribute for busy/rich backgrounds |
214
217
  | `visible-on-ancestor` | Boolean, default: `false` | See [visible-on-ancestor-mixin](../../mixins/visible-on-ancestor-mixin.md) for more details on configuring that behavior |
@@ -261,6 +264,7 @@ To make your usage of `d2l-dropdown-context-menu` accessible, use the following
261
264
  |---|---|---|
262
265
  | `disabled` | Boolean, default: `false` | Disables the dropdown opener |
263
266
  | `no-auto-open` | Boolean, default: `false` | Prevents the dropdown from opening automatically on click or key press |
267
+ | `open-on-hover` | Boolean, default: `false` | Optionally open dropdown on click or hover action |
264
268
  | `text` | String | Used as `aria-label` for the button |
265
269
  | `translucent` | Boolean, default: `false` | Attribute for busy/rich backgrounds |
266
270
  | `visible-on-ancestor` | Boolean, default: `false` | See [visible-on-ancestor-mixin](../../mixins/visible-on-ancestor-mixin.md) for more details on configuring that behavior |
@@ -65,6 +65,36 @@
65
65
  </template>
66
66
  </d2l-demo-snippet>
67
67
 
68
+ <h2>Dropdown Button Opener (open-on-hover Option)</h2>
69
+ <d2l-demo-snippet>
70
+ <template>
71
+ <d2l-dropdown-button text="Open!" open-on-hover>
72
+ <d2l-dropdown-content mobile-tray="right">
73
+ <div slot="header">
74
+ <h3>Scrolling is Fun</h3>
75
+ </div>
76
+ <a href="https://youtu.be/9ze87zQFSak">Google</a>
77
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
78
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
79
+ commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
80
+ nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
81
+ anim id est laborum.Vestibulum vel sem non orci pretium fringilla sed eget augue. Vestibulum malesuada tortor
82
+ vitae odio elementum eleifend. Quisque ligula quam, ornare id malesuada ut, malesuada eleifend sem. Nulla porta
83
+ in arcu quis gravida. Duis ac sagittis felis, in condimentum libero. In dolor risus, semper vel iaculis vitae,
84
+ pellentesque efficitur lorem. Nunc a lacus malesuada, rhoncus risus aliquam, sodales nulla. Sed in varius elit.
85
+ Duis sagittis, turpis ut vehicula elementum, velit mi tincidunt turpis, sit amet sagittis quam urna ut justo.
86
+ Nunc interdum urna augue, ac pretium dui pulvinar eu. Proin vehicula placerat est, sed venenatis purus viverra
87
+ eget. Suspendisse imperdiet nulla eget velit sodales, sit amet tempus metus dignissim. Sed ac luctus leo, a
88
+ ornare nisl. Proin non sapien eu orci gravida aliquam. Praesent placerat auctor lacus sit amet faucibus.
89
+ Suspendisse sit amet dui sed turpis vestibulum dignissim.</p>
90
+ <div slot="footer">
91
+ <a href="http://www.desire2learn.com">D2L</a>
92
+ </div>
93
+ </d2l-dropdown-content>
94
+ </d2l-dropdown-button>
95
+ </template>
96
+ </d2l-demo-snippet>
97
+
68
98
  </d2l-demo-page>
69
99
 
70
100
  </body>
@@ -172,6 +172,19 @@ export const dropdownContentStyles = css`
172
172
  text-align: right;
173
173
  }
174
174
 
175
+ :host(.d2l-dropdown-content-fading) {
176
+ opacity: 0;
177
+ /* matches DropdownOpenerMixin _closeTimerStart function */
178
+ transition: opacity 0.4s ease-out 0.3s;
179
+ }
180
+
181
+ @media (prefers-reduced-motion: reduce) {
182
+ :host(.d2l-dropdown-content-fading) {
183
+ opacity: 1;
184
+ transition: none;
185
+ }
186
+ }
187
+
175
188
  @media (prefers-reduced-motion: reduce) {
176
189
  :host([opened]), :host([opened-above]) {
177
190
  animation: none !important;
@@ -1,3 +1,6 @@
1
+ import { getUniqueId } from '../../helpers/uniqueId.js';
2
+ import { isComposedAncestor } from '../../helpers/dom.js';
3
+
1
4
  export const DropdownOpenerMixin = superclass => class extends superclass {
2
5
 
3
6
  static get properties() {
@@ -27,6 +30,19 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
27
30
  reflect: true,
28
31
  attribute: 'no-auto-open'
29
32
  },
33
+
34
+ /**
35
+ * Optionally open dropdown on click or hover action
36
+ * @type {boolean}
37
+ */
38
+ openOnHover: {
39
+ type: Boolean,
40
+ attribute: 'open-on-hover'
41
+ },
42
+ _isHovering: { type: Boolean },
43
+ _isOpen: { type: Boolean },
44
+ _isOpenedViaClick: { type: Boolean },
45
+ _isFading: { type: Boolean }
30
46
  };
31
47
  }
32
48
 
@@ -34,36 +50,46 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
34
50
  super();
35
51
  this.dropdownOpener = true;
36
52
  this.noAutoOpen = false;
53
+ this.openOnHover = false;
37
54
  this.disabled = false;
38
55
 
39
- this.__onKeyPress = this.__onKeyPress.bind(this);
40
- this.__onMouseUp = this.__onMouseUp.bind(this);
56
+ // hover option
57
+ this._dismissTimerId = getUniqueId();
58
+ this._isOpen = false;
59
+ this._isOpenedViaClick = false;
60
+ this._isHovering = false;
61
+ this._isFading = false;
62
+
63
+ this._onOutsideClick = this._onOutsideClick.bind(this);
64
+ this._contentRendered = null;
65
+ this._openerRendered = null;
41
66
  }
42
67
 
43
68
  connectedCallback() {
44
69
  super.connectedCallback();
45
70
 
46
- requestAnimationFrame(() => {
47
- const opener = this.getOpenerElement();
48
- const content = this.__getContentElement();
49
- if (!opener) {
50
- return;
51
- }
52
- opener.setAttribute('aria-haspopup', 'true');
53
- opener.addEventListener('keypress', this.__onKeyPress);
54
- opener.addEventListener('mouseup', this.__onMouseUp);
55
- opener.setAttribute('aria-expanded', (content && content.opened || false).toString());
56
- });
71
+ // listeners
72
+ this.addEventListener('keypress', this.__onKeypress);
73
+ this.addEventListener('mouseup', this.__onMouseUp);
74
+ this.addEventListener('mouseenter', this.__onMouseEnter);
75
+ this.addEventListener('mouseleave', this.__onMouseLeave);
76
+
77
+ if (this.openOnHover) {
78
+ document.body.addEventListener('mouseup', this._onOutsideClick);
79
+ }
57
80
  }
58
81
 
59
82
  disconnectedCallback() {
60
83
  super.disconnectedCallback();
61
- const opener = this.getOpenerElement();
62
- if (!opener) {
63
- return;
84
+
85
+ this.removeEventListener('keypress', this.__onKeypress);
86
+ this.removeEventListener('mouseup', this.__onMouseUp);
87
+ this.removeEventListener('mouseenter', this.__onMouseEnter);
88
+ this.removeEventListener('mouseleave', this.__onMouseLeave);
89
+
90
+ if (this.openOnHover) {
91
+ document.body.removeEventListener('mouseup', this._onOutsideClick);
64
92
  }
65
- opener.removeEventListener('keypress', this.__onKeyPress);
66
- opener.removeEventListener('mouseup', this.__onMouseUp);
67
93
  }
68
94
 
69
95
  firstUpdated(changedProperties) {
@@ -71,6 +97,38 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
71
97
 
72
98
  this.addEventListener('d2l-dropdown-open', this.__onOpened);
73
99
  this.addEventListener('d2l-dropdown-close', this.__onClosed);
100
+
101
+ const opener = this.getOpenerElement();
102
+ const content = this.__getContentElement();
103
+ if (!opener) {
104
+ return;
105
+ }
106
+ opener.setAttribute('aria-haspopup', 'true');
107
+ opener.setAttribute('aria-expanded', (content && content.opened || false).toString());
108
+ }
109
+
110
+ updated(changedProperties) {
111
+ super.updated(changedProperties);
112
+ if (!this.openOnHover || !changedProperties.has('_isFading')) return;
113
+
114
+ if (this._isFading) {
115
+ this.__getContentElement()?.classList.add('d2l-dropdown-content-fading');
116
+ } else {
117
+ this.__getContentElement()?.classList.remove('d2l-dropdown-content-fading');
118
+ }
119
+ }
120
+
121
+ /* used by open-on-hover option */
122
+ async closeDropdown(fadeOut) {
123
+ this._isOpen = false;
124
+ this._isHovering = false;
125
+ this._isOpenedViaClick = false;
126
+ if (fadeOut) {
127
+ this._closeTimerStart();
128
+ return;
129
+ }
130
+ const dropdownContent = this.__getContentElement();
131
+ await dropdownContent.close();
74
132
  }
75
133
 
76
134
  focus() {
@@ -89,6 +147,15 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
89
147
  return this;
90
148
  }
91
149
 
150
+ /* used by open-on-hover option */
151
+ async openDropdown(applyFocus) {
152
+ this._isOpen = true;
153
+ const dropdownContent = this.__getContentElement();
154
+ if (!dropdownContent) return;
155
+ await dropdownContent.open(applyFocus);
156
+ await dropdownContent.updateComplete;
157
+ }
158
+
92
159
  toggleOpen(applyFocus) {
93
160
  if (this.disabled) {
94
161
  return;
@@ -99,6 +166,7 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
99
166
  return;
100
167
  }
101
168
  content.toggleOpen(applyFocus);
169
+ this._isOpen = !this._isOpen;
102
170
  }
103
171
 
104
172
  __getContentElement() {
@@ -113,17 +181,62 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
113
181
  }
114
182
  opener.setAttribute('aria-expanded', 'false');
115
183
  opener.removeAttribute('active');
184
+ this._isOpen = false;
185
+ this._isOpenedViaClick = false;
116
186
  }
117
187
 
118
- __onKeyPress(e) {
119
- if (e.keyCode !== 13 && e.keyCode !== 32) return;
120
- if (this.noAutoOpen) return;
121
- this.toggleOpen(true);
188
+ __onDropdownMouseUp() {
189
+ this._isOpen = true;
190
+ this._isFading = false;
191
+ this._isHovering = false;
192
+ this._isOpenedViaClick = true;
193
+ this._closeTimerStop();
122
194
  }
123
195
 
124
- __onMouseUp() {
125
- if (this.noAutoOpen) return;
126
- this.toggleOpen(false);
196
+ __onKeypress(e) {
197
+ if (e.srcElement === this || isComposedAncestor(this.getOpenerElement(), e.srcElement)) {
198
+ if (e.keyCode !== 13 && e.keyCode !== 32) return;
199
+ if (this.noAutoOpen) return;
200
+ if (!this.openOnHover) {
201
+ this.toggleOpen(true);
202
+ } else {
203
+ this._closeTimerStop();
204
+ e.preventDefault();
205
+ this._isOpenedViaClick = true;
206
+ this.openDropdown(true);
207
+ }
208
+ }
209
+ }
210
+
211
+ async __onMouseEnter() {
212
+ if (!this.openOnHover) return;
213
+ // do not respond to hover events on mobile screens
214
+ const dropdownContent = this.__getContentElement();
215
+ if (dropdownContent._useMobileStyling) return;
216
+ clearTimeout(this._dismissTimerId);
217
+ if (!this._isOpen) await this.openDropdown(false);
218
+ this._closeTimerStop();
219
+ if (!this._isOpenedViaClick) this._isHovering = true;
220
+ }
221
+
222
+ async __onMouseLeave() {
223
+ if (!this.openOnHover) return;
224
+ // do not respond to hover events on mobile screens
225
+ const dropdownContent = this.__getContentElement();
226
+ if (dropdownContent._useMobileStyling) return;
227
+ this._isHovering = false;
228
+ if (this._isOpenedViaClick) return;
229
+ //Wait before closing so we don't lose hover when we jump from opener to card
230
+ clearTimeout(this._dismissTimerId);
231
+ await this.closeDropdown(true);
232
+ }
233
+
234
+ __onMouseUp(e) {
235
+ if (e.srcElement === this || isComposedAncestor(this.getOpenerElement(), e.srcElement)) {
236
+ this.__onOpenerMouseUp(e);
237
+ } else if (this.openOnHover && isComposedAncestor(this.__getContentElement(), e.srcElement)) {
238
+ this.__onDropdownMouseUp();
239
+ }
127
240
  }
128
241
 
129
242
  __onOpened() {
@@ -133,6 +246,53 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
133
246
  }
134
247
  opener.setAttribute('aria-expanded', 'true');
135
248
  opener.setAttribute('active', 'true');
249
+ this._isFading = false;
250
+ }
251
+
252
+ __onOpenerMouseUp(e) {
253
+ if (this.noAutoOpen) return;
254
+ if (this.openOnHover) {
255
+ // prevent propogation to window and triggering _onOutsideClick
256
+ e?.stopPropagation();
257
+ this._closeTimerStop();
258
+ if (this._isOpen && !this._isHovering) {
259
+ this.closeDropdown();
260
+ } else {
261
+ this._isOpenedViaClick = true;
262
+ this._isHovering = false;
263
+ this.openDropdown(true);
264
+ }
265
+ } else this.toggleOpen(false);
136
266
  }
137
267
 
268
+ /* used by open-on-hover option */
269
+ _closeTimerStart() {
270
+ if (this._isOpen) return;
271
+ clearTimeout(this._setTimeoutId);
272
+ this._isFading = true;
273
+ this._setTimeoutId = setTimeout(() => {
274
+ this.closeDropdown(false);
275
+ this._isFading = false;
276
+ // matches dropdownContentStyles CSS
277
+ }, 700);
278
+ }
279
+
280
+ /* used by open-on-hover option */
281
+ _closeTimerStop() {
282
+ clearTimeout(this._setTimeoutId);
283
+ this._isFading = false;
284
+ }
285
+
286
+ /* used by open-on-hover option */
287
+ _onOutsideClick(e) {
288
+ if (!this._isOpen) return;
289
+ const isWithinDropdown = isComposedAncestor(this.__getContentElement(), e.composedPath()[0]);
290
+ const isWithinOpener = isComposedAncestor(this.getOpenerElement(), e.composedPath()[0]);
291
+ const isBackdropClick = isWithinDropdown
292
+ && this.__getContentElement()._useMobileStyling
293
+ && e.composedPath().find(node => node.nodeName === 'D2L-BACKDROP');
294
+ if (!isWithinOpener && (!isWithinDropdown || isBackdropClick)) {
295
+ this.closeDropdown();
296
+ }
297
+ }
138
298
  };
@@ -1,9 +1,12 @@
1
1
  # Filtering
2
2
 
3
- **NOTE: This component is a work-in-progress and not ready for consumer use yet.**
4
-
5
3
  Filter components are often used in conjuction with [tables](../../components/table) and allow users to select a subset of the presented data based on a set of parameters. Filter dimensions provide methods for entering parameters for a wide range of data types.
6
4
 
5
+ <!-- docs: start hidden content -->
6
+ Filter with multiple dimensions:
7
+ ![Filter with multiple dimensions](./screenshots/filter-multi-dim.png?raw=true)
8
+ <!-- docs: end hidden content -->
9
+
7
10
  <!-- docs: demo align:start autoSize:false size:large -->
8
11
  ```html
9
12
  <script type="module">
@@ -47,10 +50,6 @@ Filter components are often used in conjuction with [tables](../../components/ta
47
50
 
48
51
  The `d2l-filter` component allows a user to filter on one or more dimensions of data from a single dropdown.
49
52
 
50
- <!-- docs: start hidden content -->
51
- <!-- ![Filter](./screenshots/filter.png?raw=true) -->
52
- <!-- docs: end hidden content -->
53
-
54
53
  <!-- docs: demo live name:d2l-filter autoSize:false align:start size:large -->
55
54
  ```html
56
55
  <script type="module">
@@ -96,6 +95,11 @@ The `d2l-filter` component allows a user to filter on one or more dimensions of
96
95
  ### Single Vs Multi Dimensional
97
96
  A filter can be a single dimension (like picking from a list of courses) or offer multiple dimensions (filter by role, or department, or something else). Single-dimension filters can be used side-by-side to promote filters that are more commonly used, while tucking less-used filters into a multi-dimensional filter.
98
97
 
98
+ <!-- docs: start hidden content -->
99
+ Filter with a single dimension:
100
+ ![Filters with single dimension](./screenshots/filter.png?raw=true)
101
+ <!-- docs: end hidden content -->
102
+
99
103
  <!-- docs: demo code autoSize:false align:start size:large -->
100
104
  ```html
101
105
  <script type="module">
@@ -173,6 +177,11 @@ The filter will announce changes to filter selections, search results, and when
173
177
 
174
178
  The `d2l-filter-dimension-set` component is the main dimension type that will work for most use cases. Used alongside the [d2l-filter-dimension-set-value](#filter-dimension%3A-set-value-%5Bd2l-filter-dimension-set-value%5D), this will give you a selectable list of filter values.
175
179
 
180
+ <!-- docs: start hidden content -->
181
+ Set dimension on mobile:
182
+ ![Set dimension on mobile](./screenshots/filter-mobile.png?raw=true)
183
+ <!-- docs: end hidden content -->
184
+
176
185
  <!-- docs: demo live name:d2l-filter-dimension-set align:start autoSize:false size:large -->
177
186
  ```html
178
187
  <script type="module">
@@ -135,6 +135,14 @@ class HtmlBlock extends LitElement {
135
135
  `];
136
136
  }
137
137
 
138
+ connectedCallback() {
139
+ super.connectedCallback();
140
+ if (!this._templateObserver) return;
141
+
142
+ const template = this.querySelector('template');
143
+ if (template) this._templateObserver.observe(template.content, { attributes: true, childList: true, subtree: true });
144
+ }
145
+
138
146
  disconnectedCallback() {
139
147
  super.disconnectedCallback();
140
148
  if (this._templateObserver) this._templateObserver.disconnect();
@@ -14,7 +14,7 @@ size:xlarge
14
14
  </script>
15
15
  <script>
16
16
  window.addEventListener('load', function () {
17
- const demoElem = document.querySelector('#demo-element');
17
+ var demoElem = document.querySelector('#demo-element');
18
18
  if (!demoElem.hasAttribute('data-first-load')) return;
19
19
 
20
20
  setTimeout(function() {
@@ -63,7 +63,7 @@ size:xlarge
63
63
  <!-- docs: start hidden content -->
64
64
  <script>
65
65
  window.addEventListener('load', function () {
66
- const demoElem = document.querySelector('#demo-element');
66
+ var demoElem = document.querySelector('#demo-element');
67
67
  if (!demoElem.hasAttribute('data-first-load')) return;
68
68
 
69
69
  setTimeout(function() {
@@ -131,7 +131,7 @@ size:xlarge
131
131
  <!-- docs: start hidden content -->
132
132
  <script>
133
133
  window.addEventListener('load', function () {
134
- const demoElem = document.querySelector('#demo-element');
134
+ var demoElem = document.querySelector('#demo-element');
135
135
  if (!demoElem.hasAttribute('data-first-load')) return;
136
136
 
137
137
  setTimeout(function() {
@@ -205,7 +205,7 @@ size:large
205
205
  <!-- docs: start hidden content -->
206
206
  <script>
207
207
  window.addEventListener('load', function () {
208
- const demoElem = document.querySelector('#demo-element');
208
+ var demoElem = document.querySelector('#demo-element');
209
209
  if (!demoElem.hasAttribute('data-first-load')) return;
210
210
 
211
211
  setTimeout(function() {
@@ -273,7 +273,7 @@ size:large
273
273
  <!-- docs: start hidden content -->
274
274
  <script>
275
275
  window.addEventListener('load', function () {
276
- const demoElem = document.querySelector('#demo-element');
276
+ var demoElem = document.querySelector('#demo-element');
277
277
  if (!demoElem.hasAttribute('data-first-load')) return;
278
278
 
279
279
  setTimeout(function() {
@@ -343,7 +343,7 @@ size:xlarge
343
343
  <!-- docs: start hidden content -->
344
344
  <script>
345
345
  window.addEventListener('load', function () {
346
- const demoElem = document.querySelector('#demo-element');
346
+ var demoElem = document.querySelector('#demo-element');
347
347
  if (!demoElem.hasAttribute('data-first-load')) return;
348
348
 
349
349
  setTimeout(function() {
@@ -412,7 +412,7 @@ size:xlarge
412
412
  <!-- docs: start hidden content -->
413
413
  <script>
414
414
  window.addEventListener('load', function () {
415
- const demoElem = document.querySelector('#demo-element');
415
+ var demoElem = document.querySelector('#demo-element');
416
416
  if (!demoElem.hasAttribute('data-first-load')) return;
417
417
 
418
418
  setTimeout(function() {
@@ -1686,6 +1686,12 @@
1686
1686
  "type": "boolean",
1687
1687
  "default": "false"
1688
1688
  },
1689
+ {
1690
+ "name": "open-on-hover",
1691
+ "description": "Optionally open dropdown on click or hover action",
1692
+ "type": "boolean",
1693
+ "default": "false"
1694
+ },
1689
1695
  {
1690
1696
  "name": "disabled",
1691
1697
  "description": "Disables the dropdown opener",
@@ -1718,6 +1724,13 @@
1718
1724
  "type": "boolean",
1719
1725
  "default": "false"
1720
1726
  },
1727
+ {
1728
+ "name": "openOnHover",
1729
+ "attribute": "open-on-hover",
1730
+ "description": "Optionally open dropdown on click or hover action",
1731
+ "type": "boolean",
1732
+ "default": "false"
1733
+ },
1721
1734
  {
1722
1735
  "name": "disabled",
1723
1736
  "attribute": "disabled",
@@ -1755,6 +1768,12 @@
1755
1768
  "type": "boolean",
1756
1769
  "default": "false"
1757
1770
  },
1771
+ {
1772
+ "name": "open-on-hover",
1773
+ "description": "Optionally open dropdown on click or hover action",
1774
+ "type": "boolean",
1775
+ "default": "false"
1776
+ },
1758
1777
  {
1759
1778
  "name": "disabled",
1760
1779
  "description": "Disables the dropdown opener",
@@ -1788,6 +1807,13 @@
1788
1807
  "type": "boolean",
1789
1808
  "default": "false"
1790
1809
  },
1810
+ {
1811
+ "name": "openOnHover",
1812
+ "attribute": "open-on-hover",
1813
+ "description": "Optionally open dropdown on click or hover action",
1814
+ "type": "boolean",
1815
+ "default": "false"
1816
+ },
1791
1817
  {
1792
1818
  "name": "disabled",
1793
1819
  "attribute": "disabled",
@@ -2087,6 +2113,12 @@
2087
2113
  "type": "boolean",
2088
2114
  "default": "false"
2089
2115
  },
2116
+ {
2117
+ "name": "open-on-hover",
2118
+ "description": "Optionally open dropdown on click or hover action",
2119
+ "type": "boolean",
2120
+ "default": "false"
2121
+ },
2090
2122
  {
2091
2123
  "name": "disabled",
2092
2124
  "description": "Disables the dropdown opener",
@@ -2120,6 +2152,13 @@
2120
2152
  "type": "boolean",
2121
2153
  "default": "false"
2122
2154
  },
2155
+ {
2156
+ "name": "openOnHover",
2157
+ "attribute": "open-on-hover",
2158
+ "description": "Optionally open dropdown on click or hover action",
2159
+ "type": "boolean",
2160
+ "default": "false"
2161
+ },
2123
2162
  {
2124
2163
  "name": "disabled",
2125
2164
  "attribute": "disabled",
@@ -2424,6 +2463,12 @@
2424
2463
  "type": "boolean",
2425
2464
  "default": "false"
2426
2465
  },
2466
+ {
2467
+ "name": "open-on-hover",
2468
+ "description": "Optionally open dropdown on click or hover action",
2469
+ "type": "boolean",
2470
+ "default": "false"
2471
+ },
2427
2472
  {
2428
2473
  "name": "disabled",
2429
2474
  "description": "Disables the dropdown opener",
@@ -2457,6 +2502,13 @@
2457
2502
  "type": "boolean",
2458
2503
  "default": "false"
2459
2504
  },
2505
+ {
2506
+ "name": "openOnHover",
2507
+ "attribute": "open-on-hover",
2508
+ "description": "Optionally open dropdown on click or hover action",
2509
+ "type": "boolean",
2510
+ "default": "false"
2511
+ },
2460
2512
  {
2461
2513
  "name": "disabled",
2462
2514
  "attribute": "disabled",
@@ -2750,6 +2802,12 @@
2750
2802
  "type": "boolean",
2751
2803
  "default": "false"
2752
2804
  },
2805
+ {
2806
+ "name": "open-on-hover",
2807
+ "description": "Optionally open dropdown on click or hover action",
2808
+ "type": "boolean",
2809
+ "default": "false"
2810
+ },
2753
2811
  {
2754
2812
  "name": "disabled",
2755
2813
  "description": "Disables the dropdown opener",
@@ -2770,6 +2828,13 @@
2770
2828
  "type": "boolean",
2771
2829
  "default": "false"
2772
2830
  },
2831
+ {
2832
+ "name": "openOnHover",
2833
+ "attribute": "open-on-hover",
2834
+ "description": "Optionally open dropdown on click or hover action",
2835
+ "type": "boolean",
2836
+ "default": "false"
2837
+ },
2773
2838
  {
2774
2839
  "name": "disabled",
2775
2840
  "attribute": "disabled",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.197.2",
3
+ "version": "1.199.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "repository": "https://github.com/BrightspaceUI/core.git",
6
6
  "publishConfig": {