@digital-realty/ix-switch 2.3.12 → 2.4.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-switch.min.js +13 -1
- package/package.json +9 -17
package/dist/ix-switch.min.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
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/switch/switch.js";class
|
|
1
|
+
import{__decorate as e}from"tslib";import{LitElement as t,html as o}from"lit";import{ifDefined as i}from"lit/directives/if-defined.js";import{query as s,property as r}from"lit/decorators.js";import"@material/web/switch/switch.js";class d extends t{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.name=void 0,this.value="on"}createRenderRoot(){return this}render(){return o`
|
|
2
|
+
<md-switch
|
|
3
|
+
style="filter: drop-shadow(0 0px 1px #00000090);"
|
|
4
|
+
name=${i(this.name)}
|
|
5
|
+
value=${this.value}
|
|
6
|
+
?disabled=${this.disabled}
|
|
7
|
+
?selected=${this.selected}
|
|
8
|
+
?icons=${this.icons}
|
|
9
|
+
?show-only-selected-icon=${this.showOnlySelectedIcon}
|
|
10
|
+
?required=${this.required}
|
|
11
|
+
>
|
|
12
|
+
</md-switch>
|
|
13
|
+
`}}e([s("md-switch")],d.prototype,"component",void 0),e([r({type:Boolean,reflect:!0})],d.prototype,"disabled",void 0),e([r({type:Boolean})],d.prototype,"selected",void 0),e([r({type:Boolean})],d.prototype,"icons",void 0),e([r({type:Boolean,attribute:"show-only-selected-icon"})],d.prototype,"showOnlySelectedIcon",void 0),e([r({type:Boolean})],d.prototype,"required",void 0),e([r({type:String})],d.prototype,"name",void 0),e([r({type:String})],d.prototype,"value",void 0),window.customElements.define("ix-switch",d);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ix-switch following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Digital Realty",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.4.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,24 +34,21 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
37
|
-
"@open-wc/building-rollup": "^3.0.2",
|
|
38
|
-
"@open-wc/eslint-config": "^9.2.1",
|
|
39
37
|
"@open-wc/testing": "^3.1.6",
|
|
38
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
40
39
|
"@types/react": "^18.2.22",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
42
|
-
"@typescript-eslint/parser": "^
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^8.58.2",
|
|
41
|
+
"@typescript-eslint/parser": "^8.58.2",
|
|
43
42
|
"@web/dev-server": "^0.4.6",
|
|
44
43
|
"@web/test-runner": "^0.20.2",
|
|
45
|
-
"concurrently": "^9.1
|
|
46
|
-
"eslint": "^
|
|
44
|
+
"concurrently": "^9.2.1",
|
|
45
|
+
"eslint": "^9.39.4",
|
|
47
46
|
"eslint-config-prettier": "^8.3.0",
|
|
48
47
|
"husky": "^4.3.8",
|
|
49
48
|
"lint-staged": "^10.5.4",
|
|
50
49
|
"prettier": "^2.4.1",
|
|
51
50
|
"rollup": "^4.29.1",
|
|
52
|
-
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
53
51
|
"rollup-plugin-summary": "^2.0.0",
|
|
54
|
-
"rollup-plugin-uglify": "^6.0.4",
|
|
55
52
|
"tslib": "^2.3.1",
|
|
56
53
|
"typescript": "^4.5.2"
|
|
57
54
|
},
|
|
@@ -59,11 +56,6 @@
|
|
|
59
56
|
"eslintConfig": {
|
|
60
57
|
"parser": "@typescript-eslint/parser",
|
|
61
58
|
"root": true,
|
|
62
|
-
"extends": [
|
|
63
|
-
"@open-wc/eslint-config",
|
|
64
|
-
"eslint-config-prettier",
|
|
65
|
-
"plugin:json/recommended"
|
|
66
|
-
],
|
|
67
59
|
"plugins": [
|
|
68
60
|
"@typescript-eslint"
|
|
69
61
|
],
|
|
@@ -104,5 +96,5 @@
|
|
|
104
96
|
"README.md",
|
|
105
97
|
"LICENSE"
|
|
106
98
|
],
|
|
107
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "da06737d6707fd3d4ef898ba0fa632e7b3ed8019"
|
|
108
100
|
}
|