@brightspace-ui/core 1.207.3 → 1.207.4

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.
@@ -2,10 +2,9 @@
2
2
 
3
3
  Dialogs interrupt the user to complete a set of tasks, confirm an action, or offer important options.
4
4
 
5
- <!-- docs: demo autoSize:false size:large -->
5
+ <!-- docs: demo autoOpen:true autoSize:false size:large -->
6
6
  ```html
7
7
  <script type="module">
8
- import './pages/assets/open-first-item-helper.js';
9
8
  import '@brightspace-ui/core/components/button/button.js';
10
9
  import '@brightspace-ui/core/components/dialog/dialog.js';
11
10
  </script>
@@ -1,7 +1,7 @@
1
1
  # Dropdowns
2
2
  A Dropdown is a button that opens a floating container to offer menu items or other content.
3
3
 
4
- <!-- docs: demo autoSize:false align:flex-start size:medium -->
4
+ <!-- docs: demo align:flex-start autoSize:false size:medium -->
5
5
  ```html
6
6
  <script type="module">
7
7
  import '@brightspace-ui/core/components/dropdown/dropdown-button.js';
@@ -26,10 +26,9 @@ A Dropdown is a button that opens a floating container to offer menu items or ot
26
26
 
27
27
  `d2l-dropdown` is a generic opener for dropdown content (`d2l-dropdown-content`, `d2l-dropdown-menu` or `d2l-dropdown-tabs`) enabling alternate opener implementation using existing elements/components. Provide and indicate your own opener element with the class attribute value `d2l-dropdown-opener`. Wire-up is automatic.
28
28
 
29
- <!-- docs: demo live name:d2l-dropdown autoSize:false align:flex-start size:medium -->
29
+ <!-- docs: demo live name:d2l-dropdown align:flex-start autoOpen:true autoSize:false size:medium -->
30
30
  ```html
31
31
  <script type="module">
32
- import './pages/assets/open-first-item-helper.js';
33
32
  import '@brightspace-ui/core/components/dropdown/dropdown.js';
34
33
  import '@brightspace-ui/core/components/dropdown/dropdown-content.js';
35
34
  </script>
@@ -72,10 +71,9 @@ If the dropdown is initially empty when it's opened, the dropdown pointer will n
72
71
  ![screenshot the basic dropdown-button opener](./screenshots/dropdown-button.png)
73
72
  <!-- docs: end hidden content -->
74
73
 
75
- <!-- docs: demo live name:d2l-dropdown-button autoSize:false align:flex-start size:medium -->
74
+ <!-- docs: demo live name:d2l-dropdown-button align:flex-start autoOpen:true autoSize:false size:medium -->
76
75
  ```html
77
76
  <script type="module">
78
- import './pages/assets/open-first-item-helper.js';
79
77
  import '@brightspace-ui/core/components/dropdown/dropdown-button.js';
80
78
  import '@brightspace-ui/core/components/dropdown/dropdown-content.js';
81
79
  </script>
@@ -105,10 +103,9 @@ If the dropdown is initially empty when it's opened, the dropdown pointer will n
105
103
  ![screenshot the basic dropdown-button-subtle opener](./screenshots/dropdown-button-subtle.png)
106
104
  <!-- docs: end hidden content -->
107
105
 
108
- <!-- docs: demo live name:d2l-dropdown-button-subtle align:flex-start autoSize:false size:medium -->
106
+ <!-- docs: demo live name:d2l-dropdown-button-subtle align:flex-start autoOpen:true autoSize:false size:medium -->
109
107
  ```html
110
108
  <script type="module">
111
- import './pages/assets/open-first-item-helper.js';
112
109
  import '@brightspace-ui/core/components/dropdown/dropdown-button-subtle.js';
113
110
  import '@brightspace-ui/core/components/dropdown/dropdown-content.js';
114
111
  </script>
@@ -146,10 +143,9 @@ To make your `d2l-dropdown-button-subtle` accessible, use the following properti
146
143
  ![screenshot the basic dropdown-context-menu opener](./screenshots/dropdown-context-menu.png)
147
144
  <!-- docs: end hidden content -->
148
145
 
149
- <!-- docs: demo live name:d2l-dropdown-context-menu align:flex-start autoSize:false size:medium -->
146
+ <!-- docs: demo live name:d2l-dropdown-context-menu align:flex-start autoOpen:true autoSize:false size:medium -->
150
147
  ```html
