@operato/input 2.0.0-beta.4 → 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.4",
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",
@@ -201,8 +201,8 @@
201
201
  "@material/web": "^1.4.0",
202
202
  "@operato/color-picker": "^2.0.0-beta.0",
203
203
  "@operato/i18n": "^2.0.0-beta.3",
204
- "@operato/popup": "^2.0.0-beta.4",
205
- "@operato/styles": "^2.0.0-beta.4",
204
+ "@operato/popup": "^2.0.0-beta.5",
205
+ "@operato/styles": "^2.0.0-beta.5",
206
206
  "@operato/utils": "^2.0.0-beta.0",
207
207
  "@polymer/paper-dropdown-menu": "^3.2.0",
208
208
  "@polymer/paper-item": "^3.0.1",
@@ -247,5 +247,5 @@
247
247
  "prettier --write"
248
248
  ]
249
249
  },
250
- "gitHead": "4967dbbb6153cc97f1c5d361501712fe7da4ce26"
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
 
@@ -1,5 +1,5 @@
1
1
  body {
2
- --grid-container-border-color: 1px solid var(--md-sys-color-outline-variant);
2
+ --grid-container-border-color: 1px solid rgba(0, 0, 0, 0.09);
3
3
  --grid-container-border-width: 1px 0;
4
4
  --grid-wrap-container-border: 0px solid transparent;
5
5
  --grid-wrap-container-border-width: 0;
@@ -167,3 +167,7 @@ body {
167
167
  --data-card-create-form-padding: 7px;
168
168
  }
169
169
  }
170
+
171
+ body.dark {
172
+ --grid-container-border-color: 1px solid rgba(255, 255, 255, 0.09);
173
+ }