@vaadin/component-base 24.4.0-rc1 → 24.5.0-alpha1
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/package.json +2 -2
- package/src/define.js +1 -1
- package/src/slot-controller.js +1 -1
- package/src/slot-observer.d.ts +1 -1
- package/src/slot-observer.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.5.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@vaadin/testing-helpers": "^0.6.0",
|
|
43
43
|
"sinon": "^13.0.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "57806caac5468532a3b4e3dbdda730cd0fca193a"
|
|
46
46
|
}
|
package/src/define.js
CHANGED
package/src/slot-controller.js
CHANGED
|
@@ -111,12 +111,12 @@ export class SlotController extends EventTarget {
|
|
|
111
111
|
if (slotName !== '') {
|
|
112
112
|
node.setAttribute('slot', slotName);
|
|
113
113
|
}
|
|
114
|
-
this.node = node;
|
|
115
114
|
this.defaultNode = node;
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
if (node) {
|
|
119
|
+
this.node = node;
|
|
120
120
|
host.appendChild(node);
|
|
121
121
|
}
|
|
122
122
|
|
package/src/slot-observer.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export class SlotObserver {
|
|
11
11
|
constructor(
|
|
12
12
|
slot: HTMLSlotElement,
|
|
13
|
-
callback: (info: { addedNodes: Node[]; movedNodes: Node[]; removedNodes: Node[] }) => void,
|
|
13
|
+
callback: (info: { addedNodes: Node[]; currentNodes: Node[]; movedNodes: Node[]; removedNodes: Node[] }) => void,
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
/**
|
package/src/slot-observer.js
CHANGED
|
@@ -97,7 +97,7 @@ export class SlotObserver {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
if (addedNodes.length || removedNodes.length || movedNodes.length) {
|
|
100
|
-
this.callback({ addedNodes, movedNodes, removedNodes });
|
|
100
|
+
this.callback({ addedNodes, currentNodes, movedNodes, removedNodes });
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
this._storedNodes = currentNodes;
|