Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin-component-factory/vcf-slider

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin-component-factory/vcf-slider - npm Package Compare versions

Comparing version 1.0.2 to 1.0.4

7

dist/src/vcf-slider.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc