@brightspace-ui/core 1.231.1 → 1.231.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.
- package/components/inputs/docs/input-search.md +1 -1
- package/components/list/list-item-mixin.js +17 -1
- package/components/selection/selection-action-dropdown.js +1 -0
- package/components/table/README.md +9 -9
- package/custom-elements.json +2 -1
- package/package.json +1 -1
- package/templates/primary-secondary/primary-secondary.js +0 -2
|
@@ -80,7 +80,7 @@ search.addEventListener('d2l-input-search-searched', (e) => {
|
|
|
80
80
|
When the input is cleared, the same event will be fired with an empty value.
|
|
81
81
|
<!-- docs: end hidden content -->
|
|
82
82
|
|
|
83
|
-
### Accessibility
|
|
83
|
+
### Accessibility Properties
|
|
84
84
|
|
|
85
85
|
To make your usage of `d2l-input-search` accessible, use the following property when applicable:
|
|
86
86
|
|
|
@@ -73,6 +73,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
73
73
|
_breakpoint: { type: Number },
|
|
74
74
|
_displayKeyboardTooltip: { type: Boolean },
|
|
75
75
|
_dropdownOpen: { type: Boolean, attribute: '_dropdown-open', reflect: true },
|
|
76
|
+
_fullscreenWithin: { type: Boolean, attribute: '_fullscreen-within', reflect: true },
|
|
76
77
|
_hoveringPrimaryAction: { type: Boolean },
|
|
77
78
|
_focusing: { type: Boolean },
|
|
78
79
|
_focusingPrimaryAction: { type: Boolean },
|
|
@@ -92,7 +93,8 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
92
93
|
display: none;
|
|
93
94
|
}
|
|
94
95
|
:host([_tooltip-showing]),
|
|
95
|
-
:host([_dropdown-open])
|
|
96
|
+
:host([_dropdown-open]),
|
|
97
|
+
:host([_fullscreen-within]) {
|
|
96
98
|
z-index: 10;
|
|
97
99
|
}
|
|
98
100
|
:host(:first-child) d2l-list-item-generic-layout[data-separators="between"] {
|
|
@@ -275,6 +277,10 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
275
277
|
width: 100%;
|
|
276
278
|
z-index: 5;
|
|
277
279
|
}
|
|
280
|
+
:host([_fullscreen-within]) .d2l-list-item-active-border,
|
|
281
|
+
:host([_fullscreen-within]) d2l-list-item-generic-layout.d2l-focusing + .d2l-list-item-active-border {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
278
284
|
d2l-tooltip > div {
|
|
279
285
|
font-weight: 700;
|
|
280
286
|
}
|
|
@@ -298,6 +304,9 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
298
304
|
this._breakpoint = 0;
|
|
299
305
|
this._contentId = getUniqueId();
|
|
300
306
|
this._displayKeyboardTooltip = false;
|
|
307
|
+
this._fullscreenWithin = false;
|
|
308
|
+
this._fullscreenWithinCount = 0;
|
|
309
|
+
|
|
301
310
|
}
|
|
302
311
|
|
|
303
312
|
get breakpoints() {
|
|
@@ -421,6 +430,12 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
421
430
|
this._focusingPrimaryAction = false;
|
|
422
431
|
}
|
|
423
432
|
|
|
433
|
+
_onFullscreenWithin(e) {
|
|
434
|
+
if (e.detail.state) this._fullscreenWithinCount += 1;
|
|
435
|
+
else this._fullscreenWithinCount -= 1;
|
|
436
|
+
this._fullscreenWithin = (this._fullscreenWithinCount > 0);
|
|
437
|
+
}
|
|
438
|
+
|
|
424
439
|
_onMouseEnter() {
|
|
425
440
|
this._hovering = true;
|
|
426
441
|
}
|
|
@@ -460,6 +475,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
460
475
|
<d2l-list-item-generic-layout
|
|
461
476
|
@focusin="${this._onFocusIn}"
|
|
462
477
|
@focusout="${this._onFocusOut}"
|
|
478
|
+
@d2l-fullscreen-within="${this._onFullscreenWithin}"
|
|
463
479
|
class="${classMap(classes)}"
|
|
464
480
|
data-breakpoint="${this._breakpoint}"
|
|
465
481
|
data-separators="${ifDefined(this._separators)}"
|
|
@@ -9,6 +9,7 @@ import { SelectionActionMixin } from './selection-action-mixin.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* A dropdown opener associated with a selection component.
|
|
11
11
|
* @slot - Dropdown content (e.g., "d2l-dropdown-content", "d2l-dropdown-menu" or "d2l-dropdown-tabs")
|
|
12
|
+
* @fires d2l-selection-observer-subscribe - Internal event
|
|
12
13
|
*/
|
|
13
14
|
class ActionDropdown extends LocalizeCoreElement(SelectionActionMixin(DropdownOpenerMixin(LitElement))) {
|
|
14
15
|
|
|
@@ -114,11 +114,11 @@ The `d2l-table-wrapper` element can be combined with table styles to apply defau
|
|
|
114
114
|
<!-- docs: start hidden content -->
|
|
115
115
|
### Properties
|
|
116
116
|
|
|
117
|
-
| Property | Type | Description |
|
|
118
|
-
|
|
119
|
-
| `no-column-border` |
|
|
120
|
-
| `sticky-headers` |
|
|
121
|
-
| `type` |
|
|
117
|
+
| Property | Type | Description | Default Value |
|
|
118
|
+
|---|---|---|---|
|
|
119
|
+
| `no-column-border` | boolean | Hides the column borders on "default" table type | false |
|
|
120
|
+
| `sticky-headers` | boolean | Whether to make the header row sticky | false |
|
|
121
|
+
| `type` | string | Type of the table style. Can be one of `default`, `light`. | 'default' |
|
|
122
122
|
|
|
123
123
|
## Light Type
|
|
124
124
|
|
|
@@ -241,10 +241,10 @@ When tabular data can be sorted, the `<d2l-table-col-sort-button>` can be used t
|
|
|
241
241
|
|
|
242
242
|
### Properties
|
|
243
243
|
|
|
244
|
-
| Property | Type | Description |
|
|
245
|
-
|
|
246
|
-
| `desc` |
|
|
247
|
-
| `nosort` |
|
|
244
|
+
| Property | Type | Description | Default Value |
|
|
245
|
+
|---|---|---|---|
|
|
246
|
+
| `desc` | boolean | Whether sort direction is descending | false |
|
|
247
|
+
| `nosort` | boolean | Column is not currently sorted. Hides the ascending/descending sort icon. | false |
|
|
248
248
|
|
|
249
249
|
## Selection
|
|
250
250
|
|
package/custom-elements.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.231.
|
|
3
|
+
"version": "1.231.4",
|
|
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",
|
|
@@ -542,7 +542,6 @@ class TemplatePrimarySecondary extends FocusVisiblePolyfillMixin(RtlMixin(Locali
|
|
|
542
542
|
|
|
543
543
|
main {
|
|
544
544
|
flex: 2 0 0;
|
|
545
|
-
-webkit-overflow-scrolling: touch;
|
|
546
545
|
overflow-x: hidden;
|
|
547
546
|
transition: none;
|
|
548
547
|
}
|
|
@@ -570,7 +569,6 @@ class TemplatePrimarySecondary extends FocusVisiblePolyfillMixin(RtlMixin(Locali
|
|
|
570
569
|
aside {
|
|
571
570
|
height: 100%;
|
|
572
571
|
min-width: ${desktopMinSize}px;
|
|
573
|
-
-webkit-overflow-scrolling: touch;
|
|
574
572
|
overflow-x: hidden;
|
|
575
573
|
overflow-y: scroll;
|
|
576
574
|
}
|