@brightspace-ui/core 2.83.2 → 2.83.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.
|
@@ -105,6 +105,7 @@ class DragState {
|
|
|
105
105
|
|
|
106
106
|
_cleanUpOnLeave() {
|
|
107
107
|
if (!this._activeDropTarget) return;
|
|
108
|
+
this._activeDropTarget._draggingOver = false;
|
|
108
109
|
this._activeDropTarget._dropLocation = dropLocation.void;
|
|
109
110
|
this._activeDropTarget._inTopArea = false;
|
|
110
111
|
this._activeDropTarget._inBottomArea = false;
|
|
@@ -363,7 +364,6 @@ export const ListItemDragDropMixin = superclass => class extends superclass {
|
|
|
363
364
|
|
|
364
365
|
firstUpdated(changedProperties) {
|
|
365
366
|
this.addEventListener('dragenter', this._onHostDragEnter.bind(this));
|
|
366
|
-
this.addEventListener('dragleave', this._onHostDragLeave.bind(this));
|
|
367
367
|
super.firstUpdated(changedProperties);
|
|
368
368
|
}
|
|
369
369
|
|
|
@@ -738,14 +738,16 @@ export const ListItemDragDropMixin = superclass => class extends superclass {
|
|
|
738
738
|
|
|
739
739
|
_onHostDragEnter(e) {
|
|
740
740
|
const dragState = getDragState();
|
|
741
|
-
if (this === dragState.dragTarget) return;
|
|
742
741
|
|
|
743
742
|
// check if any of the drag targets are ancestors of the drop target
|
|
744
743
|
const invalidDropTarget = dragState.dragTargets.find(dragTarget => {
|
|
745
744
|
return isComposedAncestor(dragTarget, this);
|
|
746
745
|
});
|
|
747
746
|
|
|
748
|
-
if (invalidDropTarget)
|
|
747
|
+
if (invalidDropTarget) {
|
|
748
|
+
dragState.clear();
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
749
751
|
|
|
750
752
|
// assert that both the source and target are from the same list - may allow this in the future
|
|
751
753
|
const targetRoot = dragState.dragTargets[0] && dragState.dragTargets[0]._getRootList();
|
|
@@ -756,10 +758,6 @@ export const ListItemDragDropMixin = superclass => class extends superclass {
|
|
|
756
758
|
e.dataTransfer.dropEffect = 'move';
|
|
757
759
|
}
|
|
758
760
|
|
|
759
|
-
_onHostDragLeave() {
|
|
760
|
-
this._draggingOver = false;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
761
|
_onTouchCancel() {
|
|
764
762
|
if (this._touchTimeoutId) clearTimeout(this._touchTimeoutId);
|
|
765
763
|
this._touchStarted = false;
|
|
@@ -798,7 +796,6 @@ export const ListItemDragDropMixin = superclass => class extends superclass {
|
|
|
798
796
|
if (!listItem) return;
|
|
799
797
|
// simulate host dragenter
|
|
800
798
|
if (listItem !== this && this._currentTouchListItem !== listItem) {
|
|
801
|
-
this._currentTouchListItem.dispatchEvent(createDragEvent('dragleave'));
|
|
802
799
|
listItem.dispatchEvent(createDragEvent('dragenter'));
|
|
803
800
|
this._currentTouchListItem = listItem;
|
|
804
801
|
}
|
|
@@ -23,12 +23,12 @@ class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
|
|
|
23
23
|
* State of the input
|
|
24
24
|
* @type {boolean}
|
|
25
25
|
*/
|
|
26
|
-
selected: { type: Boolean },
|
|
26
|
+
selected: { type: Boolean, reflect: true },
|
|
27
27
|
/**
|
|
28
28
|
* Disables the input
|
|
29
29
|
* @type {boolean}
|
|
30
30
|
*/
|
|
31
|
-
disabled: { type: Boolean },
|
|
31
|
+
disabled: { type: Boolean, reflect: true },
|
|
32
32
|
/**
|
|
33
33
|
* Private. Force hovering state of input
|
|
34
34
|
* @ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.83.
|
|
3
|
+
"version": "2.83.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",
|