mol_dump_lib 0.0.871 → 0.0.873

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.mjs CHANGED
@@ -3361,7 +3361,7 @@ var $;
3361
3361
  }
3362
3362
  return names;
3363
3363
  }
3364
- theme(next = null) {
3364
+ theme(next) {
3365
3365
  return next;
3366
3366
  }
3367
3367
  attr_static() {
@@ -3372,7 +3372,7 @@ var $;
3372
3372
  }
3373
3373
  attr() {
3374
3374
  return {
3375
- mol_theme: this.theme() ?? undefined,
3375
+ mol_theme: this.theme(),
3376
3376
  };
3377
3377
  }
3378
3378
  style() {
@@ -3507,9 +3507,6 @@ var $;
3507
3507
  __decorate([
3508
3508
  $mol_memo.method
3509
3509
  ], $mol_view.prototype, "view_names", null);
3510
- __decorate([
3511
- $mol_mem
3512
- ], $mol_view.prototype, "theme", null);
3513
3510
  __decorate([
3514
3511
  $mol_mem
3515
3512
  ], $mol_view.prototype, "event_async", null);
@@ -5562,6 +5559,22 @@ var $;
5562
5559
  return pos - from;
5563
5560
  }
5564
5561
  $.$mol_charset_encode_to = $mol_charset_encode_to;
5562
+ function $mol_charset_encode_size(str) {
5563
+ let size = 0;
5564
+ for (let i = 0; i < str.length; i++) {
5565
+ let code = str.charCodeAt(i);
5566
+ if (code < 0x80)
5567
+ size += 1;
5568
+ else if (code < 0x800)
5569
+ size += 2;
5570
+ else if (code < 0xd800 || code >= 0xe000)
5571
+ size += 3;
5572
+ else
5573
+ size += 4;
5574
+ }
5575
+ return size;
5576
+ }
5577
+ $.$mol_charset_encode_size = $mol_charset_encode_size;
5565
5578
  })($ || ($ = {}));
5566
5579
 
5567
5580
  ;