151
148
  <script type="module">
152
- import './pages/assets/open-first-item-helper.js';
153
149
  import '@brightspace-ui/core/components/dropdown/dropdown-context-menu.js';
154
150
  import '@brightspace-ui/core/components/dropdown/dropdown-content.js';
155
151
  </script>
@@ -188,10 +184,9 @@ To make your usage of `d2l-dropdown-context-menu` accessible, use the following
188
184
  ![screenshot the basic dropdown-more opener](./screenshots/dropdown-more.png)
189
185
  <!-- docs: end hidden content -->
190
186
 
191
- <!-- docs: demo live name:d2l-dropdown-more autoSize:false align:flex-start size:medium -->
187
+ <!-- docs: demo live name:d2l-dropdown-more align:flex-start autoOpen:true autoSize:false size:medium -->
192
188
  ```html
193
189
  <script type="module">
194
- import './pages/assets/open-first-item-helper.js';
195
190
  import '@brightspace-ui/core/components/dropdown/dropdown-more.js';
196
191
  import '@brightspace-ui/core/components/dropdown/dropdown-content.js';
197
192
  </script>
@@ -231,10 +226,9 @@ To make your usage of `d2l-dropdown-more` accessible, use the following property
231
226
  ![screenshot the dropdown-content with mobile-tray="right"](./screenshots/dropdown-content-mobile-tray.png)
232
227
  <!-- docs: end hidden content -->
233
228
 
234
- <!-- docs: demo live name:d2l-dropdown-content autoSize:false align:flex-start size:medium -->
229
+ <!-- docs: demo live name:d2l-dropdown-content align:flex-start autoSize:false autoOpen:true size:medium -->
235
230
  ```html
236
231
  <script type="module">
237
- import './pages/assets/open-first-item-helper.js';
238
232
  import '@brightspace-ui/core/components/dropdown/dropdown-button.js';
239
233
  import '@brightspace-ui/core/components/dropdown/dropdown-content.js';
240
234
  </script>
@@ -294,10 +288,9 @@ To make your usage of `d2l-dropdown-more` accessible, use the following property
294
288
  ![screenshot the basic dropdown-menu](./screenshots/dropdown-menu.png)
295
289
  <!-- docs: end hidden content -->
296
290
 
297
- <!-- docs: demo live name:d2l-dropdown-menu size:medium align:flex-start autoSize:false -->
291
+ <!-- docs: demo live name:d2l-dropdown-menu align:flex-start autoOpen:true autoSize:false size:medium -->
298
292
  ```html
299
293
  <script type="module">
300
- import './pages/assets/open-first-item-helper.js';
301
294
  import '@brightspace-ui/core/components/dropdown/dropdown-button.js';
302
295
  import '@brightspace-ui/core/components/dropdown/dropdown-menu.js';
303
296
  import '@brightspace-ui/core/components/menu/menu.js';
@@ -338,10 +331,9 @@ To make your usage of `d2l-dropdown-more` accessible, use the following property
338
331
  ![screenshot the basic dropdown-tabs](./screenshots/dropdown-tabs.png)
339
332
  <!-- docs: end hidden content -->
340
333
 
341
- <!-- docs: demo live name:d2l-dropdown-tabs size:large autoSize:false align:flex-start -->
334
+ <!-- docs: demo live name:d2l-dropdown-tabs autoOpen:true autoSize:false align:flex-start size:large -->
342
335
  ```html
343
336
  <script type="module">
344
- import './pages/assets/open-first-item-helper.js';
345
337
  import '@brightspace-ui/core/components/dropdown/dropdown-button.js';
346
338
  import '@brightspace-ui/core/components/dropdown/dropdown-tabs.js';
347
339
  import '@brightspace-ui/core/components/menu/menu.js';
@@ -7,10 +7,9 @@ Filter with multiple dimensions:
7
7
  ![Filter with multiple dimensions](./screenshots/filter-multi-dim.png?raw=true)
