@milaboratories/uikit 2.3.24 → 2.3.26

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.
@@ -14,11 +14,11 @@ const P = "upload://upload/", k = "index://index/";
14
14
  function I(e) {
15
15
  return e.startsWith(P);
16
16
  }
17
- function S(e) {
17
+ function J(e) {
18
18
  return e.startsWith(k);
19
19
  }
20
- function j(e) {
21
- if (S(e)) {
20
+ function S(e) {
21
+ if (J(e)) {
22
22
  const t = e.slice(k.length);
23
23
  return JSON.parse(decodeURIComponent(t)).path;
24
24
  } else if (I(e)) {
@@ -27,11 +27,11 @@ function j(e) {
27
27
  }
28
28
  g(e);
29
29
  }
30
- function J(e) {
30
+ function j(e) {
31
31
  return e.replace(/^.*[\\/]/, "");
32
32
  }
33
33
  function M(e) {
34
- return J(j(e));
34
+ return j(S(e));
35
35
  }
36
36
  function U(e) {
37
37
  if (!e || typeof e != "object")
@@ -167,7 +167,7 @@ function d(e) {
167
167
  function C(e) {
168
168
  return e.map(d);
169
169
  }
170
- function z(e) {
170
+ function W(e) {
171
171
  return y(d(e));
172
172
  }
173
173
  function L(e, t) {
@@ -180,7 +180,7 @@ function L(e, t) {
180
180
  function $(e, t) {
181
181
  return e.name === t.name && L(e.domain, t.domain);
182
182
  }
183
- function W(e, t) {
183
+ function z(e, t) {
184
184
  return { ...e, src: p(e.src, t) };
185
185
  }
186
186
  function p(e, t) {
@@ -224,7 +224,7 @@ function x(e) {
224
224
  function b(e, t) {
225
225
  return JSON.stringify([e, t]);
226
226
  }
227
- class G {
227
+ class Q {
228
228
  /**
229
229
  * Creates a new anchor context from a set of anchor column specifications
230
230
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -314,7 +314,7 @@ class G {
314
314
  return N(this.derive(t, n));
315
315
  }
316
316
  }
317
- function X(e, t, n) {
317
+ function Y(e, t, n) {
318
318
  const r = { ...t }, o = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
319
319
  if (r.domainAnchor !== void 0) {
320
320
  const i = e[r.domainAnchor];
@@ -344,7 +344,7 @@ function X(e, t, n) {
344
344
  return r.axes && (r.axes = r.axes.map((i) => K(e, i))), r;
345
345
  }
346
346
  function K(e, t) {
347
- if (!F(t))
347
+ if (!D(t))
348
348
  return t;
349
349
  const n = t.anchor, r = e[n];
350
350
  if (!r)
@@ -370,20 +370,20 @@ function K(e, t) {
370
370
  }
371
371
  throw new Error("Unsupported axis reference type");
372
372
  }
373
- function F(e) {
373
+ function D(e) {
374
374
  return typeof e == "object" && "anchor" in e;
375
375
  }
376
376
  function h(e) {
377
377
  return e.kind === "PColumn";
378
378
  }
379
- function T(e) {
379
+ function B(e) {
380
380
  return h(e.spec);
381
381
  }
382
- function Q(e) {
383
- if (!T(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
382
+ function G(e) {
383
+ if (!B(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
384
384
  return e;
385
385
  }
386
- function Y(e, t) {
386
+ function X(e, t) {
387
387
  return e === void 0 ? void 0 : {
388
388
  ...e,
389
389
  data: t(e.data)
@@ -513,38 +513,38 @@ function re(e, t = !0) {
513
513
  function oe(e, t) {
514
514
  return e.ok ? { ok: !0, value: t(e.value) } : e;
515
515
  }
516
- const B = 24;
517
- u.string().length(B).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
516
+ const F = 24;
517
+ u.string().length(F).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
518
518
  export {
519
- G as AnchoredIdDeriver,
520
- B as PlIdLength,
521
- z as canonicalizeAxisId,
519
+ Q as AnchoredIdDeriver,
520
+ F as PlIdLength,
521
+ W as canonicalizeAxisId,
522
522
  q as dataInfoToEntries,
523
523
  te as deriveNativeId,
524
- Q as ensurePColumn,
524
+ G as ensurePColumn,
525
525
  V as entriesToDataInfo,
526
526
  Z as extractAllColumns,
527
527
  C as getAxesId,
528
528
  d as getAxisId,
529
529
  M as getFileNameFromHandle,
530
- j as getFilePathFromHandle,
530
+ S as getFilePathFromHandle,
531
531
  U as isDataInfo,
532
532
  E as isDataInfoEntries,
533
- S as isImportFileHandleIndex,
533
+ J as isImportFileHandleIndex,
534
534
  I as isImportFileHandleUpload,
535
- T as isPColumn,
535
+ B as isPColumn,
536
536
  h as isPColumnSpec,
537
537
  H as isPartitionedDataInfoEntries,
538
538
  ne as isPlRef,
539
539
  _ as mapDataInfo,
540
540
  p as mapJoinEntry,
541
- Y as mapPObjectData,
542
- W as mapPTableDef,
541
+ X as mapPObjectData,
542
+ z as mapPTableDef,
543
543
  oe as mapValueInVOE,
544
544
  v as matchAxis,
545
545
  $ as matchAxisId,
546
546
  w as matchPColumn,
547
- X as resolveAnchors,
547
+ Y as resolveAnchors,
548
548
  ee as selectorsToPredicate,
549
549
  N as stringifyColumnId,
550
550
  re as withEnrichments
@@ -1,10 +1,10 @@
1
1
  import { isDataInfo as ae, extractAllColumns as Ee, mapPTableDef as Te, selectorsToPredicate as W, withEnrichments as ce, AnchoredIdDeriver as he, isPlRef as Fe, mapValueInVOE as ke, mapPObjectData as le, ensurePColumn as Oe, isPColumnSpec as z, isPColumn as be, resolveAnchors as pe, deriveNativeId as De, isPartitionedDataInfoEntries as Re, getAxisId as de, entriesToDataInfo as $e, isDataInfoEntries as _e, dataInfoToEntries as Ke, canonicalizeAxisId as je, mapDataInfo as Ne } from "../../../lib/model/common/dist/index.js";
2
- import { PlIdLength as _t, getAxesId as wt, getFileNameFromHandle as Pt, getFilePathFromHandle as At, isImportFileHandleIndex as xt, isImportFileHandleUpload as It, mapJoinEntry as St, matchAxis as Ct, matchAxisId as Lt, matchPColumn as Et, stringifyColumnId as Tt } from "../../../lib/model/common/dist/index.js";
2
+ import { PlIdLength as _t, getAxesId as wt, getFileNameFromHandle as Pt, getFilePathFromHandle as At, isImportFileHandleIndex as xt, isImportFileHandleUpload as It, mapJoinEntry as St, matchAxis as Lt, matchAxisId as Ct, matchPColumn as Et, stringifyColumnId as Tt } from "../../../lib/model/common/dist/index.js";
3
3
  import we from "../../../_virtual/canonicalize.js";
4
4
  import K from "../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
5
5
  import { BasePlErrorLike as kt, ErrorLike as Ot, PlErrorLike as Dt, StandardErrorLike as Rt } from "../../../lib/model/pl-error-like/dist/index.js";
6
6
  var Be = Object.defineProperty, Ve = (n, e, t) => e in n ? Be(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, I = (n, e, t) => Ve(n, typeof e != "symbol" ? e + "" : e, t);
7
- function Q(n) {
7
+ function X(n) {
8
8
  return { type: "Immediate", value: n };
9
9
  }
10
10
  function Je() {
@@ -283,20 +283,20 @@ const We = "staging", He = "main", qe = "pl7.app/label", Ge = "pl7.app/trace", z
283
283
  importance: K.number().optional(),
284
284
  id: K.string().optional(),
285
285
  label: K.string()
286
- }), Xe = K.array(ze), Ye = 1e-3, Qe = "__LABEL__", fe = "__LABEL__@1";
286
+ }), Ye = K.array(ze), Qe = 1e-3, Xe = "__LABEL__", fe = "__LABEL__@1";
287
287
  function Ae(n, e, t = {}) {
288
288
  const r = /* @__PURE__ */ new Map(), i = t.forceTraceElements !== void 0 && t.forceTraceElements.length > 0 ? new Set(t.forceTraceElements) : void 0, s = /* @__PURE__ */ new Map(), o = n.map((f) => {
289
289
  var P, u;
290
290
  const h = e(f);
291
- let v, C, L;
292
- "spec" in h && typeof h.spec == "object" ? (v = h.spec, C = h.prefixTrace, L = h.suffixTrace) : v = h;
293
- const p = (P = v.annotations) == null ? void 0 : P[qe], A = (u = v.annotations) == null ? void 0 : u[Ge], d = (A ? Xe.safeParse(JSON.parse(A)).data : void 0) ?? [], g = [
294
- ...C ?? [],
291
+ let v, L, C;
292
+ "spec" in h && typeof h.spec == "object" ? (v = h.spec, L = h.prefixTrace, C = h.suffixTrace) : v = h;
293
+ const p = (P = v.annotations) == null ? void 0 : P[qe], A = (u = v.annotations) == null ? void 0 : u[Ge], d = (A ? Ye.safeParse(JSON.parse(A)).data : void 0) ?? [], g = [
294
+ ...L ?? [],
295
295
  ...d,
296
- ...L ?? []
296
+ ...C ?? []
297
297
  ];
298
298
  if (p !== void 0) {
299
- const x = { label: p, type: Qe, importance: -2 };
299
+ const x = { label: p, type: Xe, importance: -2 };
300
300
  t.addLabelAsSuffix ? g.push(x) : g.splice(0, 0, x);
301
301
  }
302
302
  const m = [], T = /* @__PURE__ */ new Map();
@@ -308,7 +308,7 @@ function Ae(n, e, t = {}) {
308
308
  k,
309
309
  Math.max(
310
310
  r.get(k) ?? Number.NEGATIVE_INFINITY,
311
- O - (g.length - x) * Ye
311
+ O - (g.length - x) * Qe
312
312
  )
313
313
  ), m.push({ ...g[x], fullType: k, occurrenceIndex: R });
314
314
  }
@@ -325,17 +325,17 @@ function Ae(n, e, t = {}) {
325
325
  const N = (f, P = !1) => {
326
326
  const u = [];
327
327
  for (let h = 0; h < o.length; h++) {
328
- const v = o[h], C = v.fullTrace.filter((A) => f.has(A.fullType) || i && i.has(A.type));
329
- if (C.length === 0)
328
+ const v = o[h], L = v.fullTrace.filter((A) => f.has(A.fullType) || i && i.has(A.type));
329
+ if (L.length === 0)
330
330
  if (P)
331
331
  u.push({
332
332
  label: "Unlabeled",
333
333
  value: v.value
334
334
  });
335
335
  else return;
336
- const L = C.map((A) => A.label), p = t.separator ?? " / ";
336
+ const C = L.map((A) => A.label), p = t.separator ?? " / ";
337
337
  u.push({
338
- label: L.join(p),
338
+ label: C.join(p),
339
339
  value: v.value
340
340
  });
341
341
  }
@@ -357,7 +357,7 @@ function Ae(n, e, t = {}) {
357
357
  }
358
358
  return N(/* @__PURE__ */ new Set([...a, ...l]), !0);
359
359
  }
360
- const H = "PColumnData/", ne = H + "ResourceMap", ie = H + "Partitioned/ResourceMap", U = H + "JsonPartitioned", j = H + "BinaryPartitioned", xe = H + "Partitioned/", Y = xe + "JsonPartitioned", M = xe + "BinaryPartitioned", se = (n) => {
360
+ const H = "PColumnData/", ne = H + "ResourceMap", ie = H + "Partitioned/ResourceMap", U = H + "JsonPartitioned", j = H + "BinaryPartitioned", xe = H + "Partitioned/", Q = xe + "JsonPartitioned", M = xe + "BinaryPartitioned", se = (n) => {
361
361
  if (n.endsWith(".index"))
362
362
  return { baseKey: n.substring(0, n.length - 6), type: "index" };
363
363
  if (n.endsWith(".values"))
@@ -380,7 +380,7 @@ function Ze(n) {
380
380
  i = t.partitionKeyLength;
381
381
  break;
382
382
  case M:
383
- case Y:
383
+ case Q:
384
384
  i = t.superPartitionKeyLength + t.partitionKeyLength;
385
385
  break;
386
386
  }
@@ -396,7 +396,7 @@ function Ze(n) {
396
396
  break;
397
397
  case ie:
398
398
  case M:
399
- case Y:
399
+ case Q:
400
400
  for (const s of n.listInputFields()) {
401
401
  const o = [...JSON.parse(s)], a = n.resolve({ field: s, assertFieldType: "Input" });
402
402
  if (a !== void 0)
@@ -449,7 +449,7 @@ function tt(n) {
449
449
  function oe(n, e = []) {
450
450
  if (n === void 0 || !n.getIsReadyOrError()) return;
451
451
  const t = n.resourceType.name, r = n.getDataAsJson();
452
- if (e.length > 0 && (t === Y || t === M))
452
+ if (e.length > 0 && (t === Q || t === M))
453
453
  throw new Error(`Unexpected nested super-partitioned resource: ${t}`);
454
454
  switch (t) {
455
455
  case ne:
@@ -498,7 +498,7 @@ function oe(n, e = []) {
498
498
  parts: i
499
499
  };
500
500
  }
501
- case Y: {
501
+ case Q: {
502
502
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
503
503
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${t}`);
504
504
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s = [];
@@ -708,20 +708,20 @@ class me {
708
708
  v = pe(r.anchors, u, t);
709
709
  } else
710
710
  v = u;
711
- const C = /* @__PURE__ */ new Set(), L = [];
711
+ const L = /* @__PURE__ */ new Set(), C = [];
712
712
  for (const d of this.providers) {
713
713
  const g = d.selectColumns(v);
714
714
  for (const m of g) {
715
715
  if (y(m.spec)) continue;
716
- if (C.has(m.id))
716
+ if (L.has(m.id))
717
717
  throw new Error(`Duplicate column id ${m.id} in provider ${d.constructor.name}`);
718
718
  const T = De(m.spec);
719
- F.has(T) || (C.add(m.id), F.add(T), L.push(m));
719
+ F.has(T) || (L.add(m.id), F.add(T), C.push(m));
720
720
  }
721
721
  }
722
- if (L.length === 0) continue;
722
+ if (C.length === 0) continue;
723
723
  const p = ut(u), A = p.length > 0;
724
- for (const d of L) {
724
+ for (const d of C) {
725
725
  if (!z(d.spec)) continue;
726
726
  const g = d.spec;
727
727
  if (A) {
@@ -762,8 +762,8 @@ class me {
762
762
  const Se = { ...g, axesSpec: k };
763
763
  for (const _ of O) {
764
764
  const V = _.map((D, $) => {
765
- const q = Ie[$], Ce = de(g.axesSpec[q]), ue = B[$], Le = (ue == null ? void 0 : ue[D]) ?? String(D);
766
- return { axisIdx: q, axisId: Ce, value: D, label: Le };
765
+ const q = Ie[$], Le = de(g.axesSpec[q]), ue = B[$], Ce = (ue == null ? void 0 : ue[D]) ?? String(D);
766
+ return { axisIdx: q, axisId: Le, value: D, label: Ce };
767
767
  });
768
768
  E.push({
769
769
  type: "split",
@@ -793,9 +793,9 @@ class me {
793
793
  l
794
794
  ), P = [];
795
795
  for (const { value: u, label: h } of f) {
796
- const { originalColumn: v, spec: C } = u, L = u.type === "split" ? u.axisFilters : void 0, p = at(L);
796
+ const { originalColumn: v, spec: L } = u, C = u.type === "split" ? u.axisFilters : void 0, p = at(C);
797
797
  let A;
798
- r ? A = r.deriveS(C, p) : A = lt(v.id, p);
798
+ r ? A = r.deriveS(L, p) : A = lt(v.id, p);
799
799
  let d = { ...u.adjustedSpec };
800
800
  o && (d = {
801
801
  ...d,
@@ -1256,7 +1256,7 @@ class G {
1256
1256
  this.ctx.logError(e);
1257
1257
  }
1258
1258
  }
1259
- const ht = "1.42.0", X = ht;
1259
+ const ht = "1.42.1", Y = ht;
1260
1260
  function pt(n) {
1261
1261
  return n.__renderLambda === !0;
1262
1262
  }
@@ -1274,8 +1274,8 @@ const dt = class b {
1274
1274
  void 0,
1275
1275
  {},
1276
1276
  {},
1277
- Q(!0),
1278
- Q([]),
1277
+ X(!0),
1278
+ X([]),
1279
1279
  void 0,
1280
1280
  void 0,
1281
1281
  { ...b.INITIAL_BLOCK_FEATURE_FLAGS }
@@ -1349,7 +1349,7 @@ const dt = class b {
1349
1349
  );
1350
1350
  }
1351
1351
  sections(e) {
1352
- return Array.isArray(e) ? this.sections(Q(e)) : typeof e == "function" ? (J("sections", () => e(new G())), new b(
1352
+ return Array.isArray(e) ? this.sections(X(e)) : typeof e == "function" ? (J("sections", () => e(new G())), new b(
1353
1353
  this._renderingMode,
1354
1354
  this._initialArgs,
1355
1355
  this._initialUiState,
@@ -1475,7 +1475,7 @@ const dt = class b {
1475
1475
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
1476
1476
  const t = {
1477
1477
  v3: {
1478
- sdkVersion: X,
1478
+ sdkVersion: Y,
1479
1479
  renderingMode: this._renderingMode,
1480
1480
  initialArgs: this._initialArgs,
1481
1481
  initialUiState: this._initialUiState,
@@ -1487,7 +1487,7 @@ const dt = class b {
1487
1487
  featureFlags: this._featureFlags
1488
1488
  },
1489
1489
  // fields below are added to allow previous desktop versions read generated configs
1490
- sdkVersion: X,
1490
+ sdkVersion: Y,
1491
1491
  renderingMode: this._renderingMode,
1492
1492
  initialArgs: this._initialArgs,
1493
1493
  inputsValid: te(this._inputsValid),
@@ -1496,7 +1496,7 @@ const dt = class b {
1496
1496
  Object.entries(this._outputs).map(([r, i]) => [r, te(i)])
1497
1497
  )
1498
1498
  };
1499
- return globalThis.platformaApiVersion = e, Je() ? Pe({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: t };
1499
+ return globalThis.platformaApiVersion = e, Je() ? Pe({ sdkVersion: Y, apiVersion: platformaApiVersion }) : { config: t };
1500
1500
  }
1501
1501
  };
1502
1502
  I(dt, "INITIAL_BLOCK_FEATURE_FLAGS", {
@@ -1505,7 +1505,7 @@ I(dt, "INITIAL_BLOCK_FEATURE_FLAGS", {
1505
1505
  requiresModelAPIVersion: 1
1506
1506
  });
1507
1507
  function yt() {
1508
- return Pe({ sdkVersion: X, apiVersion: platformaApiVersion });
1508
+ return Pe({ sdkVersion: Y, apiVersion: platformaApiVersion });
1509
1509
  }
1510
1510
  export {
1511
1511
  he as AnchoredIdDeriver,
@@ -1520,13 +1520,13 @@ export {
1520
1520
  j as RT_BINARY_PARTITIONED,
1521
1521
  M as RT_BINARY_SUPER_PARTITIONED,
1522
1522
  U as RT_JSON_PARTITIONED,
1523
- Y as RT_JSON_SUPER_PARTITIONED,
1523
+ Q as RT_JSON_SUPER_PARTITIONED,
1524
1524
  ne as RT_RESOURCE_MAP,
1525
1525
  ie as RT_RESOURCE_MAP_PARTITIONED,
1526
1526
  G as RenderCtx,
1527
1527
  ct as ResultPool,
1528
1528
  Rt as StandardErrorLike,
1529
- Xe as Trace,
1529
+ Ye as Trace,
1530
1530
  ze as TraceEntry,
1531
1531
  S as TreeNodeAccessor,
1532
1532
  je as canonicalizeAxisId,
@@ -1543,7 +1543,7 @@ export {
1543
1543
  de as getAxisId,
1544
1544
  Pt as getFileNameFromHandle,
1545
1545
  At as getFilePathFromHandle,
1546
- Q as getImmediate,
1546
+ X as getImmediate,
1547
1547
  Ze as getPartitionKeysList,
1548
1548
  yt as getRawPlatformaInstance,
1549
1549
  tt as getUniquePartitionKeys,
@@ -1562,8 +1562,8 @@ export {
1562
1562
  le as mapPObjectData,
1563
1563
  Te as mapPTableDef,
1564
1564
  ke as mapValueInVOE,
1565
- Ct as matchAxis,
1566
- Lt as matchAxisId,
1565
+ Lt as matchAxis,
1566
+ Ct as matchAxisId,
1567
1567
  Et as matchPColumn,
1568
1568
  oe as parsePColumnData,
1569
1569
  pe as resolveAnchors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/uikit",
3
- "version": "2.3.24",
3
+ "version": "2.3.26",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -30,8 +30,8 @@
30
30
  "d3-selection": "^3.0.0",
31
31
  "d3-axis": "^3.0.0",
32
32
  "resize-observer-polyfill": "^1.5.1",
33
- "@platforma-sdk/model": "^1.42.0",
34
- "@milaboratories/helpers": "^1.6.19"
33
+ "@milaboratories/helpers": "^1.6.19",
34
+ "@platforma-sdk/model": "^1.42.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@vitejs/plugin-vue": "^5.2.3",