@digital-realty/ix-field 1.3.1-alpha.1 → 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.
@@ -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 IxField extends LitElement{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=null==(t=null==(t=this.input)?void 0:t.value)?void 0:t.length;this.count=void 0!==t?t:this.count}render(){var t=this.filled?literal`md-filled-field`:literal`md-outlined-field`;return html`<${t}
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}>`}}IxField.styles=css`
23
+ </${t}>`}}l.styles=e`
24
24
  .field {
25
25
  display: block;
26
26
  }
27
- `,__decorate([property({type:Boolean})],IxField.prototype,"filled",void 0),__decorate([property({type:Boolean,reflect:!0})],IxField.prototype,"disabled",void 0),__decorate([property({type:Boolean})],IxField.prototype,"error",void 0),__decorate([property({type:Boolean})],IxField.prototype,"focused",void 0),__decorate([property()],IxField.prototype,"label",void 0),__decorate([property({type:Boolean})],IxField.prototype,"populated",void 0),__decorate([property({type:Boolean})],IxField.prototype,"required",void 0),__decorate([property({type:Boolean})],IxField.prototype,"resizable",void 0),__decorate([property({attribute:"supporting-text"})],IxField.prototype,"supportingText",void 0),__decorate([property({attribute:"error-text"})],IxField.prototype,"errorText",void 0),__decorate([property({type:Number})],IxField.prototype,"count",void 0),__decorate([property({type:Number})],IxField.prototype,"max",void 0),__decorate([property({type:Boolean,attribute:"has-start"})],IxField.prototype,"hasStart",void 0),__decorate([property({type:Boolean,attribute:"has-end"})],IxField.prototype,"hasEnd",void 0),customElements.define("ix-field",IxField);
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,14 +3,15 @@
3
3
  "description": "Webcomponent ix-field following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "Digital Realty",
6
- "version": "1.3.1-alpha.1",
6
+ "version": "1.3.1",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
10
10
  "exports": {
11
11
  ".": "./dist/index.js",
12
12
  "./ix-field.js": "./dist/ix-field.js",
13
- "./ix-field.min.js": "./dist/ix-field.min.js"
13
+ "./ix-field.min.js": "./dist/ix-field.min.js",
14
+ "./IxIcon": "./dist/react/IxIcon.js"
14
15
  },
15
16
  "publishConfig": {
16
17
  "access": "public"
@@ -20,45 +21,39 @@
20
21
  "start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
21
22
  "build": "tsc && npm run analyze -- --exclude dist && rollup -c",
22
23
  "prepublish": "tsc && npm run analyze -- --exclude dist",
23
- "lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
24
- "format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
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",
25
26
  "test": "tsc && wtr --coverage",
26
27
  "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\""
27
28
  },
28
29
  "dependencies": {
29
30
  "@lit/react": "^1.0.2",
30
- "@material/web": "1.2.0",
31
+ "@material/web": "2.4.0",
31
32
  "lit": "^3.2.1",
32
33
  "react": "^18.2.0"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@custom-elements-manifest/analyzer": "^0.4.17",
36
- "@open-wc/eslint-config": "^9.2.1",
37
37
  "@open-wc/testing": "^3.1.6",
38
- "@typescript-eslint/eslint-plugin": "^5.48.0",
39
- "@typescript-eslint/parser": "^5.48.0",
38
+ "@rollup/plugin-terser": "^1.0.0",
39
+ "@typescript-eslint/eslint-plugin": "^8.58.2",
40
+ "@typescript-eslint/parser": "^8.58.2",
40
41
  "@web/dev-server": "^0.4.6",
41
42
  "@web/test-runner": "^0.20.2",
42
- "concurrently": "^9.1.0",
43
- "eslint": "^8.31.0",
43
+ "concurrently": "^9.2.1",
44
+ "eslint": "^9.39.4",
44
45
  "eslint-config-prettier": "^8.3.0",
45
46
  "husky": "^4.3.8",
46
47
  "lint-staged": "^10.5.4",
47
48
  "prettier": "^2.4.1",
48
49
  "rollup": "^4.29.1",
49
- "rollup-plugin-minify-html-literals": "^1.2.6",
50
50
  "rollup-plugin-summary": "^2.0.0",
51
- "rollup-plugin-uglify": "^6.0.4",
52
51
  "tslib": "^2.3.1",
53
52
  "typescript": "^4.5.2"
54
53
  },
55
54
  "customElements": "custom-elements.json",
56
55
  "eslintConfig": {
57
56
  "parser": "@typescript-eslint/parser",
58
- "extends": [
59
- "@open-wc",
60
- "prettier"
61
- ],
62
57
  "plugins": [
63
58
  "@typescript-eslint"
64
59
  ],
@@ -98,5 +93,6 @@
98
93
  "package.json",
99
94
  "README.md",
100
95
  "LICENSE"
101
- ]
96
+ ],
97
+ "gitHead": "da06737d6707fd3d4ef898ba0fa632e7b3ed8019"
102
98
  }