@brightspace-ui/core 2.131.4 → 2.131.6
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.
|
@@ -69,7 +69,6 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
|
69
69
|
[end actions-end];
|
|
70
70
|
grid-template-rows: [main-start] [main-end nested-start] [nested-end];
|
|
71
71
|
position: relative;
|
|
72
|
-
z-index: 0;
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
::slotted([slot="nested"]) {
|
|
@@ -80,15 +79,15 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
|
80
79
|
grid-column: control-start / end;
|
|
81
80
|
}
|
|
82
81
|
:host(.d2l-dragging-over) ::slotted([slot="nested"]) {
|
|
83
|
-
|
|
82
|
+
order: 7; /* must be greater than item's drop-target to allow dropping onto items within nested list */
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
::slotted([slot="drop-target"]) {
|
|
87
86
|
height: 100%;
|
|
87
|
+
order: 6;
|
|
88
88
|
position: absolute;
|
|
89
89
|
top: 0;
|
|
90
90
|
width: 100%;
|
|
91
|
-
z-index: 6;
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
::slotted([slot="outside-control"]),
|
|
@@ -105,7 +104,7 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
|
105
104
|
::slotted([slot="expand-collapse"]) {
|
|
106
105
|
cursor: pointer;
|
|
107
106
|
grid-column: expand-collapse-start / expand-collapse-end;
|
|
108
|
-
|
|
107
|
+
order: 2;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
::slotted([slot="control"]) {
|
|
@@ -124,7 +123,7 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
|
124
123
|
::slotted([slot="actions"]) {
|
|
125
124
|
grid-column: actions-start / actions-end;
|
|
126
125
|
justify-self: end;
|
|
127
|
-
|
|
126
|
+
order: 5;
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
::slotted([slot="outside-control-action"]),
|
|
@@ -134,7 +133,7 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
|
134
133
|
}
|
|
135
134
|
::slotted([slot="outside-control-action"]) {
|
|
136
135
|
grid-column: start / end;
|
|
137
|
-
|
|
136
|
+
order: 1;
|
|
138
137
|
}
|
|
139
138
|
:host([no-primary-action]) ::slotted([slot="outside-control-action"]) {
|
|
140
139
|
grid-column: start / outside-control-end;
|
|
@@ -142,15 +141,15 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
|
142
141
|
::slotted([slot="control-action"]) {
|
|
143
142
|
grid-column: control-start / end;
|
|
144
143
|
height: 100%;
|
|
144
|
+
order: 3;
|
|
145
145
|
width: 100%;
|
|
146
|
-
z-index: 3;
|
|
147
146
|
}
|
|
148
147
|
:host([no-primary-action]) ::slotted([slot="control-action"]) {
|
|
149
148
|
grid-column: control-start / control-end;
|
|
150
149
|
}
|
|
151
150
|
::slotted([slot="content-action"]) {
|
|
152
151
|
grid-column: content-start / end;
|
|
153
|
-
|
|
152
|
+
order: 4;
|
|
154
153
|
}
|
|
155
154
|
:host([no-primary-action]) ::slotted([slot="content-action"]) {
|
|
156
155
|
display: none;
|
|
@@ -84,15 +84,12 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
84
84
|
paddingType: { type: String, attribute: 'padding-type' },
|
|
85
85
|
_breakpoint: { type: Number },
|
|
86
86
|
_displayKeyboardTooltip: { type: Boolean },
|
|
87
|
-
_dropdownOpen: { type: Boolean, attribute: '_dropdown-open', reflect: true },
|
|
88
|
-
_fullscreenWithin: { type: Boolean, attribute: '_fullscreen-within', reflect: true },
|
|
89
87
|
_hovering: { type: Boolean, reflect: true },
|
|
90
88
|
_hoveringPrimaryAction: { type: Boolean, attribute: '_hovering-primary-action', reflect: true },
|
|
91
89
|
_focusing: { type: Boolean, reflect: true },
|
|
92
90
|
_focusingPrimaryAction: { type: Boolean, attribute: '_focusing-primary-action', reflect: true },
|
|
93
91
|
_highlight: { type: Boolean, reflect: true },
|
|
94
92
|
_highlighting: { type: Boolean, reflect: true },
|
|
95
|
-
_tooltipShowing: { type: Boolean, attribute: '_tooltip-showing', reflect: true },
|
|
96
93
|
_hasNestedList: { state: true }
|
|
97
94
|
};
|
|
98
95
|
}
|
|
@@ -108,15 +105,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
108
105
|
display: none;
|
|
109
106
|
}
|
|
110
107
|
|
|
111
|
-
:host([_tooltip-showing]),
|
|
112
|
-
:host([_dropdown-open]) {
|
|
113
|
-
z-index: 10; /* must be greater than adjacent selected items (if this is increased, d2l-collapsible-panel must be updated too) */
|
|
114
|
-
}
|
|
115
|
-
:host([_fullscreen-within]) {
|
|
116
|
-
position: fixed; /* required for Safari */
|
|
117
|
-
z-index: 998; /* must be greater than floating workflow buttons */
|
|
118
|
-
}
|
|
119
|
-
|
|
120
108
|
:host([dragging]) d2l-list-item-generic-layout {
|
|
121
109
|
filter: grayscale(75%);
|
|
122
110
|
opacity: 0.4;
|
|
@@ -126,9 +114,10 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
126
114
|
}
|
|
127
115
|
|
|
128
116
|
[slot="control-container"] {
|
|
117
|
+
pointer-events: none;
|
|
129
118
|
position: relative;
|
|
130
|
-
z-index: -1; /* must allow for interactive content to be accessible with mouse */
|
|
131
119
|
}
|
|
120
|
+
|
|
132
121
|
:host(:first-of-type) [slot="control-container"]::before,
|
|
133
122
|
[slot="control-container"]::after {
|
|
134
123
|
border-top: 1px solid var(--d2l-color-mica);
|
|
@@ -140,7 +129,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
140
129
|
top: 0;
|
|
141
130
|
}
|
|
142
131
|
[slot="control-container"]::after {
|
|
143
|
-
bottom: -
|
|
132
|
+
bottom: -1px;
|
|
144
133
|
}
|
|
145
134
|
|
|
146
135
|
:host(:first-of-type[_separators="between"]) [slot="control-container"]::before,
|
|
@@ -329,6 +318,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
329
318
|
:host(:not([selection-disabled]):not([skeleton])[selectable][_focusing]) [slot="outside-control-container"] {
|
|
330
319
|
background-color: white;
|
|
331
320
|
border-color: #b6cbe8; /* celestine alpha 0.3 */
|
|
321
|
+
margin-bottom: -1px;
|
|
332
322
|
}
|
|
333
323
|
:host([_hovering-primary-action]) [slot="outside-control-container"],
|
|
334
324
|
:host([_hovering-selection]) [slot="outside-control-container"] {
|
|
@@ -337,6 +327,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
337
327
|
:host(:not([selection-disabled]):not([skeleton])[selected]) [slot="outside-control-container"] {
|
|
338
328
|
background-color: #f3fbff;
|
|
339
329
|
border-color: #b6cbe8; /* celestine alpha 0.3 */
|
|
330
|
+
margin-bottom: -1px;
|
|
340
331
|
}
|
|
341
332
|
|
|
342
333
|
:host(:not([selection-disabled]):not([skeleton])[padding-type="none"]) [slot="outside-control-container"] {
|
|
@@ -389,8 +380,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
389
380
|
this._breakpoint = 0;
|
|
390
381
|
this._contentId = getUniqueId();
|
|
391
382
|
this._displayKeyboardTooltip = false;
|
|
392
|
-
this._fullscreenWithin = false;
|
|
393
|
-
this._fullscreenWithinCount = 0;
|
|
394
383
|
this._hasNestedList = false;
|
|
395
384
|
}
|
|
396
385
|
|
|
@@ -421,14 +410,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
421
410
|
ro.unobserve(this);
|
|
422
411
|
}
|
|
423
412
|
|
|
424
|
-
firstUpdated(changedProperties) {
|
|
425
|
-
this.addEventListener('d2l-dropdown-open', () => this._dropdownOpen = true);
|
|
426
|
-
this.addEventListener('d2l-dropdown-close', () => this._dropdownOpen = false);
|
|
427
|
-
this.addEventListener('d2l-tooltip-show', () => this._tooltipShowing = true);
|
|
428
|
-
this.addEventListener('d2l-tooltip-hide', () => this._tooltipShowing = false);
|
|
429
|
-
super.firstUpdated(changedProperties);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
413
|
updated(changedProperties) {
|
|
433
414
|
super.updated(changedProperties);
|
|
434
415
|
if (changedProperties.has('breakpoints')) {
|
|
@@ -579,12 +560,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
579
560
|
this._focusingPrimaryAction = false;
|
|
580
561
|
}
|
|
581
562
|
|
|
582
|
-
_onFullscreenWithin(e) {
|
|
583
|
-
if (e.detail.state) this._fullscreenWithinCount += 1;
|
|
584
|
-
else this._fullscreenWithinCount -= 1;
|
|
585
|
-
this._fullscreenWithin = (this._fullscreenWithinCount > 0);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
563
|
_onMouseEnter() {
|
|
589
564
|
this._hovering = true;
|
|
590
565
|
}
|
|
@@ -629,7 +604,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
629
604
|
align-nested="${ifDefined(this.draggable && this.selectable ? 'control' : undefined)}"
|
|
630
605
|
@focusin="${this._onFocusIn}"
|
|
631
606
|
@focusout="${this._onFocusOut}"
|
|
632
|
-
@d2l-fullscreen-within="${this._onFullscreenWithin}"
|
|
633
607
|
class="${classMap(classes)}"
|
|
634
608
|
data-breakpoint="${this._breakpoint}"
|
|
635
609
|
data-separators="${ifDefined(this._separators)}"
|
package/components/list/list.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.131.
|
|
3
|
+
"version": "2.131.6",
|
|
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",
|