@milaboratories/milaboratories.ui-examples.model 1.0.49 → 1.0.50
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 +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/bundle.js +39 -39
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @milaboratories/milaboratories.ui-examples.model@1.0.
|
|
2
|
+
> @milaboratories/milaboratories.ui-examples.model@1.0.50 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
|
|
3
3
|
> tsup && vite build && block-tools build-model
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
[34mESM[39m Build start
|
|
13
13
|
[32mESM[39m [1mdist/index.js [22m[32m2.76 KB[39m
|
|
14
14
|
[32mESM[39m [1mdist/index.js.map [22m[32m6.42 KB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 76ms
|
|
16
16
|
[32mCJS[39m [1mdist/index.cjs [22m[32m2.75 KB[39m
|
|
17
17
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m6.55 KB[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 76ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 844ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.11 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.11 KB[39m
|
|
23
23
|
[36mvite v5.4.11 [32mbuilding for production...[36m[39m
|
|
@@ -25,6 +25,6 @@ transforming...
|
|
|
25
25
|
[32m✓[39m 4 modules transformed.
|
|
26
26
|
rendering chunks...
|
|
27
27
|
computing gzip size...
|
|
28
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m144.
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m154.
|
|
30
|
-
[32m✓ built in
|
|
28
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m144.10 kB[22m[1m[22m[2m │ gzip: 26.15 kB[22m[2m │ map: 309.53 kB[22m
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m154.27 kB[22m[1m[22m[2m │ gzip: 26.62 kB[22m[2m │ map: 310.67 kB[22m
|
|
30
|
+
[32m✓ built in 403ms[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -3798,7 +3798,7 @@
|
|
|
3798
3798
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
3799
3799
|
};
|
|
3800
3800
|
const NEVER = INVALID;
|
|
3801
|
-
var z = /* @__PURE__ */ Object.freeze({
|
|
3801
|
+
var z$1 = /* @__PURE__ */ Object.freeze({
|
|
3802
3802
|
__proto__: null,
|
|
3803
3803
|
defaultErrorMap: errorMap,
|
|
3804
3804
|
setErrorMap,
|
|
@@ -3917,21 +3917,21 @@
|
|
|
3917
3917
|
function c(t) {
|
|
3918
3918
|
throw new Error("Unexpected object: " + t);
|
|
3919
3919
|
}
|
|
3920
|
-
function
|
|
3920
|
+
function B$1(t) {
|
|
3921
3921
|
const { type: n, name: r, domain: e } = t;
|
|
3922
3922
|
return { type: n, name: r, ...e && { domain: e } };
|
|
3923
3923
|
}
|
|
3924
|
-
function
|
|
3924
|
+
function C$1(t, n) {
|
|
3925
3925
|
if (t === void 0) return n === void 0;
|
|
3926
3926
|
if (n === void 0) return true;
|
|
3927
3927
|
for (const r in n)
|
|
3928
3928
|
if (t[r] !== n[r]) return false;
|
|
3929
3929
|
return true;
|
|
3930
3930
|
}
|
|
3931
|
-
function
|
|
3932
|
-
return t.name === n.name &&
|
|
3931
|
+
function z(t, n) {
|
|
3932
|
+
return t.name === n.name && C$1(t.domain, n.domain);
|
|
3933
3933
|
}
|
|
3934
|
-
function
|
|
3934
|
+
function M$1(t, n) {
|
|
3935
3935
|
return { ...t, src: s(t.src, n) };
|
|
3936
3936
|
}
|
|
3937
3937
|
function s(t, n) {
|
|
@@ -3957,30 +3957,30 @@
|
|
|
3957
3957
|
c(t);
|
|
3958
3958
|
}
|
|
3959
3959
|
}
|
|
3960
|
-
z.object({
|
|
3961
|
-
__isRef: z.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
3962
|
-
blockId: z.string().describe("Upstream block id"),
|
|
3963
|
-
name: z.string().describe("Name of the output provided to the upstream block's output context")
|
|
3960
|
+
z$1.object({
|
|
3961
|
+
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
3962
|
+
blockId: z$1.string().describe("Upstream block id"),
|
|
3963
|
+
name: z$1.string().describe("Name of the output provided to the upstream block's output context")
|
|
3964
3964
|
}).describe(
|
|
3965
3965
|
"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."
|
|
3966
3966
|
).strict().readonly();
|
|
3967
3967
|
function o(t) {
|
|
3968
3968
|
return t.kind === "PColumn";
|
|
3969
3969
|
}
|
|
3970
|
-
function
|
|
3970
|
+
function U$1(t) {
|
|
3971
3971
|
return o(t.spec);
|
|
3972
3972
|
}
|
|
3973
|
-
function
|
|
3974
|
-
if (!
|
|
3973
|
+
function Y(t) {
|
|
3974
|
+
if (!U$1(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
|
|
3975
3975
|
return t;
|
|
3976
3976
|
}
|
|
3977
|
-
function
|
|
3977
|
+
function Z$1(t, n) {
|
|
3978
3978
|
return t === void 0 ? void 0 : {
|
|
3979
3979
|
...t,
|
|
3980
3980
|
data: n(t.data)
|
|
3981
3981
|
};
|
|
3982
3982
|
}
|
|
3983
|
-
function
|
|
3983
|
+
function T$1(t, n) {
|
|
3984
3984
|
return t.ok ? { ok: true, value: n(t.value) } : t;
|
|
3985
3985
|
}
|
|
3986
3986
|
var ce = Object.defineProperty;
|
|
@@ -4134,7 +4134,7 @@
|
|
|
4134
4134
|
getPColumns(e = false, n = "") {
|
|
4135
4135
|
const r = this.parsePObjectCollection(e, n);
|
|
4136
4136
|
return r === void 0 ? void 0 : Object.entries(r).map(([, i]) => {
|
|
4137
|
-
if (!
|
|
4137
|
+
if (!U$1(i)) throw new Error(`not a PColumn (kind = ${i.spec.kind})`);
|
|
4138
4138
|
return i;
|
|
4139
4139
|
});
|
|
4140
4140
|
}
|
|
@@ -4150,7 +4150,7 @@
|
|
|
4150
4150
|
if (r === void 0) return;
|
|
4151
4151
|
const s2 = {};
|
|
4152
4152
|
for (const [i, o2] of Object.entries(r))
|
|
4153
|
-
s2[i] =
|
|
4153
|
+
s2[i] = Z$1(o2, (a) => new S(a));
|
|
4154
4154
|
return s2;
|
|
4155
4155
|
}
|
|
4156
4156
|
getFileContentAsBase64() {
|
|
@@ -4240,16 +4240,16 @@
|
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
4242
4242
|
const se = "staging", ie = "main";
|
|
4243
|
-
const Ae = "pl7.app/label", Pe = "pl7.app/trace", Ie = z.object({
|
|
4244
|
-
type: z.string(),
|
|
4245
|
-
importance: z.number().optional(),
|
|
4246
|
-
id: z.string().optional(),
|
|
4247
|
-
label: z.string()
|
|
4248
|
-
}), Ce = z.array(Ie), Re = 1e-3, Te = "__LABEL__", Q = "__LABEL__@1";
|
|
4243
|
+
const Ae = "pl7.app/label", Pe = "pl7.app/trace", Ie = z$1.object({
|
|
4244
|
+
type: z$1.string(),
|
|
4245
|
+
importance: z$1.number().optional(),
|
|
4246
|
+
id: z$1.string().optional(),
|
|
4247
|
+
label: z$1.string()
|
|
4248
|
+
}), Ce = z$1.array(Ie), Re = 1e-3, Te = "__LABEL__", Q = "__LABEL__@1";
|
|
4249
4249
|
function Fe(t, e, n = {}) {
|
|
4250
4250
|
const r = /* @__PURE__ */ new Map(), s2 = /* @__PURE__ */ new Map(), i = t.map((d) => {
|
|
4251
4251
|
var q, z2;
|
|
4252
|
-
const m = e(d), y = (q = m.annotations) == null ? void 0 : q[Ae],
|
|
4252
|
+
const m = e(d), y = (q = m.annotations) == null ? void 0 : q[Ae], F = (z2 = m.annotations) == null ? void 0 : z2[Pe], b = (F ? Ce.safeParse(JSON.parse(F)).data : void 0) ?? [];
|
|
4253
4253
|
if (y) {
|
|
4254
4254
|
const _ = { label: y, type: Te, importance: -2 };
|
|
4255
4255
|
n.addLabelAsSuffix ? b.push(_) : b.splice(0, 0, _);
|
|
@@ -4278,9 +4278,9 @@
|
|
|
4278
4278
|
for (const [d] of l)
|
|
4279
4279
|
d.endsWith("@1") || s2.get(d) === t.length ? o2.push(d) : a.push(d);
|
|
4280
4280
|
const c2 = (d) => i.map((m) => {
|
|
4281
|
-
const y = m.fullTrace.filter((b) => d.has(b.fullType)).map((b) => b.label),
|
|
4281
|
+
const y = m.fullTrace.filter((b) => d.has(b.fullType)).map((b) => b.label), F = n.separator ?? " / ";
|
|
4282
4282
|
return {
|
|
4283
|
-
label: y.join(
|
|
4283
|
+
label: y.join(F),
|
|
4284
4284
|
value: m.value
|
|
4285
4285
|
};
|
|
4286
4286
|
});
|
|
@@ -4357,7 +4357,7 @@
|
|
|
4357
4357
|
ref: n.ref,
|
|
4358
4358
|
obj: {
|
|
4359
4359
|
...n.obj,
|
|
4360
|
-
data:
|
|
4360
|
+
data: T$1(n.obj.data, (r) => new S(r))
|
|
4361
4361
|
}
|
|
4362
4362
|
}))
|
|
4363
4363
|
};
|
|
@@ -4379,7 +4379,7 @@
|
|
|
4379
4379
|
var n;
|
|
4380
4380
|
return typeof this.ctx.getDataFromResultPoolByRef > "u" ? (n = this.getData().entries.find(
|
|
4381
4381
|
(r) => r.ref.blockId === e.blockId && r.ref.name === e.name
|
|
4382
|
-
)) == null ? void 0 : n.obj :
|
|
4382
|
+
)) == null ? void 0 : n.obj : Z$1(
|
|
4383
4383
|
this.ctx.getDataFromResultPoolByRef(e.blockId, e.name),
|
|
4384
4384
|
(r) => new S(r)
|
|
4385
4385
|
);
|
|
@@ -4392,7 +4392,7 @@
|
|
|
4392
4392
|
getPColumnByRef(e) {
|
|
4393
4393
|
const n = this.getDataByRef(e);
|
|
4394
4394
|
if (n)
|
|
4395
|
-
return
|
|
4395
|
+
return Y(n);
|
|
4396
4396
|
}
|
|
4397
4397
|
/**
|
|
4398
4398
|
* @param ref a Ref
|
|
@@ -4477,7 +4477,7 @@
|
|
|
4477
4477
|
findLabels(e) {
|
|
4478
4478
|
const n = this.resultPool.getData();
|
|
4479
4479
|
for (const r of n.entries) {
|
|
4480
|
-
if (!
|
|
4480
|
+
if (!U$1(r.obj)) continue;
|
|
4481
4481
|
const s2 = r.obj.spec;
|
|
4482
4482
|
if (s2.name === "pl7.app/label" && s2.axesSpec.length === 1 && s2.axesSpec[0].name === e.name && s2.axesSpec[0].type === e.type && $(e.domain, s2.axesSpec[0].domain)) {
|
|
4483
4483
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
@@ -4491,7 +4491,7 @@
|
|
|
4491
4491
|
}
|
|
4492
4492
|
}
|
|
4493
4493
|
createPFrame(e) {
|
|
4494
|
-
return this.ctx.createPFrame(e.map((n) =>
|
|
4494
|
+
return this.ctx.createPFrame(e.map((n) => Z$1(n, (r) => r.handle)));
|
|
4495
4495
|
}
|
|
4496
4496
|
createPTable(e) {
|
|
4497
4497
|
var n;
|
|
@@ -4502,7 +4502,7 @@
|
|
|
4502
4502
|
},
|
|
4503
4503
|
filters: e.filters ?? [],
|
|
4504
4504
|
sorting: e.sorting ?? []
|
|
4505
|
-
} : n = e, this.ctx.createPTable(
|
|
4505
|
+
} : n = e, this.ctx.createPTable(M$1(n, (r) => Z$1(r, (s2) => s2.handle)));
|
|
4506
4506
|
}
|
|
4507
4507
|
/** @deprecated scheduled for removal from SDK */
|
|
4508
4508
|
getBlockLabel(e) {
|
|
@@ -4589,7 +4589,7 @@
|
|
|
4589
4589
|
}
|
|
4590
4590
|
return s2.map((i) => Array.from(i.values()));
|
|
4591
4591
|
}
|
|
4592
|
-
const C = "1.
|
|
4592
|
+
const C = "1.18.0";
|
|
4593
4593
|
function ke(t) {
|
|
4594
4594
|
return t.__renderLambda === true;
|
|
4595
4595
|
}
|
|
@@ -4778,12 +4778,12 @@
|
|
|
4778
4778
|
}
|
|
4779
4779
|
function ht(t, e, n, r) {
|
|
4780
4780
|
var o2, a;
|
|
4781
|
-
const s2 = t.resultPool.getData().entries.map((l) => l.obj).filter(
|
|
4781
|
+
const s2 = t.resultPool.getData().entries.map((l) => l.obj).filter(U$1).filter((l) => l.spec.name === "pl7.app/label" && l.spec.axesSpec.length === 1), i = /* @__PURE__ */ new Map();
|
|
4782
4782
|
for (const l of e)
|
|
4783
4783
|
for (const c2 of l.spec.axesSpec) {
|
|
4784
|
-
const f =
|
|
4784
|
+
const f = B$1(c2);
|
|
4785
4785
|
for (const w of s2)
|
|
4786
|
-
|
|
4786
|
+
z(f, B$1(w.spec.axesSpec[0])) && i.set(w.id, w);
|
|
4787
4787
|
}
|
|
4788
4788
|
if (![...e, ...i.values()].find((l) => !l.data.getIsReadyOrError()))
|
|
4789
4789
|
return t.createPTable({
|
|
@@ -4810,8 +4810,8 @@
|
|
|
4810
4810
|
defaultValue: n[0]
|
|
4811
4811
|
};
|
|
4812
4812
|
}
|
|
4813
|
-
const $BlockArgs = z.object({
|
|
4814
|
-
numbers: z.array(z.coerce.number())
|
|
4813
|
+
const $BlockArgs = z$1.object({
|
|
4814
|
+
numbers: z$1.array(z$1.coerce.number())
|
|
4815
4815
|
});
|
|
4816
4816
|
const platforma = h.create("Heavy").withArgs({ numbers: [1, 2, 3] }).withUiState({ dataTableState: void 0 }).output("numbers", (ctx) => {
|
|
4817
4817
|
var _a, _b;
|
|
@@ -4830,7 +4830,7 @@
|
|
|
4830
4830
|
var _a, _b, _c, _d, _e2;
|
|
4831
4831
|
if (((_b = (_a = ctx.uiState) == null ? void 0 : _a.dataTableState) == null ? void 0 : _b.anchorColumn) === void 0) return void 0;
|
|
4832
4832
|
const anchorColumn = ctx.resultPool.getDataByRef(ctx.uiState.dataTableState.anchorColumn);
|
|
4833
|
-
if (!anchorColumn || !
|
|
4833
|
+
if (!anchorColumn || !U$1(anchorColumn)) {
|
|
4834
4834
|
console.error("Anchor column is undefined or is not PColumn", anchorColumn);
|
|
4835
4835
|
return void 0;
|
|
4836
4836
|
}
|