@vaadin/component-base
Advanced tools
Comparing version 23.2.0-alpha2 to 23.2.0-alpha3
interface Vaadin { | ||
developmentModeCallback?: { | ||
'usage-statistics'?(): void; | ||
'vaadin-license-checker'?(): void; | ||
}; | ||
@@ -6,0 +5,0 @@ registrations?: Array<{ is: string; version: string }>; |
{ | ||
"name": "@vaadin/component-base", | ||
"version": "23.2.0-alpha2", | ||
"version": "23.2.0-alpha3", | ||
"publishConfig": { | ||
@@ -45,3 +45,3 @@ "access": "public" | ||
}, | ||
"gitHead": "c9b8113d0fa9a602f8b9cb915c1826355af2e8df" | ||
"gitHead": "06e5875be93ca50da2846dafc65a8531010c0576" | ||
} |
@@ -6,5 +6,5 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import { DisabledMixinClass } from './disabled-mixin.js'; | ||
import { KeyboardMixinClass } from './keyboard-mixin.js'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { DisabledMixinClass } from './disabled-mixin.js'; | ||
import type { KeyboardMixinClass } from './keyboard-mixin.js'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -6,4 +6,4 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import { ReactiveController, ReactiveControllerHost } from 'lit'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { ReactiveController, ReactiveControllerHost } from 'lit'; | ||
@@ -10,0 +10,0 @@ /** |
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
import { AsyncInterface } from './async.js'; | ||
import type { AsyncInterface } from './async.js'; | ||
@@ -13,0 +13,0 @@ export declare class Debouncer { |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -8,4 +8,4 @@ /** | ||
import '../custom_typings/vaadin.js'; | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import { DirMixinClass } from './dir-mixin.js'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { DirMixinClass } from './dir-mixin.js'; | ||
@@ -12,0 +12,0 @@ /** |
@@ -42,3 +42,3 @@ /** | ||
static get version() { | ||
return '23.2.0-alpha2'; | ||
return '23.2.0-alpha3'; | ||
} | ||
@@ -45,0 +45,0 @@ |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { ReactiveController } from 'lit'; | ||
import type { ReactiveController } from 'lit'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { ReactiveController } from 'lit'; | ||
import type { ReactiveController } from 'lit'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,4 +6,4 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import { LitElement } from 'lit'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { LitElement } from 'lit'; | ||
@@ -10,0 +10,0 @@ export declare function PolylitMixin<T extends Constructor<LitElement>>(base: T): T & Constructor<PolylitMixinClass>; |
@@ -13,3 +13,4 @@ /** | ||
function camelToDash(camel) { | ||
return caseMap[camel] || (caseMap[camel] = camel.replace(CAMEL_TO_DASH, '-$1').toLowerCase()); | ||
caseMap[camel] = caseMap[camel] || camel.replace(CAMEL_TO_DASH, '-$1').toLowerCase(); | ||
return caseMap[camel]; | ||
} | ||
@@ -16,0 +17,0 @@ |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { ReactiveController } from 'lit'; | ||
import type { ReactiveController } from 'lit'; | ||
@@ -9,0 +9,0 @@ export class SlotController extends EventTarget implements ReactiveController { |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,4 +6,4 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
import { DisabledMixinClass } from './disabled-mixin.js'; | ||
import type { Constructor } from '@open-wc/dedupe-mixin'; | ||
import type { DisabledMixinClass } from './disabled-mixin.js'; | ||
@@ -10,0 +10,0 @@ /** |
@@ -58,3 +58,5 @@ /** | ||
// Need to defer reordering until the user lets go of the scroll bar handle. | ||
this.scrollTarget.addEventListener('mousedown', () => (this.__mouseDown = true)); | ||
this.scrollTarget.addEventListener('mousedown', () => { | ||
this.__mouseDown = true; | ||
}); | ||
this.scrollTarget.addEventListener('mouseup', () => { | ||
@@ -302,3 +304,5 @@ this.__mouseDown = false; | ||
// Workaround an issue in iron-list that can cause it to freeze on fast scroll | ||
setTimeout(() => (this.__clientFull = true)); | ||
setTimeout(() => { | ||
this.__clientFull = true; | ||
}); | ||
return this.__clientFull || super._isClientFull(); | ||
@@ -383,3 +387,5 @@ } | ||
animationFrame, | ||
() => (this._wheelAnimationFrame = false), | ||
() => { | ||
this._wheelAnimationFrame = false; | ||
}, | ||
); | ||
@@ -400,3 +406,5 @@ | ||
timeOut.after(this.timeouts.IGNORE_WHEEL), | ||
() => (this._ignoreNewWheel = false), | ||
() => { | ||
this._ignoreNewWheel = false; | ||
}, | ||
); | ||
@@ -501,3 +509,5 @@ } else if ((this._hasResidualMomentum && momentum <= this._previousMomentum) || this._ignoreNewWheel) { | ||
this.scrollTarget.style.transform = 'translateZ(0)'; | ||
setTimeout(() => (this.scrollTarget.style.transform = transform)); | ||
setTimeout(() => { | ||
this.scrollTarget.style.transform = transform; | ||
}); | ||
} | ||
@@ -504,0 +514,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175865
5045