@vaadin-component-factory/vcf-slider
Advanced tools
Comparing version 1.0.2 to 1.0.4
@@ -1,2 +0,2 @@ | ||
import { PropertyValues, LitElement } from 'lit-element'; | ||
import { PropertyValues, LitElement } from 'lit'; | ||
/** | ||
@@ -18,3 +18,2 @@ * `<vcf-slider>` Slider web component for the Vaadin platform. | ||
private knobs; | ||
private touchDevice; | ||
private knob?; | ||
@@ -27,4 +26,4 @@ private originalKnobOffsetX; | ||
static get version(): string; | ||
static get styles(): import("lit-element").CSSResult; | ||
render(): import("lit-element").TemplateResult; | ||
static get styles(): import("lit").CSSResult; | ||
render(): import("lit").TemplateResult<1>; | ||
updated(props: PropertyValues): void; | ||
@@ -31,0 +30,0 @@ private setLabelValues; |
import { __decorate } from "tslib"; | ||
import { html, css, query, customElement, property, internalProperty, LitElement } from 'lit-element'; | ||
const TOUCH_DEVICE = (() => { | ||
try { | ||
document.createEvent('TouchEvent'); | ||
return true; | ||
} | ||
catch (e) { | ||
return false; | ||
} | ||
})(); | ||
import { html, css, LitElement } from 'lit'; | ||
import { query, property, state, customElement } from 'lit/decorators'; | ||
// const TOUCH_DEVICE = (() => { | ||
// try { | ||
// document.createEvent('TouchEvent'); | ||
// return true; | ||
// } catch (e) { | ||
// return false; | ||
// } | ||
// })(); | ||
/** | ||
@@ -30,3 +30,2 @@ * `<vcf-slider>` Slider web component for the Vaadin platform. | ||
this.knobs = 1; | ||
this.touchDevice = TOUCH_DEVICE; | ||
this.originalKnobOffsetX = 0; | ||
@@ -113,3 +112,3 @@ this.originalPointerX = 0; | ||
static get version() { | ||
return '1.0.1'; | ||
return '1.0.2'; | ||
} | ||
@@ -514,3 +513,3 @@ static get styles() { | ||
__decorate([ | ||
internalProperty() | ||
state() | ||
], VcfSlider.prototype, "knobs", void 0); | ||
@@ -517,0 +516,0 @@ __decorate([ |
{ | ||
"name": "@vaadin-component-factory/vcf-slider", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "Slider web component for the Vaadin platform.", | ||
"main": "dist/vcf-slider.js", | ||
"module": "dist/vcf-slider.js", | ||
"exports": { | ||
".": "./dist/vcf-slider.js", | ||
"./vcf-slider.js": "./dist/src/vcf-slider.js" | ||
}, | ||
"author": "Vaadin Ltd", | ||
@@ -41,6 +45,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@vaadin/element-base": "^0.4.0", | ||
"@vaadin/vaadin-lumo-styles": "^1.6.1", | ||
"lit-element": "^2.2.1", | ||
"lit-html": "^1.1.2" | ||
"lit": "^2.0.0" | ||
}, | ||
@@ -59,3 +60,3 @@ "devDependencies": { | ||
"@webcomponents/webcomponentsjs": "^2.0.0", | ||
"api-viewer-element": "^0.4.4", | ||
"api-viewer-element": "0.5.0", | ||
"eslint": "^6.1.0", | ||
@@ -96,3 +97,8 @@ "eslint-config-prettier": "^6.11.0", | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"vcf-slider.ts", | ||
"src", | ||
"dist" | ||
] | ||
} |
@@ -1,12 +0,13 @@ | ||
import { html, css, query, customElement, property, internalProperty, PropertyValues, LitElement } from 'lit-element'; | ||
import { html, css, PropertyValues, LitElement } from 'lit'; | ||
import { query, property, state, customElement } from 'lit/decorators'; | ||
type PointerEvent = MouseEvent | TouchEvent; | ||
const TOUCH_DEVICE = (() => { | ||
try { | ||
document.createEvent('TouchEvent'); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
})(); | ||
// const TOUCH_DEVICE = (() => { | ||
// try { | ||
// document.createEvent('TouchEvent'); | ||
// return true; | ||
// } catch (e) { | ||
// return false; | ||
// } | ||
// })(); | ||
@@ -29,4 +30,4 @@ /** | ||
@property({ type: Number }) max = 100; | ||
@internalProperty() private knobs = 1; | ||
private touchDevice = TOUCH_DEVICE; | ||
@state() private knobs = 1; | ||
// private touchDevice = TOUCH_DEVICE; | ||
private knob?: HTMLElement; | ||
@@ -41,3 +42,3 @@ private originalKnobOffsetX = 0; | ||
static get version() { | ||
return '1.0.2'; | ||
return '1.0.4'; | ||
} | ||
@@ -44,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
0
0
91007
14
1075
+ Addedlit@^2.0.0
+ Added@lit-labs/ssr-dom-shim@1.2.1(transitive)
+ Added@lit/reactive-element@1.6.3(transitive)
+ Added@types/trusted-types@2.0.7(transitive)
+ Addedlit@2.8.0(transitive)
+ Addedlit-element@3.3.3(transitive)
+ Addedlit-html@2.8.0(transitive)
- Removed@vaadin/element-base@^0.4.0
- Removed@vaadin/vaadin-lumo-styles@^1.6.1
- Removedlit-element@^2.2.1
- Removedlit-html@^1.1.2
- Removed@polymer/iron-flex-layout@3.0.1(transitive)
- Removed@polymer/iron-icon@3.0.1(transitive)
- Removed@polymer/iron-iconset-svg@3.0.1(transitive)
- Removed@polymer/iron-meta@3.0.1(transitive)
- Removed@polymer/polymer@3.5.2(transitive)
- Removed@vaadin/element-base@0.4.0(transitive)
- Removed@vaadin/themable-element@0.3.0(transitive)
- Removed@vaadin/vaadin-development-mode-detector@2.0.7(transitive)
- Removed@vaadin/vaadin-element-mixin@2.4.2(transitive)
- Removed@vaadin/vaadin-lumo-styles@1.6.1(transitive)
- Removed@vaadin/vaadin-themable-mixin@1.6.2(transitive)
- Removed@vaadin/vaadin-usage-statistics@2.1.3(transitive)
- Removed@webcomponents/shadycss@1.11.2(transitive)
- Removedlit-element@2.5.1(transitive)
- Removedlit-html@1.4.1(transitive)