@brightspace-ui/core 1.224.3 → 1.227.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.
- package/components/dialog/README.md +6 -0
- package/components/dialog/dialog-fullscreen.js +2 -2
- package/components/dialog/dialog.js +12 -2
- package/components/dropdown/dropdown-opener-mixin.js +7 -4
- package/components/list/README.md +3 -2
- package/components/list/list-header.js +13 -2
- package/components/list/list-item-mixin.js +36 -3
- package/custom-elements.json +106 -8
- package/package.json +1 -1
|
@@ -83,6 +83,12 @@ The `d2l-dialog` element is a generic dialog that provides a slot for arbitrary
|
|
|
83
83
|
- `d2l-dialog-close`: dispatched with the action value when the dialog is closed for any reason
|
|
84
84
|
<!-- docs: end hidden content -->
|
|
85
85
|
|
|
86
|
+
### Accessibility Properties
|
|
87
|
+
|
|
88
|
+
| Attribute | Description |
|
|
89
|
+
|--|--|
|
|
90
|
+
| `describe-content` | When set, screen readers will announce the contents when opened. |
|
|
91
|
+
|
|
86
92
|
### Methods
|
|
87
93
|
|
|
88
94
|
- `resize`: resizes the dialog based on specified `width` and measured content height
|
|
@@ -10,7 +10,7 @@ import { getUniqueId } from '../../helpers/uniqueId.js';
|
|
|
10
10
|
import { LocalizeCoreElement } from '../../lang/localize-core-element.js';
|
|
11
11
|
import { styleMap } from 'lit-html/directives/style-map.js';
|
|
12
12
|
|
|
13
|
-
const mediaQueryList = window.matchMedia('(max-width: 615px)');
|
|
13
|
+
const mediaQueryList = window.matchMedia('(max-width: 615px), (max-height: 420px) and (max-width: 900px)');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A generic fullscreen dialog that provides a slot for arbitrary content and a "footer" slot for workflow buttons. Apply the "data-dialog-action" attribute to workflow buttons to automatically close the dialog with the action value.
|
|
@@ -132,7 +132,7 @@ class DialogFullscreen extends LocalizeCoreElement(AsyncContainerMixin(DialogMix
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
@media (max-width: 615px) {
|
|
135
|
+
@media (max-width: 615px), (max-height: 420px) and (max-width: 900px) {
|
|
136
136
|
|
|
137
137
|
.d2l-dialog-header {
|
|
138
138
|
padding-bottom: 15px;
|
|
@@ -8,6 +8,7 @@ import { DialogMixin } from './dialog-mixin.js';
|
|
|
8
8
|
import { dialogStyles } from './dialog-styles.js';
|
|
9
9
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
|
10
10
|
import { heading3Styles } from '../typography/styles.js';
|
|
11
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
11
12
|
import { LocalizeCoreElement } from '../../lang/localize-core-element.js';
|
|
12
13
|
import { styleMap } from 'lit-html/directives/style-map.js';
|
|
13
14
|
|
|
@@ -27,6 +28,11 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
|
|
|
27
28
|
*/
|
|
28
29
|
async: { type: Boolean },
|
|
29
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Whether to read the contents of the dialog on open
|
|
33
|
+
*/
|
|
34
|
+
describeContent: { type: Boolean, attribute: 'describe-content' },
|
|
35
|
+
|
|
30
36
|
/**
|
|
31
37
|
* The preferred width (unit-less) for the dialog
|
|
32
38
|
*/
|
|
@@ -100,6 +106,7 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
|
|
|
100
106
|
constructor() {
|
|
101
107
|
super();
|
|
102
108
|
this.async = false;
|
|
109
|
+
this.describeContent = false;
|
|
103
110
|
this.width = 600;
|
|
104
111
|
this._handleResize = this._handleResize.bind(this);
|
|
105
112
|
this._handleResize();
|
|
@@ -151,9 +158,10 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
|
|
|
151
158
|
'd2l-footer-no-content': !this._hasFooterContent
|
|
152
159
|
};
|
|
153
160
|
|
|
161
|
+
if (!this._textId && this.describeContent) this._textId = getUniqueId();
|
|
154
162
|
const content = html`
|
|
155
163
|
${loading}
|
|
156
|
-
<div style=${styleMap(slotStyles)}><slot></slot></div>
|
|
164
|
+
<div id="${ifDefined(this._textId)}" style=${styleMap(slotStyles)}><slot></slot></div>
|
|
157
165
|
`;
|
|
158
166
|
|
|
159
167
|
if (!this._titleId) this._titleId = getUniqueId();
|
|
@@ -171,9 +179,11 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
|
|
|
171
179
|
</div>
|
|
172
180
|
</div>
|
|
173
181
|
`;
|
|
182
|
+
|
|
183
|
+
const descId = (this.describeContent) ? this._textId : undefined;
|
|
174
184
|
return this._render(
|
|
175
185
|
inner,
|
|
176
|
-
{ labelId: this._titleId, role: 'dialog' },
|
|
186
|
+
{ labelId: this._titleId, descId: descId, role: 'dialog' },
|
|
177
187
|
topOverride
|
|
178
188
|
);
|
|
179
189
|
}
|
|
@@ -110,11 +110,12 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
|
|
|
110
110
|
updated(changedProperties) {
|
|
111
111
|
super.updated(changedProperties);
|
|
112
112
|
if (!this.openOnHover || !changedProperties.has('_isFading')) return;
|
|
113
|
-
|
|
113
|
+
const element = this.__getContentElement();
|
|
114
|
+
if (!element) return;
|
|
114
115
|
if (this._isFading) {
|
|
115
|
-
|
|
116
|
+
element.classList.add('d2l-dropdown-content-fading');
|
|
116
117
|
} else {
|
|
117
|
-
|
|
118
|
+
element.classList.remove('d2l-dropdown-content-fading');
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
|
|
@@ -254,7 +255,9 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
|
|
|
254
255
|
if (this.noAutoOpen) return;
|
|
255
256
|
if (this.openOnHover) {
|
|
256
257
|
// prevent propogation to window and triggering _onOutsideClick
|
|
257
|
-
e
|
|
258
|
+
if (e) {
|
|
259
|
+
e.stopPropagation();
|
|
260
|
+
}
|
|
258
261
|
this._closeTimerStop();
|
|
259
262
|
if (this._isOpen && !this._isHovering) {
|
|
260
263
|
this.closeDropdown();
|
|
@@ -311,7 +311,7 @@ The `d2l-list-header` component can be placed in the `d2l-list`'s `header` slot
|
|
|
311
311
|
|
|
312
312
|
| Property | Type | Description |
|
|
313
313
|
|---|---|---|
|
|
314
|
-
| `
|
|
314
|
+
| `padding-type` | String | Header whitespace (`normal` (default), `slim`)|
|
|
315
315
|
<!-- docs: end hidden content -->
|
|
316
316
|
|
|
317
317
|
## List Item [d2l-list-item]
|
|
@@ -354,16 +354,17 @@ The `d2l-list-item` provides the appropriate `listitem` semantics for children w
|
|
|
354
354
|
| `disabled` | Boolean | Disables the input |
|
|
355
355
|
| `draggable` | Boolean | Whether the item is draggable |
|
|
356
356
|
| `drag-handle-text` | String | The drag-handle label for assistive technology. If implementing drag & drop, you should change this to dynamically announce what the drag-handle is moving for assistive technology in keyboard mode. |
|
|
357
|
+
| `drag-target-handle-only` | Boolean | Make the drag target the drag handle only. |
|
|
357
358
|
| `drop-nested` | Boolean | Whether nested items can be dropped on this item |
|
|
358
359
|
| `drop-text` | String | Text to drag and drop |
|
|
359
360
|
| `href` | String | Address of item link if navigable |
|
|
360
361
|
| `key` | String | Value to identify item if selectable or draggable |
|
|
361
362
|
| `label` | String | Explicitly defined label for the element |
|
|
362
363
|
| `labelled-by` | String | The id of element that provides the label for this element |
|
|
364
|
+
| `padding-type` | String | List item whitespace (`normal` (default), `slim`, `none`)|
|
|
363
365
|
| `selectable` | Boolean | Indicates an input should be rendered for selecting the item |
|
|
364
366
|
| `selected` | Boolean | Whether the item is selected |
|
|
365
367
|
| `skeleton` | Boolean | Renders the input as a skeleton loader |
|
|
366
|
-
| `slim` | Boolean | Whether to render the list-item with reduced whitespace|
|
|
367
368
|
|
|
368
369
|
### Events
|
|
369
370
|
|
|
@@ -15,9 +15,16 @@ class ListHeader extends RtlMixin(LocalizeCoreElement(LitElement)) {
|
|
|
15
15
|
return {
|
|
16
16
|
/**
|
|
17
17
|
* Whether to render a header with reduced whitespace
|
|
18
|
+
* TODO: Remove
|
|
18
19
|
* @type {boolean}
|
|
19
20
|
*/
|
|
20
|
-
slim: { reflect: true, type: Boolean }
|
|
21
|
+
slim: { reflect: true, type: Boolean },
|
|
22
|
+
/**
|
|
23
|
+
* How much padding to render list items with
|
|
24
|
+
* One of 'normal'|'slim', defaults to 'normal'
|
|
25
|
+
* @type {string}
|
|
26
|
+
*/
|
|
27
|
+
paddingType: { type: String, attribute: 'padding-type' },
|
|
21
28
|
};
|
|
22
29
|
}
|
|
23
30
|
|
|
@@ -36,7 +43,10 @@ class ListHeader extends RtlMixin(LocalizeCoreElement(LitElement)) {
|
|
|
36
43
|
margin-top: 6px;
|
|
37
44
|
min-height: 58px;
|
|
38
45
|
}
|
|
39
|
-
:host([slim]) .d2l-list-header-container {
|
|
46
|
+
:host([slim]) .d2l-list-header-container { /* TODO: Remove */
|
|
47
|
+
min-height: 36px;
|
|
48
|
+
}
|
|
49
|
+
:host([padding-type="slim"]) .d2l-list-header-container {
|
|
40
50
|
min-height: 36px;
|
|
41
51
|
}
|
|
42
52
|
d2l-selection-select-all {
|
|
@@ -64,6 +74,7 @@ class ListHeader extends RtlMixin(LocalizeCoreElement(LitElement)) {
|
|
|
64
74
|
constructor() {
|
|
65
75
|
super();
|
|
66
76
|
this.slim = false;
|
|
77
|
+
this.paddingType = 'normal';
|
|
67
78
|
}
|
|
68
79
|
|
|
69
80
|
render() {
|
|
@@ -53,8 +53,20 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
53
53
|
* @type {array}
|
|
54
54
|
*/
|
|
55
55
|
breakpoints: { type: Array },
|
|
56
|
+
/**
|
|
57
|
+
* Whether to allow the drag target to be the handle only rather than the entire cell
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
*/
|
|
60
|
+
dragTargetHandleOnly: { type: Boolean, attribute: 'drag-target-handle-only' },
|
|
61
|
+
/**
|
|
62
|
+
* How much padding to render list items with
|
|
63
|
+
* One of 'normal'|'slim'|'none', defaults to 'normal'
|
|
64
|
+
* @type {string}
|
|
65
|
+
*/
|
|
66
|
+
paddingType: { type: String, attribute: 'padding-type' },
|
|
56
67
|
/**
|
|
57
68
|
* Whether to render the list-item with reduced whitespace.
|
|
69
|
+
* TODO: Remove in favor of padding-type="slim"
|
|
58
70
|
* @type {boolean}
|
|
59
71
|
*/
|
|
60
72
|
slim: { type: Boolean },
|
|
@@ -106,6 +118,10 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
106
118
|
border-bottom: 1px solid var(--d2l-color-mica);
|
|
107
119
|
border-top: 1px solid var(--d2l-color-mica);
|
|
108
120
|
}
|
|
121
|
+
:host([padding-type="none"]) d2l-list-item-generic-layout {
|
|
122
|
+
border-bottom: 0;
|
|
123
|
+
border-top: 0;
|
|
124
|
+
}
|
|
109
125
|
d2l-list-item-generic-layout[data-separators="none"] {
|
|
110
126
|
border-bottom: 1px solid transparent;
|
|
111
127
|
border-top: 1px solid transparent;
|
|
@@ -143,10 +159,18 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
143
159
|
justify-content: stretch;
|
|
144
160
|
padding: 0.55rem 0;
|
|
145
161
|
}
|
|
146
|
-
:host([slim]) [slot="content"] {
|
|
162
|
+
:host([slim]) [slot="content"] { /* TODO, remove */
|
|
147
163
|
padding-bottom: 0.35rem;
|
|
148
164
|
padding-top: 0.4rem;
|
|
149
165
|
}
|
|
166
|
+
:host([padding-type="slim"]) [slot="content"] {
|
|
167
|
+
padding-bottom: 0.35rem;
|
|
168
|
+
padding-top: 0.4rem;
|
|
169
|
+
}
|
|
170
|
+
:host([padding-type="none"]) [slot="content"] {
|
|
171
|
+
padding-bottom: 0;
|
|
172
|
+
padding-top: 0;
|
|
173
|
+
}
|
|
150
174
|
[slot="content"] ::slotted([slot="illustration"]),
|
|
151
175
|
[slot="content"] .d2l-list-item-illustration * {
|
|
152
176
|
border-radius: 6px;
|
|
@@ -219,7 +243,11 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
219
243
|
.d2l-list-item-content-extend-separators d2l-selection-input {
|
|
220
244
|
margin-left: 0.9rem;
|
|
221
245
|
}
|
|
222
|
-
:host([slim]) d2l-selection-input {
|
|
246
|
+
:host([slim]) d2l-selection-input { /* TODO, remove */
|
|
247
|
+
margin-bottom: 0.55rem;
|
|
248
|
+
margin-top: 0.55rem;
|
|
249
|
+
}
|
|
250
|
+
:host([padding-type="slim"]) d2l-selection-input {
|
|
223
251
|
margin-bottom: 0.55rem;
|
|
224
252
|
margin-top: 0.55rem;
|
|
225
253
|
}
|
|
@@ -276,6 +304,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
276
304
|
super();
|
|
277
305
|
this.breakpoints = defaultBreakpoints;
|
|
278
306
|
this.slim = false;
|
|
307
|
+
this.paddingType = 'normal';
|
|
279
308
|
this._breakpoint = 0;
|
|
280
309
|
this._contentId = getUniqueId();
|
|
281
310
|
this._displayKeyboardTooltip = false;
|
|
@@ -449,7 +478,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
449
478
|
?grid-active="${this.role === 'rowgroup'}">
|
|
450
479
|
${this._renderDropTarget()}
|
|
451
480
|
${this._renderDragHandle(this._renderOutsideControl)}
|
|
452
|
-
${this._renderDragTarget(this._renderOutsideControlAction)}
|
|
481
|
+
${this._renderDragTarget(this.dragTargetHandleOnly ? this._renderOutsideControlHandleOnly : this._renderOutsideControlAction)}
|
|
453
482
|
${this.selectable ? html`
|
|
454
483
|
<div slot="control">${this._renderCheckbox()}</div>
|
|
455
484
|
<div slot="control-action"
|
|
@@ -497,6 +526,10 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
497
526
|
return html`<div slot="outside-control-action" @mouseenter="${this._onMouseEnter}" @mouseleave="${this._onMouseLeave}">${dragTarget}</div>`;
|
|
498
527
|
}
|
|
499
528
|
|
|
529
|
+
_renderOutsideControlHandleOnly(dragHandle) {
|
|
530
|
+
return html`<div slot="outside-control" @mouseenter="${this._onMouseEnter}" @mouseleave="${this._onMouseLeave}">${dragHandle}</div>`;
|
|
531
|
+
}
|
|
532
|
+
|
|
500
533
|
_renderTooltipContent() {
|
|
501
534
|
return html`
|
|
502
535
|
<div>${this.localize('components.list-item-tooltip.title')}</div>
|
package/custom-elements.json
CHANGED
|
@@ -1599,6 +1599,12 @@
|
|
|
1599
1599
|
"type": "boolean",
|
|
1600
1600
|
"default": "false"
|
|
1601
1601
|
},
|
|
1602
|
+
{
|
|
1603
|
+
"name": "describe-content",
|
|
1604
|
+
"description": "Whether to read the contents of the dialog on open",
|
|
1605
|
+
"type": "boolean",
|
|
1606
|
+
"default": "false"
|
|
1607
|
+
},
|
|
1602
1608
|
{
|
|
1603
1609
|
"name": "width",
|
|
1604
1610
|
"description": "The preferred width (unit-less) for the dialog",
|
|
@@ -1625,6 +1631,13 @@
|
|
|
1625
1631
|
"type": "boolean",
|
|
1626
1632
|
"default": "false"
|
|
1627
1633
|
},
|
|
1634
|
+
{
|
|
1635
|
+
"name": "describeContent",
|
|
1636
|
+
"attribute": "describe-content",
|
|
1637
|
+
"description": "Whether to read the contents of the dialog on open",
|
|
1638
|
+
"type": "boolean",
|
|
1639
|
+
"default": "false"
|
|
1640
|
+
},
|
|
1628
1641
|
{
|
|
1629
1642
|
"name": "width",
|
|
1630
1643
|
"attribute": "width",
|
|
@@ -6458,6 +6471,11 @@
|
|
|
6458
6471
|
"name": "d2l-demo-list-item-custom",
|
|
6459
6472
|
"path": "./components/list/demo/list-item-custom.js",
|
|
6460
6473
|
"attributes": [
|
|
6474
|
+
{
|
|
6475
|
+
"name": "drag-target-handle-only",
|
|
6476
|
+
"description": "Whether to allow the drag target to be the handle only rather than the entire cell",
|
|
6477
|
+
"type": "boolean"
|
|
6478
|
+
},
|
|
6461
6479
|
{
|
|
6462
6480
|
"name": "breakpoints",
|
|
6463
6481
|
"description": "Breakpoints for responsiveness in pixels. There are four different breakpoints and only the four largest breakpoints will be used.",
|
|
@@ -6466,10 +6484,16 @@
|
|
|
6466
6484
|
},
|
|
6467
6485
|
{
|
|
6468
6486
|
"name": "slim",
|
|
6469
|
-
"description": "Whether to render the list-item with reduced whitespace
|
|
6487
|
+
"description": "Whether to render the list-item with reduced whitespace.\nTODO: Remove in favor of padding-type=\"slim\"",
|
|
6470
6488
|
"type": "boolean",
|
|
6471
6489
|
"default": "false"
|
|
6472
6490
|
},
|
|
6491
|
+
{
|
|
6492
|
+
"name": "padding-type",
|
|
6493
|
+
"description": "How much padding to render list items with\nOne of 'normal'|'slim'|'none', defaults to 'normal'",
|
|
6494
|
+
"type": "string",
|
|
6495
|
+
"default": "\"normal\""
|
|
6496
|
+
},
|
|
6473
6497
|
{
|
|
6474
6498
|
"name": "drag-handle-text",
|
|
6475
6499
|
"description": "**Drag & drop:** The drag-handle label for assistive technology. If implementing drag & drop, you should change this to dynamically announce what the drag-handle is moving for assistive technology in keyboard mode.",
|
|
@@ -6533,6 +6557,12 @@
|
|
|
6533
6557
|
}
|
|
6534
6558
|
],
|
|
6535
6559
|
"properties": [
|
|
6560
|
+
{
|
|
6561
|
+
"name": "dragTargetHandleOnly",
|
|
6562
|
+
"attribute": "drag-target-handle-only",
|
|
6563
|
+
"description": "Whether to allow the drag target to be the handle only rather than the entire cell",
|
|
6564
|
+
"type": "boolean"
|
|
6565
|
+
},
|
|
6536
6566
|
{
|
|
6537
6567
|
"name": "breakpoints",
|
|
6538
6568
|
"attribute": "breakpoints",
|
|
@@ -6543,10 +6573,17 @@
|
|
|
6543
6573
|
{
|
|
6544
6574
|
"name": "slim",
|
|
6545
6575
|
"attribute": "slim",
|
|
6546
|
-
"description": "Whether to render the list-item with reduced whitespace
|
|
6576
|
+
"description": "Whether to render the list-item with reduced whitespace.\nTODO: Remove in favor of padding-type=\"slim\"",
|
|
6547
6577
|
"type": "boolean",
|
|
6548
6578
|
"default": "false"
|
|
6549
6579
|
},
|
|
6580
|
+
{
|
|
6581
|
+
"name": "paddingType",
|
|
6582
|
+
"attribute": "padding-type",
|
|
6583
|
+
"description": "How much padding to render list items with\nOne of 'normal'|'slim'|'none', defaults to 'normal'",
|
|
6584
|
+
"type": "string",
|
|
6585
|
+
"default": "\"normal\""
|
|
6586
|
+
},
|
|
6550
6587
|
{
|
|
6551
6588
|
"name": "dragHandleText",
|
|
6552
6589
|
"attribute": "drag-handle-text",
|
|
@@ -6646,18 +6683,31 @@
|
|
|
6646
6683
|
"attributes": [
|
|
6647
6684
|
{
|
|
6648
6685
|
"name": "slim",
|
|
6649
|
-
"description": "Whether to render a header with reduced whitespace",
|
|
6686
|
+
"description": "Whether to render a header with reduced whitespace\nTODO: Remove",
|
|
6650
6687
|
"type": "boolean",
|
|
6651
6688
|
"default": "false"
|
|
6689
|
+
},
|
|
6690
|
+
{
|
|
6691
|
+
"name": "padding-type",
|
|
6692
|
+
"description": "How much padding to render list items with\nOne of 'normal'|'slim', defaults to 'normal'",
|
|
6693
|
+
"type": "string",
|
|
6694
|
+
"default": "\"normal\""
|
|
6652
6695
|
}
|
|
6653
6696
|
],
|
|
6654
6697
|
"properties": [
|
|
6655
6698
|
{
|
|
6656
6699
|
"name": "slim",
|
|
6657
6700
|
"attribute": "slim",
|
|
6658
|
-
"description": "Whether to render a header with reduced whitespace",
|
|
6701
|
+
"description": "Whether to render a header with reduced whitespace\nTODO: Remove",
|
|
6659
6702
|
"type": "boolean",
|
|
6660
6703
|
"default": "false"
|
|
6704
|
+
},
|
|
6705
|
+
{
|
|
6706
|
+
"name": "paddingType",
|
|
6707
|
+
"attribute": "padding-type",
|
|
6708
|
+
"description": "How much padding to render list items with\nOne of 'normal'|'slim', defaults to 'normal'",
|
|
6709
|
+
"type": "string",
|
|
6710
|
+
"default": "\"normal\""
|
|
6661
6711
|
}
|
|
6662
6712
|
],
|
|
6663
6713
|
"slots": [
|
|
@@ -6672,6 +6722,11 @@
|
|
|
6672
6722
|
"path": "./components/list/list-item-button.js",
|
|
6673
6723
|
"description": "A component for a \"listitem\" child within a list. It provides semantics, basic layout, breakpoints for responsiveness, a link for navigation, and selection.",
|
|
6674
6724
|
"attributes": [
|
|
6725
|
+
{
|
|
6726
|
+
"name": "drag-target-handle-only",
|
|
6727
|
+
"description": "Whether to allow the drag target to be the handle only rather than the entire cell",
|
|
6728
|
+
"type": "boolean"
|
|
6729
|
+
},
|
|
6675
6730
|
{
|
|
6676
6731
|
"name": "breakpoints",
|
|
6677
6732
|
"description": "Breakpoints for responsiveness in pixels. There are four different breakpoints and only the four largest breakpoints will be used.",
|
|
@@ -6680,10 +6735,16 @@
|
|
|
6680
6735
|
},
|
|
6681
6736
|
{
|
|
6682
6737
|
"name": "slim",
|
|
6683
|
-
"description": "Whether to render the list-item with reduced whitespace
|
|
6738
|
+
"description": "Whether to render the list-item with reduced whitespace.\nTODO: Remove in favor of padding-type=\"slim\"",
|
|
6684
6739
|
"type": "boolean",
|
|
6685
6740
|
"default": "false"
|
|
6686
6741
|
},
|
|
6742
|
+
{
|
|
6743
|
+
"name": "padding-type",
|
|
6744
|
+
"description": "How much padding to render list items with\nOne of 'normal'|'slim'|'none', defaults to 'normal'",
|
|
6745
|
+
"type": "string",
|
|
6746
|
+
"default": "\"normal\""
|
|
6747
|
+
},
|
|
6687
6748
|
{
|
|
6688
6749
|
"name": "drag-handle-text",
|
|
6689
6750
|
"description": "**Drag & drop:** The drag-handle label for assistive technology. If implementing drag & drop, you should change this to dynamically announce what the drag-handle is moving for assistive technology in keyboard mode.",
|
|
@@ -6747,6 +6808,12 @@
|
|
|
6747
6808
|
}
|
|
6748
6809
|
],
|
|
6749
6810
|
"properties": [
|
|
6811
|
+
{
|
|
6812
|
+
"name": "dragTargetHandleOnly",
|
|
6813
|
+
"attribute": "drag-target-handle-only",
|
|
6814
|
+
"description": "Whether to allow the drag target to be the handle only rather than the entire cell",
|
|
6815
|
+
"type": "boolean"
|
|
6816
|
+
},
|
|
6750
6817
|
{
|
|
6751
6818
|
"name": "breakpoints",
|
|
6752
6819
|
"attribute": "breakpoints",
|
|
@@ -6757,10 +6824,17 @@
|
|
|
6757
6824
|
{
|
|
6758
6825
|
"name": "slim",
|
|
6759
6826
|
"attribute": "slim",
|
|
6760
|
-
"description": "Whether to render the list-item with reduced whitespace
|
|
6827
|
+
"description": "Whether to render the list-item with reduced whitespace.\nTODO: Remove in favor of padding-type=\"slim\"",
|
|
6761
6828
|
"type": "boolean",
|
|
6762
6829
|
"default": "false"
|
|
6763
6830
|
},
|
|
6831
|
+
{
|
|
6832
|
+
"name": "paddingType",
|
|
6833
|
+
"attribute": "padding-type",
|
|
6834
|
+
"description": "How much padding to render list items with\nOne of 'normal'|'slim'|'none', defaults to 'normal'",
|
|
6835
|
+
"type": "string",
|
|
6836
|
+
"default": "\"normal\""
|
|
6837
|
+
},
|
|
6764
6838
|
{
|
|
6765
6839
|
"name": "dragHandleText",
|
|
6766
6840
|
"attribute": "drag-handle-text",
|
|
@@ -7042,6 +7116,11 @@
|
|
|
7042
7116
|
"description": "Address of item link if navigable",
|
|
7043
7117
|
"type": "string"
|
|
7044
7118
|
},
|
|
7119
|
+
{
|
|
7120
|
+
"name": "drag-target-handle-only",
|
|
7121
|
+
"description": "Whether to allow the drag target to be the handle only rather than the entire cell",
|
|
7122
|
+
"type": "boolean"
|
|
7123
|
+
},
|
|
7045
7124
|
{
|
|
7046
7125
|
"name": "breakpoints",
|
|
7047
7126
|
"description": "Breakpoints for responsiveness in pixels. There are four different breakpoints and only the four largest breakpoints will be used.",
|
|
@@ -7050,10 +7129,16 @@
|
|
|
7050
7129
|
},
|
|
7051
7130
|
{
|
|
7052
7131
|
"name": "slim",
|
|
7053
|
-
"description": "Whether to render the list-item with reduced whitespace
|
|
7132
|
+
"description": "Whether to render the list-item with reduced whitespace.\nTODO: Remove in favor of padding-type=\"slim\"",
|
|
7054
7133
|
"type": "boolean",
|
|
7055
7134
|
"default": "false"
|
|
7056
7135
|
},
|
|
7136
|
+
{
|
|
7137
|
+
"name": "padding-type",
|
|
7138
|
+
"description": "How much padding to render list items with\nOne of 'normal'|'slim'|'none', defaults to 'normal'",
|
|
7139
|
+
"type": "string",
|
|
7140
|
+
"default": "\"normal\""
|
|
7141
|
+
},
|
|
7057
7142
|
{
|
|
7058
7143
|
"name": "drag-handle-text",
|
|
7059
7144
|
"description": "**Drag & drop:** The drag-handle label for assistive technology. If implementing drag & drop, you should change this to dynamically announce what the drag-handle is moving for assistive technology in keyboard mode.",
|
|
@@ -7129,6 +7214,12 @@
|
|
|
7129
7214
|
"description": "Address of item link if navigable",
|
|
7130
7215
|
"type": "string"
|
|
7131
7216
|
},
|
|
7217
|
+
{
|
|
7218
|
+
"name": "dragTargetHandleOnly",
|
|
7219
|
+
"attribute": "drag-target-handle-only",
|
|
7220
|
+
"description": "Whether to allow the drag target to be the handle only rather than the entire cell",
|
|
7221
|
+
"type": "boolean"
|
|
7222
|
+
},
|
|
7132
7223
|
{
|
|
7133
7224
|
"name": "breakpoints",
|
|
7134
7225
|
"attribute": "breakpoints",
|
|
@@ -7139,10 +7230,17 @@
|
|
|
7139
7230
|
{
|
|
7140
7231
|
"name": "slim",
|
|
7141
7232
|
"attribute": "slim",
|
|
7142
|
-
"description": "Whether to render the list-item with reduced whitespace
|
|
7233
|
+
"description": "Whether to render the list-item with reduced whitespace.\nTODO: Remove in favor of padding-type=\"slim\"",
|
|
7143
7234
|
"type": "boolean",
|
|
7144
7235
|
"default": "false"
|
|
7145
7236
|
},
|
|
7237
|
+
{
|
|
7238
|
+
"name": "paddingType",
|
|
7239
|
+
"attribute": "padding-type",
|
|
7240
|
+
"description": "How much padding to render list items with\nOne of 'normal'|'slim'|'none', defaults to 'normal'",
|
|
7241
|
+
"type": "string",
|
|
7242
|
+
"default": "\"normal\""
|
|
7243
|
+
},
|
|
7146
7244
|
{
|
|
7147
7245
|
"name": "dragHandleText",
|
|
7148
7246
|
"attribute": "drag-handle-text",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.227.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",
|