@vaadin/component-base 25.1.9 → 25.1.11
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "25.1.
|
|
3
|
+
"version": "25.1.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"lit": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vaadin/chai-plugins": "~25.1.
|
|
42
|
-
"@vaadin/test-runner-commands": "~25.1.
|
|
41
|
+
"@vaadin/chai-plugins": "~25.1.11",
|
|
42
|
+
"@vaadin/test-runner-commands": "~25.1.11",
|
|
43
43
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
44
44
|
"sinon": "^21.0.2"
|
|
45
45
|
},
|
|
46
46
|
"customElements": "custom-elements.json",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "96aa0ee7f6cfa81a59155963fc71cd259be854c2"
|
|
48
48
|
}
|
package/src/define.js
CHANGED
|
@@ -13,7 +13,7 @@ function dashToCamelCase(dash) {
|
|
|
13
13
|
|
|
14
14
|
const experimentalMap = {};
|
|
15
15
|
|
|
16
|
-
export function defineCustomElement(CustomElement, version = '25.1.
|
|
16
|
+
export function defineCustomElement(CustomElement, version = '25.1.11') {
|
|
17
17
|
Object.defineProperty(CustomElement, 'version', {
|
|
18
18
|
get() {
|
|
19
19
|
return version;
|
|
@@ -22,7 +22,6 @@ export class IronListAdapter {
|
|
|
22
22
|
reorderElements,
|
|
23
23
|
elementsContainer,
|
|
24
24
|
__disableHeightPlaceholder,
|
|
25
|
-
__alwaysUpdateScrollerSize,
|
|
26
25
|
}) {
|
|
27
26
|
this.isAttached = true;
|
|
28
27
|
this._vidxOffset = 0;
|
|
@@ -38,12 +37,6 @@ export class IronListAdapter {
|
|
|
38
37
|
// elements with a non-zero height. Not for public use.
|
|
39
38
|
this.__disableHeightPlaceholder = __disableHeightPlaceholder ?? false;
|
|
40
39
|
|
|
41
|
-
// Internal option: a predicate that, when it returns true, makes the scroller
|
|
42
|
-
// height always be applied instead of amortized (see `_updateScrollerSize`).
|
|
43
|
-
// Used by components whose height tracks the content exactly (e.g. the grid's
|
|
44
|
-
// `allRowsVisible` mode). Not for public use.
|
|
45
|
-
this.__alwaysUpdateScrollerSize = __alwaysUpdateScrollerSize;
|
|
46
|
-
|
|
47
40
|
// Iron-list uses this value to determine how many pages of elements to render
|
|
48
41
|
this._maxPages = 1.3;
|
|
49
42
|
|
|
@@ -225,11 +218,6 @@ export class IronListAdapter {
|
|
|
225
218
|
this.__afterElementsUpdated(updatedElements);
|
|
226
219
|
}
|
|
227
220
|
|
|
228
|
-
/** @override */
|
|
229
|
-
_updateScrollerSize(forceUpdate) {
|
|
230
|
-
super._updateScrollerSize(forceUpdate || !!this.__alwaysUpdateScrollerSize?.());
|
|
231
|
-
}
|
|
232
|
-
|
|
233
221
|
/**
|
|
234
222
|
* Updates the height for a given set of items.
|
|
235
223
|
*
|
|
@@ -428,6 +416,8 @@ export class IronListAdapter {
|
|
|
428
416
|
requestAnimationFrame(() => this._resizeHandler());
|
|
429
417
|
}
|
|
430
418
|
|
|
419
|
+
this._updateScrollerSize(true);
|
|
420
|
+
|
|
431
421
|
// Re-render items once the scroll position has been restored.
|
|
432
422
|
// This call also updates the cached scrollTarget height and
|
|
433
423
|
// rechecks whether more virtual elements are needed, since the
|