@digital-realty/ix-slider 1.2.12 → 1.3.1
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/dist/ix-slider.min.js +26 -1
- package/package.json +9 -15
package/dist/ix-slider.min.js
CHANGED
|
@@ -1 +1,26 @@
|
|
|
1
|
-
import{__decorate}from"tslib";import{LitElement,html}from"lit";import{ifDefined}from"lit/directives/if-defined.js";import{query,property}from"lit/decorators.js";import"@material/web/slider/slider.js";class
|
|
1
|
+
import{__decorate as t}from"tslib";import{LitElement as e,html as a}from"lit";import{ifDefined as i}from"lit/directives/if-defined.js";import{query as r,property as l}from"lit/decorators.js";import"@material/web/slider/slider.js";class o extends e{constructor(){super(...arguments),this.disabled=!1,this.name="",this.min=0,this.max=100,this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1}focus(){this.component.focus()}createRenderRoot(){return this}render(){return a`
|
|
2
|
+
<md-slider
|
|
3
|
+
class="slider"
|
|
4
|
+
style="display: block;"
|
|
5
|
+
?disabled=${this.disabled}
|
|
6
|
+
name=${this.name}
|
|
7
|
+
min=${this.min}
|
|
8
|
+
max=${this.max}
|
|
9
|
+
value=${i(this.value)}
|
|
10
|
+
name-start=${i(this.nameStart)}
|
|
11
|
+
name-end=${i(this.nameEnd)}
|
|
12
|
+
value-start=${i(this.valueStart)}
|
|
13
|
+
value-end=${i(this.valueEnd)}
|
|
14
|
+
value-label=${i(this.valueLabel)}
|
|
15
|
+
value-label-start=${i(this.valueLabelStart)}
|
|
16
|
+
value-label-end=${i(this.valueLabelEnd)}
|
|
17
|
+
aria-label-start=${i(this.ariaLabelStart)}
|
|
18
|
+
aria-valuetext-start=${i(this.ariaValueTextStart)}
|
|
19
|
+
aria-label-end=${i(this.ariaLabelEnd)}
|
|
20
|
+
aria-valuetext-end=${i(this.ariaValueTextEnd)}
|
|
21
|
+
step=${this.step}
|
|
22
|
+
?ticks=${this.ticks}
|
|
23
|
+
?labeled=${this.labeled}
|
|
24
|
+
?range=${this.range}
|
|
25
|
+
></md-slider>
|
|
26
|
+
`}}t([r(".slider")],o.prototype,"component",void 0),t([l({type:Boolean})],o.prototype,"disabled",void 0),t([l()],o.prototype,"name",void 0),t([l({type:Number})],o.prototype,"min",void 0),t([l({type:Number})],o.prototype,"max",void 0),t([l({type:Number})],o.prototype,"value",void 0),t([l({attribute:"name-start"})],o.prototype,"nameStart",void 0),t([l({attribute:"name-end"})],o.prototype,"nameEnd",void 0),t([l({type:Number,attribute:"value-start"})],o.prototype,"valueStart",void 0),t([l({type:Number,attribute:"value-end"})],o.prototype,"valueEnd",void 0),t([l({attribute:"value-label"})],o.prototype,"valueLabel",void 0),t([l({attribute:"value-label-start"})],o.prototype,"valueLabelStart",void 0),t([l({attribute:"value-label-end"})],o.prototype,"valueLabelEnd",void 0),t([l({attribute:"aria-label-start"})],o.prototype,"ariaLabelStart",void 0),t([l({attribute:"aria-valuetext-start"})],o.prototype,"ariaValueTextStart",void 0),t([l({attribute:"aria-label-end"})],o.prototype,"ariaLabelEnd",void 0),t([l({attribute:"aria-valuetext-end"})],o.prototype,"ariaValueTextEnd",void 0),t([l({type:Number})],o.prototype,"step",void 0),t([l({type:Boolean})],o.prototype,"ticks",void 0),t([l({type:Boolean})],o.prototype,"labeled",void 0),t([l({type:Boolean})],o.prototype,"range",void 0),window.customElements.define("ix-slider",o);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ix-slider following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Digital Realty",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.3.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
|
|
22
22
|
"build": "tsc && npm run analyze -- --exclude dist && rollup -c",
|
|
23
23
|
"prepublish": "tsc && npm run analyze -- --exclude dist",
|
|
24
|
-
"lint": "eslint --ext .ts,.html .
|
|
25
|
-
"format": "eslint --ext .ts,.html . --fix
|
|
24
|
+
"lint": "eslint --ext .ts,.html . && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
25
|
+
"format": "eslint --ext .ts,.html . --fix && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
26
26
|
"test": "tsc && wtr --coverage",
|
|
27
27
|
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\""
|
|
28
28
|
},
|
|
@@ -34,32 +34,26 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
37
|
-
"@open-wc/eslint-config": "^9.2.1",
|
|
38
37
|
"@open-wc/testing": "^3.1.6",
|
|
39
|
-
"@
|
|
40
|
-
"@typescript-eslint/
|
|
38
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^8.58.2",
|
|
40
|
+
"@typescript-eslint/parser": "^8.58.2",
|
|
41
41
|
"@web/dev-server": "^0.4.6",
|
|
42
42
|
"@web/test-runner": "^0.20.2",
|
|
43
|
-
"concurrently": "^9.1
|
|
44
|
-
"eslint": "^
|
|
43
|
+
"concurrently": "^9.2.1",
|
|
44
|
+
"eslint": "^9.39.4",
|
|
45
45
|
"eslint-config-prettier": "^8.3.0",
|
|
46
46
|
"husky": "^4.3.8",
|
|
47
47
|
"lint-staged": "^10.5.4",
|
|
48
48
|
"prettier": "^2.4.1",
|
|
49
49
|
"rollup": "^4.29.1",
|
|
50
|
-
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
51
50
|
"rollup-plugin-summary": "^2.0.0",
|
|
52
|
-
"rollup-plugin-uglify": "^6.0.4",
|
|
53
51
|
"tslib": "^2.3.1",
|
|
54
52
|
"typescript": "^4.5.2"
|
|
55
53
|
},
|
|
56
54
|
"customElements": "custom-elements.json",
|
|
57
55
|
"eslintConfig": {
|
|
58
56
|
"parser": "@typescript-eslint/parser",
|
|
59
|
-
"extends": [
|
|
60
|
-
"@open-wc",
|
|
61
|
-
"prettier"
|
|
62
|
-
],
|
|
63
57
|
"plugins": [
|
|
64
58
|
"@typescript-eslint"
|
|
65
59
|
],
|
|
@@ -101,5 +95,5 @@
|
|
|
101
95
|
"README.md",
|
|
102
96
|
"LICENSE"
|
|
103
97
|
],
|
|
104
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "da06737d6707fd3d4ef898ba0fa632e7b3ed8019"
|
|
105
99
|
}
|