smoothly 0.1.120 → 0.1.121

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.
@@ -45921,8 +45921,11 @@ const SmoothlyInput = class {
45921
45921
  this.lastValue = value;
45922
45922
  this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(value), selection: this.state.selection }).value });
45923
45923
  }
45924
- if (value != before)
45924
+ if (value != before) {
45925
+ if (typeof value == "string")
45926
+ value = value.trim();
45925
45927
  this.smoothlyChanged.emit({ name: this.name, value });
45928
+ }
45926
45929
  }
45927
45930
  onCurrency() {
45928
45931
  this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).value, pattern: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).pattern });
@@ -33,8 +33,11 @@ export class SmoothlyInput {
33
33
  this.lastValue = value;
34
34
  this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(value), selection: this.state.selection }).value });
35
35
  }
36
- if (value != before)
36
+ if (value != before) {
37
+ if (typeof value == "string")
38
+ value = value.trim();
37
39
  this.smoothlyChanged.emit({ name: this.name, value });
40
+ }
38
41
  }
39
42
  onCurrency() {
40
43
  this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).value, pattern: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).pattern });
@@ -47494,8 +47494,11 @@ const SmoothlyInput$1 = class extends HTMLElement {
47494
47494
  this.lastValue = value;
47495
47495
  this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(value), selection: this.state.selection }).value });
47496
47496
  }
47497
- if (value != before)
47497
+ if (value != before) {
47498
+ if (typeof value == "string")
47499
+ value = value.trim();
47498
47500
  this.smoothlyChanged.emit({ name: this.name, value });
47501
+ }
47499
47502
  }
47500
47503
  onCurrency() {
47501
47504
  this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).value, pattern: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).pattern });
@@ -45917,8 +45917,11 @@ const SmoothlyInput = class {
45917
45917
  this.lastValue = value;
45918
45918
  this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(value), selection: this.state.selection }).value });
45919
45919
  }
45920
- if (value != before)
45920
+ if (value != before) {
45921
+ if (typeof value == "string")
45922
+ value = value.trim();
45921
45923
  this.smoothlyChanged.emit({ name: this.name, value });
45924
+ }
45922
45925
  }
45923
45926
  onCurrency() {
45924
45927
  this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).value, pattern: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).pattern });