8
8
  <!-- docs: end hidden content -->
9
9
 
10
- <!-- docs: demo align:start autoSize:false size:large -->
10
+ <!-- docs: demo align:start autoOpen:true autoSize:false size:large -->
11
11
  ```html
12
12
  <script type="module">
13
- import './pages/assets/open-first-item-helper.js';
14
13
  import '@brightspace-ui/core/components/filter/filter.js';
15
14
  import '@brightspace-ui/core/components/filter/filter-dimension-set.js';
16
15
  import '@brightspace-ui/core/components/filter/filter-dimension-set-value.js';
@@ -39,10 +38,9 @@ Filter with multiple dimensions:
39
38
 
40
39
  The `d2l-filter` component allows a user to filter on one or more dimensions of data from a single dropdown.
41
40
 
42
- <!-- docs: demo live name:d2l-filter autoSize:false align:start size:large -->
41
+ <!-- docs: demo live name:d2l-filter align:start autoOpen:true autoSize:false size:large -->
43
42
  ```html
44
43
  <script type="module">
45
- import './pages/assets/open-first-item-helper.js';
46
44
  import '@brightspace-ui/core/components/filter/filter.js';
47
45
  import '@brightspace-ui/core/components/filter/filter-dimension-set.js';
48
46
  import '@brightspace-ui/core/components/filter/filter-dimension-set-value.js';
@@ -78,7 +76,7 @@ Filter with a single dimension:
78
76
  ![Filters with single dimension](./screenshots/filter.png?raw=true)
79
77
  <!-- docs: end hidden content -->
80
78
 
81
- <!-- docs: demo code autoSize:false align:start size:large -->
79
+ <!-- docs: demo code align:start autoSize:false size:large -->
82
80
  ```html
83
81
  <script type="module">
84
82
  import '@brightspace-ui/core/components/filter/filter.js';
@@ -160,10 +158,9 @@ Set dimension on mobile:
160
158
  ![Set dimension on mobile](./screenshots/filter-mobile.png?raw=true)
161
159
  <!-- docs: end hidden content -->
162
160
 
163
- <!-- docs: demo live name:d2l-filter-dimension-set align:start autoSize:false size:large -->
161
+ <!-- docs: demo live name:d2l-filter-dimension-set align:start autoOpen:true autoSize:false size:large -->
164
162
  ```html
165
163
  <script type="module">
166
- import './pages/assets/open-first-item-helper.js';
167
164
  import '@brightspace-ui/core/components/filter/filter.js';
168
165
  import '@brightspace-ui/core/components/filter/filter-dimension-set.js';
169
166
  import '@brightspace-ui/core/components/filter/filter-dimension-set-value.js';
