@milaboratories/milaboratories.ui-examples.model 1.0.29 → 1.0.31
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 +14 -0
- package/dist/bundle.js +117 -85
- 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.31 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.63 KB[39m
|
|
14
14
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m6.66 KB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 79ms
|
|
16
16
|
[32mESM[39m [1mdist/index.js [22m[32m2.57 KB[39m
|
|
17
17
|
[32mESM[39m [1mdist/index.js.map [22m[32m6.60 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 80ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 812ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m1.66 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.66 KB[39m
|
|
23
23
|
[36mvite v5.4.10 [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[
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[
|
|
30
|
-
[32m✓ built in
|
|
28
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m132.60 kB[22m[1m[22m[2m │ gzip: 23.27 kB[22m[2m │ map: 280.91 kB[22m
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m142.05 kB[22m[1m[22m[2m │ gzip: 23.70 kB[22m[2m │ map: 281.97 kB[22m
|
|
30
|
+
[32m✓ built in 401ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.0.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8f916f2]
|
|
8
|
+
- @platforma-sdk/model@1.8.19
|
|
9
|
+
|
|
10
|
+
## 1.0.30
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [a5af4f2]
|
|
15
|
+
- @platforma-sdk/model@1.8.0
|
|
16
|
+
|
|
3
17
|
## 1.0.29
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -2659,17 +2659,17 @@
|
|
|
2659
2659
|
});
|
|
2660
2660
|
}
|
|
2661
2661
|
}
|
|
2662
|
-
function mergeValues(
|
|
2663
|
-
const aType = getParsedType(
|
|
2662
|
+
function mergeValues(a, b2) {
|
|
2663
|
+
const aType = getParsedType(a);
|
|
2664
2664
|
const bType = getParsedType(b2);
|
|
2665
|
-
if (
|
|
2666
|
-
return { valid: true, data:
|
|
2665
|
+
if (a === b2) {
|
|
2666
|
+
return { valid: true, data: a };
|
|
2667
2667
|
} else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
|
|
2668
2668
|
const bKeys = util.objectKeys(b2);
|
|
2669
|
-
const sharedKeys = util.objectKeys(
|
|
2670
|
-
const newObj = { ...
|
|
2669
|
+
const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
2670
|
+
const newObj = { ...a, ...b2 };
|
|
2671
2671
|
for (const key of sharedKeys) {
|
|
2672
|
-
const sharedValue = mergeValues(
|
|
2672
|
+
const sharedValue = mergeValues(a[key], b2[key]);
|
|
2673
2673
|
if (!sharedValue.valid) {
|
|
2674
2674
|
return { valid: false };
|
|
2675
2675
|
}
|
|
@@ -2677,12 +2677,12 @@
|
|
|
2677
2677
|
}
|
|
2678
2678
|
return { valid: true, data: newObj };
|
|
2679
2679
|
} else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
|
|
2680
|
-
if (
|
|
2680
|
+
if (a.length !== b2.length) {
|
|
2681
2681
|
return { valid: false };
|
|
2682
2682
|
}
|
|
2683
2683
|
const newArray = [];
|
|
2684
|
-
for (let index = 0; index <
|
|
2685
|
-
const itemA =
|
|
2684
|
+
for (let index = 0; index < a.length; index++) {
|
|
2685
|
+
const itemA = a[index];
|
|
2686
2686
|
const itemB = b2[index];
|
|
2687
2687
|
const sharedValue = mergeValues(itemA, itemB);
|
|
2688
2688
|
if (!sharedValue.valid) {
|
|
@@ -2691,8 +2691,8 @@
|
|
|
2691
2691
|
newArray.push(sharedValue.data);
|
|
2692
2692
|
}
|
|
2693
2693
|
return { valid: true, data: newArray };
|
|
2694
|
-
} else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +
|
|
2695
|
-
return { valid: true, data:
|
|
2694
|
+
} else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b2) {
|
|
2695
|
+
return { valid: true, data: a };
|
|
2696
2696
|
} else {
|
|
2697
2697
|
return { valid: false };
|
|
2698
2698
|
}
|
|
@@ -3662,9 +3662,9 @@
|
|
|
3662
3662
|
}
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
3665
|
-
static create(
|
|
3665
|
+
static create(a, b2) {
|
|
3666
3666
|
return new ZodPipeline({
|
|
3667
|
-
in:
|
|
3667
|
+
in: a,
|
|
3668
3668
|
out: b2,
|
|
3669
3669
|
typeName: ZodFirstPartyTypeKind.ZodPipeline
|
|
3670
3670
|
});
|
|
@@ -3697,10 +3697,10 @@
|
|
|
3697
3697
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
3698
3698
|
var _a, _b;
|
|
3699
3699
|
if (!check(data)) {
|
|
3700
|
-
const
|
|
3701
|
-
const _fatal = (_b = (_a =
|
|
3702
|
-
const
|
|
3703
|
-
ctx.addIssue({ code: "custom", ...
|
|
3700
|
+
const p2 = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
3701
|
+
const _fatal = (_b = (_a = p2.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
|
3702
|
+
const p22 = typeof p2 === "string" ? { message: p2 } : p2;
|
|
3703
|
+
ctx.addIssue({ code: "custom", ...p22, fatal: _fatal });
|
|
3704
3704
|
}
|
|
3705
3705
|
});
|
|
3706
3706
|
return ZodAny.create();
|
|
@@ -3917,7 +3917,7 @@
|
|
|
3917
3917
|
function c$1(n) {
|
|
3918
3918
|
throw new Error("Unexpected object: " + n);
|
|
3919
3919
|
}
|
|
3920
|
-
function D(n, t) {
|
|
3920
|
+
function D$1(n, t) {
|
|
3921
3921
|
return { ...n, src: i(n.src, t) };
|
|
3922
3922
|
}
|
|
3923
3923
|
function i(n, t) {
|
|
@@ -3958,7 +3958,7 @@
|
|
|
3958
3958
|
function x$1(n) {
|
|
3959
3959
|
return r(n.spec);
|
|
3960
3960
|
}
|
|
3961
|
-
function B
|
|
3961
|
+
function B(n, t) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...n,
|
|
3964
3964
|
data: t(n.data)
|
|
@@ -3967,22 +3967,22 @@
|
|
|
3967
3967
|
function L(n, t) {
|
|
3968
3968
|
return n.ok ? { ok: true, value: t(n.value) } : n;
|
|
3969
3969
|
}
|
|
3970
|
-
var
|
|
3971
|
-
var
|
|
3972
|
-
var
|
|
3970
|
+
var E = Object.defineProperty;
|
|
3971
|
+
var j = (e, t, n) => t in e ? E(e, t, { enumerable: true, configurable: true, writable: true, value: n }) : e[t] = n;
|
|
3972
|
+
var c = (e, t, n) => j(e, typeof t != "symbol" ? t + "" : t, n);
|
|
3973
3973
|
function f(e) {
|
|
3974
3974
|
return { type: "Immediate", value: e };
|
|
3975
3975
|
}
|
|
3976
|
-
function
|
|
3976
|
+
function $() {
|
|
3977
3977
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
3978
3978
|
}
|
|
3979
|
-
function
|
|
3979
|
+
function x(e) {
|
|
3980
3980
|
if (e && typeof globalThis.getPlatforma == "function")
|
|
3981
3981
|
return globalThis.getPlatforma(e);
|
|
3982
3982
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
3983
3983
|
throw new Error("Can't get platforma instance.");
|
|
3984
3984
|
}
|
|
3985
|
-
function
|
|
3985
|
+
function M() {
|
|
3986
3986
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
3987
3987
|
}
|
|
3988
3988
|
function s() {
|
|
@@ -3990,31 +3990,31 @@
|
|
|
3990
3990
|
throw new Error("Not in config rendering context");
|
|
3991
3991
|
}
|
|
3992
3992
|
function y(e, t) {
|
|
3993
|
-
const n =
|
|
3993
|
+
const n = M();
|
|
3994
3994
|
if (n === void 0) return false;
|
|
3995
3995
|
if (e in n.callbackRegistry) throw new Error(`Callback with key ${e} already registered.`);
|
|
3996
3996
|
return n.callbackRegistry[e] = t, true;
|
|
3997
3997
|
}
|
|
3998
3998
|
const b = /* @__PURE__ */ new Map();
|
|
3999
|
-
function
|
|
3999
|
+
function K(e, t) {
|
|
4000
4000
|
e in s().callbackRegistry || (s().callbackRegistry[e] = (n) => {
|
|
4001
4001
|
for (const r2 of b.get(e))
|
|
4002
4002
|
r2(n);
|
|
4003
4003
|
}, b.set(e, [])), b.get(e).push(t);
|
|
4004
4004
|
}
|
|
4005
|
-
class
|
|
4005
|
+
class l {
|
|
4006
4006
|
constructor(t, n = (r2) => r2) {
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
this.handle = t, this.postProcess = n,
|
|
4007
|
+
c(this, "isResolved", false);
|
|
4008
|
+
c(this, "resolvedValue");
|
|
4009
|
+
this.handle = t, this.postProcess = n, K(t, (r2) => {
|
|
4010
4010
|
this.resolvedValue = n(r2), this.isResolved = true;
|
|
4011
4011
|
});
|
|
4012
4012
|
}
|
|
4013
4013
|
map(t) {
|
|
4014
|
-
return new
|
|
4014
|
+
return new l(this.handle, (n) => t(this.postProcess(n)));
|
|
4015
4015
|
}
|
|
4016
4016
|
mapDefined(t) {
|
|
4017
|
-
return new
|
|
4017
|
+
return new l(this.handle, (n) => {
|
|
4018
4018
|
const r2 = this.postProcess(n);
|
|
4019
4019
|
return r2 ? t(r2) : void 0;
|
|
4020
4020
|
});
|
|
@@ -4023,10 +4023,10 @@
|
|
|
4023
4023
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4024
4024
|
}
|
|
4025
4025
|
}
|
|
4026
|
-
function
|
|
4027
|
-
return e === void 0 ? void 0 : new
|
|
4026
|
+
function F(e) {
|
|
4027
|
+
return e === void 0 ? void 0 : new p(e);
|
|
4028
4028
|
}
|
|
4029
|
-
class
|
|
4029
|
+
class p {
|
|
4030
4030
|
constructor(t) {
|
|
4031
4031
|
this.handle = t;
|
|
4032
4032
|
}
|
|
@@ -4034,7 +4034,7 @@
|
|
|
4034
4034
|
return this.resolveWithCommon({}, ...t);
|
|
4035
4035
|
}
|
|
4036
4036
|
resolveWithCommon(t, ...n) {
|
|
4037
|
-
return
|
|
4037
|
+
return F(s().resolveWithCommon(this.handle, t, ...n));
|
|
4038
4038
|
}
|
|
4039
4039
|
get resourceType() {
|
|
4040
4040
|
return s().getResourceType(this.handle);
|
|
@@ -4052,7 +4052,7 @@
|
|
|
4052
4052
|
return s().getIsFinal(this.handle);
|
|
4053
4053
|
}
|
|
4054
4054
|
getError() {
|
|
4055
|
-
return
|
|
4055
|
+
return F(s().getError(this.handle));
|
|
4056
4056
|
}
|
|
4057
4057
|
listInputFields() {
|
|
4058
4058
|
return s().listInputFields(this.handle);
|
|
@@ -4090,9 +4090,9 @@
|
|
|
4090
4090
|
*/
|
|
4091
4091
|
getPColumns(t = false, n = "") {
|
|
4092
4092
|
const r2 = this.parsePObjectCollection(t, n);
|
|
4093
|
-
return r2 === void 0 ? void 0 : Object.entries(r2).map(([,
|
|
4094
|
-
if (!x$1(
|
|
4095
|
-
return
|
|
4093
|
+
return r2 === void 0 ? void 0 : Object.entries(r2).map(([, a]) => {
|
|
4094
|
+
if (!x$1(a)) throw new Error(`not a PColumn (kind = ${a.spec.kind})`);
|
|
4095
|
+
return a;
|
|
4096
4096
|
});
|
|
4097
4097
|
}
|
|
4098
4098
|
/**
|
|
@@ -4106,18 +4106,18 @@
|
|
|
4106
4106
|
);
|
|
4107
4107
|
if (r2 === void 0) return;
|
|
4108
4108
|
const i2 = {};
|
|
4109
|
-
for (const [
|
|
4110
|
-
i2[
|
|
4109
|
+
for (const [a, d] of Object.entries(r2))
|
|
4110
|
+
i2[a] = B(d, (u) => new p(u));
|
|
4111
4111
|
return i2;
|
|
4112
4112
|
}
|
|
4113
4113
|
getFileContentAsBase64() {
|
|
4114
|
-
return new
|
|
4114
|
+
return new l(s().getBlobContentAsBase64(this.handle));
|
|
4115
4115
|
}
|
|
4116
4116
|
getFileContentAsString() {
|
|
4117
|
-
return new
|
|
4117
|
+
return new l(s().getBlobContentAsString(this.handle));
|
|
4118
4118
|
}
|
|
4119
4119
|
getFileContentAsJson() {
|
|
4120
|
-
return new
|
|
4120
|
+
return new l(
|
|
4121
4121
|
s().getBlobContentAsString(this.handle)
|
|
4122
4122
|
).mapDefined((t) => JSON.parse(t));
|
|
4123
4123
|
}
|
|
@@ -4137,7 +4137,7 @@
|
|
|
4137
4137
|
* @returns downloaded file handle
|
|
4138
4138
|
*/
|
|
4139
4139
|
getFileHandle() {
|
|
4140
|
-
return new
|
|
4140
|
+
return new l(s().getDownloadedBlobContentHandle(this.handle));
|
|
4141
4141
|
}
|
|
4142
4142
|
/**
|
|
4143
4143
|
* @deprecated use getFileHandle
|
|
@@ -4149,7 +4149,7 @@
|
|
|
4149
4149
|
* @returns downloaded file handle
|
|
4150
4150
|
*/
|
|
4151
4151
|
getRemoteFileHandle() {
|
|
4152
|
-
return new
|
|
4152
|
+
return new l(s().getOnDemandBlobContentHandle(this.handle));
|
|
4153
4153
|
}
|
|
4154
4154
|
/**
|
|
4155
4155
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4158,23 +4158,23 @@
|
|
|
4158
4158
|
return this.getRemoteFileHandle();
|
|
4159
4159
|
}
|
|
4160
4160
|
getImportProgress() {
|
|
4161
|
-
return new
|
|
4161
|
+
return new l(s().getImportProgress(this.handle));
|
|
4162
4162
|
}
|
|
4163
4163
|
getLastLogs(t) {
|
|
4164
|
-
return new
|
|
4164
|
+
return new l(s().getLastLogs(this.handle, t));
|
|
4165
4165
|
}
|
|
4166
4166
|
getProgressLog(t) {
|
|
4167
|
-
return new
|
|
4167
|
+
return new l(s().getProgressLog(this.handle, t));
|
|
4168
4168
|
}
|
|
4169
4169
|
getLogHandle() {
|
|
4170
|
-
return new
|
|
4170
|
+
return new l(s().getLogHandle(this.handle));
|
|
4171
4171
|
}
|
|
4172
4172
|
}
|
|
4173
|
-
const
|
|
4174
|
-
class
|
|
4173
|
+
const R = "staging", V = "main";
|
|
4174
|
+
class U {
|
|
4175
4175
|
constructor() {
|
|
4176
|
-
|
|
4177
|
-
|
|
4176
|
+
c(this, "ctx", s());
|
|
4177
|
+
c(this, "defaultLabelFn", (t, n) => {
|
|
4178
4178
|
var r2;
|
|
4179
4179
|
return ((r2 = t.annotations) == null ? void 0 : r2["pl7.app/label"]) ?? "Unlabelled";
|
|
4180
4180
|
});
|
|
@@ -4205,7 +4205,7 @@
|
|
|
4205
4205
|
ref: n.ref,
|
|
4206
4206
|
obj: {
|
|
4207
4207
|
...n.obj,
|
|
4208
|
-
data: new
|
|
4208
|
+
data: new p(n.obj.data)
|
|
4209
4209
|
}
|
|
4210
4210
|
}))
|
|
4211
4211
|
};
|
|
@@ -4224,7 +4224,7 @@
|
|
|
4224
4224
|
ref: n.ref,
|
|
4225
4225
|
obj: {
|
|
4226
4226
|
...n.obj,
|
|
4227
|
-
data: L(n.obj.data, (r2) => new
|
|
4227
|
+
data: L(n.obj.data, (r2) => new p(r2))
|
|
4228
4228
|
}
|
|
4229
4229
|
}))
|
|
4230
4230
|
};
|
|
@@ -4244,7 +4244,9 @@
|
|
|
4244
4244
|
*/
|
|
4245
4245
|
getDataByRef(t) {
|
|
4246
4246
|
var n;
|
|
4247
|
-
return (n = this.getData().entries.find(
|
|
4247
|
+
return (n = this.getData().entries.find(
|
|
4248
|
+
(r2) => r2.ref.blockId === t.blockId && r2.ref.name === t.name
|
|
4249
|
+
)) == null ? void 0 : n.obj;
|
|
4248
4250
|
}
|
|
4249
4251
|
/**
|
|
4250
4252
|
* @param ref a Ref
|
|
@@ -4252,23 +4254,53 @@
|
|
|
4252
4254
|
*/
|
|
4253
4255
|
getSpecByRef(t) {
|
|
4254
4256
|
var n;
|
|
4255
|
-
return (n = this.getSpecs().entries.find(
|
|
4257
|
+
return (n = this.getSpecs().entries.find(
|
|
4258
|
+
(r2) => r2.ref.blockId === t.blockId && r2.ref.name === t.name
|
|
4259
|
+
)) == null ? void 0 : n.obj;
|
|
4256
4260
|
}
|
|
4261
|
+
/**
|
|
4262
|
+
* @param spec object specification
|
|
4263
|
+
* @returns array of data objects with compatible specs
|
|
4264
|
+
*/
|
|
4265
|
+
findDataWithCompatibleSpec(t) {
|
|
4266
|
+
const n = [];
|
|
4267
|
+
t: for (const r$1 of this.getData().entries) {
|
|
4268
|
+
if (!r(r$1.obj.spec))
|
|
4269
|
+
continue;
|
|
4270
|
+
const i2 = r$1.obj.spec;
|
|
4271
|
+
if (t.name === i2.name && t.valueType === i2.valueType && t.axesSpec.length === i2.axesSpec.length && D(t.domain, i2.domain)) {
|
|
4272
|
+
for (let a = 0; a < t.axesSpec.length; ++a) {
|
|
4273
|
+
const d = t.axesSpec[a], u = i2.axesSpec[a];
|
|
4274
|
+
if (d.name !== u.name || d.type !== u.type || !D(d.domain, u.domain))
|
|
4275
|
+
continue t;
|
|
4276
|
+
}
|
|
4277
|
+
n.push(r$1.obj);
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
return n;
|
|
4281
|
+
}
|
|
4282
|
+
}
|
|
4283
|
+
function D(e, t) {
|
|
4284
|
+
if (e === void 0) return t === void 0;
|
|
4285
|
+
if (t === void 0) return true;
|
|
4286
|
+
for (const n in t)
|
|
4287
|
+
if (e[n] !== t[n]) return false;
|
|
4288
|
+
return true;
|
|
4257
4289
|
}
|
|
4258
4290
|
class w {
|
|
4259
4291
|
constructor() {
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4292
|
+
c(this, "ctx");
|
|
4293
|
+
c(this, "args");
|
|
4294
|
+
c(this, "uiState");
|
|
4295
|
+
c(this, "resultPool", new U());
|
|
4264
4296
|
this.ctx = s(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : void 0;
|
|
4265
4297
|
}
|
|
4266
4298
|
getNamedAccessor(t) {
|
|
4267
4299
|
const n = this.ctx.getAccessorHandleByName(t);
|
|
4268
|
-
return n ? new
|
|
4300
|
+
return n ? new p(n) : void 0;
|
|
4269
4301
|
}
|
|
4270
4302
|
get prerun() {
|
|
4271
|
-
return this.getNamedAccessor(
|
|
4303
|
+
return this.getNamedAccessor(R);
|
|
4272
4304
|
}
|
|
4273
4305
|
/**
|
|
4274
4306
|
* @deprecated use prerun
|
|
@@ -4283,7 +4315,7 @@
|
|
|
4283
4315
|
return this.precalc;
|
|
4284
4316
|
}
|
|
4285
4317
|
get outputs() {
|
|
4286
|
-
return this.getNamedAccessor(
|
|
4318
|
+
return this.getNamedAccessor(V);
|
|
4287
4319
|
}
|
|
4288
4320
|
/**
|
|
4289
4321
|
* @deprecated use outputs
|
|
@@ -4292,7 +4324,7 @@
|
|
|
4292
4324
|
return this.outputs;
|
|
4293
4325
|
}
|
|
4294
4326
|
createPFrame(t) {
|
|
4295
|
-
return this.ctx.createPFrame(t.map((n) => B
|
|
4327
|
+
return this.ctx.createPFrame(t.map((n) => B(n, (r2) => r2.handle)));
|
|
4296
4328
|
}
|
|
4297
4329
|
createPTable(t) {
|
|
4298
4330
|
var n;
|
|
@@ -4303,20 +4335,20 @@
|
|
|
4303
4335
|
},
|
|
4304
4336
|
filters: t.filters ?? [],
|
|
4305
4337
|
sorting: t.sorting ?? []
|
|
4306
|
-
} : n = t, this.ctx.createPTable(D(n, (r2) => B
|
|
4338
|
+
} : n = t, this.ctx.createPTable(D$1(n, (r2) => B(r2, (i2) => i2.handle)));
|
|
4307
4339
|
}
|
|
4308
4340
|
getBlockLabel(t) {
|
|
4309
4341
|
return this.ctx.getBlockLabel(t);
|
|
4310
4342
|
}
|
|
4311
4343
|
}
|
|
4312
|
-
const
|
|
4313
|
-
class
|
|
4314
|
-
constructor(t, n, r2, i2,
|
|
4315
|
-
this._renderingMode = t, this._initialArgs = n, this._outputs = r2, this._inputsValid = i2, this._sections =
|
|
4344
|
+
const O = "1.8.19";
|
|
4345
|
+
class g {
|
|
4346
|
+
constructor(t, n, r2, i2, a) {
|
|
4347
|
+
this._renderingMode = t, this._initialArgs = n, this._outputs = r2, this._inputsValid = i2, this._sections = a;
|
|
4316
4348
|
}
|
|
4317
4349
|
/** Initiates configuration builder */
|
|
4318
4350
|
static create(t = "Heavy") {
|
|
4319
|
-
return new
|
|
4351
|
+
return new g(
|
|
4320
4352
|
t,
|
|
4321
4353
|
void 0,
|
|
4322
4354
|
{},
|
|
@@ -4327,7 +4359,7 @@
|
|
|
4327
4359
|
output(t, n) {
|
|
4328
4360
|
if (typeof n == "function") {
|
|
4329
4361
|
const r2 = `output#${t}`;
|
|
4330
|
-
return y(r2, () => n(new w())), new
|
|
4362
|
+
return y(r2, () => n(new w())), new g(
|
|
4331
4363
|
this._renderingMode,
|
|
4332
4364
|
this._initialArgs,
|
|
4333
4365
|
{
|
|
@@ -4338,7 +4370,7 @@
|
|
|
4338
4370
|
this._sections
|
|
4339
4371
|
);
|
|
4340
4372
|
} else
|
|
4341
|
-
return new
|
|
4373
|
+
return new g(
|
|
4342
4374
|
this._renderingMode,
|
|
4343
4375
|
this._initialArgs,
|
|
4344
4376
|
{
|
|
@@ -4354,13 +4386,13 @@
|
|
|
4354
4386
|
return this.inputsValid(t);
|
|
4355
4387
|
}
|
|
4356
4388
|
argsValid(t) {
|
|
4357
|
-
return typeof t == "function" ? (y("inputsValid", () => t(new w())), new
|
|
4389
|
+
return typeof t == "function" ? (y("inputsValid", () => t(new w())), new g(
|
|
4358
4390
|
this._renderingMode,
|
|
4359
4391
|
this._initialArgs,
|
|
4360
4392
|
this._outputs,
|
|
4361
4393
|
"inputsValid",
|
|
4362
4394
|
this._sections
|
|
4363
|
-
)) : new
|
|
4395
|
+
)) : new g(
|
|
4364
4396
|
this._renderingMode,
|
|
4365
4397
|
this._initialArgs,
|
|
4366
4398
|
this._outputs,
|
|
@@ -4372,13 +4404,13 @@
|
|
|
4372
4404
|
return this.argsValid(t);
|
|
4373
4405
|
}
|
|
4374
4406
|
sections(t) {
|
|
4375
|
-
return Array.isArray(t) ? this.sections(f(t)) : typeof t == "function" ? (y("sections", () => t(new w())), new
|
|
4407
|
+
return Array.isArray(t) ? this.sections(f(t)) : typeof t == "function" ? (y("sections", () => t(new w())), new g(
|
|
4376
4408
|
this._renderingMode,
|
|
4377
4409
|
this._initialArgs,
|
|
4378
4410
|
this._outputs,
|
|
4379
4411
|
this._inputsValid,
|
|
4380
4412
|
"sections"
|
|
4381
|
-
)) : new
|
|
4413
|
+
)) : new g(
|
|
4382
4414
|
this._renderingMode,
|
|
4383
4415
|
this._initialArgs,
|
|
4384
4416
|
this._outputs,
|
|
@@ -4388,7 +4420,7 @@
|
|
|
4388
4420
|
}
|
|
4389
4421
|
/** Sets initial args for the block, this value must be specified. */
|
|
4390
4422
|
initialArgs(t) {
|
|
4391
|
-
return new
|
|
4423
|
+
return new g(
|
|
4392
4424
|
this._renderingMode,
|
|
4393
4425
|
t,
|
|
4394
4426
|
this._outputs,
|
|
@@ -4402,20 +4434,20 @@
|
|
|
4402
4434
|
done() {
|
|
4403
4435
|
if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
|
|
4404
4436
|
const t = {
|
|
4405
|
-
sdkVersion:
|
|
4437
|
+
sdkVersion: O,
|
|
4406
4438
|
renderingMode: this._renderingMode,
|
|
4407
4439
|
initialArgs: this._initialArgs,
|
|
4408
4440
|
inputsValid: this._inputsValid,
|
|
4409
4441
|
sections: this._sections,
|
|
4410
4442
|
outputs: this._outputs
|
|
4411
4443
|
};
|
|
4412
|
-
return
|
|
4444
|
+
return $() ? x(t) : { config: t };
|
|
4413
4445
|
}
|
|
4414
4446
|
}
|
|
4415
4447
|
const $BlockArgs = z.object({
|
|
4416
4448
|
numbers: z.array(z.coerce.number())
|
|
4417
4449
|
});
|
|
4418
|
-
const platforma =
|
|
4450
|
+
const platforma = g.create("Heavy").initialArgs({ numbers: [] }).output(
|
|
4419
4451
|
"numbers",
|
|
4420
4452
|
(ctx) => {
|
|
4421
4453
|
var _a, _b;
|