precision-dashwidgets 0.2.0 → 0.2.2

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.
@@ -151,12 +151,12 @@ function* Bo(s, t) {
151
151
  const e = function* (r) {
152
152
  yield r;
153
153
  }, n = typeof t == "string" || ArrayBuffer.isView(t) || t instanceof ArrayBuffer || t instanceof bn ? e(t) : Ve(t) ? t : e(t);
154
- return yield* en(function* (r) {
154
+ return yield* en((function* (r) {
155
155
  let i = null;
156
156
  do
157
157
  i = r.next(yield x(s, i));
158
158
  while (!i.done);
159
- }(n[Symbol.iterator]())), new s();
159
+ })(n[Symbol.iterator]())), new s();
160
160
  }
161
161
  const No = (s) => Bo(Uint8Array, s);
162
162
  function Ir(s, t) {
@@ -169,24 +169,24 @@ function Ir(s, t) {
169
169
  });
170
170
  }, n = function(i) {
171
171
  return Tt(this, arguments, function* () {
172
- yield E(yield* He(Qt(en(function* (o) {
172
+ yield E(yield* He(Qt(en((function* (o) {
173
173
  let a = null;
174
174
  do
175
175
  a = o.next(yield a == null ? void 0 : a.value);
176
176
  while (!a.done);
177
- }(i[Symbol.iterator]())))));
177
+ })(i[Symbol.iterator]())))));
178
178
  });
179
179
  }, r = typeof t == "string" || ArrayBuffer.isView(t) || t instanceof ArrayBuffer || t instanceof bn ? e(t) : Ve(t) ? n(t) : we(t) ? t : e(t);
180
180
  return yield E(
181
181
  // otherwise if AsyncIterable, use it
182
- yield* He(Qt(en(function(i) {
182
+ yield* He(Qt(en((function(i) {
183
183
  return Tt(this, arguments, function* () {
184
184
  let o = null;
185
185
  do
186
186
  o = yield E(i.next(yield yield E(x(s, o))));
187
187
  while (!o.done);
188
188
  });
189
- }(r[Symbol.asyncIterator]()))))
189
+ })(r[Symbol.asyncIterator]()))))
190
190
  ), yield E(new s());
191
191
  });
192
192
  }
@@ -2712,6 +2712,8 @@ function Ft(s) {
2712
2712
  return s.bitWidth / 32;
2713
2713
  case c.Interval:
2714
2714
  return 1 + t.unit;
2715
+ // case Type.Int: return 1 + +((t as Int_).bitWidth > 32);
2716
+ // case Type.Time: return 1 + +((t as Time_).bitWidth > 32);
2715
2717
  case c.FixedSizeList:
2716
2718
  return t.listSize;
2717
2719
  case c.FixedSizeBinary:
@@ -4076,10 +4078,13 @@ function S(s, t, e) {
4076
4078
  return -1;
4077
4079
  if (t === null)
4078
4080
  switch (s.typeId) {
4081
+ // Unions don't have a nullBitmap of its own, so compare the `searchElement` to `get()`.
4079
4082
  case c.Union:
4080
4083
  break;
4084
+ // Dictionaries do have a nullBitmap, but their dictionary could also have null elements.
4081
4085
  case c.Dictionary:
4082
4086
  break;
4087
+ // All other types can iterate the null bitmap
4083
4088
  default:
4084
4089
  return Ha(s, e);
4085
4090
  }
@@ -6432,7 +6437,7 @@ class $t {
6432
6437
  }
6433
6438
  }
6434
6439
  function vc(s, t) {
6435
- return () => {
6440
+ return (() => {
6436
6441
  switch (t) {
6437
6442
  case N.Schema:
6438
6443
  return L.fromJSON(s);
@@ -6442,10 +6447,10 @@ function vc(s, t) {
6442
6447
  return Rt.fromJSON(s);
6443
6448
  }
6444
6449
  throw new Error(`Unrecognized Message type: { name: ${N[t]}, type: ${t} }`);
6445
- };
6450
+ });
6446
6451
  }
6447
6452
  function Ic(s, t) {
6448
- return () => {
6453
+ return (() => {
6449
6454
  switch (t) {
6450
6455
  case N.Schema:
6451
6456
  return L.decode(s.header(new _t()), /* @__PURE__ */ new Map(), s.version());
@@ -6455,7 +6460,7 @@ function Ic(s, t) {
6455
6460
  return Rt.decode(s.header(new se()), s.version());
6456
6461
  }
6457
6462
  throw new Error(`Unrecognized Message type: { name: ${N[t]}, type: ${t} }`);
6458
- };
6463
+ });
6459
6464
  }
6460
6465
  V.encode = Fc;
6461
6466
  V.decode = Bc;
@@ -7322,16 +7327,16 @@ function Wc(s) {
7322
7327
  }
7323
7328
  function Gc(s) {
7324
7329
  const t = s.peek(We + 7 & -8);
7325
- return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(s.read())) : new Fs(new Us(s)) : new Fs(new Us(function* () {
7326
- }()));
7330
+ return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(s.read())) : new Fs(new Us(s)) : new Fs(new Us((function* () {
7331
+ })()));
7327
7332
  }
7328
7333
  function $c(s) {
7329
7334
  return T(this, void 0, void 0, function* () {
7330
7335
  const t = yield s.peek(We + 7 & -8);
7331
- return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(yield s.read())) : new Ls(new Ms(s)) : new Ls(new Ms(function() {
7336
+ return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(yield s.read())) : new Ls(new Ms(s)) : new Ls(new Ms((function() {
7332
7337
  return Tt(this, arguments, function* () {
7333
7338
  });
7334
- }()));
7339
+ })()));
7335
7340
  });
7336
7341
  }
7337
7342
  function Kc(s) {