@milaboratories/uikit 2.3.7 → 2.3.9

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.
@@ -10,28 +10,28 @@ u.object({
10
10
  function g(e) {
11
11
  throw new Error("Unexpected object: " + e);
12
12
  }
13
- const k = "upload://upload/", P = "index://index/";
13
+ const P = "upload://upload/", k = "index://index/";
14
14
  function I(e) {
15
- return e.startsWith(k);
15
+ return e.startsWith(P);
16
16
  }
17
17
  function S(e) {
18
- return e.startsWith(P);
18
+ return e.startsWith(k);
19
19
  }
20
- function J(e) {
20
+ function j(e) {
21
21
  if (S(e)) {
22
- const t = e.slice(P.length);
22
+ const t = e.slice(k.length);
23
23
  return JSON.parse(decodeURIComponent(t)).path;
24
24
  } else if (I(e)) {
25
- const t = e.slice(k.length);
25
+ const t = e.slice(P.length);
26
26
  return JSON.parse(decodeURIComponent(t)).localPath;
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(j(e));
35
35
  }
36
36
  function U(e) {
37
37
  if (!e || typeof e != "object")
@@ -95,10 +95,10 @@ function E(e) {
95
95
  return !1;
96
96
  }
97
97
  }
98
- function q(e) {
98
+ function H(e) {
99
99
  return E(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : !1;
100
100
  }
101
- function H(e) {
101
+ function q(e) {
102
102
  switch (e.type) {
103
103
  case "Json": {
104
104
  const t = Object.entries(e.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
@@ -167,7 +167,7 @@ function d(e) {
167
167
  function C(e) {
168
168
  return e.map(d);
169
169
  }
170
- function W(e) {
170
+ function z(e) {
171
171
  return y(d(e));
172
172
  }
173
173
  function L(e, t) {
@@ -177,10 +177,10 @@ function L(e, t) {
177
177
  if (e[n] !== t[n]) return !1;
178
178
  return !0;
179
179
  }
180
- function $(e, t) {
180
+ function N(e, t) {
181
181
  return e.name === t.name && L(e.domain, t.domain);
182
182
  }
183
- function z(e, t) {
183
+ function W(e, t) {
184
184
  return { ...e, src: p(e.src, t) };
185
185
  }
186
186
  function p(e, t) {
@@ -215,7 +215,7 @@ function p(e, t) {
215
215
  g(e);
216
216
  }
217
217
  }
218
- function N(e) {
218
+ function $(e) {
219
219
  return y(e);
220
220
  }
221
221
  function x(e) {
@@ -311,10 +311,10 @@ class G {
311
311
  * @returns A canonicalized string representation of the anchored column identifier
312
312
  */
313
313
  deriveS(t, n) {
314
- return N(this.derive(t, n));
314
+ return $(this.derive(t, n));
315
315
  }
316
316
  }
317
- function Z(e, t, n) {
317
+ function X(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 Z(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 (!R(t))
347
+ if (!T(t))
348
348
  return t;
349
349
  const n = t.anchor, r = e[n];
350
350
  if (!r)
@@ -361,7 +361,7 @@ function K(e, t) {
361
361
  throw new Error(`Axis with name "${t.name}" not found in anchor "${n}"`);
362
362
  return o[0];
363
363
  } else if ("id" in t) {
364
- const o = r.axesSpec.filter((i) => $(t.id, d(i)));
364
+ const o = r.axesSpec.filter((i) => N(t.id, d(i)));
365
365
  if (o.length > 1)
366
366
  throw new Error(`Multiple matching axes found for matcher in anchor "${n}"`);
367
367
  if (o.length === 0)
@@ -370,26 +370,26 @@ function K(e, t) {
370
370
  }
371
371
  throw new Error("Unsupported axis reference type");
372
372
  }
373
- function R(e) {
373
+ function T(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 D(e) {
380
380
  return h(e.spec);
381
381
  }
382
382
  function Q(e) {
383
- if (!T(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
383
+ if (!D(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
384
384
  return e;
385
385
  }
386
- function X(e, t) {
386
+ function Y(e, t) {
387
387
  return e === void 0 ? void 0 : {
388
388
  ...e,
389
389
  data: t(e.data)
390
390
  };
391
391
  }
392
- function Y(e) {
392
+ function Z(e) {
393
393
  const t = /* @__PURE__ */ new Map(), n = (r) => {
394
394
  switch (r.type) {
395
395
  case "column":
@@ -513,40 +513,40 @@ 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 D = 24;
517
- u.string().length(D).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
516
+ const F = 24;
517
+ u.string().length(F).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
518
518
  export {
519
519
  G as AnchoredIdDeriver,
520
- D as PlIdLength,
521
- W as canonicalizeAxisId,
522
- H as dataInfoToEntries,
520
+ F as PlIdLength,
521
+ z as canonicalizeAxisId,
522
+ q as dataInfoToEntries,
523
523
  te as deriveNativeId,
524
524
  Q as ensurePColumn,
525
525
  V as entriesToDataInfo,
526
- Y as extractAllColumns,
526
+ Z as extractAllColumns,
527
527
  C as getAxesId,
528
528
  d as getAxisId,
529
529
  M as getFileNameFromHandle,
530
- J as getFilePathFromHandle,
530
+ j as getFilePathFromHandle,
531
531
  U as isDataInfo,
532
532
  E as isDataInfoEntries,
533
533
  S as isImportFileHandleIndex,
534
534
  I as isImportFileHandleUpload,
535
- T as isPColumn,
535
+ D as isPColumn,
536
536
  h as isPColumnSpec,
537
- q as isPartitionedDataInfoEntries,
537
+ H as isPartitionedDataInfoEntries,
538
538
  ne as isPlRef,
539
539
  _ as mapDataInfo,
540
540
  p as mapJoinEntry,
541
- X as mapPObjectData,
542
- z as mapPTableDef,
541
+ Y as mapPObjectData,
542
+ W as mapPTableDef,
543
543
  oe as mapValueInVOE,
544
544
  v as matchAxis,
545
- $ as matchAxisId,
545
+ N as matchAxisId,
546
546
  w as matchPColumn,
547
- Z as resolveAnchors,
547
+ X as resolveAnchors,
548
548
  ee as selectorsToPredicate,
549
- N as stringifyColumnId,
549
+ $ as stringifyColumnId,
550
550
  re as withEnrichments
551
551
  };
552
552
  //# sourceMappingURL=index.js.map