@milaboratories/milaboratories.ui-examples.model 1.0.40 → 1.0.41
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 +28 -28
- 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.41 build /home/runner/work/platforma/platforma/etc/block-components/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
|
[32mCJS[39m [1mdist/index.cjs [22m[32m2.81 KB[39m
|
|
14
14
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m7.09 KB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 86ms
|
|
16
16
|
[32mESM[39m [1mdist/index.js [22m[32m2.76 KB[39m
|
|
17
17
|
[32mESM[39m [1mdist/index.js.map [22m[32m7.03 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 86ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 862ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m1.70 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.70 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[2m140.56 kB[22m[1m[22m[2m │ gzip: 25.33 kB[22m[2m │ map:
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m150.
|
|
30
|
-
[32m✓ built in
|
|
28
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m140.56 kB[22m[1m[22m[2m │ gzip: 25.33 kB[22m[2m │ map: 302.03 kB[22m
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m150.50 kB[22m[1m[22m[2m │ gzip: 25.78 kB[22m[2m │ map: 303.11 kB[22m
|
|
30
|
+
[32m✓ built in 380ms[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
overrideMap,
|
|
392
392
|
overrideMap === errorMap ? void 0 : errorMap
|
|
393
393
|
// then global default map
|
|
394
|
-
].filter((
|
|
394
|
+
].filter((x) => !!x)
|
|
395
395
|
});
|
|
396
396
|
ctx.common.issues.push(issue);
|
|
397
397
|
}
|
|
@@ -454,10 +454,10 @@
|
|
|
454
454
|
});
|
|
455
455
|
const DIRTY = (value) => ({ status: "dirty", value });
|
|
456
456
|
const OK = (value) => ({ status: "valid", value });
|
|
457
|
-
const isAborted = (
|
|
458
|
-
const isDirty = (
|
|
459
|
-
const isValid = (
|
|
460
|
-
const isAsync = (
|
|
457
|
+
const isAborted = (x) => x.status === "aborted";
|
|
458
|
+
const isDirty = (x) => x.status === "dirty";
|
|
459
|
+
const isValid = (x) => x.status === "valid";
|
|
460
|
+
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
461
461
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
462
462
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
463
463
|
return state.get(receiver);
|
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
if (!schema)
|
|
2788
2788
|
return null;
|
|
2789
2789
|
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
2790
|
-
}).filter((
|
|
2790
|
+
}).filter((x) => !!x);
|
|
2791
2791
|
if (ctx.common.async) {
|
|
2792
2792
|
return Promise.all(items).then((results) => {
|
|
2793
2793
|
return ParseStatus.mergeArray(status, results);
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
ctx.schemaErrorMap,
|
|
3046
3046
|
getErrorMap(),
|
|
3047
3047
|
errorMap
|
|
3048
|
-
].filter((
|
|
3048
|
+
].filter((x) => !!x),
|
|
3049
3049
|
issueData: {
|
|
3050
3050
|
code: ZodIssueCode.invalid_arguments,
|
|
3051
3051
|
argumentsError: error
|
|
@@ -3061,7 +3061,7 @@
|
|
|
3061
3061
|
ctx.schemaErrorMap,
|
|
3062
3062
|
getErrorMap(),
|
|
3063
3063
|
errorMap
|
|
3064
|
-
].filter((
|
|
3064
|
+
].filter((x) => !!x),
|
|
3065
3065
|
issueData: {
|
|
3066
3066
|
code: ZodIssueCode.invalid_return_type,
|
|
3067
3067
|
returnTypeError: error
|
|
@@ -3917,7 +3917,7 @@
|
|
|
3917
3917
|
function c(n) {
|
|
3918
3918
|
throw new Error("Unexpected object: " + n);
|
|
3919
3919
|
}
|
|
3920
|
-
function
|
|
3920
|
+
function E(n, t) {
|
|
3921
3921
|
return { ...n, src: i(n.src, t) };
|
|
3922
3922
|
}
|
|
3923
3923
|
function i(n, t) {
|
|
@@ -3955,20 +3955,20 @@
|
|
|
3955
3955
|
function r(n) {
|
|
3956
3956
|
return n.kind === "PColumn";
|
|
3957
3957
|
}
|
|
3958
|
-
function
|
|
3958
|
+
function w$1(n) {
|
|
3959
3959
|
return r(n.spec);
|
|
3960
3960
|
}
|
|
3961
|
-
function
|
|
3962
|
-
if (!
|
|
3961
|
+
function L(n) {
|
|
3962
|
+
if (!w$1(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
|
|
3963
3963
|
return n;
|
|
3964
3964
|
}
|
|
3965
|
-
function
|
|
3965
|
+
function O$1(n, t) {
|
|
3966
3966
|
return n === void 0 ? void 0 : {
|
|
3967
3967
|
...n,
|
|
3968
3968
|
data: t(n.data)
|
|
3969
3969
|
};
|
|
3970
3970
|
}
|
|
3971
|
-
function
|
|
3971
|
+
function J(n, t) {
|
|
3972
3972
|
return n.ok ? { ok: true, value: t(n.value) } : n;
|
|
3973
3973
|
}
|
|
3974
3974
|
var ct = Object.defineProperty;
|
|
@@ -4122,7 +4122,7 @@
|
|
|
4122
4122
|
getPColumns(t = false, n = "") {
|
|
4123
4123
|
const r2 = this.parsePObjectCollection(t, n);
|
|
4124
4124
|
return r2 === void 0 ? void 0 : Object.entries(r2).map(([, i2]) => {
|
|
4125
|
-
if (!
|
|
4125
|
+
if (!w$1(i2)) throw new Error(`not a PColumn (kind = ${i2.spec.kind})`);
|
|
4126
4126
|
return i2;
|
|
4127
4127
|
});
|
|
4128
4128
|
}
|
|
@@ -4138,7 +4138,7 @@
|
|
|
4138
4138
|
if (r2 === void 0) return;
|
|
4139
4139
|
const s = {};
|
|
4140
4140
|
for (const [i2, o] of Object.entries(r2))
|
|
4141
|
-
s[i2] =
|
|
4141
|
+
s[i2] = O$1(o, (a) => new w(a));
|
|
4142
4142
|
return s;
|
|
4143
4143
|
}
|
|
4144
4144
|
getFileContentAsBase64() {
|
|
@@ -4241,9 +4241,9 @@
|
|
|
4241
4241
|
y && b.splice(0, 0, { label: y, type: Rt, importance: -2 });
|
|
4242
4242
|
const V = [], q = /* @__PURE__ */ new Map();
|
|
4243
4243
|
for (let S = b.length - 1; S >= 0; --S) {
|
|
4244
|
-
const { type:
|
|
4245
|
-
q.set(
|
|
4246
|
-
const I = `${
|
|
4244
|
+
const { type: E2 } = b[S], ut = b[S].importance ?? 0, j = (q.get(E2) ?? 0) + 1;
|
|
4245
|
+
q.set(E2, j);
|
|
4246
|
+
const I = `${E2}@${j}`;
|
|
4247
4247
|
s.set(I, (s.get(I) ?? 0) + 1), r2.set(
|
|
4248
4248
|
I,
|
|
4249
4249
|
Math.max(
|
|
@@ -4344,7 +4344,7 @@
|
|
|
4344
4344
|
ref: n.ref,
|
|
4345
4345
|
obj: {
|
|
4346
4346
|
...n.obj,
|
|
4347
|
-
data:
|
|
4347
|
+
data: J(n.obj.data, (r2) => new w(r2))
|
|
4348
4348
|
}
|
|
4349
4349
|
}))
|
|
4350
4350
|
};
|
|
@@ -4366,7 +4366,7 @@
|
|
|
4366
4366
|
var n;
|
|
4367
4367
|
return typeof this.ctx.getDataFromResultPoolByRef > "u" ? (n = this.getData().entries.find(
|
|
4368
4368
|
(r2) => r2.ref.blockId === t.blockId && r2.ref.name === t.name
|
|
4369
|
-
)) == null ? void 0 : n.obj :
|
|
4369
|
+
)) == null ? void 0 : n.obj : O$1(
|
|
4370
4370
|
this.ctx.getDataFromResultPoolByRef(t.blockId, t.name),
|
|
4371
4371
|
(r2) => new w(r2)
|
|
4372
4372
|
);
|
|
@@ -4379,7 +4379,7 @@
|
|
|
4379
4379
|
getPColumnByRef(t) {
|
|
4380
4380
|
const n = this.getDataByRef(t);
|
|
4381
4381
|
if (n)
|
|
4382
|
-
return
|
|
4382
|
+
return L(n);
|
|
4383
4383
|
}
|
|
4384
4384
|
/**
|
|
4385
4385
|
* @param ref a Ref
|
|
@@ -4464,7 +4464,7 @@
|
|
|
4464
4464
|
findLabels(t) {
|
|
4465
4465
|
const n = this.resultPool.getData();
|
|
4466
4466
|
for (const r2 of n.entries) {
|
|
4467
|
-
if (!
|
|
4467
|
+
if (!w$1(r2.obj)) continue;
|
|
4468
4468
|
const s = r2.obj.spec;
|
|
4469
4469
|
if (s.name === "pl7.app/label" && s.axesSpec.length === 1 && s.axesSpec[0].name === t.name && s.axesSpec[0].type === t.type && K(t.domain, s.axesSpec[0].domain)) {
|
|
4470
4470
|
if (r2.obj.data.resourceType.name !== "PColumnData/Json")
|
|
@@ -4478,7 +4478,7 @@
|
|
|
4478
4478
|
}
|
|
4479
4479
|
}
|
|
4480
4480
|
createPFrame(t) {
|
|
4481
|
-
return this.ctx.createPFrame(t.map((n) =>
|
|
4481
|
+
return this.ctx.createPFrame(t.map((n) => O$1(n, (r2) => r2.handle)));
|
|
4482
4482
|
}
|
|
4483
4483
|
createPTable(t) {
|
|
4484
4484
|
var n;
|
|
@@ -4489,7 +4489,7 @@
|
|
|
4489
4489
|
},
|
|
4490
4490
|
filters: t.filters ?? [],
|
|
4491
4491
|
sorting: t.sorting ?? []
|
|
4492
|
-
} : n = t, this.ctx.createPTable(
|
|
4492
|
+
} : n = t, this.ctx.createPTable(E(n, (r2) => O$1(r2, (s) => s.handle)));
|
|
4493
4493
|
}
|
|
4494
4494
|
/** @deprecated scheduled for removal from SDK */
|
|
4495
4495
|
getBlockLabel(t) {
|
|
@@ -4500,7 +4500,7 @@
|
|
|
4500
4500
|
return this.ctx.getCurrentUnstableMarker();
|
|
4501
4501
|
}
|
|
4502
4502
|
}
|
|
4503
|
-
const C = "1.13.
|
|
4503
|
+
const C = "1.13.2";
|
|
4504
4504
|
function kt(e) {
|
|
4505
4505
|
return e.__renderLambda === true;
|
|
4506
4506
|
}
|
|
@@ -4697,7 +4697,7 @@
|
|
|
4697
4697
|
const collection = ctx.resultPool.getData();
|
|
4698
4698
|
if (collection === void 0 || !collection.isComplete) return void 0;
|
|
4699
4699
|
const valueTypes = ["Int", "Long", "Float", "Double", "String", "Bytes"];
|
|
4700
|
-
const columns = collection.entries.map(({ obj }) => obj).filter(
|
|
4700
|
+
const columns = collection.entries.map(({ obj }) => obj).filter(w$1).filter((column) => valueTypes.find((valueType) => valueType === column.spec.valueType));
|
|
4701
4701
|
try {
|
|
4702
4702
|
return ctx.createPFrame(columns);
|
|
4703
4703
|
} catch (err) {
|
|
@@ -4709,7 +4709,7 @@
|
|
|
4709
4709
|
if (!join) return void 0;
|
|
4710
4710
|
const collection = ctx.resultPool.getData();
|
|
4711
4711
|
if (!collection || !collection.isComplete) return void 0;
|
|
4712
|
-
const columns = collection.entries.map(({ obj }) => obj).filter(
|
|
4712
|
+
const columns = collection.entries.map(({ obj }) => obj).filter(w$1);
|
|
4713
4713
|
if (columns.length === 0) return void 0;
|
|
4714
4714
|
let columnMissing = false;
|
|
4715
4715
|
const src = i(join, (idAndSpec) => {
|