@digital-realty/ix-field 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-field.min.js +3 -3
- package/package.json +9 -15
package/dist/ix-field.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate}from"tslib";import"@material/web/field/filled-field.js";import"@material/web/field/outlined-field.js";import{css,LitElement}from"lit";import{property}from"lit/decorators.js";import{literal,html}from"lit/static-html.js";class
|
|
1
|
+
import{__decorate as t}from"tslib";import"@material/web/field/filled-field.js";import"@material/web/field/outlined-field.js";import{css as e,LitElement as o}from"lit";import{property as i}from"lit/decorators.js";import{literal as r,html as s}from"lit/static-html.js";class l extends o{constructor(){super(...arguments),this.filled=!1,this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.input=null}connectedCallback(){super.connectedCallback(),this.input=this.querySelector("input, textarea"),this.handleSlotInput()}handleSlotInput(){var t,e;const o=null===(e=null===(t=this.input)||void 0===t?void 0:t.value)||void 0===e?void 0:e.length;this.count=void 0!==o?o:this.count}render(){const t=this.filled?r`md-filled-field`:r`md-outlined-field`;return s`<${t}
|
|
2
2
|
?disabled=${this.disabled}
|
|
3
3
|
?error=${this.error}
|
|
4
4
|
error-text=${this.errorText}
|
|
@@ -20,8 +20,8 @@ import{__decorate}from"tslib";import"@material/web/field/filled-field.js";import
|
|
|
20
20
|
></slot>
|
|
21
21
|
<slot name="end" slot="end"></slot>
|
|
22
22
|
<slot name="aria-describedby" slot="aria-describedby"></slot>
|
|
23
|
-
</${t}>`}}
|
|
23
|
+
</${t}>`}}l.styles=e`
|
|
24
24
|
.field {
|
|
25
25
|
display: block;
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
27
|
+
`,t([i({type:Boolean})],l.prototype,"filled",void 0),t([i({type:Boolean,reflect:!0})],l.prototype,"disabled",void 0),t([i({type:Boolean})],l.prototype,"error",void 0),t([i({type:Boolean})],l.prototype,"focused",void 0),t([i()],l.prototype,"label",void 0),t([i({type:Boolean})],l.prototype,"populated",void 0),t([i({type:Boolean})],l.prototype,"required",void 0),t([i({type:Boolean})],l.prototype,"resizable",void 0),t([i({attribute:"supporting-text"})],l.prototype,"supportingText",void 0),t([i({attribute:"error-text"})],l.prototype,"errorText",void 0),t([i({type:Number})],l.prototype,"count",void 0),t([i({type:Number})],l.prototype,"max",void 0),t([i({type:Boolean,attribute:"has-start"})],l.prototype,"hasStart",void 0),t([i({type:Boolean,attribute:"has-end"})],l.prototype,"hasEnd",void 0),customElements.define("ix-field",l);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ix-field 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
|
],
|
|
@@ -100,5 +94,5 @@
|
|
|
100
94
|
"README.md",
|
|
101
95
|
"LICENSE"
|
|
102
96
|
],
|
|
103
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "da06737d6707fd3d4ef898ba0fa632e7b3ed8019"
|
|
104
98
|
}
|