@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.
- package/.turbo/turbo-build.log +20 -18
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/composition/computedCached.d.ts +12 -0
- package/dist/composition/computedCached.d.ts.map +1 -0
- package/dist/composition/computedCached.js +24 -0
- package/dist/composition/computedCached.js.map +1 -0
- package/dist/composition/watchCached.d.ts +9 -0
- package/dist/composition/watchCached.d.ts.map +1 -0
- package/dist/composition/watchCached.js +31 -0
- package/dist/composition/watchCached.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -41
- package/dist/index.js.map +1 -1
- package/dist/lib/model/common/dist/index.js +37 -37
- package/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/sdk/model/dist/index.js +133 -133
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/composition/computedCached.ts +58 -0
- package/src/composition/watchCached.ts +45 -0
- package/src/index.ts +2 -0
|
@@ -10,28 +10,28 @@ u.object({
|
|
|
10
10
|
function g(e) {
|
|
11
11
|
throw new Error("Unexpected object: " + e);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const P = "upload://upload/", k = "index://index/";
|
|
14
14
|
function I(e) {
|
|
15
|
-
return e.startsWith(
|
|
15
|
+
return e.startsWith(P);
|
|
16
16
|
}
|
|
17
17
|
function S(e) {
|
|
18
|
-
return e.startsWith(
|
|
18
|
+
return e.startsWith(k);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function j(e) {
|
|
21
21
|
if (S(e)) {
|
|
22
|
-
const t = e.slice(
|
|
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(
|
|
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
|
|
30
|
+
function J(e) {
|
|
31
31
|
return e.replace(/^.*[\\/]/, "");
|
|
32
32
|
}
|
|
33
33
|
function M(e) {
|
|
34
|
-
return j(
|
|
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
|
|
98
|
+
function H(e) {
|
|
99
99
|
return E(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : !1;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
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
|
|
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
|
|
180
|
+
function N(e, t) {
|
|
181
181
|
return e.name === t.name && L(e.domain, t.domain);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
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
|
|
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
|
|
314
|
+
return $(this.derive(t, n));
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
function
|
|
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 (!
|
|
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) =>
|
|
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
|
|
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
|
|
379
|
+
function D(e) {
|
|
380
380
|
return h(e.spec);
|
|
381
381
|
}
|
|
382
382
|
function Q(e) {
|
|
383
|
-
if (!
|
|
383
|
+
if (!D(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
384
384
|
return e;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
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
|
|
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
|
|
517
|
-
u.string().length(
|
|
516
|
+
const F = 24;
|
|
517
|
+
u.string().length(F).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
518
518
|
export {
|
|
519
519
|
G as AnchoredIdDeriver,
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
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
|
-
|
|
526
|
+
Z as extractAllColumns,
|
|
527
527
|
C as getAxesId,
|
|
528
528
|
d as getAxisId,
|
|
529
529
|
M as getFileNameFromHandle,
|
|
530
|
-
|
|
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
|
-
|
|
535
|
+
D 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
|
-
|
|
542
|
-
|
|
541
|
+
Y as mapPObjectData,
|
|
542
|
+
W as mapPTableDef,
|
|
543
543
|
oe as mapValueInVOE,
|
|
544
544
|
v as matchAxis,
|
|
545
|
-
|
|
545
|
+
N as matchAxisId,
|
|
546
546
|
w as matchPColumn,
|
|
547
|
-
|
|
547
|
+
X as resolveAnchors,
|
|
548
548
|
ee as selectorsToPredicate,
|
|
549
|
-
|
|
549
|
+
$ as stringifyColumnId,
|
|
550
550
|
re as withEnrichments
|
|
551
551
|
};
|
|
552
552
|
//# sourceMappingURL=index.js.map
|