@milaboratories/milaboratories.ui-examples.model 1.1.64 → 1.1.66

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/dist/bundle.js CHANGED
@@ -2,40 +2,6 @@
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.model = {}));
3
3
  })(this, function(exports2) {
4
4
  "use strict";
5
- function getDefaultExportFromCjs(x2) {
6
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
7
- }
8
- var canonicalize = function serialize(object) {
9
- if (typeof object === "number" && isNaN(object)) {
10
- throw new Error("NaN is not allowed");
11
- }
12
- if (typeof object === "number" && !isFinite(object)) {
13
- throw new Error("Infinity is not allowed");
14
- }
15
- if (object === null || typeof object !== "object") {
16
- return JSON.stringify(object);
17
- }
18
- if (object.toJSON instanceof Function) {
19
- return serialize(object.toJSON());
20
- }
21
- if (Array.isArray(object)) {
22
- const values2 = object.reduce((t, cv, ci) => {
23
- const comma = ci === 0 ? "" : ",";
24
- const value = cv === void 0 || typeof cv === "symbol" ? null : cv;
25
- return `${t}${comma}${serialize(value)}`;
26
- }, "");
27
- return `[${values2}]`;
28
- }
29
- const values = Object.keys(object).sort().reduce((t, cv) => {
30
- if (object[cv] === void 0 || typeof object[cv] === "symbol") {
31
- return t;
32
- }
33
- const comma = t.length === 0 ? "" : ",";
34
- return `${t}${comma}${serialize(cv)}:${serialize(object[cv])}`;
35
- }, "");
36
- return `{${values}}`;
37
- };
38
- const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
39
5
  var util;
40
6
  (function(util2) {
41
7
  util2.assertEqual = (val) => val;
@@ -493,11 +459,11 @@
493
459
  const isValid = (x2) => x2.status === "valid";
494
460
  const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
495
461
  function __classPrivateFieldGet(receiver, state, kind, f2) {
496
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
462
+ if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
497
463
  return state.get(receiver);
498
464
  }
499
465
  function __classPrivateFieldSet(receiver, state, value, kind, f2) {
500
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
466
+ if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
501
467
  return state.set(receiver, value), value;
502
468
  }
503
469
  typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
@@ -3948,13 +3914,61 @@
3948
3914
  quotelessJson,
3949
3915
  ZodError
3950
3916
  });
3917
+ function getDefaultExportFromCjs(x2) {
3918
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
3919
+ }
3920
+ var canonicalize;
3921
+ var hasRequiredCanonicalize;
3922
+ function requireCanonicalize() {
3923
+ if (hasRequiredCanonicalize) return canonicalize;
3924
+ hasRequiredCanonicalize = 1;
3925
+ canonicalize = function serialize(object) {
3926
+ if (typeof object === "number" && isNaN(object)) {
3927
+ throw new Error("NaN is not allowed");
3928
+ }
3929
+ if (typeof object === "number" && !isFinite(object)) {
3930
+ throw new Error("Infinity is not allowed");
3931
+ }
3932
+ if (object === null || typeof object !== "object") {
3933
+ return JSON.stringify(object);
3934
+ }
3935
+ if (object.toJSON instanceof Function) {
3936
+ return serialize(object.toJSON());
3937
+ }
3938
+ if (Array.isArray(object)) {
3939
+ const values2 = object.reduce((t, cv, ci) => {
3940
+ const comma = ci === 0 ? "" : ",";
3941
+ const value = cv === void 0 || typeof cv === "symbol" ? null : cv;
3942
+ return `${t}${comma}${serialize(value)}`;
3943
+ }, "");
3944
+ return `[${values2}]`;
3945
+ }
3946
+ const values = Object.keys(object).sort().reduce((t, cv) => {
3947
+ if (object[cv] === void 0 || typeof object[cv] === "symbol") {
3948
+ return t;
3949
+ }
3950
+ const comma = t.length === 0 ? "" : ",";
3951
+ return `${t}${comma}${serialize(cv)}:${serialize(object[cv])}`;
3952
+ }, "");
3953
+ return `{${values}}`;
3954
+ };
3955
+ return canonicalize;
3956
+ }
3957
+ var canonicalizeExports = requireCanonicalize();
3958
+ const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3951
3959
  var I$1 = Object.defineProperty;
3952
3960
  var D = (n2, e, t) => e in n2 ? I$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3953
3961
  var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
3962
+ z$2.object({
3963
+ /** Included left border. */
3964
+ from: z$2.number(),
3965
+ /** Excluded right border. */
3966
+ to: z$2.number()
3967
+ });
3954
3968
  function w(n2) {
3955
3969
  throw new Error("Unexpected object: " + n2);
3956
3970
  }
3957
- function yn(n2) {
3971
+ function hn(n2) {
3958
3972
  if (!n2 || typeof n2 != "object")
3959
3973
  return false;
3960
3974
  const e = n2;
@@ -3971,7 +3985,7 @@
3971
3985
  return false;
3972
3986
  }
3973
3987
  }
3974
- function hn(n2, e) {
3988
+ function gn(n2, e) {
3975
3989
  if (n2 !== void 0)
3976
3990
  switch (n2.type) {
3977
3991
  case "Json":
@@ -3999,7 +4013,7 @@
3999
4013
  }
4000
4014
  }
4001
4015
  }
4002
- function F(n2) {
4016
+ function F$1(n2) {
4003
4017
  if (!n2 || typeof n2 != "object")
4004
4018
  return false;
4005
4019
  const e = n2;
@@ -4016,10 +4030,10 @@
4016
4030
  return false;
4017
4031
  }
4018
4032
  }
4019
- function gn(n2) {
4020
- return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4021
- }
4022
4033
  function bn(n2) {
4034
+ return F$1(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4035
+ }
4036
+ function wn(n2) {
4023
4037
  switch (n2.type) {
4024
4038
  case "Json": {
4025
4039
  const e = Object.entries(n2.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
@@ -4047,7 +4061,7 @@
4047
4061
  }
4048
4062
  }
4049
4063
  }
4050
- function wn(n2) {
4064
+ function Pn(n2) {
4051
4065
  switch (n2.type) {
4052
4066
  case "Json": {
4053
4067
  const e = {};
@@ -4081,7 +4095,7 @@
4081
4095
  }
4082
4096
  }
4083
4097
  }
4084
- function On(n2) {
4098
+ function $n(n2) {
4085
4099
  return {
4086
4100
  columnId: n2.id,
4087
4101
  spec: n2.spec
@@ -4094,7 +4108,7 @@
4094
4108
  function C(n2) {
4095
4109
  return n2.map(p$1);
4096
4110
  }
4097
- function $n(n2) {
4111
+ function In(n2) {
4098
4112
  return ke(p$1(n2));
4099
4113
  }
4100
4114
  function z$1(n2, e) {
@@ -4107,7 +4121,7 @@
4107
4121
  function X(n2, e) {
4108
4122
  return n2.name === e.name && z$1(n2.domain, e.domain);
4109
4123
  }
4110
- function In(n2, e) {
4124
+ function Dn(n2, e) {
4111
4125
  return { ...n2, src: h$1(n2.src, e) };
4112
4126
  }
4113
4127
  function h$1(n2, e) {
@@ -4151,7 +4165,7 @@
4151
4165
  function A(n2, e) {
4152
4166
  return JSON.stringify([n2, e]);
4153
4167
  }
4154
- class Ln {
4168
+ class Vn {
4155
4169
  /**
4156
4170
  * Creates a new anchor context from a set of anchor column specifications
4157
4171
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -4193,9 +4207,9 @@
4193
4207
  for (const a of this.domainPacks) {
4194
4208
  const i = [];
4195
4209
  for (const c2 of a) {
4196
- const d = e.domain[c2];
4197
- if (d !== void 0)
4198
- i.push([c2, d]);
4210
+ const m2 = e.domain[c2];
4211
+ if (m2 !== void 0)
4212
+ i.push([c2, m2]);
4199
4213
  else
4200
4214
  break n;
4201
4215
  }
@@ -4224,7 +4238,7 @@
4224
4238
  throw new Error(`Axis index ${i} is out of bounds (0-${e.axesSpec.length - 1})`);
4225
4239
  s2.push([i, u2]);
4226
4240
  } else {
4227
- const c2 = e.axesSpec.findIndex((d) => d.name === i);
4241
+ const c2 = e.axesSpec.findIndex((m2) => m2.name === i);
4228
4242
  if (c2 === -1)
4229
4243
  throw new Error(`Axis with name "${i}" not found in the column specification`);
4230
4244
  s2.push([c2, u2]);
@@ -4245,7 +4259,7 @@
4245
4259
  return G(this.derive(e, t));
4246
4260
  }
4247
4261
  }
4248
- function Vn(n2, e, t) {
4262
+ function Bn(n2, e, t) {
4249
4263
  const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
4250
4264
  if (r.domainAnchor !== void 0) {
4251
4265
  const s2 = n2[r.domainAnchor];
@@ -4320,7 +4334,7 @@
4320
4334
  data: e(n2.data)
4321
4335
  };
4322
4336
  }
4323
- function Rn(n2) {
4337
+ function vn(n2) {
4324
4338
  const e = /* @__PURE__ */ new Map(), t = (r) => {
4325
4339
  switch (r.type) {
4326
4340
  case "column":
@@ -4409,10 +4423,10 @@
4409
4423
  }
4410
4424
  return true;
4411
4425
  }
4412
- function vn(n2) {
4426
+ function _n(n2) {
4413
4427
  return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
4414
4428
  }
4415
- function _n(n2) {
4429
+ function Mn(n2) {
4416
4430
  const e = {
4417
4431
  kind: n2.kind,
4418
4432
  name: n2.name
@@ -4427,10 +4441,10 @@
4427
4441
  }).describe(
4428
4442
  "Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
4429
4443
  ).readonly();
4430
- function Hn(n2) {
4444
+ function qn(n2) {
4431
4445
  return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
4432
4446
  }
4433
- function Wn(n2, e = true) {
4447
+ function zn(n2, e = true) {
4434
4448
  if (e)
4435
4449
  return {
4436
4450
  ...n2,
@@ -4441,38 +4455,45 @@
4441
4455
  return r;
4442
4456
  }
4443
4457
  }
4444
- function Xn(n2, e) {
4458
+ function Gn(n2, e) {
4445
4459
  return n2.ok ? { ok: true, value: e(n2.value) } : n2;
4446
4460
  }
4447
4461
  const sn = 24;
4448
4462
  z$2.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4449
- function ne(n2) {
4463
+ function ee(n2) {
4450
4464
  return JSON.parse(n2);
4451
4465
  }
4452
4466
  var stringify = { exports: {} };
4453
- (function(module2, exports3) {
4454
- exports3 = module2.exports = stringify2;
4455
- exports3.getSerialize = serializer;
4456
- function stringify2(obj, replacer, spaces, cycleReplacer) {
4457
- return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);
4458
- }
4459
- function serializer(replacer, cycleReplacer) {
4460
- var stack = [], keys = [];
4461
- if (cycleReplacer == null) cycleReplacer = function(key, value) {
4462
- if (stack[0] === value) return "[Circular ~]";
4463
- return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
4464
- };
4465
- return function(key, value) {
4466
- if (stack.length > 0) {
4467
- var thisPos = stack.indexOf(this);
4468
- ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
4469
- ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
4470
- if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value);
4471
- } else stack.push(value);
4472
- return replacer == null ? value : replacer.call(this, key, value);
4473
- };
4474
- }
4475
- })(stringify, stringify.exports);
4467
+ var hasRequiredStringify;
4468
+ function requireStringify() {
4469
+ if (hasRequiredStringify) return stringify.exports;
4470
+ hasRequiredStringify = 1;
4471
+ (function(module2, exports3) {
4472
+ exports3 = module2.exports = stringify2;
4473
+ exports3.getSerialize = serializer;
4474
+ function stringify2(obj, replacer, spaces, cycleReplacer) {
4475
+ return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);
4476
+ }
4477
+ function serializer(replacer, cycleReplacer) {
4478
+ var stack = [], keys = [];
4479
+ if (cycleReplacer == null) cycleReplacer = function(key, value) {
4480
+ if (stack[0] === value) return "[Circular ~]";
4481
+ return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
4482
+ };
4483
+ return function(key, value) {
4484
+ if (stack.length > 0) {
4485
+ var thisPos = stack.indexOf(this);
4486
+ ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
4487
+ ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
4488
+ if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value);
4489
+ } else stack.push(value);
4490
+ return replacer == null ? value : replacer.call(this, key, value);
4491
+ };
4492
+ }
4493
+ })(stringify, stringify.exports);
4494
+ return stringify.exports;
4495
+ }
4496
+ requireStringify();
4476
4497
  const l = z$2.object({
4477
4498
  type: z$2.literal("PlError"),
4478
4499
  name: z$2.string(),
@@ -4503,14 +4524,14 @@
4503
4524
  });
4504
4525
  var Xe = Object.defineProperty;
4505
4526
  var Qe = (t, e, n2) => e in t ? Xe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4506
- var R = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
4527
+ var F = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
4507
4528
  function re(t) {
4508
4529
  return { type: "Immediate", value: t };
4509
4530
  }
4510
4531
  function ht() {
4511
4532
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4512
4533
  }
4513
- function De(t) {
4534
+ function Re(t) {
4514
4535
  if (t && typeof globalThis.getPlatforma == "function")
4515
4536
  return globalThis.getPlatforma(t);
4516
4537
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
@@ -4538,8 +4559,8 @@
4538
4559
  }
4539
4560
  class I {
4540
4561
  constructor(e, n2 = (r) => r) {
4541
- R(this, "isResolved", false);
4542
- R(this, "resolvedValue");
4562
+ F(this, "isResolved", false);
4563
+ F(this, "resolvedValue");
4543
4564
  this.handle = e, this.postProcess = n2, mt(e, (r) => {
4544
4565
  this.resolvedValue = n2(r), this.isResolved = true;
4545
4566
  });
@@ -4780,7 +4801,7 @@
4780
4801
  return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
4781
4802
  }
4782
4803
  }
4783
- const Fe = "staging", Ke = "main";
4804
+ const De = "staging", Ke = "main";
4784
4805
  const bt = "pl7.app/label", wt = "pl7.app/trace", At = z$2.object({
4785
4806
  type: z$2.string(),
4786
4807
  importance: z$2.number().optional(),
@@ -4789,11 +4810,11 @@
4789
4810
  }), xt = z$2.array(At), Ct = 1e-3, Pt = "__LABEL__", Se = "__LABEL__@1";
4790
4811
  function Ve(t, e, n2 = {}) {
4791
4812
  const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
4792
- var S, D2;
4813
+ var S, R;
4793
4814
  const w2 = e(f2);
4794
4815
  let c2, g, x2;
4795
4816
  "spec" in w2 && typeof w2.spec == "object" ? (c2 = w2.spec, g = w2.prefixTrace, x2 = w2.suffixTrace) : c2 = w2;
4796
- const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (D2 = c2.annotations) == null ? void 0 : D2[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
4817
+ const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (R = c2.annotations) == null ? void 0 : R[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
4797
4818
  ...g ?? [],
4798
4819
  ...m2,
4799
4820
  ...x2 ?? []
@@ -4935,7 +4956,7 @@
4935
4956
  }
4936
4957
  function It(t) {
4937
4958
  if (t === void 0) return;
4938
- if (F(t))
4959
+ if (F$1(t))
4939
4960
  return _t(t);
4940
4961
  const e = St(t);
4941
4962
  if (!e) return;
@@ -5050,8 +5071,8 @@
5050
5071
  }
5051
5072
  function Tt(t) {
5052
5073
  if (t !== void 0) {
5053
- if (F(t)) return t;
5054
- if (yn(t)) return bn(t);
5074
+ if (F$1(t)) return t;
5075
+ if (hn(t)) return wn(t);
5055
5076
  if (t instanceof O) return ye(t);
5056
5077
  throw new Error(`Unexpected input type: ${typeof t}`);
5057
5078
  }
@@ -5121,14 +5142,14 @@
5121
5142
  this.columns = e;
5122
5143
  }
5123
5144
  selectColumns(e) {
5124
- const n2 = typeof e == "function" ? e : vn(e);
5145
+ const n2 = typeof e == "function" ? e : _n(e);
5125
5146
  return this.columns.filter((r) => n2(r.spec));
5126
5147
  }
5127
5148
  }
5128
5149
  function Ot(t) {
5129
5150
  if (t)
5130
5151
  return t.map((e) => ({
5131
- type: `split:${$n(e.axisId)}`,
5152
+ type: `split:${In(e.axisId)}`,
5132
5153
  label: e.label,
5133
5154
  importance: 1e6
5134
5155
  // High importance for split filters in labels
@@ -5138,7 +5159,7 @@
5138
5159
  if (t)
5139
5160
  return t.map((e) => [e.axisIdx, e.value]);
5140
5161
  }
5141
- function Rt(t, e) {
5162
+ function Ft(t, e) {
5142
5163
  if (!e || e.length === 0) return t;
5143
5164
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5144
5165
  return ke({ id: t, axisFilters: n2 });
@@ -5148,7 +5169,7 @@
5148
5169
  const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
5149
5170
  return !!e.domainAnchor || n2 || r;
5150
5171
  }
5151
- function Dt(t) {
5172
+ function Rt(t) {
5152
5173
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5153
5174
  return [];
5154
5175
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5158,9 +5179,9 @@
5158
5179
  }
5159
5180
  class ve {
5160
5181
  constructor() {
5161
- R(this, "defaultProviderStore", []);
5162
- R(this, "providers", [new Et(this.defaultProviderStore)]);
5163
- R(this, "axisLabelProviders", []);
5182
+ F(this, "defaultProviderStore", []);
5183
+ F(this, "providers", [new Et(this.defaultProviderStore)]);
5184
+ F(this, "axisLabelProviders", []);
5164
5185
  }
5165
5186
  addColumnProvider(e) {
5166
5187
  return this.providers.push(e), this;
@@ -5192,9 +5213,9 @@
5192
5213
  if (_e(g)) {
5193
5214
  if (!r)
5194
5215
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5195
- return vn(Vn(r.anchors, g, n2));
5216
+ return _n(Bn(r.anchors, g, n2));
5196
5217
  } else
5197
- return vn(g);
5218
+ return _n(g);
5198
5219
  });
5199
5220
  u2 = (g) => c2.some((x2) => x2(g));
5200
5221
  }
@@ -5205,7 +5226,7 @@
5205
5226
  if (g) {
5206
5227
  if (!r)
5207
5228
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5208
- x2 = Vn(r.anchors, c2, n2);
5229
+ x2 = Bn(r.anchors, c2, n2);
5209
5230
  } else
5210
5231
  x2 = c2;
5211
5232
  const p2 = /* @__PURE__ */ new Set(), A2 = [];
@@ -5215,12 +5236,12 @@
5215
5236
  if (u2(S.spec)) continue;
5216
5237
  if (p2.has(S.id))
5217
5238
  throw new Error(`Duplicate column id ${S.id} in provider ${C2.constructor.name}`);
5218
- const D2 = _n(S.spec);
5219
- b.has(D2) || (p2.add(S.id), b.add(D2), A2.push(S));
5239
+ const R = Mn(S.spec);
5240
+ b.has(R) || (p2.add(S.id), b.add(R), A2.push(S));
5220
5241
  }
5221
5242
  }
5222
5243
  if (A2.length === 0) continue;
5223
- const m2 = Dt(c2), v = m2.length > 0;
5244
+ const m2 = Rt(c2), v = m2.length > 0;
5224
5245
  for (const C2 of A2) {
5225
5246
  if (!f(C2.spec)) continue;
5226
5247
  const L = C2.spec;
@@ -5230,9 +5251,9 @@
5230
5251
  if (s2) continue;
5231
5252
  return;
5232
5253
  }
5233
- if (!gn(S))
5254
+ if (!bn(S))
5234
5255
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${C2.id}`);
5235
- const D2 = It(S), k2 = m2[m2.length - 1];
5256
+ const R = It(S), k2 = m2[m2.length - 1];
5236
5257
  if (k2 >= S.partitionKeyLength)
5237
5258
  throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5238
5259
  const W = m2.map((_) => this.findLabels(p$1(L.axesSpec[_]))), V = [], N2 = (_, G2) => {
@@ -5242,15 +5263,15 @@
5242
5263
  return;
5243
5264
  }
5244
5265
  const $ = m2[G2];
5245
- if ($ >= D2.length)
5246
- throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${D2.length}) during split key generation for column ${C2.id}`);
5247
- const J = D2[$];
5266
+ if ($ >= R.length)
5267
+ throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${C2.id}`);
5268
+ const J = R[$];
5248
5269
  if (!J || J.length === 0) {
5249
5270
  V.length = 0;
5250
5271
  return;
5251
5272
  }
5252
- for (const ee of J)
5253
- _.push(ee), N2(_, G2 + 1), _.pop();
5273
+ for (const ee2 of J)
5274
+ _.push(ee2), N2(_, G2 + 1), _.pop();
5254
5275
  };
5255
5276
  if (N2([], 0), V.length === 0)
5256
5277
  continue;
@@ -5260,8 +5281,8 @@
5260
5281
  const qe = { ...L, axesSpec: j };
5261
5282
  for (const _ of V) {
5262
5283
  const G2 = _.map(($, J) => {
5263
- const ee = He[J], ze = p$1(L.axesSpec[ee]), le = W[J], Ye = (le == null ? void 0 : le[$]) ?? String($);
5264
- return { axisIdx: ee, axisId: ze, value: $, label: Ye };
5284
+ const ee2 = He[J], ze = p$1(L.axesSpec[ee2]), le = W[J], Ye = (le == null ? void 0 : le[$]) ?? String($);
5285
+ return { axisIdx: ee2, axisId: ze, value: $, label: Ye };
5265
5286
  });
5266
5287
  y.push({
5267
5288
  type: "split",
@@ -5293,7 +5314,7 @@
5293
5314
  for (const { value: c2, label: g } of f$1) {
5294
5315
  const { originalColumn: x2, spec: p2 } = c2, A2 = c2.type === "split" ? c2.axisFilters : void 0, m2 = kt(A2);
5295
5316
  let v;
5296
- r ? v = r.deriveS(p2, m2) : v = Rt(x2.id, m2);
5317
+ r ? v = r.deriveS(p2, m2) : v = Ft(x2.id, m2);
5297
5318
  let C2 = { ...c2.adjustedSpec };
5298
5319
  o && (C2 = {
5299
5320
  ...C2,
@@ -5304,7 +5325,7 @@
5304
5325
  }), w2.push({
5305
5326
  id: v,
5306
5327
  spec: C2,
5307
- data: () => c2.type === "split" ? wn(Lt(c2.dataEntries, m2)) : c2.originalColumn.data,
5328
+ data: () => c2.type === "split" ? Pn(Lt(c2.dataEntries, m2)) : c2.originalColumn.data,
5308
5329
  label: g
5309
5330
  });
5310
5331
  }
@@ -5341,11 +5362,11 @@
5341
5362
  return true;
5342
5363
  }
5343
5364
  function Ie(t) {
5344
- return Kn$1(t, (e) => e instanceof O ? e.handle : yn(e) ? hn(e, (n2) => n2.handle) : e);
5365
+ return Kn$1(t, (e) => e instanceof O ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
5345
5366
  }
5346
- class Ft {
5367
+ class Dt {
5347
5368
  constructor() {
5348
- R(this, "ctx", h());
5369
+ F(this, "ctx", h());
5349
5370
  }
5350
5371
  /**
5351
5372
  * @deprecated use getOptions()
@@ -5354,28 +5375,28 @@
5354
5375
  return this.ctx.calculateOptions(e);
5355
5376
  }
5356
5377
  getOptions(e, n2) {
5357
- const r = typeof e == "function" ? e : vn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5378
+ const r = typeof e == "function" ? e : _n(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5358
5379
  let s2 = {}, o = false;
5359
5380
  return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? Ve(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5360
- ref: Wn(a, o),
5381
+ ref: zn(a, o),
5361
5382
  label: l2
5362
5383
  })) : i.map(({ ref: a, obj: l2 }) => ({
5363
- ref: Wn(a, o),
5384
+ ref: zn(a, o),
5364
5385
  label: s2(l2, a)
5365
5386
  }));
5366
5387
  }
5367
5388
  resolveAnchorCtx(e) {
5368
- if (e instanceof Ln) return e;
5389
+ if (e instanceof Vn) return e;
5369
5390
  const n2 = {};
5370
5391
  for (const [r, i] of Object.entries(e))
5371
- if (Hn(i)) {
5392
+ if (qn(i)) {
5372
5393
  const s2 = this.getPColumnSpecByRef(i);
5373
5394
  if (!s2)
5374
5395
  return;
5375
5396
  n2[r] = s2;
5376
5397
  } else
5377
5398
  n2[r] = i;
5378
- return new Ln(n2);
5399
+ return new Vn(n2);
5379
5400
  }
5380
5401
  /**
5381
5402
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5468,7 +5489,7 @@
5468
5489
  ref: n2.ref,
5469
5490
  obj: {
5470
5491
  ...n2.obj,
5471
- data: Xn(
5492
+ data: Gn(
5472
5493
  n2.obj.data,
5473
5494
  (r) => new O(r, [n2.ref.blockId, n2.ref.name])
5474
5495
  )
@@ -5581,7 +5602,7 @@
5581
5602
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
5582
5603
  */
5583
5604
  selectColumns(e) {
5584
- const n2 = typeof e == "function" ? e : vn(e);
5605
+ const n2 = typeof e == "function" ? e : _n(e);
5585
5606
  return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
5586
5607
  const o = s2;
5587
5608
  let a = null;
@@ -5614,11 +5635,11 @@
5614
5635
  }
5615
5636
  class te {
5616
5637
  constructor() {
5617
- R(this, "ctx");
5618
- R(this, "args");
5619
- R(this, "uiState");
5620
- R(this, "_activeArgsCache");
5621
- R(this, "resultPool", new Ft());
5638
+ F(this, "ctx");
5639
+ F(this, "args");
5640
+ F(this, "uiState");
5641
+ F(this, "_activeArgsCache");
5642
+ F(this, "resultPool", new Dt());
5622
5643
  this.ctx = h(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5623
5644
  }
5624
5645
  /**
@@ -5641,7 +5662,7 @@
5641
5662
  );
5642
5663
  }
5643
5664
  get prerun() {
5644
- return this.getNamedAccessor(Fe);
5665
+ return this.getNamedAccessor(De);
5645
5666
  }
5646
5667
  get outputs() {
5647
5668
  return this.getNamedAccessor(Ke);
@@ -5656,7 +5677,7 @@
5656
5677
  }
5657
5678
  verifyInlineAndExplicitColumnsSupport(e) {
5658
5679
  var i;
5659
- const n2 = e.some((s2) => !(s2.data instanceof O) || yn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5680
+ const n2 = e.some((s2) => !(s2.data instanceof O) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5660
5681
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5661
5682
  }
5662
5683
  // TODO remove all non-PColumn fields
@@ -5674,8 +5695,8 @@
5674
5695
  },
5675
5696
  filters: e.filters ?? [],
5676
5697
  sorting: e.sorting ?? []
5677
- } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Rn(n2.src)), this.ctx.createPTable(
5678
- In(n2, (r) => Ie(r))
5698
+ } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
5699
+ Dn(n2, (r) => Ie(r))
5679
5700
  );
5680
5701
  }
5681
5702
  /** @deprecated scheduled for removal from SDK */
@@ -5695,7 +5716,7 @@
5695
5716
  this.ctx.logError(e);
5696
5717
  }
5697
5718
  }
5698
- const Y = "1.32.1";
5719
+ const Y = "1.33.8";
5699
5720
  function Kt(t) {
5700
5721
  return t.__renderLambda === true;
5701
5722
  }
@@ -5901,13 +5922,13 @@
5901
5922
  Object.entries(this._outputs).map(([n2, r]) => [n2, de(r)])
5902
5923
  )
5903
5924
  };
5904
- return ht() ? De({ sdkVersion: Y }) : { config: e };
5925
+ return ht() ? Re({ sdkVersion: Y }) : { config: e };
5905
5926
  }
5906
5927
  }
5907
- function Gt(t) {
5928
+ function Wt(t) {
5908
5929
  return t.axesSpec.length === 1 && t.name === "pl7.app/label";
5909
5930
  }
5910
- function Ue(t) {
5931
+ function Me(t) {
5911
5932
  return new ve().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
5912
5933
  name: "pl7.app/label",
5913
5934
  axes: [{}]
@@ -5917,7 +5938,7 @@
5917
5938
  function Be(t, e) {
5918
5939
  const n2 = [], r = [];
5919
5940
  for (const a of t)
5920
- Gt(a.spec) ? n2.push(a) : r.push(a);
5941
+ Wt(a.spec) ? n2.push(a) : r.push(a);
5921
5942
  const i = [];
5922
5943
  for (const a of r)
5923
5944
  for (const l2 of a.spec.axesSpec) {
@@ -5995,36 +6016,36 @@
5995
6016
  function Kn(t, e, n2, r) {
5996
6017
  var u2, d;
5997
6018
  Array.isArray(r) && (r = { filters: r });
5998
- const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Ue(t.resultPool);
6019
+ const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Me(t.resultPool);
5999
6020
  if (!a) return;
6000
- const l2 = Be(e.map(On), a);
6021
+ const l2 = Be(e.map($n), a);
6001
6022
  if (We([...e, ...l2]))
6002
6023
  return t.createPTable(
6003
6024
  Ge(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
6004
6025
  );
6005
6026
  }
6006
- function Ht(t) {
6027
+ function Gt(t) {
6007
6028
  var e;
6008
6029
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
6009
6030
  }
6010
- function qt(t) {
6031
+ function Ht(t) {
6011
6032
  var e;
6012
6033
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
6013
6034
  }
6014
6035
  function jn(t, e, n2, r, i) {
6015
6036
  var g, x2;
6016
- const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.filter((p2) => !Ht(p2.spec)), u2 = l2.find((p2) => n2(p2.spec));
6037
+ const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.filter((p2) => !Gt(p2.spec)), u2 = l2.find((p2) => n2(p2.spec));
6017
6038
  if (!u2) return;
6018
- const d = Ue(t.resultPool);
6039
+ const d = Me(t.resultPool);
6019
6040
  if (!d) return;
6020
6041
  const y = new Set((() => {
6021
6042
  var A2, m2;
6022
6043
  if (s2 === "inner") return [];
6023
- const p2 = (m2 = (A2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : A2.hiddenColIds) == null ? void 0 : m2.map(ne).filter((v) => v.type === "column").map((v) => v.id);
6024
- return p2 || l2.filter((v) => qt(v.spec)).map((v) => v.id);
6044
+ const p2 = (m2 = (A2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : A2.hiddenColIds) == null ? void 0 : m2.map(ee).filter((v) => v.type === "column").map((v) => v.id);
6045
+ return p2 || l2.filter((v) => Ht(v.spec)).map((v) => v.id);
6025
6046
  })());
6026
6047
  y.delete(u2.id), [...o.map((p2) => p2.column), ...a.map((p2) => p2.column)].filter((p2) => p2.type === "column").map((p2) => y.delete(p2.id));
6027
- const b = l2.filter((p2) => !y.has(p2.id)), f2 = Be(b.map(On), d), w2 = [
6048
+ const b = l2.filter((p2) => !y.has(p2.id)), f2 = Be(b.map($n), d), w2 = [
6028
6049
  ...u2.spec.axesSpec.map((p2) => ({
6029
6050
  type: "axis",
6030
6051
  id: p$1(p2),
@@ -6179,7 +6200,7 @@
6179
6200
  data
6180
6201
  }
6181
6202
  ],
6182
- vn({
6203
+ _n({
6183
6204
  name: "example"
6184
6205
  }),
6185
6206
  ctx.uiState.dataTableState.tableState,
@@ -6220,6 +6241,8 @@
6220
6241
  { type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
6221
6242
  { type: "link", href: "/pl-ag-data-table-v2", label: "PlAgDataTableV2" },
6222
6243
  { type: "link", href: "/pl-splash-page", label: "PlSplashPage" },
6244
+ { type: "link", href: "/pl-file-input-page", label: "PlFileInputPage" },
6245
+ { type: "link", href: "/pl-error-boundary-page", label: "PlErrorBoundaryPage" },
6223
6246
  { type: "link", href: "/errors", label: "Errors" },
6224
6247
  { type: "link", href: "/text-fields", label: "PlTextField" },
6225
6248
  { type: "link", href: "/tabs", label: "PlTabs" },