@milaboratories/milaboratories.ui-examples.model 1.2.3 → 1.2.4

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.
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.ui-examples.model@1.2.3 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.2.4 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
4
4
  > tsup && vite build && block-tools build-model
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -11,14 +11,14 @@
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
14
- CJS dist/index.cjs 6.98 KB
15
- CJS dist/index.cjs.map 15.82 KB
16
- CJS ⚡️ Build success in 392ms
17
14
  ESM dist/index.js 6.87 KB
18
15
  ESM dist/index.js.map 15.74 KB
19
- ESM ⚡️ Build success in 393ms
16
+ ESM ⚡️ Build success in 306ms
17
+ CJS dist/index.cjs 6.98 KB
18
+ CJS dist/index.cjs.map 15.82 KB
19
+ CJS ⚡️ Build success in 306ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 4505ms
21
+ DTS ⚡️ Build success in 4521ms
22
22
  DTS dist/index.d.cts 2.86 KB
23
23
  DTS dist/index.d.ts 2.86 KB
24
24
  vite v6.3.5 building for production...
@@ -26,6 +26,6 @@ transforming...
26
26
  ✓ 11 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 193.92 kB │ gzip: 37.84 kB │ map: 420.77 kB
30
- dist/bundle.js 207.31 kB │ gzip: 38.51 kB │ map: 422.39 kB
31
- ✓ built in 1.80s
29
+ dist/bundle.js 193.92 kB │ gzip: 37.83 kB │ map: 420.91 kB
30
+ dist/bundle.js 207.30 kB │ gzip: 38.50 kB │ map: 422.53 kB
31
+ ✓ built in 2.20s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - @platforma-sdk/model@1.39.8
8
+
3
9
  ## 1.2.3
4
10
 
5
11
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -3069,7 +3069,7 @@
3069
3069
  });
3070
3070
  }
3071
3071
  const params = { errorMap: ctx.common.contextualErrorMap };
