@brightspace-ui/core 1.230.2 → 1.230.3
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.
|
@@ -105,15 +105,9 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
105
105
|
filter: grayscale(75%);
|
|
106
106
|
opacity: 0.4;
|
|
107
107
|
}
|
|
108
|
-
:host([draggable]) .d2l-list-item-drag-image {
|
|
109
|
-
transform: rotate(-1deg);
|
|
110
|
-
}
|
|
111
108
|
:host([dragging]) .d2l-list-item-drag-image {
|
|
112
109
|
background: white;
|
|
113
110
|
}
|
|
114
|
-
:host([draggable]) d2l-list-item-generic-layout {
|
|
115
|
-
transform: rotate(1deg);
|
|
116
|
-
}
|
|
117
111
|
d2l-list-item-generic-layout {
|
|
118
112
|
border-bottom: 1px solid var(--d2l-color-mica);
|
|
119
113
|
border-top: 1px solid var(--d2l-color-mica);
|
|
@@ -281,10 +275,6 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
281
275
|
width: 100%;
|
|
282
276
|
z-index: 5;
|
|
283
277
|
}
|
|
284
|
-
:host([draggable][selected]:not([disabled])) .d2l-list-item-active-border,
|
|
285
|
-
:host([draggable][selected]:not([disabled])) d2l-list-item-generic-layout.d2l-focusing + .d2l-list-item-active-border {
|
|
286
|
-
transform: rotate(1deg);
|
|
287
|
-
}
|
|
288
278
|
d2l-tooltip > div {
|
|
289
279
|
font-weight: 700;
|
|
290
280
|
}
|
|
@@ -466,52 +456,54 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
466
456
|
const primaryAction = this._renderPrimaryAction ? this._renderPrimaryAction(this._contentId) : null;
|
|
467
457
|
const tooltipForId = (primaryAction ? this._primaryActionId : (this.selectable ? this._checkboxId : null));
|
|
468
458
|
|
|
459
|
+
const innerView = html`
|
|
460
|
+
<d2l-list-item-generic-layout
|
|
461
|
+
@focusin="${this._onFocusIn}"
|
|
462
|
+
@focusout="${this._onFocusOut}"
|
|
463
|
+
class="${classMap(classes)}"
|
|
464
|
+
data-breakpoint="${this._breakpoint}"
|
|
465
|
+
data-separators="${ifDefined(this._separators)}"
|
|
466
|
+
?grid-active="${this.role === 'rowgroup'}">
|
|
467
|
+
${this._renderDropTarget()}
|
|
468
|
+
${this._renderDragHandle(this._renderOutsideControl)}
|
|
469
|
+
${this._renderDragTarget(this.dragTargetHandleOnly ? this._renderOutsideControlHandleOnly : this._renderOutsideControlAction)}
|
|
470
|
+
${this.selectable ? html`
|
|
471
|
+
<div slot="control">${this._renderCheckbox()}</div>
|
|
472
|
+
<div slot="control-action"
|
|
473
|
+
@mouseenter="${this._onMouseEnter}"
|
|
474
|
+
@mouseleave="${this._onMouseLeave}">
|
|
475
|
+
${this._renderCheckboxAction('')}
|
|
476
|
+
</div>` : nothing }
|
|
477
|
+
${primaryAction ? html`
|
|
478
|
+
<div slot="content-action"
|
|
479
|
+
@focusin="${this._onFocusInPrimaryAction}"
|
|
480
|
+
@focusout="${this._onFocusOutPrimaryAction}"
|
|
481
|
+
@mouseenter="${this._onMouseEnterPrimaryAction}"
|
|
482
|
+
@mouseleave="${this._onMouseLeavePrimaryAction}">
|
|
483
|
+
${primaryAction}
|
|
484
|
+
</div>` : nothing}
|
|
485
|
+
<div slot="content"
|
|
486
|
+
class="${classMap(contentClasses)}"
|
|
487
|
+
id="${this._contentId}">
|
|
488
|
+
<slot name="illustration" class="d2l-list-item-illustration">${illustration}</slot>
|
|
489
|
+
<slot>${content}</slot>
|
|
490
|
+
</div>
|
|
491
|
+
<div slot="actions"
|
|
492
|
+
@mouseenter="${this._onMouseEnter}"
|
|
493
|
+
@mouseleave="${this._onMouseLeave}"
|
|
494
|
+
class="d2l-list-item-actions-container">
|
|
495
|
+
<slot name="actions" class="d2l-list-item-actions">${actions}</slot>
|
|
496
|
+
</div>
|
|
497
|
+
<div slot="nested" @d2l-selection-provider-connected="${this._onSelectionProviderConnected}">
|
|
498
|
+
<slot name="nested" @slotchange="${this._onNestedSlotChange}">${nested}</slot>
|
|
499
|
+
</div>
|
|
500
|
+
</d2l-list-item-generic-layout>
|
|
501
|
+
<div class="d2l-list-item-active-border"></div>
|
|
502
|
+
`;
|
|
503
|
+
|
|
469
504
|
return html`
|
|
470
505
|
${this._renderTopPlacementMarker(html`<d2l-list-item-placement-marker></d2l-list-item-placement-marker>`)}
|
|
471
|
-
|
|
472
|
-
<d2l-list-item-generic-layout
|
|
473
|
-
@focusin="${this._onFocusIn}"
|
|
474
|
-
@focusout="${this._onFocusOut}"
|
|
475
|
-
class="${classMap(classes)}"
|
|
476
|
-
data-breakpoint="${this._breakpoint}"
|
|
477
|
-
data-separators="${ifDefined(this._separators)}"
|
|
478
|
-
?grid-active="${this.role === 'rowgroup'}">
|
|
479
|
-
${this._renderDropTarget()}
|
|
480
|
-
${this._renderDragHandle(this._renderOutsideControl)}
|
|
481
|
-
${this._renderDragTarget(this.dragTargetHandleOnly ? this._renderOutsideControlHandleOnly : this._renderOutsideControlAction)}
|
|
482
|
-
${this.selectable ? html`
|
|
483
|
-
<div slot="control">${this._renderCheckbox()}</div>
|
|
484
|
-
<div slot="control-action"
|
|
485
|
-
@mouseenter="${this._onMouseEnter}"
|
|
486
|
-
@mouseleave="${this._onMouseLeave}">
|
|
487
|
-
${this._renderCheckboxAction('')}
|
|
488
|
-
</div>` : nothing }
|
|
489
|
-
${primaryAction ? html`
|
|
490
|
-
<div slot="content-action"
|
|
491
|
-
@focusin="${this._onFocusInPrimaryAction}"
|
|
492
|
-
@focusout="${this._onFocusOutPrimaryAction}"
|
|
493
|
-
@mouseenter="${this._onMouseEnterPrimaryAction}"
|
|
494
|
-
@mouseleave="${this._onMouseLeavePrimaryAction}">
|
|
495
|
-
${primaryAction}
|
|
496
|
-
</div>` : nothing}
|
|
497
|
-
<div slot="content"
|
|
498
|
-
class="${classMap(contentClasses)}"
|
|
499
|
-
id="${this._contentId}">
|
|
500
|
-
<slot name="illustration" class="d2l-list-item-illustration">${illustration}</slot>
|
|
501
|
-
<slot>${content}</slot>
|
|
502
|
-
</div>
|
|
503
|
-
<div slot="actions"
|
|
504
|
-
@mouseenter="${this._onMouseEnter}"
|
|
505
|
-
@mouseleave="${this._onMouseLeave}"
|
|
506
|
-
class="d2l-list-item-actions-container">
|
|
507
|
-
<slot name="actions" class="d2l-list-item-actions">${actions}</slot>
|
|
508
|
-
</div>
|
|
509
|
-
<div slot="nested" @d2l-selection-provider-connected="${this._onSelectionProviderConnected}">
|
|
510
|
-
<slot name="nested" @slotchange="${this._onNestedSlotChange}">${nested}</slot>
|
|
511
|
-
</div>
|
|
512
|
-
</d2l-list-item-generic-layout>
|
|
513
|
-
<div class="d2l-list-item-active-border"></div>
|
|
514
|
-
</div>
|
|
506
|
+
${this.draggable ? html`<div class="d2l-list-item-drag-image">${innerView}</div>` : innerView}
|
|
515
507
|
${this._renderBottomPlacementMarker(html`<d2l-list-item-placement-marker></d2l-list-item-placement-marker>`)}
|
|
516
508
|
${this._displayKeyboardTooltip && tooltipForId ? html`<d2l-tooltip align="start" announced for="${tooltipForId}" for-type="descriptor">${this._renderTooltipContent()}</d2l-tooltip>` : ''}
|
|
517
509
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.230.
|
|
3
|
+
"version": "1.230.3",
|
|
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",
|