@oicl/openbridge-webcomponents 2.0.0-next.113 → 2.0.0-next.115

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.
@@ -76862,8 +76862,11 @@ let ObcTextInputField = class extends i$4 {
76862
76862
  ${text}
76863
76863
  </div>`;
76864
76864
  }
76865
- fireChangeEvent() {
76866
- this.dispatchEvent(new CustomEvent("change"));
76865
+ fireChangeEvent(e2) {
76866
+ const target = e2.target;
76867
+ this.dispatchEvent(
76868
+ new CustomEvent("change", { detail: { value: target.value } })
76869
+ );
76867
76870
  }
76868
76871
  get shouldUpdateValue() {
76869
76872
  if (this.rejectUpdates) return false;
@@ -79604,6 +79607,7 @@ let ObcToggleSwitch = class extends i$4 {
79604
79607
  return;
79605
79608
  }
79606
79609
  const nextChecked = !this.checked;
79610
+ this._userSelectedChecked = nextChecked;
79607
79611
  if (!this.externalControl) {
79608
79612
  this.checked = nextChecked;
79609
79613
  }
@@ -79622,7 +79626,11 @@ let ObcToggleSwitch = class extends i$4 {
79622
79626
  e2.preventDefault();
79623
79627
  return;
79624
79628
  }
79625
- this.dispatchEvent(new CustomEvent("change"));
79629
+ this.dispatchEvent(
79630
+ new CustomEvent("change", {
79631
+ detail: { checked: this._userSelectedChecked ?? this.checked }
79632
+ })
79633
+ );
79626
79634
  }
79627
79635
  render() {
79628
79636
  return b`