3072
- const fn2 = ctx.data;
3072
+ const fn = ctx.data;
3073
3073
  if (this._def.returns instanceof ZodPromise) {
3074
3074
  const me2 = this;
3075
3075
  return OK(async function(...args) {
@@ -3078,7 +3078,7 @@
3078
3078
  error.addIssue(makeArgsIssue(args, e));
3079
3079
  throw error;
3080
3080
  });
3081
- const result = await Reflect.apply(fn2, this, parsedArgs);
3081
+ const result = await Reflect.apply(fn, this, parsedArgs);
3082
3082
  const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e) => {
3083
3083
  error.addIssue(makeReturnsIssue(result, e));
3084
3084
  throw error;
@@ -3092,7 +3092,7 @@
3092
3092
  if (!parsedArgs.success) {
3093
3093
  throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
3094
3094
  }
3095
- const result = Reflect.apply(fn2, this, parsedArgs.data);
3095
+ const result = Reflect.apply(fn, this, parsedArgs.data);
3096
3096
  const parsedReturns = me2._def.returns.safeParse(result, params);
3097
3097
  if (!parsedReturns.success) {
3098
3098
  throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
@@ -3956,9 +3956,9 @@
3956
3956
  }
3957
3957
  var canonicalizeExports = requireCanonicalize();
3958
3958
  const Re = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
- var D$1 = Object.defineProperty;
3960
- var L = (e, n2, t) => n2 in e ? D$1(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
3961
- var l$1 = (e, n2, t) => L(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
3959
+ var R = Object.defineProperty;
3960
+ var L = (e, n2, t) => n2 in e ? R(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
3961
+ var d = (e, n2, t) => L(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
3962
3962
  z$1.object({
3963
3963
  /** Included left border. */
3964
3964
  from: z$1.number(),
@@ -3968,7 +3968,7 @@
3968
3968
  function A(e) {
3969
3969
  throw new Error("Unexpected object: " + e);
3970
3970
  }
3971
- function Oe(e) {
3971
+ function Ce(e) {
3972
3972
  if (!e || typeof e != "object")
3973
3973
  return false;
3974
3974
  const n2 = e;
@@ -3985,7 +3985,7 @@
3985
3985
  return false;
3986
3986
  }
3987
3987
  }
3988
- function Ce(e, n2) {
3988
+ function Fe$1(e, n2) {
3989
3989
  if (e !== void 0)
3990
3990
  switch (e.type) {
3991
3991
  case "Json":
@@ -4061,7 +4061,7 @@
4061
4061
  }
4062
4062
  }
4063
4063
  }
4064
- function Fe$1(e) {
4064
+ function Ie$1(e) {
4065
4065
  switch (e.type) {
4066
4066
  case "Json": {
4067
4067
  const n2 = {};
@@ -4095,7 +4095,7 @@
4095
4095
  }
4096
4096
  }
4097
4097
  }
4098
- function Me$1(e) {
4098
+ function _e$1(e) {
4099
4099
  return {
4100
4100
  columnId: e.id,
4101
4101
  spec: e.spec
@@ -4108,7 +4108,7 @@
4108
4108
  function C(e) {
4109
4109
  return e.map(y);
4110
4110
  }
4111
- function _e$1(e) {
4111
+ function qe(e) {
4112
4112
  return Re(y(e));
4113
4113
  }
4114
4114
  function ee$1(e, n2) {
@@ -4121,7 +4121,7 @@
4121
4121
  function ne$1(e, n2) {
4122
4122
  return e.name === n2.name && ee$1(e.domain, n2.domain);
4123
4123
  }
4124
- function qe(e, n2) {
4124
+ function Te$1(e, n2) {
4125
4125
  return { ...e, src: g(e.src, n2) };
4126
4126
  }
4127
4127
  function g(e, n2) {
@@ -4159,35 +4159,35 @@
4159
4159
  function te(e) {
4160
4160
  return Re(e);
4161
4161
  }
4162
- function P(e) {
4162
+ function x$1(e) {
4163
4163
  return Re(y(e));
4164
4164
  }
4165
- function E(e, n2) {
4165
+ function k$1(e, n2) {
4166
4166
  return JSON.stringify([e, n2]);
4167
4167
  }
4168
- class He {
4168
+ class We {
4169
4169
  /**
4170
4170
  * Creates a new anchor context from a set of anchor column specifications
4171
4171
  * @param anchors Record of anchor column specifications indexed by anchor ID
4172
4172
  */
4173
4173
  constructor(n2) {
4174
- l$1(this, "domains", /* @__PURE__ */ new Map());
4175
- l$1(this, "axes", /* @__PURE__ */ new Map());
4176
- l$1(this, "domainPacks", []);
4177
- l$1(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4174
+ d(this, "domains", /* @__PURE__ */ new Map());
4175
+ d(this, "axes", /* @__PURE__ */ new Map());
4176
+ d(this, "domainPacks", []);
4177
+ d(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4178
4178
  this.anchors = n2;
4179
4179
  const t = Object.entries(n2);
4180
4180
  t.sort((r, o) => r[0].localeCompare(o[0]));
4181
4181
  for (const [r, o] of t) {
4182
4182
  for (let i = 0; i < o.axesSpec.length; i++) {
4183
- const a = o.axesSpec[i], s2 = P(a);
4183
+ const a = o.axesSpec[i], s2 = x$1(a);
4184
4184
  this.axes.set(s2, { anchor: r, idx: i });
4185
4185
  }
4186
4186
  if (o.domain !== void 0) {
4187
4187
  const i = Object.entries(o.domain);
4188
4188
  i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
4189
4189
  for (const [a, s2] of i) {
4190
- const u2 = E(a, s2);
4190
+ const u2 = k$1(a, s2);
4191
4191
  this.domains.set(u2, r);
4192
4192
  }
4193
4193
  }
@@ -4222,11 +4222,11 @@
4222
4222
  for (const [a, s2] of Object.entries(n2.domain ?? {})) {
4223
4223
  if (o !== void 0 && o.has(a))
4224
4224
  continue;
4225
- const u2 = E(a, s2), c2 = this.domains.get(u2);
4225
+ const u2 = k$1(a, s2), c2 = this.domains.get(u2);
4226
4226
  r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
4227
4227
  }
4228
4228
  if (r.axes = n2.axesSpec.map((a) => {
4229
- const s2 = P(a), u2 = this.axes.get(s2);
4229
+ const s2 = x$1(a), u2 = this.axes.get(s2);
4230
4230
  return u2 === void 0 ? y(a) : u2;
4231
4231
  }), !t || t.length === 0)
4232
4232
  return r;
@@ -4259,7 +4259,7 @@
4259
4259
  return te(this.derive(n2, t));
4260
4260
  }
4261
4261
  }
4262
- function We(e, n2, t) {
4262
+ function Ge(e, n2, t) {
4263
4263
  const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
4264
4264
  if (r.domainAnchor !== void 0) {
4265
4265
  const i = e[r.domainAnchor];
@@ -4318,23 +4318,23 @@
4318
4318
  function oe$1(e) {
4319
4319
  return typeof e == "object" && "anchor" in e;
4320
4320
  }
4321
- function d(e) {
4321
+ function l$1(e) {
4322
4322
  return e.kind === "PColumn";
4323
4323
  }
4324
4324
  function ie$1(e) {
4325
- return d(e.spec);
4325
+ return l$1(e.spec);
4326
4326
  }
4327
- function Ye$1(e) {
4327
+ function Ze(e) {
4328
4328
  if (!ie$1(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
4329
4329
  return e;
4330
4330
  }
4331
- function Ze(e, n2) {
4331
+ function en(e, n2) {
4332
4332
  return e === void 0 ? void 0 : {
4333
4333
  ...e,
4334
4334
  data: n2(e.data)
4335
4335
  };
4336
4336
  }
4337
- function en(e) {
4337
+ function nn(e) {
4338
4338
  const n2 = /* @__PURE__ */ new Map(), t = (r) => {
4339
4339
  switch (r.type) {
4340
4340
  case "column":
@@ -4423,15 +4423,15 @@
4423
4423
  }
4424
4424
  return true;
4425
4425
  }
4426
- function nn(e) {
4427
- return Array.isArray(e) ? (n2) => e.some((t) => d(n2) && v$1(n2, t)) : (n2) => d(n2) && v$1(n2, e);
4428
- }
4429
4426
  function tn(e) {
4427
+ return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && v$1(n2, t)) : (n2) => l$1(n2) && v$1(n2, e);
4428
+ }
4429
+ function rn(e) {
4430
4430
  const n2 = {
4431
4431
  kind: e.kind,
4432
4432
  name: e.name
4433
4433
  };
4434
- return e.domain !== void 0 && (n2.domain = e.domain), d(e) && (n2.axesSpec = C(e.axesSpec)), Re(n2);
4434
+ return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)), Re(n2);
4435
4435
  }
4436
4436
  z$1.object({
4437
4437
  __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
@@ -4441,10 +4441,10 @@
4441
4441
  }).describe(
4442
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."
4443
4443
  ).readonly();
4444
- function sn(e) {
4444
+ function an(e) {
4445
4445
  return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === true && "blockId" in e && "name" in e;
4446
4446
  }
4447
- function un(e, n2 = true) {
4447
+ function cn(e, n2 = true) {
4448
4448
  if (n2)
4449
4449
  return {
4450
4450
  ...e,
@@ -4455,12 +4455,12 @@
4455
4455
  return r;
4456
4456
  }
4457
4457
  }
4458
- function fn(e, n2) {
4458
+ function dn(e, n2) {
4459
4459
  return e.ok ? { ok: true, value: n2(e.value) } : e;
4460
4460
  }
4461
4461
  const de$1 = 24;
4462
4462
  z$1.string().length(de$1).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4463
- function pn(e) {
4463
+ function yn(e) {
4464
4464
  return Re(e);
4465
4465
  }
4466
4466
  var stringify = { exports: {} };
@@ -4702,7 +4702,7 @@
4702
4702
  const i = {};
4703
4703
  for (const [s2, o] of Object.entries(r)) {
4704
4704
  const a = [...this.resolvePath, s2];
4705
- i[s2] = Ze(o, (l2) => new D(l2, a));
4705
+ i[s2] = en(o, (l2) => new D(l2, a));
4706
4706
  }
4707
4707
  return i;
4708
4708
  }
@@ -4814,13 +4814,13 @@
4814
4814
  const b = e(p2);
4815
4815
  let d2, y2, S2;
4816
4816
  "spec" in b && typeof b.spec == "object" ? (d2 = b.spec, y2 = b.prefixTrace, S2 = b.suffixTrace) : d2 = b;
4817
- const E2 = (c2 = d2.annotations) == null ? void 0 : c2[vt], _2 = (m2 = d2.annotations) == null ? void 0 : m2[St], w = (_2 ? wt.safeParse(JSON.parse(_2)).data : void 0) ?? [], A2 = [
4817
+ const E = (c2 = d2.annotations) == null ? void 0 : c2[vt], _2 = (m2 = d2.annotations) == null ? void 0 : m2[St], w = (_2 ? wt.safeParse(JSON.parse(_2)).data : void 0) ?? [], A2 = [
4818
4818
  ...y2 ?? [],
4819
4819
  ...w,
4820
4820
  ...S2 ?? []
4821
4821
  ];
4822
- if (E2 !== void 0) {
4823
- const T = { label: E2, type: Pt, importance: -2 };
4822
+ if (E !== void 0) {
4823
+ const T = { label: E, type: Pt, importance: -2 };
4824
4824
  n2.addLabelAsSuffix ? A2.push(T) : A2.splice(0, 0, T);
4825
4825
  }
4826
4826
  const C2 = [], I = /* @__PURE__ */ new Map();
@@ -4839,7 +4839,7 @@
4839
4839
  return C2.reverse(), {
4840
4840
  value: p2,
4841
4841
  spec: d2,
4842
- label: E2,
4842
+ label: E,
4843
4843
  fullTrace: C2
4844
4844
  };
4845
4845
  }), a = [], l2 = [], u2 = [...r];
@@ -4849,15 +4849,15 @@
4849
4849
  const h = (p2, b = false) => {
4850
4850
  const d2 = [];
4851
4851
  for (let y2 = 0; y2 < o.length; y2++) {
4852
- const S2 = o[y2], E2 = S2.fullTrace.filter((A2) => p2.has(A2.fullType) || i && i.has(A2.type));
4853
- if (E2.length === 0)
4852
+ const S2 = o[y2], E = S2.fullTrace.filter((A2) => p2.has(A2.fullType) || i && i.has(A2.type));
4853
+ if (E.length === 0)
4854
4854
  if (b)
4855
4855
  d2.push({
4856
4856
  label: "Unlabeled",
4857
4857
  value: S2.value
4858
4858
  });
4859
4859
  else return;
4860
- const _2 = E2.map((A2) => A2.label), w = n2.separator ?? " / ";
4860
+ const _2 = E.map((A2) => A2.label), w = n2.separator ?? " / ";
4861
4861
  d2.push({
4862
4862
  label: _2.join(w),
4863
4863
  value: S2.value
@@ -5072,7 +5072,7 @@
5072
5072
  function Tt(t) {
5073
5073
  if (t !== void 0) {
5074
5074
  if (_(t)) return t;
5075
- if (Oe(t)) return Ve$1(t);
5075
+ if (Ce(t)) return Ve$1(t);
5076
5076
  if (t instanceof D) return me(t);
5077
5077
  throw new Error(`Unexpected input type: ${typeof t}`);
5078
5078
  }
@@ -5148,14 +5148,14 @@
5148
5148
  this.columns = e;
5149
5149
  }
5150
5150
  selectColumns(e) {
5151
- const n2 = typeof e == "function" ? e : nn(e);
5151
+ const n2 = typeof e == "function" ? e : tn(e);
5152
5152
  return this.columns.filter((r) => n2(r.spec));
5153
5153
  }
5154
5154
  }
5155
5155
  function kt(t) {
5156
5156
  if (t)
5157
5157
  return t.map((e) => ({
5158
- type: `split:${_e$1(e.axisId)}`,
5158
+ type: `split:${qe(e.axisId)}`,
5159
5159
  label: e.label,
5160
5160
  importance: 1e6
5161
5161
  // High importance for split filters in labels
@@ -5219,37 +5219,37 @@
5219
5219
  if (Ie(y2)) {
5220
5220
  if (!r)
5221
5221
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5222
- return nn(We(r.anchors, y2, n2));
5222
+ return tn(Ge(r.anchors, y2, n2));
5223
5223
  } else
5224
- return nn(y2);
5224
+ return tn(y2);
5225
5225
  });
5226
5226
  u2 = (y2) => d2.some((S2) => S2(y2));
5227
5227
  }
5228
5228
  const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], g2 = /* @__PURE__ */ new Set();
5229
- for (const d$1 of h) {
5230
- const y$1 = Ie(d$1);
5229
+ for (const d2 of h) {
5230
+ const y$1 = Ie(d2);
5231
5231
  let S2;
5232
5232
  if (y$1) {
5233
5233
  if (!r)
5234
5234
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5235
- S2 = We(r.anchors, d$1, n2);
5235
+ S2 = Ge(r.anchors, d2, n2);
5236
5236
  } else
5237
- S2 = d$1;
5238
- const E2 = /* @__PURE__ */ new Set(), _2 = [];
5237
+ S2 = d2;
5238
+ const E = /* @__PURE__ */ new Set(), _2 = [];
5239
5239
  for (const C2 of this.providers) {
5240
5240
  const I = C2.selectColumns(S2);
5241
5241
  for (const c2 of I) {
5242
5242
  if (u2(c2.spec)) continue;
5243
- if (E2.has(c2.id))
5243
+ if (E.has(c2.id))
5244
5244
  throw new Error(`Duplicate column id ${c2.id} in provider ${C2.constructor.name}`);
5245
- const m2 = tn(c2.spec);
5246
- g2.has(m2) || (E2.add(c2.id), g2.add(m2), _2.push(c2));
5245
+ const m2 = rn(c2.spec);
5246
+ g2.has(m2) || (E.add(c2.id), g2.add(m2), _2.push(c2));
5247
5247
  }
5248
5248
  }
5249
5249
  if (_2.length === 0) continue;
5250
- const w = Rt(d$1), A2 = w.length > 0;
5250
+ const w = Rt(d2), A2 = w.length > 0;
5251
5251
  for (const C2 of _2) {
5252
- if (!d(C2.spec)) continue;
5252
+ if (!l$1(C2.spec)) continue;
5253
5253
  const I = C2.spec;
5254
5254
  if (A2) {
5255
5255
  if (Ft(C2.data))
@@ -5286,17 +5286,17 @@
5286
5286
  const K = [...I.axesSpec], We2 = w.map((L2) => L2);
5287
5287
  for (let L2 = w.length - 1; L2 >= 0; L2--)
5288
5288
  K.splice(w[L2], 1);
5289
- const Ge = { ...I, axesSpec: K };
5289
+ const Ge2 = { ...I, axesSpec: K };
5290
5290
  for (const L2 of V) {
5291
5291
  const W = L2.map((j, M) => {
5292
- const Z = We2[M], He2 = y(I.axesSpec[Z]), le = U[M], qe2 = (le == null ? void 0 : le[j]) ?? String(j);
5293
- return { axisIdx: Z, axisId: He2, value: j, label: qe2 };
5292
+ const Z = We2[M], He = y(I.axesSpec[Z]), le = U[M], qe2 = (le == null ? void 0 : le[j]) ?? String(j);
5293
+ return { axisIdx: Z, axisId: He, value: j, label: qe2 };
5294
5294
  });
5295
5295
  f.push({
5296
5296
  type: "split",
5297
5297
  originalColumn: C2,
5298
5298
  spec: I,
5299
- adjustedSpec: Ge,
5299
+ adjustedSpec: Ge2,
5300
5300
  dataEntries: c2,
5301
5301
  axisFilters: W
5302
5302
  });
@@ -5320,9 +5320,9 @@
5320
5320
  l2
5321
5321
  ), b = [];
5322
5322
  for (const { value: d2, label: y2 } of p2) {
5323
- const { originalColumn: S2, spec: E2 } = d2, _2 = d2.type === "split" ? d2.axisFilters : void 0, w = Dt(_2);
5323
+ const { originalColumn: S2, spec: E } = d2, _2 = d2.type === "split" ? d2.axisFilters : void 0, w = Dt(_2);
5324
5324
  let A2;
5325
- r ? A2 = r.deriveS(E2, w) : A2 = Ot(S2.id, w);
5325
+ r ? A2 = r.deriveS(E, w) : A2 = Ot(S2.id, w);
5326
5326
  let C2 = { ...d2.adjustedSpec };
5327
5327
  o && (C2 = {
5328
5328
  ...C2,
@@ -5333,7 +5333,7 @@
5333
5333
  }), b.push({
5334
5334
  id: A2,
5335
5335
  spec: C2,
5336
- data: () => d2.type === "split" ? Fe$1(Lt(d2.dataEntries, w)) : d2.originalColumn.data,
5336
+ data: () => d2.type === "split" ? Ie$1(Lt(d2.dataEntries, w)) : d2.originalColumn.data,
5337
5337
  label: y2
5338
5338
  });
5339
5339
  }
@@ -5403,7 +5403,7 @@
5403
5403
  return true;
5404
5404
  }
5405
5405
  function Te(t) {
5406
- return Ze(t, (e) => e instanceof D ? e.handle : Oe(e) ? Ce(e, (n2) => n2.handle) : e);
5406
+ return en(t, (e) => e instanceof D ? e.handle : Ce(e) ? Fe$1(e, (n2) => n2.handle) : e);
5407
5407
  }
5408
5408
  class Kt {
5409
5409
  constructor() {
@@ -5416,28 +5416,28 @@
5416
5416
  return this.ctx.calculateOptions(e);
5417
5417
  }
5418
5418
  getOptions(e, n2) {
5419
- const r = typeof e == "function" ? e : nn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5419
+ const r = typeof e == "function" ? e : tn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5420
5420
  let s2 = {}, o = false;
5421
5421
  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" ? Me(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5422
- ref: un(a, o),
5422
+ ref: cn(a, o),
5423
5423
  label: l2
5424
5424
  })) : i.map(({ ref: a, obj: l2 }) => ({
5425
- ref: un(a, o),
5425
+ ref: cn(a, o),
5426
5426
  label: s2(l2, a)
5427
5427
  }));
5428
5428
  }
5429
5429
  resolveAnchorCtx(e) {
5430
- if (e instanceof He) return e;
5430
+ if (e instanceof We) return e;
5431
5431
  const n2 = {};
5432
5432
  for (const [r, i] of Object.entries(e))
5433
- if (sn(i)) {
5433
+ if (an(i)) {
5434
5434
  const s2 = this.getPColumnSpecByRef(i);
5435
5435
  if (!s2)
5436
5436
  return;
5437
5437
  n2[r] = s2;
5438
5438
  } else
5439
5439
  n2[r] = i;
5440
- return new He(n2);
5440
+ return new We(n2);
5441
5441
  }
5442
5442
  /**
5443
5443
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5530,7 +5530,7 @@
5530
5530
  ref: n2.ref,
5531
5531
  obj: {
5532
5532
  ...n2.obj,
5533
- data: fn(
5533
+ data: dn(
5534
5534
  n2.obj.data,
5535
5535
  (r) => new D(r, [n2.ref.blockId, n2.ref.name])
5536
5536
  )
@@ -5559,7 +5559,7 @@
5559
5559
  )) == null ? void 0 : r.obj;
5560
5560
  const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
5561
5561
  if (n2)
5562
- return Ze(
5562
+ return en(
5563
5563
  n2,
5564
5564
  (i) => new D(i, [e.blockId, e.name])
5565
5565
  );
@@ -5572,7 +5572,7 @@
5572
5572
  getPColumnByRef(e) {
5573
5573
  const n2 = this.getDataByRef(e);
5574
5574
  if (n2)
5575
- return Ye$1(n2);
5575
+ return Ze(n2);
5576
5576
  }
5577
5577
  /**
5578
5578
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -5582,7 +5582,7 @@
5582
5582
  getPColumnSpecByRef(e) {
5583
5583
  const n2 = this.getSpecByRef(e);
5584
5584
  if (n2) {
5585
- if (!d(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
5585
+ if (!l$1(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
5586
5586
  return n2;
5587
5587
  }
5588
5588
  }
@@ -5601,7 +5601,7 @@
5601
5601
  findDataWithCompatibleSpec(e) {
5602
5602
  const n2 = [];
5603
5603
  e: for (const r of this.getData().entries) {
5604
- if (!d(r.obj.spec))
5604
+ if (!l$1(r.obj.spec))
5605
5605
  continue;
5606
5606
  const i = r.obj.spec;
5607
5607
  if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ce(e.domain, i.domain)) {
@@ -5643,8 +5643,8 @@
5643
5643
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
5644
5644
  */
5645
5645
  selectColumns(e) {
5646
- const n2 = typeof e == "function" ? e : nn(e);
5647
- return this.getSpecs().entries.filter(({ obj: i }) => d(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
5646
+ const n2 = typeof e == "function" ? e : tn(e);
5647
+ return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
5648
5648
  const o = s2;
5649
5649
  let a = null;
5650
5650
  const l2 = this;
@@ -5736,7 +5736,7 @@
5736
5736
  }
5737
5737
  verifyInlineAndExplicitColumnsSupport(e) {
5738
5738
  var i;
5739
- const n2 = e.some((s2) => !(s2.data instanceof D) || Oe(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5739
+ const n2 = e.some((s2) => !(s2.data instanceof D) || Ce(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5740
5740
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5741
5741
  }
5742
5742
  patchPTableDef(e) {
@@ -5767,8 +5767,8 @@
5767
5767
  partitionFilters: e.filters ?? [],
5768
5768
  filters: [],
5769
5769
  sorting: e.sorting ?? []
5770
- }) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(en(n2.src)), this.ctx.createPTable(
5771
- qe(n2, (r) => Te(r))
5770
+ }) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(nn(n2.src)), this.ctx.createPTable(
5771
+ Te$1(n2, (r) => Te(r))
5772
5772
  );
5773
5773
  }
5774
5774
  /** @deprecated scheduled for removal from SDK */
@@ -5788,7 +5788,7 @@
5788
5788
  this.ctx.logError(e);
5789
5789
  }
5790
5790
  }
5791
- const z = "1.39.7";
5791
+ const z = "1.39.8";
5792
5792
  function Nt(t) {
5793
5793
  return t.__renderLambda === true;
5794
5794
  }
@@ -6146,24 +6146,24 @@
6146
6146
  if (e.length === 0) return;
6147
6147
  const i = e.filter((c2) => !$t(c2.spec)), s2 = jt(n2), o = Jt(t.resultPool);
6148
6148
  if (!o) return;
6149
- const a = Fe(i.map(Me$1), o), l2 = [...i, ...a], h = [
6149
+ const a = Fe(i.map(_e$1), o), l2 = [...i, ...a], h = [
6150
6150
  ...de(
6151
6151
  [...l2.flatMap((c2) => c2.spec.axesSpec.map((m2) => y(m2)))],
6152
- (c2) => pn(c2)
6152
+ (c2) => yn(c2)
6153
6153
  ).map((c2) => ({ type: "axis", id: c2 })),
6154
6154
  ...l2.map((c2) => ({ type: "column", id: c2.id }))
6155
- ], f = new Set(h.map((c2) => pn(c2))), g2 = (c2) => f.has(pn(c2)), p2 = "full", b = s2.pTableParams.partitionFilters.filter((c2) => {
6155
+ ], f = new Set(h.map((c2) => yn(c2))), g2 = (c2) => f.has(yn(c2)), p2 = "full", b = s2.pTableParams.partitionFilters.filter((c2) => {
6156
6156
  const m2 = g2(c2.column);
6157
6157
  return m2 || t.logWarn(`Partition filter ${JSON.stringify(c2)} does not match provided columns, skipping`), m2;
6158
6158
  }), d2 = de(
6159
6159
  [...[], ...s2.pTableParams.filters],
6160
- (c2) => pn(c2.column)
6160
+ (c2) => yn(c2.column)
6161
6161
  ).filter((c2) => {
6162
6162
  const m2 = g2(c2.column);
6163
6163
  return m2 || t.logWarn(`Filter ${JSON.stringify(c2)} does not match provided columns, skipping`), m2;
6164
6164
  }), y$1 = de(
6165
6165
  [...[], ...s2.pTableParams.sorting],
6166
- (c2) => pn(c2.column)
6166
+ (c2) => yn(c2.column)
6167
6167
  ).filter((c2) => {
6168
6168
  const m2 = g2(c2.column);
6169
6169
  return m2 || t.logWarn(`Sorting ${JSON.stringify(c2)} does not match provided columns, skipping`), m2;
@@ -6175,7 +6175,7 @@
6175
6175
  filters: d2,
6176
6176
  sorting: y$1,
6177
6177
  coreColumnPredicate: void 0
6178
- }), E2 = t.createPTable(S2), _2 = new Set((() => {
6178
+ }), E = t.createPTable(S2), _2 = new Set((() => {
6179
6179
  const c2 = s2.pTableParams.hiddenColIds;
6180
6180
  return c2 || i.filter((m2) => Bt(m2.spec)).map((m2) => m2.id);
6181
6181
  })());
@@ -6183,7 +6183,7 @@
6183
6183
  var m2;
6184
6184
  return ((m2 = c2.spec.annotations) == null ? void 0 : m2["pl7.app/isLinkerColumn"]) === "true";
6185
6185
  }).forEach((c2) => _2.delete(c2.id)), [...b.map((c2) => c2.column), ...d2.map((c2) => c2.column), ...y$1.map((c2) => c2.column)].filter((c2) => c2.type === "column").forEach((c2) => _2.delete(c2.id));
6186
- const w = i.filter((c2) => !_2.has(c2.id)), A2 = Fe(w.map(Me$1), o);
6186
+ const w = i.filter((c2) => !_2.has(c2.id)), A2 = Fe(w.map(_e$1), o);
6187
6187
  if (!Mt([...w, ...A2])) return;
6188
6188
  const C2 = Ee({
6189
6189
  columns: w,
@@ -6196,7 +6196,7 @@
6196
6196
  }), I = t.createPTable(C2);
6197
6197
  return {
6198
6198
  sourceId: s2.pTableParams.sourceId,
6199
- fullTableHandle: E2,
6199
+ fullTableHandle: E,
6200
6200
  visibleTableHandle: I
6201
6201
  };
6202
6202
  }