@@ -45,10 +45,9 @@ Note: All `*value` properties should be in ISO 8601 calendar date format (`YYYY-
45
45
  ![example screenshot of date input](../screenshots/date.gif?raw=true)
46
46
  <!-- docs: end hidden content -->
47
47
 
48
- <!-- docs: demo live name:d2l-input-date align:flex-start autoSize:false size:xlarge -->
48
+ <!-- docs: demo live name:d2l-input-date align:flex-start autoOpen:true autoSize:false size:xlarge -->
49
49
  ```html
50
50
  <script type="module">
51
- import './pages/assets/open-first-item-helper.js';
52
51
  import '@brightspace-ui/core/components/inputs/input-date.js';
53
52
  </script>
54
53
  <d2l-input-date label="Birthdate">
@@ -96,10 +95,9 @@ Note: All `*value` properties should be in ISO 8601 calendar date format (`YYYY-
96
95
  ![example screenshot of date range input](../screenshots/date-range.gif?raw=true)
97
96
  <!-- docs: end hidden content -->
98
97
 
99
- <!-- docs: demo live name:d2l-input-date-range align:flex-start autoSize:false size:xlarge -->
98
+ <!-- docs: demo live name:d2l-input-date-range align:flex-start autoOpen:true autoSize:false size:xlarge -->
100
99
  ```html
101
100
  <script type="module">
102
- import './pages/assets/open-first-item-helper.js';
103
101
  import '@brightspace-ui/core/components/inputs/input-date-range.js';
104
102
  </script>
105
103
  <d2l-input-date-range label="Availability Range">
@@ -153,10 +151,9 @@ Note: All `*value` properties should be in ISO 8601 time format (`hh:mm:ss`) and
153
151
  ![example screenshot of time input](../screenshots/time.gif?raw=true)
154
152
  <!-- docs: end hidden content -->
155
153
 
156
- <!-- docs: demo live name:d2l-input-time align:flex-start autoSize:false size:large -->
154
+ <!-- docs: demo live name:d2l-input-time align:flex-start autoOpen:true autoSize:false size:large -->
157
155
  ```html
158
156
  <script type="module">
159
- import './pages/assets/open-first-item-helper.js';
160
157
  import '@brightspace-ui/core/components/inputs/input-time.js';
161
158
  </script>
162
159
  <d2l-input-time label="Time">
@@ -194,7 +191,7 @@ To make your usage of `d2l-input-time` accessible, use the following properties
194
191
  | `label-hidden` | Use if label should be visually hidden but available for screen reader users |
195
192
  | `labelled-by` | String | Use when another visible element should act as the label |
196
193
 
197
- ### Time Range Input [d2l-input-time-range]
194
+ ## Time Range Input [d2l-input-time-range]
198
195
 
199
196
  Use the `<d2l-input-time-range>` component when users need to enter two times in a range, and the date is already known. The component consists of two input-time components - one for the start of a range and one for the end of a range. Values specified for these components (through the `start-value` and/or `end-value` attributes) are displayed if specified, and selected values are reflected.
200
197
 
@@ -204,10 +201,9 @@ Note: All `*value` properties should be in ISO 8601 time format (`hh:mm:ss`) and
204
201
  ![example screenshot of time range input](../screenshots/time-range.gif?raw=true)
205
202
  <!-- docs: end hidden content -->
206
203
 
207
- <!-- docs: demo live name:d2l-input-time-range align:flex-start autoSize:false size:large -->
204
+ <!-- docs: demo live name:d2l-input-time-range align:flex-start autoOpen:true autoSize:false size:large -->
208
205
  ```html
209
206
  <script type="module">
210
- import './pages/assets/open-first-item-helper.js';
211
207
  import '@brightspace-ui/core/components/inputs/input-time-range.js';
212
208
  </script>
213
209
  <d2l-input-time-range label="Availability Range">
@@ -257,10 +253,9 @@ Note: All `*value` properties should be in ISO 8601 combined date and time forma
257
253
  ![example screenshot of date input](../screenshots/date-time.gif?raw=true)
258
254
  <!-- docs: end hidden content -->
259
255
 
260
- <!-- docs: demo live name:d2l-input-date-time align:flex-start autoSize:false size:xlarge -->
256
+ <!-- docs: demo live name:d2l-input-date-time align:flex-start autoOpen:true autoSize:false size:xlarge -->
261
257
  ```html
262
258
  <script type="module">
263
- import './pages/assets/open-first-item-helper.js';
264
259
  import '@brightspace-ui/core/components/inputs/input-date-time.js';
265
260
  </script>
266
261
  <d2l-input-date-time label="Due Date">
@@ -309,10 +304,9 @@ Note: All `*value` properties should be in ISO 8601 combined date and time forma
309
304
  ![example screenshot of date-time range input](../screenshots/date-time-range.gif?raw=true)
310
305
  <!-- docs: end hidden content -->
311
306
 
312
- <!-- docs: demo live name:d2l-input-date-time-range align:flex-start autoSize:false size:xlarge -->
307
+ <!-- docs: demo live name:d2l-input-date-time-range align:flex-start autoOpen:true autoSize:false size:xlarge -->
313
308
  ```html
314
309
  <script type="module">
315
- import './pages/assets/open-first-item-helper.js';
316
310
  import '@brightspace-ui/core/components/inputs/input-date-time-range.js';
317
311
  </script>
318
312
  <d2l-input-date-time-range label="Availability Range">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.207.3",
3
+ "version": "1.207.4",
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": {