@platforma-sdk/model 1.5.40 → 1.7.0
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/dist/components/PlDataTable.d.ts +11 -1
- package/dist/components/PlDataTable.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +198 -182
- package/dist/index.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/PlDataTable.ts +49 -1
- package/src/version.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { isPColumn as
|
|
1
|
+
var B = Object.defineProperty;
|
|
2
|
+
var E = (e, t, n) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var l = (e, t, n) => E(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { isPColumn as D, mapPObjectData as A, mapValueInVOE as L, mapPTableDef as j, getAxisId as F, matchAxisId as k } from "@milaboratories/pl-model-common";
|
|
5
5
|
export * from "@milaboratories/pl-model-common";
|
|
6
|
-
class
|
|
6
|
+
class H extends Error {
|
|
7
7
|
constructor(t, n) {
|
|
8
8
|
super(`${t.length}${n ? "+" : ""} errors, first error: ` + t[0]), this.errors = t, this.moreErrors = n;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
if (!e.ok) throw new
|
|
11
|
+
function J(e) {
|
|
12
|
+
if (!e.ok) throw new H(e.errors, e.moreErrors);
|
|
13
13
|
return e.value;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function q(e) {
|
|
16
16
|
return new Proxy(e, {
|
|
17
17
|
get(t, n) {
|
|
18
|
-
return
|
|
18
|
+
return J(t[n]);
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null ?
|
|
22
|
+
function o(e) {
|
|
23
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null ? f(e) : e;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function p(e) {
|
|
26
26
|
return { type: "GetFromCtx", variable: e };
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Q(e) {
|
|
29
29
|
return {
|
|
30
30
|
type: "Isolate",
|
|
31
31
|
cfg: e
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
function
|
|
34
|
+
const X = p("$args"), Y = p("$it"), Z = p("$prod"), tt = p("$staging"), et = p("$ui");
|
|
35
|
+
function f(e) {
|
|
36
36
|
return { type: "Immediate", value: e };
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function v(e) {
|
|
39
39
|
const t = {};
|
|
40
|
-
for (const [n, r] of Object.entries(e)) t[n] =
|
|
40
|
+
for (const [n, r] of Object.entries(e)) t[n] = o(r);
|
|
41
41
|
return {
|
|
42
42
|
type: "MakeObject",
|
|
43
43
|
template: t
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function nt(...e) {
|
|
47
47
|
const t = [];
|
|
48
|
-
for (const n of e) t.push(
|
|
48
|
+
for (const n of e) t.push(o(n));
|
|
49
49
|
return {
|
|
50
50
|
type: "MakeArray",
|
|
51
51
|
template: t
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function m(e, t) {
|
|
55
55
|
return {
|
|
56
56
|
type: "GetJsonField",
|
|
57
|
-
source:
|
|
58
|
-
field:
|
|
57
|
+
source: o(e),
|
|
58
|
+
field: o(t)
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function rt(e, t, n = "$it") {
|
|
62
62
|
return {
|
|
63
63
|
type: "MapRecordValues",
|
|
64
64
|
source: e,
|
|
@@ -66,7 +66,7 @@ function Y(e, t, n = "$it") {
|
|
|
66
66
|
itVar: n
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function st(e, t, n = "$it") {
|
|
70
70
|
return {
|
|
71
71
|
type: "MapArrayValues",
|
|
72
72
|
source: e,
|
|
@@ -74,54 +74,54 @@ function Z(e, t, n = "$it") {
|
|
|
74
74
|
itVar: n
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function it(e) {
|
|
78
78
|
return {
|
|
79
79
|
type: "Flatten",
|
|
80
80
|
source: e
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ot(e) {
|
|
84
84
|
return {
|
|
85
85
|
type: "IsEmpty",
|
|
86
86
|
arg: e
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function at(e) {
|
|
90
90
|
return {
|
|
91
91
|
type: "Not",
|
|
92
92
|
operand: e
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function ut(e, t) {
|
|
96
96
|
return {
|
|
97
97
|
type: "And",
|
|
98
98
|
operand1: e,
|
|
99
99
|
operand2: t
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function lt(e, t) {
|
|
103
103
|
return {
|
|
104
104
|
type: "Or",
|
|
105
105
|
operand1: e,
|
|
106
106
|
operand2: t
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ct(e, t) {
|
|
110
110
|
return {
|
|
111
111
|
type: "GetResourceField",
|
|
112
|
-
source:
|
|
113
|
-
field:
|
|
112
|
+
source: o(e),
|
|
113
|
+
field: o(t)
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function gt() {
|
|
117
117
|
return function(e) {
|
|
118
118
|
return {
|
|
119
119
|
type: "GetResourceValueAsJson",
|
|
120
|
-
source:
|
|
120
|
+
source: o(e)
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function dt(e, t, n = "$it") {
|
|
125
125
|
return {
|
|
126
126
|
type: "MapResourceFields",
|
|
127
127
|
source: e,
|
|
@@ -129,98 +129,98 @@ function at(e, t, n = "$it") {
|
|
|
129
129
|
itVar: n
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function pt(e) {
|
|
133
133
|
return {
|
|
134
134
|
type: "GetBlobContent",
|
|
135
|
-
source:
|
|
135
|
+
source: o(e)
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ht(e) {
|
|
139
139
|
return {
|
|
140
140
|
type: "GetBlobContentAsString",
|
|
141
|
-
source:
|
|
141
|
+
source: o(e)
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function ft() {
|
|
145
145
|
return function(e) {
|
|
146
146
|
return {
|
|
147
147
|
type: "GetBlobContentAsJson",
|
|
148
|
-
source:
|
|
148
|
+
source: o(e)
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function mt(e) {
|
|
153
153
|
return {
|
|
154
154
|
type: "GetDownloadedBlobContent",
|
|
155
|
-
source:
|
|
155
|
+
source: o(e)
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function yt(e) {
|
|
159
159
|
return {
|
|
160
160
|
type: "GetOnDemandBlobContent",
|
|
161
|
-
source:
|
|
161
|
+
source: o(e)
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function bt(e) {
|
|
165
165
|
return {
|
|
166
166
|
type: "GetImportProgress",
|
|
167
|
-
source:
|
|
167
|
+
source: o(e)
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function wt(e, t) {
|
|
171
171
|
return {
|
|
172
172
|
type: "GetLastLogs",
|
|
173
|
-
source:
|
|
173
|
+
source: o(e),
|
|
174
174
|
lines: t
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function At(e, t) {
|
|
178
178
|
return {
|
|
179
179
|
type: "GetProgressLog",
|
|
180
|
-
source:
|
|
180
|
+
source: o(e),
|
|
181
181
|
patternToSearch: t
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ct(e) {
|
|
185
185
|
return {
|
|
186
186
|
type: "GetLogHandle",
|
|
187
|
-
source:
|
|
187
|
+
source: o(e)
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function G() {
|
|
191
191
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function R(e) {
|
|
194
194
|
if (e && typeof globalThis.getPlatforma == "function")
|
|
195
195
|
return globalThis.getPlatforma(e);
|
|
196
196
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
197
197
|
throw new Error("Can't get platforma instance.");
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function N() {
|
|
200
200
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
201
201
|
}
|
|
202
202
|
function s() {
|
|
203
203
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
204
204
|
throw new Error("Not in config rendering context");
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const n =
|
|
206
|
+
function y(e, t) {
|
|
207
|
+
const n = N();
|
|
208
208
|
if (n === void 0) return !1;
|
|
209
209
|
if (e in n.callbackRegistry) throw new Error(`Callback with key ${e} already registered.`);
|
|
210
210
|
return n.callbackRegistry[e] = t, !0;
|
|
211
211
|
}
|
|
212
|
-
const
|
|
213
|
-
function
|
|
212
|
+
const b = /* @__PURE__ */ new Map();
|
|
213
|
+
function $(e, t) {
|
|
214
214
|
e in s().callbackRegistry || (s().callbackRegistry[e] = (n) => {
|
|
215
|
-
for (const r of
|
|
215
|
+
for (const r of b.get(e))
|
|
216
216
|
r(n);
|
|
217
|
-
},
|
|
217
|
+
}, b.set(e, [])), b.get(e).push(t);
|
|
218
218
|
}
|
|
219
219
|
class a {
|
|
220
220
|
constructor(t, n = (r) => r) {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
this.handle = t, this.postProcess = n,
|
|
221
|
+
l(this, "isResolved", !1);
|
|
222
|
+
l(this, "resolvedValue");
|
|
223
|
+
this.handle = t, this.postProcess = n, $(t, (r) => {
|
|
224
224
|
this.resolvedValue = n(r), this.isResolved = !0;
|
|
225
225
|
});
|
|
226
226
|
}
|
|
@@ -237,10 +237,10 @@ class a {
|
|
|
237
237
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
return e === void 0 ? void 0 : new
|
|
240
|
+
function P(e) {
|
|
241
|
+
return e === void 0 ? void 0 : new d(e);
|
|
242
242
|
}
|
|
243
|
-
class
|
|
243
|
+
class d {
|
|
244
244
|
constructor(t) {
|
|
245
245
|
this.handle = t;
|
|
246
246
|
}
|
|
@@ -248,7 +248,7 @@ class g {
|
|
|
248
248
|
return this.resolveWithCommon({}, ...t);
|
|
249
249
|
}
|
|
250
250
|
resolveWithCommon(t, ...n) {
|
|
251
|
-
return
|
|
251
|
+
return P(s().resolveWithCommon(this.handle, t, ...n));
|
|
252
252
|
}
|
|
253
253
|
get resourceType() {
|
|
254
254
|
return s().getResourceType(this.handle);
|
|
@@ -266,7 +266,7 @@ class g {
|
|
|
266
266
|
return s().getIsFinal(this.handle);
|
|
267
267
|
}
|
|
268
268
|
getError() {
|
|
269
|
-
return
|
|
269
|
+
return P(s().getError(this.handle));
|
|
270
270
|
}
|
|
271
271
|
listInputFields() {
|
|
272
272
|
return s().listInputFields(this.handle);
|
|
@@ -304,9 +304,9 @@ class g {
|
|
|
304
304
|
*/
|
|
305
305
|
getPColumns(t = !1, n = "") {
|
|
306
306
|
const r = this.parsePObjectCollection(t, n);
|
|
307
|
-
return r === void 0 ? void 0 : Object.entries(r).map(([,
|
|
308
|
-
if (!
|
|
309
|
-
return
|
|
307
|
+
return r === void 0 ? void 0 : Object.entries(r).map(([, u]) => {
|
|
308
|
+
if (!D(u)) throw new Error(`not a PColumn (kind = ${u.spec.kind})`);
|
|
309
|
+
return u;
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
/**
|
|
@@ -319,10 +319,10 @@ class g {
|
|
|
319
319
|
n
|
|
320
320
|
);
|
|
321
321
|
if (r === void 0) return;
|
|
322
|
-
const
|
|
323
|
-
for (const [
|
|
324
|
-
|
|
325
|
-
return
|
|
322
|
+
const i = {};
|
|
323
|
+
for (const [u, h] of Object.entries(r))
|
|
324
|
+
i[u] = A(h, (g) => new d(g));
|
|
325
|
+
return i;
|
|
326
326
|
}
|
|
327
327
|
getFileContentAsBase64() {
|
|
328
328
|
return new a(s().getBlobContentAsBase64(this.handle));
|
|
@@ -384,35 +384,35 @@ class g {
|
|
|
384
384
|
return new a(s().getLogHandle(this.handle));
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
const
|
|
388
|
-
function
|
|
387
|
+
const V = "staging", I = "main";
|
|
388
|
+
function S(e) {
|
|
389
389
|
return typeof e == "object" && e !== null && "__awaited_futures__" in e;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function C(e, t, n) {
|
|
392
392
|
if (t.has(n)) return;
|
|
393
393
|
if (t.add(n), typeof n === "object")
|
|
394
|
-
if (
|
|
394
|
+
if (S(n)) n.__awaited_futures__.forEach((i) => e.add(i));
|
|
395
395
|
else if (Array.isArray(n))
|
|
396
|
-
for (const
|
|
396
|
+
for (const i of n) C(e, t, i);
|
|
397
397
|
else
|
|
398
|
-
for (const [,
|
|
399
|
-
|
|
398
|
+
for (const [, i] of Object.entries(n))
|
|
399
|
+
i !== n && C(e, t, i);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function M(e) {
|
|
402
402
|
const t = /* @__PURE__ */ new Set();
|
|
403
|
-
return
|
|
403
|
+
return C(t, /* @__PURE__ */ new Set(), e), t;
|
|
404
404
|
}
|
|
405
|
-
const
|
|
405
|
+
const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
406
406
|
__proto__: null,
|
|
407
|
-
MainAccessorName:
|
|
408
|
-
StagingAccessorName:
|
|
409
|
-
getAllFutureAwaits:
|
|
410
|
-
isFutureAwait:
|
|
407
|
+
MainAccessorName: I,
|
|
408
|
+
StagingAccessorName: V,
|
|
409
|
+
getAllFutureAwaits: M,
|
|
410
|
+
isFutureAwait: S
|
|
411
411
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
412
|
-
class
|
|
412
|
+
class K {
|
|
413
413
|
constructor() {
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
l(this, "ctx", s());
|
|
415
|
+
l(this, "defaultLabelFn", (t, n) => {
|
|
416
416
|
var r;
|
|
417
417
|
return ((r = t.annotations) == null ? void 0 : r["pl7.app/label"]) ?? "Unlabelled";
|
|
418
418
|
});
|
|
@@ -443,7 +443,7 @@ class J {
|
|
|
443
443
|
ref: n.ref,
|
|
444
444
|
obj: {
|
|
445
445
|
...n.obj,
|
|
446
|
-
data: new
|
|
446
|
+
data: new d(n.obj.data)
|
|
447
447
|
}
|
|
448
448
|
}))
|
|
449
449
|
};
|
|
@@ -462,7 +462,7 @@ class J {
|
|
|
462
462
|
ref: n.ref,
|
|
463
463
|
obj: {
|
|
464
464
|
...n.obj,
|
|
465
|
-
data:
|
|
465
|
+
data: L(n.obj.data, (r) => new d(r))
|
|
466
466
|
}
|
|
467
467
|
}))
|
|
468
468
|
};
|
|
@@ -493,20 +493,20 @@ class J {
|
|
|
493
493
|
return (n = this.getSpecs().entries.find((r) => r.ref.blockId === t.blockId && r.ref.name === t.name)) == null ? void 0 : n.obj;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
class
|
|
496
|
+
class w {
|
|
497
497
|
constructor() {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
498
|
+
l(this, "ctx");
|
|
499
|
+
l(this, "args");
|
|
500
|
+
l(this, "uiState");
|
|
501
|
+
l(this, "resultPool", new K());
|
|
502
502
|
this.ctx = s(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : void 0;
|
|
503
503
|
}
|
|
504
504
|
getNamedAccessor(t) {
|
|
505
505
|
const n = this.ctx.getAccessorHandleByName(t);
|
|
506
|
-
return n ? new
|
|
506
|
+
return n ? new d(n) : void 0;
|
|
507
507
|
}
|
|
508
508
|
get prerun() {
|
|
509
|
-
return this.getNamedAccessor(
|
|
509
|
+
return this.getNamedAccessor(V);
|
|
510
510
|
}
|
|
511
511
|
/**
|
|
512
512
|
* @deprecated use prerun
|
|
@@ -521,7 +521,7 @@ class y {
|
|
|
521
521
|
return this.precalc;
|
|
522
522
|
}
|
|
523
523
|
get outputs() {
|
|
524
|
-
return this.getNamedAccessor(
|
|
524
|
+
return this.getNamedAccessor(I);
|
|
525
525
|
}
|
|
526
526
|
/**
|
|
527
527
|
* @deprecated use outputs
|
|
@@ -530,7 +530,7 @@ class y {
|
|
|
530
530
|
return this.outputs;
|
|
531
531
|
}
|
|
532
532
|
createPFrame(t) {
|
|
533
|
-
return this.ctx.createPFrame(t.map((n) =>
|
|
533
|
+
return this.ctx.createPFrame(t.map((n) => A(n, (r) => r.handle)));
|
|
534
534
|
}
|
|
535
535
|
createPTable(t) {
|
|
536
536
|
var n;
|
|
@@ -541,17 +541,17 @@ class y {
|
|
|
541
541
|
},
|
|
542
542
|
filters: t.filters ?? [],
|
|
543
543
|
sorting: t.sorting ?? []
|
|
544
|
-
} : n = t, this.ctx.createPTable(
|
|
544
|
+
} : n = t, this.ctx.createPTable(j(n, (r) => A(r, (i) => i.handle)));
|
|
545
545
|
}
|
|
546
546
|
getBlockLabel(t) {
|
|
547
547
|
return this.ctx.getBlockLabel(t);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
const
|
|
551
|
-
function
|
|
550
|
+
const x = "1.7.0";
|
|
551
|
+
function Ft(e) {
|
|
552
552
|
return typeof e == "string";
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Pt(e) {
|
|
555
555
|
if (e.inputsValid !== void 0) return e;
|
|
556
556
|
{
|
|
557
557
|
if (e.canRun === void 0)
|
|
@@ -560,24 +560,24 @@ function wt(e) {
|
|
|
560
560
|
return delete t.canRun, t;
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
class
|
|
564
|
-
constructor(t, n, r,
|
|
565
|
-
this._renderingMode = t, this._initialArgs = n, this._outputs = r, this._inputsValid =
|
|
563
|
+
class c {
|
|
564
|
+
constructor(t, n, r, i, u) {
|
|
565
|
+
this._renderingMode = t, this._initialArgs = n, this._outputs = r, this._inputsValid = i, this._sections = u;
|
|
566
566
|
}
|
|
567
567
|
/** Initiates configuration builder */
|
|
568
568
|
static create(t = "Heavy") {
|
|
569
|
-
return new
|
|
569
|
+
return new c(
|
|
570
570
|
t,
|
|
571
571
|
void 0,
|
|
572
572
|
{},
|
|
573
|
-
|
|
574
|
-
|
|
573
|
+
f(!0),
|
|
574
|
+
f([])
|
|
575
575
|
);
|
|
576
576
|
}
|
|
577
577
|
output(t, n) {
|
|
578
578
|
if (typeof n == "function") {
|
|
579
579
|
const r = `output#${t}`;
|
|
580
|
-
return
|
|
580
|
+
return y(r, () => n(new w())), new c(
|
|
581
581
|
this._renderingMode,
|
|
582
582
|
this._initialArgs,
|
|
583
583
|
{
|
|
@@ -588,7 +588,7 @@ class l {
|
|
|
588
588
|
this._sections
|
|
589
589
|
);
|
|
590
590
|
} else
|
|
591
|
-
return new
|
|
591
|
+
return new c(
|
|
592
592
|
this._renderingMode,
|
|
593
593
|
this._initialArgs,
|
|
594
594
|
{
|
|
@@ -604,13 +604,13 @@ class l {
|
|
|
604
604
|
return this.inputsValid(t);
|
|
605
605
|
}
|
|
606
606
|
argsValid(t) {
|
|
607
|
-
return typeof t == "function" ? (
|
|
607
|
+
return typeof t == "function" ? (y("inputsValid", () => t(new w())), new c(
|
|
608
608
|
this._renderingMode,
|
|
609
609
|
this._initialArgs,
|
|
610
610
|
this._outputs,
|
|
611
611
|
"inputsValid",
|
|
612
612
|
this._sections
|
|
613
|
-
)) : new
|
|
613
|
+
)) : new c(
|
|
614
614
|
this._renderingMode,
|
|
615
615
|
this._initialArgs,
|
|
616
616
|
this._outputs,
|
|
@@ -622,13 +622,13 @@ class l {
|
|
|
622
622
|
return this.argsValid(t);
|
|
623
623
|
}
|
|
624
624
|
sections(t) {
|
|
625
|
-
return Array.isArray(t) ? this.sections(
|
|
625
|
+
return Array.isArray(t) ? this.sections(f(t)) : typeof t == "function" ? (y("sections", () => t(new w())), new c(
|
|
626
626
|
this._renderingMode,
|
|
627
627
|
this._initialArgs,
|
|
628
628
|
this._outputs,
|
|
629
629
|
this._inputsValid,
|
|
630
630
|
"sections"
|
|
631
|
-
)) : new
|
|
631
|
+
)) : new c(
|
|
632
632
|
this._renderingMode,
|
|
633
633
|
this._initialArgs,
|
|
634
634
|
this._outputs,
|
|
@@ -638,7 +638,7 @@ class l {
|
|
|
638
638
|
}
|
|
639
639
|
/** Sets initial args for the block, this value must be specified. */
|
|
640
640
|
initialArgs(t) {
|
|
641
|
-
return new
|
|
641
|
+
return new c(
|
|
642
642
|
this._renderingMode,
|
|
643
643
|
t,
|
|
644
644
|
this._outputs,
|
|
@@ -652,17 +652,32 @@ class l {
|
|
|
652
652
|
done() {
|
|
653
653
|
if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
|
|
654
654
|
const t = {
|
|
655
|
-
sdkVersion:
|
|
655
|
+
sdkVersion: x,
|
|
656
656
|
renderingMode: this._renderingMode,
|
|
657
657
|
initialArgs: this._initialArgs,
|
|
658
658
|
inputsValid: this._inputsValid,
|
|
659
659
|
sections: this._sections,
|
|
660
660
|
outputs: this._outputs
|
|
661
661
|
};
|
|
662
|
-
return
|
|
662
|
+
return G() ? R(t) : { config: t };
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
|
|
665
|
+
function Dt(e, t, n) {
|
|
666
|
+
var u, h;
|
|
667
|
+
const r = e.resultPool.getData().entries.map((g) => g.obj).filter(D).filter((g) => g.spec.name === "pl7.app/label" && g.spec.axesSpec.length === 1), i = [];
|
|
668
|
+
for (const g of t)
|
|
669
|
+
for (const O of g.spec.axesSpec) {
|
|
670
|
+
const T = F(O);
|
|
671
|
+
for (const _ of r)
|
|
672
|
+
k(T, F(_.spec.axesSpec[0])) && i.push(_);
|
|
673
|
+
}
|
|
674
|
+
return e.createPTable({
|
|
675
|
+
columns: [...t, ...i],
|
|
676
|
+
filters: (u = n == null ? void 0 : n.pTableParams) == null ? void 0 : u.filters,
|
|
677
|
+
sorting: (h = n == null ? void 0 : n.pTableParams) == null ? void 0 : h.sorting
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
class vt {
|
|
666
681
|
constructor(t) {
|
|
667
682
|
this.handle = t;
|
|
668
683
|
}
|
|
@@ -682,76 +697,77 @@ class At {
|
|
|
682
697
|
return await platforma.pFrameDriver.getUniqueValues(this.handle, t);
|
|
683
698
|
}
|
|
684
699
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
700
|
+
function W(e) {
|
|
701
|
+
return v({
|
|
687
702
|
__isRef: !0,
|
|
688
|
-
blockId:
|
|
689
|
-
name:
|
|
703
|
+
blockId: m(e, "blockId"),
|
|
704
|
+
name: m(e, "name")
|
|
690
705
|
});
|
|
691
706
|
}
|
|
692
|
-
function
|
|
693
|
-
return
|
|
694
|
-
ref:
|
|
695
|
-
label:
|
|
707
|
+
function Rt(e) {
|
|
708
|
+
return v({
|
|
709
|
+
ref: W(m(e, "ref")),
|
|
710
|
+
label: m(e, "label")
|
|
696
711
|
});
|
|
697
712
|
}
|
|
698
|
-
const
|
|
699
|
-
sdkVersion:
|
|
713
|
+
const Vt = {
|
|
714
|
+
sdkVersion: x
|
|
700
715
|
};
|
|
701
|
-
function
|
|
702
|
-
return
|
|
716
|
+
function It() {
|
|
717
|
+
return R();
|
|
703
718
|
}
|
|
704
719
|
function St(e) {
|
|
705
720
|
if (typeof globalThis.getEnvironmentValue == "function")
|
|
706
721
|
return globalThis.getEnvironmentValue(e);
|
|
707
722
|
}
|
|
708
723
|
export {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
724
|
+
X as Args,
|
|
725
|
+
c as BlockModel,
|
|
726
|
+
Vt as CurrentSdkInfo,
|
|
712
727
|
a as FutureRef,
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
728
|
+
Y as It,
|
|
729
|
+
_t as JsRenderInternal,
|
|
730
|
+
Z as MainOutputs,
|
|
731
|
+
H as OutputError,
|
|
732
|
+
vt as PFrameImpl,
|
|
733
|
+
w as RenderCtx,
|
|
734
|
+
K as ResultPool,
|
|
735
|
+
tt as StagingOutputs,
|
|
736
|
+
d as TreeNodeAccessor,
|
|
737
|
+
et as UiState,
|
|
738
|
+
ut as and,
|
|
739
|
+
Dt as createPlDataTable,
|
|
740
|
+
it as flatten,
|
|
741
|
+
Rt as fromPlOption,
|
|
742
|
+
W as fromPlRef,
|
|
743
|
+
pt as getBlobContent,
|
|
744
|
+
ft as getBlobContentAsJson,
|
|
745
|
+
ht as getBlobContentAsString,
|
|
746
|
+
mt as getDownloadedBlobContent,
|
|
731
747
|
St as getEnvironmentValue,
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
748
|
+
p as getFromCfg,
|
|
749
|
+
f as getImmediate,
|
|
750
|
+
bt as getImportProgress,
|
|
751
|
+
m as getJsonField,
|
|
752
|
+
wt as getLastLogs,
|
|
753
|
+
Ct as getLogHandle,
|
|
754
|
+
yt as getOnDemandBlobContent,
|
|
755
|
+
At as getProgressLog,
|
|
756
|
+
It as getRawPlatformaInstance,
|
|
757
|
+
ct as getResourceField,
|
|
758
|
+
gt as getResourceValueAsJson,
|
|
759
|
+
ot as isEmpty,
|
|
760
|
+
Ft as isFunctionHandle,
|
|
761
|
+
Q as isolate,
|
|
762
|
+
nt as makeArray,
|
|
763
|
+
v as makeObject,
|
|
764
|
+
st as mapArrayValues,
|
|
765
|
+
rt as mapRecordValues,
|
|
766
|
+
dt as mapResourceFields,
|
|
767
|
+
Pt as normalizeBlockConfig,
|
|
768
|
+
at as not,
|
|
769
|
+
lt as or,
|
|
770
|
+
J as readOutput,
|
|
771
|
+
q as wrapOutputs
|
|
756
772
|
};
|
|
757
773
|
//# sourceMappingURL=index.mjs.map
|