mol_dump_lib 0.0.944 → 0.0.945

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/web.js CHANGED
@@ -6700,6 +6700,34 @@ var $;
6700
6700
  ($mol_mem(($.$mol_check.prototype), "Title"));
6701
6701
 
6702
6702
 
6703
+ ;
6704
+ "use strict";
6705
+ var $;
6706
+ (function ($) {
6707
+ class $mol_dom_event extends $mol_object {
6708
+ native;
6709
+ constructor(native) {
6710
+ super();
6711
+ this.native = native;
6712
+ }
6713
+ prevented(next) {
6714
+ if (next)
6715
+ this.native.preventDefault();
6716
+ return this.native.defaultPrevented;
6717
+ }
6718
+ static wrap(event) {
6719
+ return new this.$.$mol_dom_event(event);
6720
+ }
6721
+ }
6722
+ __decorate([
6723
+ $mol_action
6724
+ ], $mol_dom_event.prototype, "prevented", null);
6725
+ __decorate([
6726
+ $mol_action
6727
+ ], $mol_dom_event, "wrap", null);
6728
+ $.$mol_dom_event = $mol_dom_event;
6729
+ })($ || ($ = {}));
6730
+
6703
6731
  ;
6704
6732
  "use strict";
6705
6733
  var $;
@@ -6718,11 +6746,11 @@ var $;
6718
6746
  (function ($$) {
6719
6747
  class $mol_check extends $.$mol_check {
6720
6748
  click(next) {
6721
- if (next?.defaultPrevented)
6749
+ const event = next ? $mol_dom_event.wrap(next) : null;
6750
+ if (event?.prevented())
6722
6751
  return;
6752
+ event?.prevented(true);
6723
6753
  this.checked(!this.checked());
6724
- if (next)
6725
- next.preventDefault();
6726
6754
  }
6727
6755
  sub() {
6728
6756
  return [