@operato/input 2.0.0-beta.5 → 2.0.0-beta.7

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/input",
3
3
  "description": "Webcomponents for input following open-wc recommendations",
4
4
  "author": "heartyoh@hatiolab.com",
5
- "version": "2.0.0-beta.5",
5
+ "version": "2.0.0-beta.7",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "license": "MIT",
@@ -247,5 +247,5 @@
247
247
  "prettier --write"
248
248
  ]
249
249
  },
250
- "gitHead": "e313b5e6d8ece67e94618ee7ea7c1ef2f1036d40"
250
+ "gitHead": "a921119c6546a7f20d03a8fe29d71bb5d00787db"
251
251
  }
@@ -268,6 +268,11 @@ export class OxInputUnitNumber extends OxFormField {
268
268
  .value=${userUnit}
269
269
  @select=${(e: CustomEvent) => {
270
270
  this.userUnit = e.detail
271
+ this.dispatchEvent(
272
+ new CustomEvent('user-unit-change', {
273
+ detail: this.userUnit
274
+ })
275
+ )
271
276
  }}
272
277
  >
273
278
  <div option value=${this.stdUnit}>${this.stdUnit}</div>
@@ -278,12 +283,6 @@ export class OxInputUnitNumber extends OxFormField {
278
283
  `
279
284
  }
280
285
 
281
- updated(changes: PropertyValues<this>) {
282
- // if (changes.has('stdUnit')) {
283
- // this.userUnit = this.userUnit || this.stdUnit
284
- // }
285
- }
286
-
287
286
  _onChangeValue(e: Event) {
288
287
  this.value = this._toStdUnit(this.input.value)
289
288