mol_view_tree2_lib 1.0.277 → 1.0.279

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
@@ -4252,28 +4252,31 @@ var $;
4252
4252
  "use strict";
4253
4253
  var $;
4254
4254
  (function ($) {
4255
- /** State of time moment */
4256
- class $mol_state_time extends $mol_object {
4257
- static task(precision, reset) {
4258
- if (precision) {
4259
- return new $mol_after_timeout(precision, () => this.task(precision, null));
4260
- }
4261
- else {
4262
- return new $mol_after_frame(() => this.task(precision, null));
4263
- }
4264
- }
4265
- static now(precision) {
4266
- this.task(precision);
4267
- return Date.now();
4268
- }
4255
+ /** Convert a pseudo-synchronous (Suspense API) API to an explicit asynchronous one (for integrating with external systems). */
4256
+ function $mol_wire_async(obj) {
4257
+ let fiber;
4258
+ const temp = $mol_wire_task.getter(obj);
4259
+ return new Proxy(obj, {
4260
+ get(obj, field) {
4261
+ const val = obj[field];
4262
+ if (typeof val !== 'function')
4263
+ return val;
4264
+ let fiber;
4265
+ const temp = $mol_wire_task.getter(val);
4266
+ return function $mol_wire_async(...args) {
4267
+ fiber?.destructor();
4268
+ fiber = temp(obj, args);
4269
+ return fiber.async();
4270
+ };
4271
+ },
4272
+ apply(obj, self, args) {
4273
+ fiber?.destructor();
4274
+ fiber = temp(self, args);
4275
+ return fiber.async();
4276
+ },
4277
+ });
4269
4278
  }
4270
- __decorate([
4271
- $mol_mem_key
4272
- ], $mol_state_time, "task", null);
4273
- __decorate([
4274
- $mol_mem_key
4275
- ], $mol_state_time, "now", null);
4276
- $.$mol_state_time = $mol_state_time;
4279
+ $.$mol_wire_async = $mol_wire_async;
4277
4280
  })($ || ($ = {}));
4278
4281
 
4279
4282
  ;
@@ -4307,18 +4310,9 @@ var $;
4307
4310
  }
4308
4311
  return next ?? $mol_wire_sync(native).persisted();
4309
4312
  }
4310
- static estimate() {
4311
- $mol_state_time.now(1000);
4312
- try {
4313
- return $mol_wire_sync(this.native() ?? {}).estimate();
4314
- }
4315
- catch (error) {
4316
- $mol_fail_log(error);
4317
- return {
4318
- usage: 0,
4319
- quota: 0,
4320
- };
4321
- }
4313
+ static estimate(next) {
4314
+ new this.$.$mol_after_timeout(1000, $mol_wire_async(() => this.estimate(null)));
4315
+ return $mol_wire_sync(this.native() ?? {}).estimate();
4322
4316
  }
4323
4317
  static total() {
4324
4318
  return this.estimate().quota ?? 0;
@@ -4450,37 +4444,6 @@ var $;
4450
4444
  $.$mol_action = $mol_wire_method;
4451
4445
  })($ || ($ = {}));
4452
4446
 
4453
- ;
4454
- "use strict";
4455
- var $;
4456
- (function ($) {
4457
- /** Convert a pseudo-synchronous (Suspense API) API to an explicit asynchronous one (for integrating with external systems). */
4458
- function $mol_wire_async(obj) {
4459
- let fiber;
4460
- const temp = $mol_wire_task.getter(obj);
4461
- return new Proxy(obj, {
4462
- get(obj, field) {
4463
- const val = obj[field];
4464
- if (typeof val !== 'function')
4465
- return val;
4466
- let fiber;
4467
- const temp = $mol_wire_task.getter(val);
4468
- return function $mol_wire_async(...args) {
4469
- fiber?.destructor();
4470
- fiber = temp(obj, args);
4471
- return fiber.async();
4472
- };
4473
- },
4474
- apply(obj, self, args) {
4475
- fiber?.destructor();
4476
- fiber = temp(self, args);
4477
- return fiber.async();
4478
- },
4479
- });
4480
- }
4481
- $.$mol_wire_async = $mol_wire_async;
4482
- })($ || ($ = {}));
4483
-
4484
4447
  ;
4485
4448
  "use strict";
4486
4449
  var $;
package/web.test.js CHANGED
@@ -7078,7 +7078,7 @@ var $;
7078
7078
  boxSizing: 'border-box',
7079
7079
  willChange: 'scroll-position',
7080
7080
  scroll: {
7081
- padding: [rem(.75), 0],
7081
+ padding: ['2.5rem', 0],
7082
7082
  },
7083
7083
  maxHeight: per(100),
7084
7084
  maxWidth: per(100),