@platforma-sdk/model 1.42.15 → 1.42.16
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/PFrameForGraphs.d.ts +5 -8
- package/dist/components/PFrameForGraphs.d.ts.map +1 -1
- package/dist/components/PlDataTable.d.ts +3 -3
- package/dist/components/PlDataTable.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +639 -669
- package/dist/index.mjs.map +1 -1
- package/dist/render/api.d.ts.map +1 -1
- package/dist/render/util/column_collection.d.ts.map +1 -1
- package/dist/render/util/label.d.ts +0 -2
- package/dist/render/util/label.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/PFrameForGraphs.test.ts +20 -21
- package/src/components/PFrameForGraphs.ts +56 -75
- package/src/components/PlDataTable.ts +9 -6
- package/src/components/PlMultiSequenceAlignment.ts +9 -5
- package/src/render/api.ts +4 -2
- package/src/render/util/column_collection.ts +3 -2
- package/src/render/util/label.test.ts +4 -4
- package/src/render/util/label.ts +4 -7
package/dist/index.mjs
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var V = (t, e, n) =>
|
|
4
|
-
import { isPColumn as
|
|
1
|
+
var at = Object.defineProperty;
|
|
2
|
+
var lt = (t, e, n) => e in t ? at(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var V = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { isPColumn as $e, mapPObjectData as xe, readAnnotation as J, Annotation as R, parseJson as ut, isDataInfoEntries as Je, isDataInfo as pe, dataInfoToEntries as ct, selectorsToPredicate as Y, resolveAnchors as Ee, deriveNativeId as pt, isPColumnSpec as oe, isPartitionedDataInfoEntries as dt, getAxisId as F, entriesToDataInfo as ft, canonicalizeAxisId as ht, withEnrichments as Ve, AnchoredIdDeriver as ke, isPlRef as mt, mapValueInVOE as yt, ensurePColumn as gt, PColumnName as de, extractAllColumns as bt, mapPTableDef as vt, mapDataInfo as Ct, extractConfigGeneric as Tt, matchAxisId as U, getColumnIdAndSpec as ve, canonicalizeJson as D, readAnnotationJson as St, LinkerMap as Pt, getArrayFromAxisTree as At, getAxesTree as wt, visitDataInfo as Ft, getNormalizedAxesList as he, stringifyJson as Be, isPTableAbsent as xt, ValueType as It, uniquePlId as _t } from "@milaboratories/pl-model-common";
|
|
5
5
|
export * from "@milaboratories/pl-model-common";
|
|
6
|
-
import
|
|
7
|
-
import { z as
|
|
6
|
+
import We from "canonicalize";
|
|
7
|
+
import { z as M } from "zod";
|
|
8
8
|
export * from "@milaboratories/pl-error-like";
|
|
9
|
-
class
|
|
9
|
+
class Lt extends Error {
|
|
10
10
|
constructor(e, n) {
|
|
11
11
|
super(`${e.length}${n ? "+" : ""} errors, first error: ` + e[0].message), this.errors = e, this.moreErrors = n;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
if (!t.ok) throw new
|
|
14
|
+
function Et(t) {
|
|
15
|
+
if (!t.ok) throw new Lt(t.errors, t.moreErrors);
|
|
16
16
|
return t.value;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function bn(t) {
|
|
19
19
|
return new Proxy(t, {
|
|
20
20
|
get(e, n) {
|
|
21
|
-
return
|
|
21
|
+
return Et(e[n]);
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function A(t) {
|
|
26
26
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null ? se(t) : t;
|
|
27
27
|
}
|
|
28
28
|
function Z(t) {
|
|
29
29
|
return { type: "GetFromCtx", variable: t };
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function vn(t) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Isolate",
|
|
34
34
|
cfg: t
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const Cn = Z("$args"), Tn = Z("$it"), Sn = Z("$prod"), Pn = Z("$staging"), An = Z("$ui");
|
|
38
38
|
function se(t) {
|
|
39
39
|
return { type: "Immediate", value: t };
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ge(t) {
|
|
42
42
|
const e = {};
|
|
43
|
-
for (const [n, r] of Object.entries(t)) e[n] =
|
|
43
|
+
for (const [n, r] of Object.entries(t)) e[n] = A(r);
|
|
44
44
|
return {
|
|
45
45
|
type: "MakeObject",
|
|
46
46
|
template: e
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function wn(...t) {
|
|
50
50
|
const e = [];
|
|
51
|
-
for (const n of t) e.push(
|
|
51
|
+
for (const n of t) e.push(A(n));
|
|
52
52
|
return {
|
|
53
53
|
type: "MakeArray",
|
|
54
54
|
template: e
|
|
@@ -57,11 +57,11 @@ function Tn(...t) {
|
|
|
57
57
|
function ae(t, e) {
|
|
58
58
|
return {
|
|
59
59
|
type: "GetJsonField",
|
|
60
|
-
source:
|
|
61
|
-
field:
|
|
60
|
+
source: A(t),
|
|
61
|
+
field: A(e)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Fn(t, e, n = "$it") {
|
|
65
65
|
return {
|
|
66
66
|
type: "MapRecordValues",
|
|
67
67
|
source: t,
|
|
@@ -69,7 +69,7 @@ function Sn(t, e, n = "$it") {
|
|
|
69
69
|
itVar: n
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function xn(t, e, n = "$it") {
|
|
73
73
|
return {
|
|
74
74
|
type: "MapArrayValues",
|
|
75
75
|
source: t,
|
|
@@ -77,54 +77,54 @@ function Pn(t, e, n = "$it") {
|
|
|
77
77
|
itVar: n
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function In(t) {
|
|
81
81
|
return {
|
|
82
82
|
type: "Flatten",
|
|
83
83
|
source: t
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function _n(t) {
|
|
87
87
|
return {
|
|
88
88
|
type: "IsEmpty",
|
|
89
89
|
arg: t
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ln(t) {
|
|
93
93
|
return {
|
|
94
94
|
type: "Not",
|
|
95
95
|
operand: t
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function En(t, e) {
|
|
99
99
|
return {
|
|
100
100
|
type: "And",
|
|
101
101
|
operand1: t,
|
|
102
102
|
operand2: e
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Vn(t, e) {
|
|
106
106
|
return {
|
|
107
107
|
type: "Or",
|
|
108
108
|
operand1: t,
|
|
109
109
|
operand2: e
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function kn(t, e) {
|
|
113
113
|
return {
|
|
114
114
|
type: "GetResourceField",
|
|
115
|
-
source:
|
|
116
|
-
field:
|
|
115
|
+
source: A(t),
|
|
116
|
+
field: A(e)
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Dn() {
|
|
120
120
|
return function(t) {
|
|
121
121
|
return {
|
|
122
122
|
type: "GetResourceValueAsJson",
|
|
123
|
-
source:
|
|
123
|
+
source: A(t)
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function On(t, e, n = "$it") {
|
|
128
128
|
return {
|
|
129
129
|
type: "MapResourceFields",
|
|
130
130
|
source: t,
|
|
@@ -132,115 +132,115 @@ function En(t, e, n = "$it") {
|
|
|
132
132
|
itVar: n
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Rn(t, e) {
|
|
136
136
|
return {
|
|
137
137
|
type: "GetBlobContent",
|
|
138
138
|
range: e,
|
|
139
|
-
source:
|
|
139
|
+
source: A(t)
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Nn(t, e) {
|
|
143
143
|
return {
|
|
144
144
|
type: "GetBlobContentAsString",
|
|
145
145
|
range: e,
|
|
146
|
-
source:
|
|
146
|
+
source: A(t)
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Un() {
|
|
150
150
|
return function(t, e) {
|
|
151
151
|
return {
|
|
152
152
|
type: "GetBlobContentAsJson",
|
|
153
153
|
range: e,
|
|
154
|
-
source:
|
|
154
|
+
source: A(t)
|
|
155
155
|
};
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Kn(t) {
|
|
159
159
|
return {
|
|
160
160
|
type: "GetDownloadedBlobContent",
|
|
161
|
-
source:
|
|
161
|
+
source: A(t)
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function qn(t) {
|
|
165
165
|
return {
|
|
166
166
|
type: "GetOnDemandBlobContent",
|
|
167
|
-
source:
|
|
167
|
+
source: A(t)
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function jn(t, e) {
|
|
171
171
|
return {
|
|
172
172
|
type: "ExtractArchiveAndGetURL",
|
|
173
173
|
format: e,
|
|
174
|
-
source:
|
|
174
|
+
source: A(t)
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Mn(t) {
|
|
178
178
|
return {
|
|
179
179
|
type: "GetImportProgress",
|
|
180
|
-
source:
|
|
180
|
+
source: A(t)
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function $n(t, e) {
|
|
184
184
|
return {
|
|
185
185
|
type: "GetLastLogs",
|
|
186
|
-
source:
|
|
186
|
+
source: A(t),
|
|
187
187
|
lines: e
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Jn(t, e) {
|
|
191
191
|
return {
|
|
192
192
|
type: "GetProgressLog",
|
|
193
|
-
source:
|
|
193
|
+
source: A(t),
|
|
194
194
|
patternToSearch: e
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Bn(t, e) {
|
|
198
198
|
return {
|
|
199
199
|
type: "GetProgressLogWithInfo",
|
|
200
|
-
source:
|
|
200
|
+
source: A(t),
|
|
201
201
|
patternToSearch: e
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Wn(t) {
|
|
205
205
|
return {
|
|
206
206
|
type: "GetLogHandle",
|
|
207
|
-
source:
|
|
207
|
+
source: A(t)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Vt() {
|
|
211
211
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function He(t) {
|
|
214
214
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
215
215
|
return globalThis.getPlatforma(t);
|
|
216
216
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
217
217
|
throw new Error("Can't get platforma instance.");
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function kt() {
|
|
220
220
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function v() {
|
|
223
223
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
224
224
|
throw new Error("Not in config rendering context");
|
|
225
225
|
}
|
|
226
226
|
function G(t, e) {
|
|
227
|
-
const n =
|
|
227
|
+
const n = kt();
|
|
228
228
|
if (n === void 0) return !1;
|
|
229
229
|
if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
230
230
|
return n.callbackRegistry[t] = e, !0;
|
|
231
231
|
}
|
|
232
|
-
const
|
|
233
|
-
function
|
|
234
|
-
t in
|
|
235
|
-
for (const r of
|
|
232
|
+
const me = /* @__PURE__ */ new Map();
|
|
233
|
+
function Dt(t, e) {
|
|
234
|
+
t in v().callbackRegistry || (v().callbackRegistry[t] = (n) => {
|
|
235
|
+
for (const r of me.get(t))
|
|
236
236
|
r(n);
|
|
237
|
-
},
|
|
237
|
+
}, me.set(t, [])), me.get(t).push(e);
|
|
238
238
|
}
|
|
239
239
|
class L {
|
|
240
240
|
constructor(e, n = (r) => r) {
|
|
241
241
|
V(this, "isResolved", !1);
|
|
242
242
|
V(this, "resolvedValue");
|
|
243
|
-
this.handle = e, this.postProcess = n,
|
|
243
|
+
this.handle = e, this.postProcess = n, Dt(e, (r) => {
|
|
244
244
|
this.resolvedValue = n(r), this.isResolved = !0;
|
|
245
245
|
});
|
|
246
246
|
}
|
|
@@ -257,10 +257,10 @@ class L {
|
|
|
257
257
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ce(t, e) {
|
|
261
261
|
return t === void 0 ? void 0 : e(t);
|
|
262
262
|
}
|
|
263
|
-
class
|
|
263
|
+
class k {
|
|
264
264
|
constructor(e, n) {
|
|
265
265
|
this.handle = e, this.resolvePath = n;
|
|
266
266
|
}
|
|
@@ -299,47 +299,47 @@ class O {
|
|
|
299
299
|
...this.resolvePath,
|
|
300
300
|
...n.map((i) => typeof i == "string" ? i : i.field)
|
|
301
301
|
];
|
|
302
|
-
return
|
|
303
|
-
|
|
304
|
-
(i) => new
|
|
302
|
+
return Ce(
|
|
303
|
+
v().resolveWithCommon(this.handle, e, ...n),
|
|
304
|
+
(i) => new k(i, r)
|
|
305
305
|
);
|
|
306
306
|
}
|
|
307
307
|
get resourceType() {
|
|
308
|
-
return
|
|
308
|
+
return v().getResourceType(this.handle);
|
|
309
309
|
}
|
|
310
310
|
getInputsLocked() {
|
|
311
|
-
return
|
|
311
|
+
return v().getInputsLocked(this.handle);
|
|
312
312
|
}
|
|
313
313
|
getOutputsLocked() {
|
|
314
|
-
return
|
|
314
|
+
return v().getOutputsLocked(this.handle);
|
|
315
315
|
}
|
|
316
316
|
getIsReadyOrError() {
|
|
317
|
-
return
|
|
317
|
+
return v().getIsReadyOrError(this.handle);
|
|
318
318
|
}
|
|
319
319
|
getIsFinal() {
|
|
320
|
-
return
|
|
320
|
+
return v().getIsFinal(this.handle);
|
|
321
321
|
}
|
|
322
322
|
getError() {
|
|
323
323
|
const e = [...this.resolvePath, "error"];
|
|
324
|
-
return
|
|
325
|
-
|
|
326
|
-
(n) => new
|
|
324
|
+
return Ce(
|
|
325
|
+
v().getError(this.handle),
|
|
326
|
+
(n) => new k(n, e)
|
|
327
327
|
);
|
|
328
328
|
}
|
|
329
329
|
listInputFields() {
|
|
330
|
-
return
|
|
330
|
+
return v().listInputFields(this.handle);
|
|
331
331
|
}
|
|
332
332
|
listOutputFields() {
|
|
333
|
-
return
|
|
333
|
+
return v().listOutputFields(this.handle);
|
|
334
334
|
}
|
|
335
335
|
listDynamicFields() {
|
|
336
|
-
return
|
|
336
|
+
return v().listDynamicFields(this.handle);
|
|
337
337
|
}
|
|
338
338
|
getKeyValueBase64(e) {
|
|
339
|
-
return
|
|
339
|
+
return v().getKeyValueBase64(this.handle, e);
|
|
340
340
|
}
|
|
341
341
|
getKeyValueAsString(e) {
|
|
342
|
-
return
|
|
342
|
+
return v().getKeyValueAsString(this.handle, e);
|
|
343
343
|
}
|
|
344
344
|
getKeyValueAsJson(e) {
|
|
345
345
|
const n = this.getKeyValueAsString(e);
|
|
@@ -347,10 +347,10 @@ class O {
|
|
|
347
347
|
return JSON.parse(n);
|
|
348
348
|
}
|
|
349
349
|
getDataBase64() {
|
|
350
|
-
return
|
|
350
|
+
return v().getDataBase64(this.handle);
|
|
351
351
|
}
|
|
352
352
|
getDataAsString() {
|
|
353
|
-
return
|
|
353
|
+
return v().getDataAsString(this.handle);
|
|
354
354
|
}
|
|
355
355
|
getDataAsJson() {
|
|
356
356
|
const e = this.getDataAsString();
|
|
@@ -363,7 +363,7 @@ class O {
|
|
|
363
363
|
getPColumns(e = !1, n = "") {
|
|
364
364
|
const r = this.parsePObjectCollection(e, n);
|
|
365
365
|
return r === void 0 ? void 0 : Object.entries(r).map(([, o]) => {
|
|
366
|
-
if (
|
|
366
|
+
if (!$e(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
|
|
367
367
|
return o;
|
|
368
368
|
});
|
|
369
369
|
}
|
|
@@ -371,7 +371,7 @@ class O {
|
|
|
371
371
|
*
|
|
372
372
|
*/
|
|
373
373
|
parsePObjectCollection(e = !1, n = "") {
|
|
374
|
-
const r =
|
|
374
|
+
const r = v().parsePObjectCollection(
|
|
375
375
|
this.handle,
|
|
376
376
|
e,
|
|
377
377
|
n,
|
|
@@ -381,19 +381,19 @@ class O {
|
|
|
381
381
|
const i = {};
|
|
382
382
|
for (const [o, s] of Object.entries(r)) {
|
|
383
383
|
const a = [...this.resolvePath, o];
|
|
384
|
-
i[o] =
|
|
384
|
+
i[o] = xe(s, (l) => new k(l, a));
|
|
385
385
|
}
|
|
386
386
|
return i;
|
|
387
387
|
}
|
|
388
388
|
getFileContentAsBase64(e) {
|
|
389
|
-
return new L(
|
|
389
|
+
return new L(v().getBlobContentAsBase64(this.handle, e));
|
|
390
390
|
}
|
|
391
391
|
getFileContentAsString(e) {
|
|
392
|
-
return new L(
|
|
392
|
+
return new L(v().getBlobContentAsString(this.handle, e));
|
|
393
393
|
}
|
|
394
394
|
getFileContentAsJson(e) {
|
|
395
395
|
return new L(
|
|
396
|
-
|
|
396
|
+
v().getBlobContentAsString(this.handle, e)
|
|
397
397
|
).mapDefined((n) => JSON.parse(n));
|
|
398
398
|
}
|
|
399
399
|
/**
|
|
@@ -412,7 +412,7 @@ class O {
|
|
|
412
412
|
* @returns downloaded file handle
|
|
413
413
|
*/
|
|
414
414
|
getFileHandle() {
|
|
415
|
-
return new L(
|
|
415
|
+
return new L(v().getDownloadedBlobContentHandle(this.handle));
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @deprecated use getFileHandle
|
|
@@ -424,7 +424,7 @@ class O {
|
|
|
424
424
|
* @returns downloaded file handle
|
|
425
425
|
*/
|
|
426
426
|
getRemoteFileHandle() {
|
|
427
|
-
return new L(
|
|
427
|
+
return new L(v().getOnDemandBlobContentHandle(this.handle));
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
430
430
|
* @deprecated use getRemoteFileHandle
|
|
@@ -436,22 +436,22 @@ class O {
|
|
|
436
436
|
* @returns the url to the extracted folder
|
|
437
437
|
*/
|
|
438
438
|
extractArchiveAndGetURL(e) {
|
|
439
|
-
return new L(
|
|
439
|
+
return new L(v().extractArchiveAndGetURL(this.handle, e));
|
|
440
440
|
}
|
|
441
441
|
getImportProgress() {
|
|
442
|
-
return new L(
|
|
442
|
+
return new L(v().getImportProgress(this.handle));
|
|
443
443
|
}
|
|
444
444
|
getLastLogs(e) {
|
|
445
|
-
return new L(
|
|
445
|
+
return new L(v().getLastLogs(this.handle, e));
|
|
446
446
|
}
|
|
447
447
|
getProgressLog(e) {
|
|
448
|
-
return new L(
|
|
448
|
+
return new L(v().getProgressLog(this.handle, e));
|
|
449
449
|
}
|
|
450
450
|
getProgressLogWithInfo(e) {
|
|
451
|
-
return new L(
|
|
451
|
+
return new L(v().getProgressLogWithInfo(this.handle, e));
|
|
452
452
|
}
|
|
453
453
|
getLogHandle() {
|
|
454
|
-
return new L(
|
|
454
|
+
return new L(v().getLogHandle(this.handle));
|
|
455
455
|
}
|
|
456
456
|
allFieldsResolved(e = "Input") {
|
|
457
457
|
switch (e) {
|
|
@@ -475,130 +475,129 @@ class O {
|
|
|
475
475
|
if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
|
|
476
476
|
return;
|
|
477
477
|
let l = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
478
|
-
(
|
|
478
|
+
(c) => [c, this.resolve({ field: c, assertFieldType: r })]
|
|
479
479
|
);
|
|
480
|
-
return o && (l = l.filter((
|
|
480
|
+
return o && (l = l.filter((c) => c[1] !== void 0)), l.map(([c, m]) => s(c, m));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
const
|
|
483
|
+
const ze = "staging", Xe = "main", Ot = {
|
|
484
484
|
explicitColumnsSupport: !0,
|
|
485
485
|
inlineColumnsSupport: !0,
|
|
486
486
|
activeArgs: !0,
|
|
487
487
|
pTablePartitionFiltersSupport: !0,
|
|
488
488
|
pFrameInSetFilterSupport: !0
|
|
489
489
|
};
|
|
490
|
-
function
|
|
490
|
+
function Ye(t) {
|
|
491
491
|
return typeof t == "object" && t !== null && "__awaited_futures__" in t;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function Te(t, e, n) {
|
|
494
494
|
if (e.has(n)) return;
|
|
495
495
|
if (e.add(n), typeof n === "object")
|
|
496
|
-
if (
|
|
496
|
+
if (Ye(n)) n.__awaited_futures__.forEach((i) => t.add(i));
|
|
497
497
|
else if (Array.isArray(n))
|
|
498
|
-
for (const i of n)
|
|
498
|
+
for (const i of n) Te(t, e, i);
|
|
499
499
|
else
|
|
500
500
|
for (const [, i] of Object.entries(n))
|
|
501
|
-
i !== n &&
|
|
501
|
+
i !== n && Te(t, e, i);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Rt(t) {
|
|
504
504
|
const e = /* @__PURE__ */ new Set();
|
|
505
|
-
return
|
|
505
|
+
return Te(e, /* @__PURE__ */ new Set(), t), e;
|
|
506
506
|
}
|
|
507
|
-
const
|
|
507
|
+
const Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
508
508
|
__proto__: null,
|
|
509
|
-
GlobalCfgRenderCtxFeatureFlags:
|
|
510
|
-
MainAccessorName:
|
|
511
|
-
StagingAccessorName:
|
|
512
|
-
getAllFutureAwaits:
|
|
513
|
-
isFutureAwait:
|
|
514
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
515
|
-
type:
|
|
516
|
-
importance:
|
|
517
|
-
id:
|
|
518
|
-
label:
|
|
519
|
-
}),
|
|
520
|
-
function
|
|
521
|
-
const r = /* @__PURE__ */ new Map(), i = n.forceTraceElements !== void 0 && n.forceTraceElements.length > 0 ? new Set(n.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s = t.map((
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
const E = (c = p.annotations) == null ? void 0 : c[It], F = (v = p.annotations) == null ? void 0 : v[_t], S = (F ? Et.safeParse(JSON.parse(F)).data : void 0) ?? [], P = [
|
|
509
|
+
GlobalCfgRenderCtxFeatureFlags: Ot,
|
|
510
|
+
MainAccessorName: Xe,
|
|
511
|
+
StagingAccessorName: ze,
|
|
512
|
+
getAllFutureAwaits: Rt,
|
|
513
|
+
isFutureAwait: Ye
|
|
514
|
+
}, Symbol.toStringTag, { value: "Module" })), Nt = M.object({
|
|
515
|
+
type: M.string(),
|
|
516
|
+
importance: M.number().optional(),
|
|
517
|
+
id: M.string().optional(),
|
|
518
|
+
label: M.string()
|
|
519
|
+
}), Ut = M.array(Nt), Kt = 1e-3, qt = "__LABEL__", De = "__LABEL__@1";
|
|
520
|
+
function Qe(t, e, n = {}) {
|
|
521
|
+
const r = /* @__PURE__ */ new Map(), i = n.forceTraceElements !== void 0 && n.forceTraceElements.length > 0 ? new Set(n.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s = t.map((f) => {
|
|
522
|
+
const y = e(f);
|
|
523
|
+
let p, g, P;
|
|
524
|
+
"spec" in y && typeof y.spec == "object" ? (p = y.spec, g = y.prefixTrace, P = y.suffixTrace) : p = y;
|
|
525
|
+
const E = J(p, R.Label), x = J(p, R.Trace), T = (x ? Ut.safeParse(ut(x)).data : void 0) ?? [], S = [
|
|
527
526
|
...g ?? [],
|
|
528
|
-
...
|
|
529
|
-
...
|
|
527
|
+
...T,
|
|
528
|
+
...P ?? []
|
|
530
529
|
];
|
|
531
530
|
if (E !== void 0) {
|
|
532
|
-
const
|
|
533
|
-
n.addLabelAsSuffix ?
|
|
531
|
+
const u = { label: E, type: qt, importance: -2 };
|
|
532
|
+
n.addLabelAsSuffix ? S.push(u) : S.splice(0, 0, u);
|
|
534
533
|
}
|
|
535
|
-
const
|
|
536
|
-
for (let
|
|
537
|
-
const { type:
|
|
538
|
-
|
|
539
|
-
const
|
|
540
|
-
o.set(
|
|
541
|
-
|
|
534
|
+
const C = [], I = /* @__PURE__ */ new Map();
|
|
535
|
+
for (let u = S.length - 1; u >= 0; --u) {
|
|
536
|
+
const { type: b } = S[u], K = S[u].importance ?? 0, B = (I.get(b) ?? 0) + 1;
|
|
537
|
+
I.set(b, B);
|
|
538
|
+
const O = `${b}@${B}`;
|
|
539
|
+
o.set(O, (o.get(O) ?? 0) + 1), r.set(
|
|
540
|
+
O,
|
|
542
541
|
Math.max(
|
|
543
|
-
r.get(
|
|
544
|
-
K - (
|
|
542
|
+
r.get(O) ?? Number.NEGATIVE_INFINITY,
|
|
543
|
+
K - (S.length - u) * Kt
|
|
545
544
|
)
|
|
546
|
-
),
|
|
545
|
+
), C.push({ ...S[u], fullType: O, occurrenceIndex: B });
|
|
547
546
|
}
|
|
548
|
-
return
|
|
549
|
-
value:
|
|
547
|
+
return C.reverse(), {
|
|
548
|
+
value: f,
|
|
550
549
|
spec: p,
|
|
551
550
|
label: E,
|
|
552
|
-
fullTrace:
|
|
551
|
+
fullTrace: C
|
|
553
552
|
};
|
|
554
|
-
}), a = [], l = [],
|
|
555
|
-
|
|
556
|
-
for (const [
|
|
557
|
-
|
|
558
|
-
const
|
|
553
|
+
}), a = [], l = [], c = [...r];
|
|
554
|
+
c.sort(([, f], [, y]) => y - f);
|
|
555
|
+
for (const [f] of c)
|
|
556
|
+
f.endsWith("@1") || o.get(f) === t.length ? a.push(f) : l.push(f);
|
|
557
|
+
const m = (f, y = !1) => {
|
|
559
558
|
const p = [];
|
|
560
559
|
for (let g = 0; g < s.length; g++) {
|
|
561
|
-
const
|
|
560
|
+
const P = s[g], E = P.fullTrace.filter((S) => f.has(S.fullType) || i && i.has(S.type));
|
|
562
561
|
if (E.length === 0)
|
|
563
562
|
if (y)
|
|
564
563
|
p.push({
|
|
565
564
|
label: "Unlabeled",
|
|
566
|
-
value:
|
|
565
|
+
value: P.value
|
|
567
566
|
});
|
|
568
567
|
else return;
|
|
569
|
-
const
|
|
568
|
+
const x = E.map((S) => S.label), T = n.separator ?? " / ";
|
|
570
569
|
p.push({
|
|
571
|
-
label:
|
|
572
|
-
value:
|
|
570
|
+
label: x.join(T),
|
|
571
|
+
value: P.value
|
|
573
572
|
});
|
|
574
573
|
}
|
|
575
574
|
return p;
|
|
576
575
|
};
|
|
577
576
|
if (a.length === 0) {
|
|
578
577
|
if (l.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
579
|
-
return
|
|
580
|
-
}
|
|
581
|
-
let
|
|
582
|
-
for (;
|
|
583
|
-
const
|
|
584
|
-
n.includeNativeLabel &&
|
|
585
|
-
for (let p = 0; p <
|
|
586
|
-
|
|
587
|
-
const y =
|
|
578
|
+
return m(new Set(De), !0);
|
|
579
|
+
}
|
|
580
|
+
let d = 0, h = -1;
|
|
581
|
+
for (; d < a.length; ) {
|
|
582
|
+
const f = /* @__PURE__ */ new Set();
|
|
583
|
+
n.includeNativeLabel && f.add(De);
|
|
584
|
+
for (let p = 0; p < d; ++p) f.add(a[p]);
|
|
585
|
+
h >= 0 && f.add(a[h]);
|
|
586
|
+
const y = m(f);
|
|
588
587
|
if (y !== void 0 && new Set(y.map((p) => p.label)).size === t.length) return y;
|
|
589
|
-
|
|
588
|
+
h++, h >= a.length && (d++, h = d);
|
|
590
589
|
}
|
|
591
|
-
return
|
|
590
|
+
return m(/* @__PURE__ */ new Set([...a, ...l]), !0);
|
|
592
591
|
}
|
|
593
|
-
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned",
|
|
594
|
-
function
|
|
592
|
+
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", $ = ee + "BinaryPartitioned", Ze = ee + "Partitioned/", ce = Ze + "JsonPartitioned", z = Ze + "BinaryPartitioned";
|
|
593
|
+
function et(t, e, n, r = [], i) {
|
|
595
594
|
if (t === void 0) return !1;
|
|
596
595
|
switch (t.resourceType.name) {
|
|
597
596
|
case le: {
|
|
598
597
|
let o = t.getInputsLocked();
|
|
599
598
|
for (const s of t.listInputFields()) {
|
|
600
|
-
const a = t.resolve({ field: s, assertFieldType: "Input" }), l = [...r, ...JSON.parse(s)],
|
|
601
|
-
|
|
599
|
+
const a = t.resolve({ field: s, assertFieldType: "Input" }), l = [...r, ...JSON.parse(s)], c = a === void 0 ? void 0 : e(a);
|
|
600
|
+
c === void 0 && (o = !1), (c !== void 0 || i) && n.push({ key: l, value: c });
|
|
602
601
|
}
|
|
603
602
|
return o;
|
|
604
603
|
}
|
|
@@ -608,14 +607,14 @@ function Ye(t, e, n, r = [], i) {
|
|
|
608
607
|
const a = t.resolve({ field: s, assertFieldType: "Input" });
|
|
609
608
|
if (a === void 0) o = !1;
|
|
610
609
|
else {
|
|
611
|
-
const l = [...r, ...JSON.parse(s)],
|
|
610
|
+
const l = [...r, ...JSON.parse(s)], c = et(
|
|
612
611
|
a,
|
|
613
612
|
e,
|
|
614
613
|
n,
|
|
615
614
|
l,
|
|
616
615
|
i
|
|
617
616
|
);
|
|
618
|
-
o = o &&
|
|
617
|
+
o = o && c;
|
|
619
618
|
}
|
|
620
619
|
}
|
|
621
620
|
return o;
|
|
@@ -624,18 +623,18 @@ function Ye(t, e, n, r = [], i) {
|
|
|
624
623
|
throw new Error(`Unknown resource type: ${t.resourceType.name}`);
|
|
625
624
|
}
|
|
626
625
|
}
|
|
627
|
-
function
|
|
626
|
+
function Hn(t, e, n = !1) {
|
|
628
627
|
const r = [];
|
|
629
|
-
return { isComplete:
|
|
628
|
+
return { isComplete: et(t, e, r, [], n), data: r };
|
|
630
629
|
}
|
|
631
|
-
const
|
|
630
|
+
const Se = (t) => {
|
|
632
631
|
if (t.endsWith(".index"))
|
|
633
632
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
634
633
|
if (t.endsWith(".values"))
|
|
635
634
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
636
635
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
637
636
|
};
|
|
638
|
-
function
|
|
637
|
+
function jt(t) {
|
|
639
638
|
if (!t) return;
|
|
640
639
|
const e = t.resourceType.name, n = t.getDataAsJson(), r = [];
|
|
641
640
|
let i = 0;
|
|
@@ -647,7 +646,7 @@ function Ot(t) {
|
|
|
647
646
|
i = n.partitionKeyLength + n.keyLength;
|
|
648
647
|
break;
|
|
649
648
|
case H:
|
|
650
|
-
case
|
|
649
|
+
case $:
|
|
651
650
|
i = n.partitionKeyLength;
|
|
652
651
|
break;
|
|
653
652
|
case z:
|
|
@@ -658,9 +657,9 @@ function Ot(t) {
|
|
|
658
657
|
switch (e) {
|
|
659
658
|
case le:
|
|
660
659
|
case H:
|
|
661
|
-
case
|
|
660
|
+
case $:
|
|
662
661
|
for (let o of t.listInputFields()) {
|
|
663
|
-
e ===
|
|
662
|
+
e === $ && (o = Se(o).baseKey);
|
|
664
663
|
const s = [...JSON.parse(o)];
|
|
665
664
|
r.push(s);
|
|
666
665
|
}
|
|
@@ -672,16 +671,16 @@ function Ot(t) {
|
|
|
672
671
|
const s = [...JSON.parse(o)], a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
673
672
|
if (a !== void 0)
|
|
674
673
|
for (let l of a.listInputFields()) {
|
|
675
|
-
e === z && (l =
|
|
676
|
-
const
|
|
677
|
-
r.push(
|
|
674
|
+
e === z && (l = Se(l).baseKey);
|
|
675
|
+
const c = [...s, ...JSON.parse(l)];
|
|
676
|
+
r.push(c);
|
|
678
677
|
}
|
|
679
678
|
}
|
|
680
679
|
break;
|
|
681
680
|
}
|
|
682
681
|
return { data: r, keyLength: i };
|
|
683
682
|
}
|
|
684
|
-
function
|
|
683
|
+
function Mt(t) {
|
|
685
684
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
686
685
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
687
686
|
const { parts: e, partitionKeyLength: n } = t, r = [];
|
|
@@ -700,11 +699,11 @@ function Dt(t) {
|
|
|
700
699
|
}
|
|
701
700
|
return r.map((i) => Array.from(i.values()));
|
|
702
701
|
}
|
|
703
|
-
function
|
|
702
|
+
function $t(t) {
|
|
704
703
|
if (t === void 0) return;
|
|
705
|
-
if (
|
|
706
|
-
return
|
|
707
|
-
const e =
|
|
704
|
+
if (Je(t))
|
|
705
|
+
return Mt(t);
|
|
706
|
+
const e = jt(t);
|
|
708
707
|
if (!e) return;
|
|
709
708
|
const { data: n, keyLength: r } = e, i = [];
|
|
710
709
|
for (let o = 0; o < r; ++o)
|
|
@@ -717,7 +716,7 @@ function Rt(t) {
|
|
|
717
716
|
}
|
|
718
717
|
return i.map((o) => Array.from(o.values()));
|
|
719
718
|
}
|
|
720
|
-
function
|
|
719
|
+
function Pe(t, e = []) {
|
|
721
720
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
722
721
|
const n = t.resourceType.name, r = t.getDataAsJson();
|
|
723
722
|
if (e.length > 0 && (n === ce || n === z))
|
|
@@ -742,15 +741,15 @@ function Ce(t, e = []) {
|
|
|
742
741
|
parts: i
|
|
743
742
|
};
|
|
744
743
|
}
|
|
745
|
-
case
|
|
744
|
+
case $: {
|
|
746
745
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
747
746
|
throw new Error(`Missing partitionKeyLength in metadata for ${n}`);
|
|
748
747
|
const i = [], o = /* @__PURE__ */ new Map();
|
|
749
748
|
for (const s of t.listInputFields()) {
|
|
750
|
-
const a =
|
|
749
|
+
const a = Se(s), l = t.resolve({ field: s, assertFieldType: "Input" });
|
|
751
750
|
if (l === void 0) return;
|
|
752
|
-
let
|
|
753
|
-
|
|
751
|
+
let c = o.get(a.baseKey);
|
|
752
|
+
c || (c = {}, o.set(a.baseKey, c)), a.type === "index" ? c.index = l : c.values = l;
|
|
754
753
|
}
|
|
755
754
|
for (const [s, a] of o.entries()) {
|
|
756
755
|
if (!a.index || !a.values) return;
|
|
@@ -778,7 +777,7 @@ function Ce(t, e = []) {
|
|
|
778
777
|
if (a === void 0) return;
|
|
779
778
|
if (a.resourceType.name !== H)
|
|
780
779
|
throw new Error(`Expected ${H} inside ${n}, but got ${a.resourceType.name}`);
|
|
781
|
-
const l =
|
|
780
|
+
const l = Pe(a, JSON.parse(s));
|
|
782
781
|
if (l === void 0) return;
|
|
783
782
|
if (l.type !== "JsonPartitioned")
|
|
784
783
|
throw new Error(`Unexpected inner result type for ${n}: ${l.type}`);
|
|
@@ -797,9 +796,9 @@ function Ce(t, e = []) {
|
|
|
797
796
|
for (const s of t.listInputFields()) {
|
|
798
797
|
const a = t.resolve({ field: s, assertFieldType: "Input" });
|
|
799
798
|
if (a === void 0) return;
|
|
800
|
-
if (a.resourceType.name !==
|
|
801
|
-
throw new Error(`Expected ${
|
|
802
|
-
const l =
|
|
799
|
+
if (a.resourceType.name !== $)
|
|
800
|
+
throw new Error(`Expected ${$} inside ${n}, but got ${a.resourceType.name}`);
|
|
801
|
+
const l = Pe(a, JSON.parse(s));
|
|
803
802
|
if (l === void 0) return;
|
|
804
803
|
if (l.type !== "BinaryPartitioned")
|
|
805
804
|
throw new Error(`Unexpected inner result type for ${n}: ${l.type}`);
|
|
@@ -815,15 +814,15 @@ function Ce(t, e = []) {
|
|
|
815
814
|
throw new Error(`Unknown resource type: ${n}`);
|
|
816
815
|
}
|
|
817
816
|
}
|
|
818
|
-
function
|
|
817
|
+
function Jt(t) {
|
|
819
818
|
if (t !== void 0) {
|
|
820
|
-
if (
|
|
821
|
-
if (pe(t)) return
|
|
822
|
-
if (t instanceof
|
|
819
|
+
if (Je(t)) return t;
|
|
820
|
+
if (pe(t)) return ct(t);
|
|
821
|
+
if (t instanceof k) return Pe(t);
|
|
823
822
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
824
823
|
}
|
|
825
824
|
}
|
|
826
|
-
function
|
|
825
|
+
function Bt(t, e) {
|
|
827
826
|
const n = [...e].sort((s, a) => a[0] - s[0]), { type: r } = t;
|
|
828
827
|
switch (r) {
|
|
829
828
|
case "Json": {
|
|
@@ -895,13 +894,13 @@ function Ut(t, e) {
|
|
|
895
894
|
};
|
|
896
895
|
}
|
|
897
896
|
}
|
|
898
|
-
function
|
|
897
|
+
function Wt(t) {
|
|
899
898
|
if (!Array.isArray(t)) return !1;
|
|
900
899
|
if (t.length === 0) return !0;
|
|
901
900
|
const e = t[0];
|
|
902
901
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
903
902
|
}
|
|
904
|
-
class
|
|
903
|
+
class Gt {
|
|
905
904
|
constructor(e) {
|
|
906
905
|
this.columns = e;
|
|
907
906
|
}
|
|
@@ -910,30 +909,30 @@ class Mt {
|
|
|
910
909
|
return this.columns.filter((r) => n(r.spec));
|
|
911
910
|
}
|
|
912
911
|
}
|
|
913
|
-
function
|
|
912
|
+
function Ht(t) {
|
|
914
913
|
if (t)
|
|
915
914
|
return t.map((e) => ({
|
|
916
|
-
type: `split:${
|
|
915
|
+
type: `split:${ht(e.axisId)}`,
|
|
917
916
|
label: e.label,
|
|
918
917
|
importance: 1e6
|
|
919
918
|
// High importance for split filters in labels
|
|
920
919
|
}));
|
|
921
920
|
}
|
|
922
|
-
function
|
|
921
|
+
function zt(t) {
|
|
923
922
|
if (t)
|
|
924
923
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
925
924
|
}
|
|
926
|
-
function
|
|
925
|
+
function Xt(t, e) {
|
|
927
926
|
if (!e || e.length === 0) return t;
|
|
928
927
|
const n = [...e].sort((r, i) => r[0] - i[0]);
|
|
929
|
-
return
|
|
928
|
+
return We({ id: t, axisFilters: n });
|
|
930
929
|
}
|
|
931
|
-
function
|
|
930
|
+
function Oe(t) {
|
|
932
931
|
if (!t || typeof t != "object") return !1;
|
|
933
932
|
const e = t, n = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
|
|
934
933
|
return !!e.domainAnchor || n || r;
|
|
935
934
|
}
|
|
936
|
-
function
|
|
935
|
+
function Yt(t) {
|
|
937
936
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
938
937
|
return [];
|
|
939
938
|
const e = t.axes.map((n, r) => typeof n == "object" && "split" in n && n.split === !0 ? r : -1).filter((n) => n !== -1);
|
|
@@ -944,7 +943,7 @@ function Bt(t) {
|
|
|
944
943
|
class Q {
|
|
945
944
|
constructor() {
|
|
946
945
|
V(this, "defaultProviderStore", []);
|
|
947
|
-
V(this, "providers", [new
|
|
946
|
+
V(this, "providers", [new Gt(this.defaultProviderStore)]);
|
|
948
947
|
V(this, "axisLabelProviders", []);
|
|
949
948
|
}
|
|
950
949
|
addColumnProvider(e) {
|
|
@@ -971,127 +970,127 @@ class Q {
|
|
|
971
970
|
...s && (i == null ? void 0 : i.includeNativeLabel) !== !1 ? { includeNativeLabel: !0 } : {},
|
|
972
971
|
...i ?? {}
|
|
973
972
|
};
|
|
974
|
-
let
|
|
973
|
+
let c = () => !1;
|
|
975
974
|
if (a) {
|
|
976
975
|
const p = (Array.isArray(a) ? a : [a]).map((g) => {
|
|
977
|
-
if (
|
|
976
|
+
if (Oe(g)) {
|
|
978
977
|
if (!r)
|
|
979
978
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
980
|
-
return Y(
|
|
979
|
+
return Y(Ee(r.anchors, g, n));
|
|
981
980
|
} else
|
|
982
981
|
return Y(g);
|
|
983
982
|
});
|
|
984
|
-
|
|
983
|
+
c = (g) => p.some((P) => P(g));
|
|
985
984
|
}
|
|
986
|
-
const
|
|
987
|
-
for (const p of
|
|
988
|
-
const g =
|
|
989
|
-
let
|
|
985
|
+
const m = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], h = /* @__PURE__ */ new Set();
|
|
986
|
+
for (const p of m) {
|
|
987
|
+
const g = Oe(p);
|
|
988
|
+
let P;
|
|
990
989
|
if (g) {
|
|
991
990
|
if (!r)
|
|
992
991
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
993
|
-
|
|
992
|
+
P = Ee(r.anchors, p, n);
|
|
994
993
|
} else
|
|
995
|
-
|
|
996
|
-
const E = /* @__PURE__ */ new Set(),
|
|
997
|
-
for (const
|
|
998
|
-
const
|
|
999
|
-
for (const
|
|
1000
|
-
if (u
|
|
1001
|
-
if (E.has(
|
|
1002
|
-
throw new Error(`Duplicate column id ${
|
|
1003
|
-
const
|
|
1004
|
-
|
|
994
|
+
P = p;
|
|
995
|
+
const E = /* @__PURE__ */ new Set(), x = [];
|
|
996
|
+
for (const C of this.providers) {
|
|
997
|
+
const I = C.selectColumns(P);
|
|
998
|
+
for (const u of I) {
|
|
999
|
+
if (c(u.spec)) continue;
|
|
1000
|
+
if (E.has(u.id))
|
|
1001
|
+
throw new Error(`Duplicate column id ${u.id} in provider ${C.constructor.name}`);
|
|
1002
|
+
const b = pt(u.spec);
|
|
1003
|
+
h.has(b) || (E.add(u.id), h.add(b), x.push(u));
|
|
1005
1004
|
}
|
|
1006
1005
|
}
|
|
1007
|
-
if (
|
|
1008
|
-
const
|
|
1009
|
-
for (const
|
|
1010
|
-
if (!oe(
|
|
1011
|
-
const
|
|
1012
|
-
if (
|
|
1013
|
-
if (
|
|
1014
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
1015
|
-
const
|
|
1016
|
-
if (!
|
|
1006
|
+
if (x.length === 0) continue;
|
|
1007
|
+
const T = Yt(p), S = T.length > 0;
|
|
1008
|
+
for (const C of x) {
|
|
1009
|
+
if (!oe(C.spec)) continue;
|
|
1010
|
+
const I = C.spec;
|
|
1011
|
+
if (S) {
|
|
1012
|
+
if (Wt(C.data))
|
|
1013
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${C.id}`);
|
|
1014
|
+
const u = Jt(C.data);
|
|
1015
|
+
if (!u) {
|
|
1017
1016
|
if (o) continue;
|
|
1018
1017
|
return;
|
|
1019
1018
|
}
|
|
1020
|
-
if (!
|
|
1021
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
1022
|
-
const
|
|
1023
|
-
if (
|
|
1024
|
-
throw new Error(`Not enough partition keys (${
|
|
1025
|
-
const
|
|
1026
|
-
if (W >=
|
|
1027
|
-
if (
|
|
1019
|
+
if (!dt(u))
|
|
1020
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${u.type} for column ${C.id}`);
|
|
1021
|
+
const b = $t(u), K = T[T.length - 1];
|
|
1022
|
+
if (K >= u.partitionKeyLength)
|
|
1023
|
+
throw new Error(`Not enough partition keys (${u.partitionKeyLength}) for requested split axes (max index ${K}) in column ${I.name}`);
|
|
1024
|
+
const B = T.map((_) => this.findLabels(F(I.axesSpec[_]))), O = [], _e = (_, W) => {
|
|
1025
|
+
if (W >= T.length) {
|
|
1026
|
+
if (O.push([..._]), O.length > 1e4)
|
|
1028
1027
|
throw new Error("Too many key combinations, aborting.");
|
|
1029
1028
|
return;
|
|
1030
1029
|
}
|
|
1031
|
-
const
|
|
1032
|
-
if (
|
|
1033
|
-
throw new Error(`Axis index ${
|
|
1034
|
-
const j =
|
|
1030
|
+
const q = T[W];
|
|
1031
|
+
if (q >= b.length)
|
|
1032
|
+
throw new Error(`Axis index ${q} out of bounds for unique keys array (length ${b.length}) during split key generation for column ${C.id}`);
|
|
1033
|
+
const j = b[q];
|
|
1035
1034
|
if (!j || j.length === 0) {
|
|
1036
|
-
|
|
1035
|
+
O.length = 0;
|
|
1037
1036
|
return;
|
|
1038
1037
|
}
|
|
1039
1038
|
for (const te of j)
|
|
1040
|
-
_.push(te),
|
|
1039
|
+
_.push(te), _e(_, W + 1), _.pop();
|
|
1041
1040
|
};
|
|
1042
|
-
if (
|
|
1041
|
+
if (_e([], 0), O.length === 0)
|
|
1043
1042
|
continue;
|
|
1044
|
-
const
|
|
1045
|
-
for (let _ =
|
|
1046
|
-
|
|
1047
|
-
const
|
|
1048
|
-
for (const _ of
|
|
1049
|
-
const W = _.map((
|
|
1050
|
-
const te =
|
|
1051
|
-
return { axisIdx: te, axisId:
|
|
1043
|
+
const Le = [...I.axesSpec], rt = T.map((_) => _);
|
|
1044
|
+
for (let _ = T.length - 1; _ >= 0; _--)
|
|
1045
|
+
Le.splice(T[_], 1);
|
|
1046
|
+
const it = { ...I, axesSpec: Le };
|
|
1047
|
+
for (const _ of O) {
|
|
1048
|
+
const W = _.map((q, j) => {
|
|
1049
|
+
const te = rt[j], ot = F(I.axesSpec[te]), fe = B[j], st = (fe == null ? void 0 : fe[q]) ?? String(q);
|
|
1050
|
+
return { axisIdx: te, axisId: ot, value: q, label: st };
|
|
1052
1051
|
});
|
|
1053
|
-
|
|
1052
|
+
d.push({
|
|
1054
1053
|
type: "split",
|
|
1055
|
-
originalColumn:
|
|
1056
|
-
spec:
|
|
1057
|
-
adjustedSpec:
|
|
1058
|
-
dataEntries:
|
|
1054
|
+
originalColumn: C,
|
|
1055
|
+
spec: I,
|
|
1056
|
+
adjustedSpec: it,
|
|
1057
|
+
dataEntries: u,
|
|
1059
1058
|
axisFilters: W
|
|
1060
1059
|
});
|
|
1061
1060
|
}
|
|
1062
1061
|
} else
|
|
1063
|
-
|
|
1062
|
+
d.push({
|
|
1064
1063
|
type: "direct",
|
|
1065
|
-
originalColumn:
|
|
1066
|
-
spec:
|
|
1067
|
-
adjustedSpec:
|
|
1064
|
+
originalColumn: C,
|
|
1065
|
+
spec: I,
|
|
1066
|
+
adjustedSpec: I
|
|
1068
1067
|
});
|
|
1069
1068
|
}
|
|
1070
1069
|
}
|
|
1071
|
-
if (
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1070
|
+
if (d.length === 0) return [];
|
|
1071
|
+
const f = Qe(
|
|
1072
|
+
d,
|
|
1074
1073
|
(p) => ({
|
|
1075
1074
|
spec: p.spec,
|
|
1076
|
-
suffixTrace: p.type === "split" ?
|
|
1075
|
+
suffixTrace: p.type === "split" ? Ht(p.axisFilters) : void 0
|
|
1077
1076
|
}),
|
|
1078
1077
|
l
|
|
1079
1078
|
), y = [];
|
|
1080
|
-
for (const { value: p, label: g } of
|
|
1081
|
-
const { originalColumn:
|
|
1082
|
-
let
|
|
1083
|
-
r ?
|
|
1084
|
-
let
|
|
1085
|
-
s && (
|
|
1086
|
-
...
|
|
1079
|
+
for (const { value: p, label: g } of f) {
|
|
1080
|
+
const { originalColumn: P, spec: E } = p, x = p.type === "split" ? p.axisFilters : void 0, T = zt(x);
|
|
1081
|
+
let S;
|
|
1082
|
+
r ? S = r.deriveS(E, T) : S = Xt(P.id, T);
|
|
1083
|
+
let C = { ...p.adjustedSpec };
|
|
1084
|
+
s && (C = {
|
|
1085
|
+
...C,
|
|
1087
1086
|
annotations: {
|
|
1088
|
-
...
|
|
1089
|
-
|
|
1087
|
+
...C.annotations ?? {},
|
|
1088
|
+
[R.Label]: g
|
|
1090
1089
|
}
|
|
1091
1090
|
}), y.push({
|
|
1092
|
-
id:
|
|
1093
|
-
spec:
|
|
1094
|
-
data: () => p.type === "split" ?
|
|
1091
|
+
id: S,
|
|
1092
|
+
spec: C,
|
|
1093
|
+
data: () => p.type === "split" ? ft(Bt(p.dataEntries, T)) : p.originalColumn.data,
|
|
1095
1094
|
label: g
|
|
1096
1095
|
});
|
|
1097
1096
|
}
|
|
@@ -1120,7 +1119,7 @@ class Q {
|
|
|
1120
1119
|
return i;
|
|
1121
1120
|
}
|
|
1122
1121
|
}
|
|
1123
|
-
function
|
|
1122
|
+
function Ae(t) {
|
|
1124
1123
|
const e = (i) => i.operator !== "InSet" ? i : {
|
|
1125
1124
|
operator: "Or",
|
|
1126
1125
|
operands: i.references.map((o) => ({
|
|
@@ -1153,19 +1152,19 @@ function Te(t) {
|
|
|
1153
1152
|
});
|
|
1154
1153
|
return t.map((i) => r(i, e));
|
|
1155
1154
|
}
|
|
1156
|
-
function
|
|
1155
|
+
function ye(t, e) {
|
|
1157
1156
|
if (t === void 0) return e === void 0;
|
|
1158
1157
|
if (e === void 0) return !0;
|
|
1159
1158
|
for (const n in e)
|
|
1160
1159
|
if (t[n] !== e[n]) return !1;
|
|
1161
1160
|
return !0;
|
|
1162
1161
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return
|
|
1162
|
+
function Re(t) {
|
|
1163
|
+
return xe(t, (e) => e instanceof k ? e.handle : pe(e) ? Ct(e, (n) => n.handle) : e);
|
|
1165
1164
|
}
|
|
1166
|
-
class
|
|
1165
|
+
class Qt {
|
|
1167
1166
|
constructor() {
|
|
1168
|
-
V(this, "ctx",
|
|
1167
|
+
V(this, "ctx", v());
|
|
1169
1168
|
}
|
|
1170
1169
|
/**
|
|
1171
1170
|
* @deprecated use getOptions()
|
|
@@ -1176,26 +1175,26 @@ class Jt {
|
|
|
1176
1175
|
getOptions(e, n) {
|
|
1177
1176
|
const r = typeof e == "function" ? e : Y(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
1178
1177
|
let o = {}, s = !1;
|
|
1179
|
-
return typeof n < "u" && (typeof n == "function" ? o = n : typeof n == "object" && ("includeNativeLabel" in n || "separator" in n || "addLabelAsSuffix" in n ? o = n : (n = n, o = n.label ?? {}, s = n.refsWithEnrichments ?? !1))), typeof o == "object" ?
|
|
1180
|
-
ref:
|
|
1178
|
+
return typeof n < "u" && (typeof n == "function" ? o = n : typeof n == "object" && ("includeNativeLabel" in n || "separator" in n || "addLabelAsSuffix" in n ? o = n : (n = n, o = n.label ?? {}, s = n.refsWithEnrichments ?? !1))), typeof o == "object" ? Qe(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l }) => ({
|
|
1179
|
+
ref: Ve(a, s),
|
|
1181
1180
|
label: l
|
|
1182
1181
|
})) : i.map(({ ref: a, obj: l }) => ({
|
|
1183
|
-
ref:
|
|
1182
|
+
ref: Ve(a, s),
|
|
1184
1183
|
label: o(l, a)
|
|
1185
1184
|
}));
|
|
1186
1185
|
}
|
|
1187
1186
|
resolveAnchorCtx(e) {
|
|
1188
|
-
if (e instanceof
|
|
1187
|
+
if (e instanceof ke) return e;
|
|
1189
1188
|
const n = {};
|
|
1190
1189
|
for (const [r, i] of Object.entries(e))
|
|
1191
|
-
if (
|
|
1190
|
+
if (mt(i)) {
|
|
1192
1191
|
const o = this.getPColumnSpecByRef(i);
|
|
1193
1192
|
if (!o)
|
|
1194
1193
|
return;
|
|
1195
1194
|
n[r] = o;
|
|
1196
1195
|
} else
|
|
1197
1196
|
n[r] = i;
|
|
1198
|
-
return new
|
|
1197
|
+
return new ke(n);
|
|
1199
1198
|
}
|
|
1200
1199
|
/**
|
|
1201
1200
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -1269,7 +1268,7 @@ class Jt {
|
|
|
1269
1268
|
ref: n.ref,
|
|
1270
1269
|
obj: {
|
|
1271
1270
|
...n.obj,
|
|
1272
|
-
data: new
|
|
1271
|
+
data: new k(n.obj.data, [n.ref.blockId, n.ref.name])
|
|
1273
1272
|
}
|
|
1274
1273
|
}))
|
|
1275
1274
|
};
|
|
@@ -1288,9 +1287,9 @@ class Jt {
|
|
|
1288
1287
|
ref: n.ref,
|
|
1289
1288
|
obj: {
|
|
1290
1289
|
...n.obj,
|
|
1291
|
-
data:
|
|
1290
|
+
data: yt(
|
|
1292
1291
|
n.obj.data,
|
|
1293
|
-
(r) => new
|
|
1292
|
+
(r) => new k(r, [n.ref.blockId, n.ref.name])
|
|
1294
1293
|
)
|
|
1295
1294
|
}
|
|
1296
1295
|
}))
|
|
@@ -1317,9 +1316,9 @@ class Jt {
|
|
|
1317
1316
|
)) == null ? void 0 : r.obj;
|
|
1318
1317
|
const n = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
1319
1318
|
if (n)
|
|
1320
|
-
return
|
|
1319
|
+
return xe(
|
|
1321
1320
|
n,
|
|
1322
|
-
(i) => new
|
|
1321
|
+
(i) => new k(i, [e.blockId, e.name])
|
|
1323
1322
|
);
|
|
1324
1323
|
}
|
|
1325
1324
|
/**
|
|
@@ -1330,7 +1329,7 @@ class Jt {
|
|
|
1330
1329
|
getPColumnByRef(e) {
|
|
1331
1330
|
const n = this.getDataByRef(e);
|
|
1332
1331
|
if (n)
|
|
1333
|
-
return
|
|
1332
|
+
return gt(n);
|
|
1334
1333
|
}
|
|
1335
1334
|
/**
|
|
1336
1335
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -1362,10 +1361,10 @@ class Jt {
|
|
|
1362
1361
|
if (!oe(r.obj.spec))
|
|
1363
1362
|
continue;
|
|
1364
1363
|
const i = r.obj.spec;
|
|
1365
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
1364
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ye(e.domain, i.domain)) {
|
|
1366
1365
|
for (let o = 0; o < e.axesSpec.length; ++o) {
|
|
1367
1366
|
const s = e.axesSpec[o], a = i.axesSpec[o];
|
|
1368
|
-
if (s.name !== a.name || s.type !== a.type || !
|
|
1367
|
+
if (s.name !== a.name || s.type !== a.type || !ye(s.domain, a.domain))
|
|
1369
1368
|
continue e;
|
|
1370
1369
|
}
|
|
1371
1370
|
n.push(r.obj);
|
|
@@ -1380,9 +1379,9 @@ class Jt {
|
|
|
1380
1379
|
findLabels(e) {
|
|
1381
1380
|
const n = this.getData();
|
|
1382
1381
|
for (const r of n.entries) {
|
|
1383
|
-
if (
|
|
1382
|
+
if (!$e(r.obj)) continue;
|
|
1384
1383
|
const i = r.obj.spec;
|
|
1385
|
-
if (i.name ===
|
|
1384
|
+
if (i.name === de.Label && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && ye(e.domain, i.axesSpec[0].domain)) {
|
|
1386
1385
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
1387
1386
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
1388
1387
|
return Object.fromEntries(
|
|
@@ -1407,11 +1406,11 @@ class Jt {
|
|
|
1407
1406
|
let a = null;
|
|
1408
1407
|
const l = this;
|
|
1409
1408
|
return {
|
|
1410
|
-
id:
|
|
1409
|
+
id: We(i),
|
|
1411
1410
|
spec: s,
|
|
1412
1411
|
get data() {
|
|
1413
|
-
var
|
|
1414
|
-
return a !== null || (a = (
|
|
1412
|
+
var c;
|
|
1413
|
+
return a !== null || (a = (c = l.getPColumnByRef(i)) == null ? void 0 : c.data), a;
|
|
1415
1414
|
}
|
|
1416
1415
|
};
|
|
1417
1416
|
});
|
|
@@ -1421,13 +1420,12 @@ class Jt {
|
|
|
1421
1420
|
* @returns a map of axis value => label
|
|
1422
1421
|
*/
|
|
1423
1422
|
findLabelsForColumnAxis(e, n) {
|
|
1424
|
-
var o;
|
|
1425
1423
|
const r = this.findLabels(e.axesSpec[n]);
|
|
1426
1424
|
if (!r) return;
|
|
1427
|
-
const i = (
|
|
1425
|
+
const i = J(e, `pl7.app/axisKeys/${n}`);
|
|
1428
1426
|
if (i !== void 0) {
|
|
1429
|
-
const
|
|
1430
|
-
return Object.fromEntries(
|
|
1427
|
+
const o = JSON.parse(i);
|
|
1428
|
+
return Object.fromEntries(o.map((s) => [s, r[s] ?? "Unlabelled"]));
|
|
1431
1429
|
} else
|
|
1432
1430
|
return r;
|
|
1433
1431
|
}
|
|
@@ -1439,8 +1437,8 @@ class ne {
|
|
|
1439
1437
|
V(this, "_uiStateCache");
|
|
1440
1438
|
// lazy rendering because this feature is rarely used
|
|
1441
1439
|
V(this, "_activeArgsCache");
|
|
1442
|
-
V(this, "resultPool", new
|
|
1443
|
-
this.ctx =
|
|
1440
|
+
V(this, "resultPool", new Qt());
|
|
1441
|
+
this.ctx = v();
|
|
1444
1442
|
}
|
|
1445
1443
|
get args() {
|
|
1446
1444
|
if (this._argsCache === void 0) {
|
|
@@ -1474,16 +1472,16 @@ class ne {
|
|
|
1474
1472
|
// return this.ctx.featureFlags;
|
|
1475
1473
|
// }
|
|
1476
1474
|
getNamedAccessor(e) {
|
|
1477
|
-
return
|
|
1475
|
+
return Ce(
|
|
1478
1476
|
this.ctx.getAccessorHandleByName(e),
|
|
1479
|
-
(n) => new
|
|
1477
|
+
(n) => new k(n, [e])
|
|
1480
1478
|
);
|
|
1481
1479
|
}
|
|
1482
1480
|
get prerun() {
|
|
1483
|
-
return this.getNamedAccessor(
|
|
1481
|
+
return this.getNamedAccessor(ze);
|
|
1484
1482
|
}
|
|
1485
1483
|
get outputs() {
|
|
1486
|
-
return this.getNamedAccessor(
|
|
1484
|
+
return this.getNamedAccessor(Xe);
|
|
1487
1485
|
}
|
|
1488
1486
|
/**
|
|
1489
1487
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -1495,7 +1493,7 @@ class ne {
|
|
|
1495
1493
|
}
|
|
1496
1494
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
1497
1495
|
var i;
|
|
1498
|
-
const n = e.some((o) => !(o.data instanceof
|
|
1496
|
+
const n = e.some((o) => !(o.data instanceof k) || pe(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === !0;
|
|
1499
1497
|
if (n && !r) throw Error("Inline or explicit columns not supported");
|
|
1500
1498
|
}
|
|
1501
1499
|
patchPTableDef(e) {
|
|
@@ -1506,14 +1504,14 @@ class ne {
|
|
|
1506
1504
|
filters: [...e.partitionFilters, ...e.filters]
|
|
1507
1505
|
}), (r = this.ctx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
1508
1506
|
...e,
|
|
1509
|
-
partitionFilters:
|
|
1510
|
-
filters:
|
|
1507
|
+
partitionFilters: Ae(e.partitionFilters),
|
|
1508
|
+
filters: Ae(e.filters)
|
|
1511
1509
|
}), e;
|
|
1512
1510
|
}
|
|
1513
1511
|
// TODO remove all non-PColumn fields
|
|
1514
1512
|
createPFrame(e) {
|
|
1515
1513
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
1516
|
-
e.map((n) =>
|
|
1514
|
+
e.map((n) => Re(n))
|
|
1517
1515
|
);
|
|
1518
1516
|
}
|
|
1519
1517
|
createPTable(e) {
|
|
@@ -1526,8 +1524,8 @@ class ne {
|
|
|
1526
1524
|
partitionFilters: e.filters ?? [],
|
|
1527
1525
|
filters: [],
|
|
1528
1526
|
sorting: e.sorting ?? []
|
|
1529
|
-
}) : n = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(
|
|
1530
|
-
|
|
1527
|
+
}) : n = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(bt(n.src)), this.ctx.createPTable(
|
|
1528
|
+
vt(n, (r) => Re(r))
|
|
1531
1529
|
);
|
|
1532
1530
|
}
|
|
1533
1531
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -1547,23 +1545,23 @@ class ne {
|
|
|
1547
1545
|
this.ctx.logError(e);
|
|
1548
1546
|
}
|
|
1549
1547
|
}
|
|
1550
|
-
const
|
|
1551
|
-
function
|
|
1548
|
+
const Zt = "1.42.16", X = Zt;
|
|
1549
|
+
function en(t) {
|
|
1552
1550
|
return t.__renderLambda === !0;
|
|
1553
1551
|
}
|
|
1554
|
-
function
|
|
1552
|
+
function ge(t) {
|
|
1555
1553
|
if (t !== void 0)
|
|
1556
|
-
return
|
|
1554
|
+
return en(t) ? t.handle : t;
|
|
1557
1555
|
}
|
|
1558
|
-
function
|
|
1559
|
-
return
|
|
1556
|
+
function zn(t) {
|
|
1557
|
+
return Tt(t);
|
|
1560
1558
|
}
|
|
1561
|
-
const
|
|
1562
|
-
constructor(e, n, r, i, o, s, a, l,
|
|
1563
|
-
this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s, this._title = a, this._enrichmentTargets = l, this._featureFlags =
|
|
1559
|
+
const w = class w {
|
|
1560
|
+
constructor(e, n, r, i, o, s, a, l, c) {
|
|
1561
|
+
this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s, this._title = a, this._enrichmentTargets = l, this._featureFlags = c;
|
|
1564
1562
|
}
|
|
1565
1563
|
static create(e = "Heavy") {
|
|
1566
|
-
return new
|
|
1564
|
+
return new w(
|
|
1567
1565
|
e,
|
|
1568
1566
|
void 0,
|
|
1569
1567
|
{},
|
|
@@ -1572,13 +1570,13 @@ const A = class A {
|
|
|
1572
1570
|
se([]),
|
|
1573
1571
|
void 0,
|
|
1574
1572
|
void 0,
|
|
1575
|
-
{ ...
|
|
1573
|
+
{ ...w.INITIAL_BLOCK_FEATURE_FLAGS }
|
|
1576
1574
|
);
|
|
1577
1575
|
}
|
|
1578
1576
|
output(e, n, r = {}) {
|
|
1579
1577
|
if (typeof n == "function") {
|
|
1580
1578
|
const i = `output#${e}`;
|
|
1581
|
-
return G(i, () => n(new ne())), new
|
|
1579
|
+
return G(i, () => n(new ne())), new w(
|
|
1582
1580
|
this._renderingMode,
|
|
1583
1581
|
this._initialArgs,
|
|
1584
1582
|
this._initialUiState,
|
|
@@ -1597,7 +1595,7 @@ const A = class A {
|
|
|
1597
1595
|
this._featureFlags
|
|
1598
1596
|
);
|
|
1599
1597
|
} else
|
|
1600
|
-
return new
|
|
1598
|
+
return new w(
|
|
1601
1599
|
this._renderingMode,
|
|
1602
1600
|
this._initialArgs,
|
|
1603
1601
|
this._initialUiState,
|
|
@@ -1617,7 +1615,7 @@ const A = class A {
|
|
|
1617
1615
|
return this.output(e, n, { retentive: !0 });
|
|
1618
1616
|
}
|
|
1619
1617
|
argsValid(e) {
|
|
1620
|
-
return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new
|
|
1618
|
+
return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new w(
|
|
1621
1619
|
this._renderingMode,
|
|
1622
1620
|
this._initialArgs,
|
|
1623
1621
|
this._initialUiState,
|
|
@@ -1630,7 +1628,7 @@ const A = class A {
|
|
|
1630
1628
|
this._title,
|
|
1631
1629
|
this._enrichmentTargets,
|
|
1632
1630
|
this._featureFlags
|
|
1633
|
-
)) : new
|
|
1631
|
+
)) : new w(
|
|
1634
1632
|
this._renderingMode,
|
|
1635
1633
|
this._initialArgs,
|
|
1636
1634
|
this._initialUiState,
|
|
@@ -1643,7 +1641,7 @@ const A = class A {
|
|
|
1643
1641
|
);
|
|
1644
1642
|
}
|
|
1645
1643
|
sections(e) {
|
|
1646
|
-
return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new
|
|
1644
|
+
return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new w(
|
|
1647
1645
|
this._renderingMode,
|
|
1648
1646
|
this._initialArgs,
|
|
1649
1647
|
this._initialUiState,
|
|
@@ -1653,7 +1651,7 @@ const A = class A {
|
|
|
1653
1651
|
this._title,
|
|
1654
1652
|
this._enrichmentTargets,
|
|
1655
1653
|
this._featureFlags
|
|
1656
|
-
)) : new
|
|
1654
|
+
)) : new w(
|
|
1657
1655
|
this._renderingMode,
|
|
1658
1656
|
this._initialArgs,
|
|
1659
1657
|
this._initialUiState,
|
|
@@ -1667,7 +1665,7 @@ const A = class A {
|
|
|
1667
1665
|
}
|
|
1668
1666
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
1669
1667
|
title(e) {
|
|
1670
|
-
return G("title", () => e(new ne())), new
|
|
1668
|
+
return G("title", () => e(new ne())), new w(
|
|
1671
1669
|
this._renderingMode,
|
|
1672
1670
|
this._initialArgs,
|
|
1673
1671
|
this._initialUiState,
|
|
@@ -1684,7 +1682,7 @@ const A = class A {
|
|
|
1684
1682
|
* @deprecated use {@link withArgs}
|
|
1685
1683
|
* */
|
|
1686
1684
|
initialArgs(e) {
|
|
1687
|
-
return new
|
|
1685
|
+
return new w(
|
|
1688
1686
|
this._renderingMode,
|
|
1689
1687
|
e,
|
|
1690
1688
|
this._initialUiState,
|
|
@@ -1698,7 +1696,7 @@ const A = class A {
|
|
|
1698
1696
|
}
|
|
1699
1697
|
/** Sets initial args for the block, this value must be specified. */
|
|
1700
1698
|
withArgs(e) {
|
|
1701
|
-
return new
|
|
1699
|
+
return new w(
|
|
1702
1700
|
this._renderingMode,
|
|
1703
1701
|
e,
|
|
1704
1702
|
this._initialUiState,
|
|
@@ -1712,7 +1710,7 @@ const A = class A {
|
|
|
1712
1710
|
}
|
|
1713
1711
|
/** Defines type and sets initial value for block UiState. */
|
|
1714
1712
|
withUiState(e) {
|
|
1715
|
-
return new
|
|
1713
|
+
return new w(
|
|
1716
1714
|
this._renderingMode,
|
|
1717
1715
|
this._initialArgs,
|
|
1718
1716
|
e,
|
|
@@ -1726,7 +1724,7 @@ const A = class A {
|
|
|
1726
1724
|
}
|
|
1727
1725
|
/** Sets or overrides feature flags for the block. */
|
|
1728
1726
|
withFeatureFlags(e) {
|
|
1729
|
-
return new
|
|
1727
|
+
return new w(
|
|
1730
1728
|
this._renderingMode,
|
|
1731
1729
|
this._initialArgs,
|
|
1732
1730
|
this._initialUiState,
|
|
@@ -1743,7 +1741,7 @@ const A = class A {
|
|
|
1743
1741
|
* Influences dependency graph construction.
|
|
1744
1742
|
*/
|
|
1745
1743
|
enriches(e) {
|
|
1746
|
-
return G("enrichmentTargets", e), new
|
|
1744
|
+
return G("enrichmentTargets", e), new w(
|
|
1747
1745
|
this._renderingMode,
|
|
1748
1746
|
this._initialArgs,
|
|
1749
1747
|
this._initialUiState,
|
|
@@ -1784,22 +1782,22 @@ const A = class A {
|
|
|
1784
1782
|
sdkVersion: X,
|
|
1785
1783
|
renderingMode: this._renderingMode,
|
|
1786
1784
|
initialArgs: this._initialArgs,
|
|
1787
|
-
inputsValid:
|
|
1788
|
-
sections:
|
|
1785
|
+
inputsValid: ge(this._inputsValid),
|
|
1786
|
+
sections: ge(this._sections),
|
|
1789
1787
|
outputs: Object.fromEntries(
|
|
1790
|
-
Object.entries(this._outputs).map(([r, i]) => [r,
|
|
1788
|
+
Object.entries(this._outputs).map(([r, i]) => [r, ge(i)])
|
|
1791
1789
|
)
|
|
1792
1790
|
};
|
|
1793
|
-
return globalThis.platformaApiVersion = e,
|
|
1791
|
+
return globalThis.platformaApiVersion = e, Vt() ? He({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n };
|
|
1794
1792
|
}
|
|
1795
1793
|
};
|
|
1796
|
-
V(
|
|
1794
|
+
V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
1797
1795
|
supportsLazyState: !0,
|
|
1798
1796
|
requiresUIAPIVersion: 1,
|
|
1799
1797
|
requiresModelAPIVersion: 1
|
|
1800
1798
|
});
|
|
1801
|
-
let
|
|
1802
|
-
function
|
|
1799
|
+
let Ne = w;
|
|
1800
|
+
function tt() {
|
|
1803
1801
|
return {
|
|
1804
1802
|
sourceId: null,
|
|
1805
1803
|
hiddenColIds: null,
|
|
@@ -1808,72 +1806,72 @@ function Qe() {
|
|
|
1808
1806
|
sorting: []
|
|
1809
1807
|
};
|
|
1810
1808
|
}
|
|
1811
|
-
function
|
|
1809
|
+
function Ue() {
|
|
1812
1810
|
return {
|
|
1813
1811
|
version: 4,
|
|
1814
1812
|
stateCache: [],
|
|
1815
|
-
pTableParams:
|
|
1813
|
+
pTableParams: tt()
|
|
1816
1814
|
};
|
|
1817
1815
|
}
|
|
1818
|
-
function
|
|
1819
|
-
return "version" in t || (t =
|
|
1816
|
+
function tn(t) {
|
|
1817
|
+
return "version" in t || (t = Ue()), t.version === 2 && (t = {
|
|
1820
1818
|
version: 3,
|
|
1821
1819
|
stateCache: t.stateCache.map((e) => ({
|
|
1822
1820
|
...e,
|
|
1823
1821
|
filtersState: []
|
|
1824
1822
|
})),
|
|
1825
|
-
pTableParams:
|
|
1826
|
-
}), t.version === 3 && (t =
|
|
1823
|
+
pTableParams: tt()
|
|
1824
|
+
}), t.version === 3 && (t = Ue()), t;
|
|
1827
1825
|
}
|
|
1828
|
-
function
|
|
1829
|
-
return t.axesSpec.length === 1 && t.name ===
|
|
1826
|
+
function we(t) {
|
|
1827
|
+
return t.axesSpec.length === 1 && t.name === de.Label;
|
|
1830
1828
|
}
|
|
1831
|
-
function
|
|
1829
|
+
function nn(t) {
|
|
1832
1830
|
return new Q().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
1833
|
-
name:
|
|
1831
|
+
name: de.Label,
|
|
1834
1832
|
axes: [{}]
|
|
1835
1833
|
// exactly one axis
|
|
1836
1834
|
}, { dontWaitAllData: !0 });
|
|
1837
1835
|
}
|
|
1838
|
-
function
|
|
1836
|
+
function Ke(t, e) {
|
|
1839
1837
|
const n = [], r = [];
|
|
1840
1838
|
for (const a of t)
|
|
1841
|
-
|
|
1839
|
+
we(a.spec) ? n.push(a) : r.push(a);
|
|
1842
1840
|
const i = [];
|
|
1843
1841
|
for (const a of r)
|
|
1844
1842
|
for (const l of a.spec.axesSpec) {
|
|
1845
|
-
const
|
|
1846
|
-
i.some((
|
|
1843
|
+
const c = F(l);
|
|
1844
|
+
i.some((m) => U(m, c)) || i.push(c);
|
|
1847
1845
|
}
|
|
1848
1846
|
for (const a of n) {
|
|
1849
|
-
const l =
|
|
1850
|
-
|
|
1847
|
+
const l = F(a.spec.axesSpec[0]), c = i.findIndex((m) => U(m, l));
|
|
1848
|
+
c !== -1 && i.splice(c, 1);
|
|
1851
1849
|
}
|
|
1852
1850
|
const o = (a, l) => {
|
|
1853
|
-
let
|
|
1851
|
+
let c = a.toString();
|
|
1854
1852
|
if (l)
|
|
1855
|
-
for (const
|
|
1856
|
-
|
|
1857
|
-
return
|
|
1853
|
+
for (const m in l)
|
|
1854
|
+
c += m, c += l[m];
|
|
1855
|
+
return c;
|
|
1858
1856
|
}, s = [];
|
|
1859
1857
|
for (const a of e) {
|
|
1860
|
-
const l = a.spec.axesSpec[0],
|
|
1861
|
-
if (
|
|
1862
|
-
const
|
|
1863
|
-
|
|
1864
|
-
id: o(a.id,
|
|
1858
|
+
const l = a.spec.axesSpec[0], c = F(l), m = i.findIndex((d) => U(d, c));
|
|
1859
|
+
if (m !== -1) {
|
|
1860
|
+
const d = i[m], h = Object.keys(d.domain ?? {}).length, f = Object.keys(l.domain ?? {}).length;
|
|
1861
|
+
h > f ? s.push({
|
|
1862
|
+
id: o(a.id, d.domain),
|
|
1865
1863
|
spec: {
|
|
1866
1864
|
...a.spec,
|
|
1867
|
-
axesSpec: [{ ...
|
|
1865
|
+
axesSpec: [{ ...d, annotations: l.annotations }]
|
|
1868
1866
|
},
|
|
1869
1867
|
data: a.data
|
|
1870
|
-
}) : s.push(a), i.splice(
|
|
1868
|
+
}) : s.push(a), i.splice(m, 1);
|
|
1871
1869
|
}
|
|
1872
1870
|
}
|
|
1873
1871
|
return s;
|
|
1874
1872
|
}
|
|
1875
|
-
function
|
|
1876
|
-
const e = (i) => Array.isArray(i), n = (i) => i instanceof
|
|
1873
|
+
function rn(t) {
|
|
1874
|
+
const e = (i) => Array.isArray(i), n = (i) => i instanceof k, r = (i) => typeof i == "object" && "type" in i;
|
|
1877
1875
|
return t.map((i) => i.data).every((i) => {
|
|
1878
1876
|
if (e(i))
|
|
1879
1877
|
return !0;
|
|
@@ -1894,7 +1892,7 @@ function Xt(t) {
|
|
|
1894
1892
|
throw Error(`unsupported column data type: ${i}`);
|
|
1895
1893
|
});
|
|
1896
1894
|
}
|
|
1897
|
-
function
|
|
1895
|
+
function qe(t) {
|
|
1898
1896
|
let e = t.columns;
|
|
1899
1897
|
const n = [];
|
|
1900
1898
|
if (t.coreColumnPredicate) {
|
|
@@ -1916,77 +1914,75 @@ function Ne(t) {
|
|
|
1916
1914
|
sorting: t.sorting
|
|
1917
1915
|
};
|
|
1918
1916
|
}
|
|
1919
|
-
function
|
|
1920
|
-
|
|
1921
|
-
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
1917
|
+
function on(t) {
|
|
1918
|
+
return J(t, R.Table.Visibility) === "hidden";
|
|
1922
1919
|
}
|
|
1923
|
-
function
|
|
1924
|
-
|
|
1925
|
-
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
1920
|
+
function sn(t) {
|
|
1921
|
+
return J(t, R.Table.Visibility) === "optional";
|
|
1926
1922
|
}
|
|
1927
|
-
function
|
|
1923
|
+
function be(t, e) {
|
|
1928
1924
|
return [...new Map(t.map((n) => [e(n), n])).values()];
|
|
1929
1925
|
}
|
|
1930
|
-
function
|
|
1926
|
+
function Xn(t, e, n, r) {
|
|
1931
1927
|
if (e.length === 0) return;
|
|
1932
|
-
const i = e.filter((
|
|
1928
|
+
const i = e.filter((u) => Fe(u.spec) || !on(u.spec)), o = tn(n), s = nn(t.resultPool);
|
|
1933
1929
|
if (!s) return;
|
|
1934
|
-
const a =
|
|
1935
|
-
...
|
|
1936
|
-
[...l.flatMap((
|
|
1937
|
-
(
|
|
1938
|
-
).map((
|
|
1939
|
-
...l.map((
|
|
1940
|
-
],
|
|
1941
|
-
const
|
|
1942
|
-
return
|
|
1943
|
-
}), p =
|
|
1930
|
+
const a = Ke(i.map(ve), s), l = [...i, ...a], m = [
|
|
1931
|
+
...be(
|
|
1932
|
+
[...l.flatMap((u) => u.spec.axesSpec.map((b) => F(b)))],
|
|
1933
|
+
(u) => D(u)
|
|
1934
|
+
).map((u) => ({ type: "axis", id: u })),
|
|
1935
|
+
...l.map((u) => ({ type: "column", id: u.id }))
|
|
1936
|
+
], d = new Set(m.map((u) => D(u))), h = (u) => d.has(D(u)), f = (r == null ? void 0 : r.coreJoinType) ?? "full", y = o.pTableParams.partitionFilters.filter((u) => {
|
|
1937
|
+
const b = h(u.column);
|
|
1938
|
+
return b || t.logWarn(`Partition filter ${JSON.stringify(u)} does not match provided columns, skipping`), b;
|
|
1939
|
+
}), p = be(
|
|
1944
1940
|
[...(r == null ? void 0 : r.filters) ?? [], ...o.pTableParams.filters],
|
|
1945
|
-
(
|
|
1946
|
-
).filter((
|
|
1947
|
-
const
|
|
1948
|
-
return
|
|
1949
|
-
}), g =
|
|
1941
|
+
(u) => D(u.column)
|
|
1942
|
+
).filter((u) => {
|
|
1943
|
+
const b = h(u.column);
|
|
1944
|
+
return b || t.logWarn(`Filter ${JSON.stringify(u)} does not match provided columns, skipping`), b;
|
|
1945
|
+
}), g = be(
|
|
1950
1946
|
[...(r == null ? void 0 : r.sorting) ?? [], ...o.pTableParams.sorting],
|
|
1951
|
-
(
|
|
1952
|
-
).filter((
|
|
1953
|
-
const
|
|
1954
|
-
return
|
|
1955
|
-
}),
|
|
1947
|
+
(u) => D(u.column)
|
|
1948
|
+
).filter((u) => {
|
|
1949
|
+
const b = h(u.column);
|
|
1950
|
+
return b || t.logWarn(`Sorting ${JSON.stringify(u)} does not match provided columns, skipping`), b;
|
|
1951
|
+
}), P = qe({
|
|
1956
1952
|
columns: i,
|
|
1957
1953
|
labelColumns: a,
|
|
1958
|
-
coreJoinType:
|
|
1954
|
+
coreJoinType: f,
|
|
1959
1955
|
partitionFilters: y,
|
|
1960
1956
|
filters: p,
|
|
1961
1957
|
sorting: g,
|
|
1962
1958
|
coreColumnPredicate: r == null ? void 0 : r.coreColumnPredicate
|
|
1963
|
-
}), E = t.createPTable(
|
|
1964
|
-
if (
|
|
1965
|
-
const
|
|
1966
|
-
return
|
|
1959
|
+
}), E = t.createPTable(P), x = new Set((() => {
|
|
1960
|
+
if (f === "inner") return [];
|
|
1961
|
+
const u = o.pTableParams.hiddenColIds;
|
|
1962
|
+
return u || i.filter((b) => sn(b.spec)).map((b) => b.id);
|
|
1967
1963
|
})());
|
|
1968
|
-
i.filter((
|
|
1969
|
-
var
|
|
1970
|
-
return (
|
|
1971
|
-
}).forEach((
|
|
1972
|
-
const
|
|
1973
|
-
if (!
|
|
1974
|
-
const
|
|
1975
|
-
columns:
|
|
1976
|
-
labelColumns:
|
|
1977
|
-
coreJoinType:
|
|
1964
|
+
i.filter((u) => Fe(u.spec)).forEach((u) => x.delete(u.id)), r != null && r.coreColumnPredicate && i.flatMap((b) => {
|
|
1965
|
+
var K;
|
|
1966
|
+
return (K = r == null ? void 0 : r.coreColumnPredicate) != null && K.call(r, b.spec) ? [b.id] : [];
|
|
1967
|
+
}).forEach((b) => x.delete(b)), [...y.map((u) => u.column), ...p.map((u) => u.column), ...g.map((u) => u.column)].filter((u) => u.type === "column").forEach((u) => x.delete(u.id));
|
|
1968
|
+
const T = i.filter((u) => !x.has(u.id)), S = Ke(T.map(ve), s);
|
|
1969
|
+
if (!rn([...T, ...S])) return;
|
|
1970
|
+
const C = qe({
|
|
1971
|
+
columns: T,
|
|
1972
|
+
labelColumns: S,
|
|
1973
|
+
coreJoinType: f,
|
|
1978
1974
|
partitionFilters: y,
|
|
1979
1975
|
filters: p,
|
|
1980
1976
|
sorting: g,
|
|
1981
1977
|
coreColumnPredicate: r == null ? void 0 : r.coreColumnPredicate
|
|
1982
|
-
}),
|
|
1978
|
+
}), I = t.createPTable(C);
|
|
1983
1979
|
return {
|
|
1984
1980
|
sourceId: o.pTableParams.sourceId,
|
|
1985
1981
|
fullTableHandle: E,
|
|
1986
|
-
visibleTableHandle:
|
|
1982
|
+
visibleTableHandle: I
|
|
1987
1983
|
};
|
|
1988
1984
|
}
|
|
1989
|
-
function
|
|
1985
|
+
function Yn(t, e, n) {
|
|
1990
1986
|
const r = t.resultPool.findLabels(e);
|
|
1991
1987
|
return {
|
|
1992
1988
|
axis: e,
|
|
@@ -1997,7 +1993,7 @@ function Gn(t, e, n) {
|
|
|
1997
1993
|
defaultValue: n[0]
|
|
1998
1994
|
};
|
|
1999
1995
|
}
|
|
2000
|
-
const
|
|
1996
|
+
const an = (t, e) => {
|
|
2001
1997
|
let n = t.toString();
|
|
2002
1998
|
return e == null || e.forEach((r) => {
|
|
2003
1999
|
if (r)
|
|
@@ -2005,7 +2001,7 @@ const Zt = (t, e) => {
|
|
|
2005
2001
|
n += i, n += o;
|
|
2006
2002
|
}), n;
|
|
2007
2003
|
};
|
|
2008
|
-
function
|
|
2004
|
+
function ln(t) {
|
|
2009
2005
|
if (!t.length)
|
|
2010
2006
|
return [];
|
|
2011
2007
|
let e = [[]];
|
|
@@ -2016,93 +2012,73 @@ function en(t) {
|
|
|
2016
2012
|
}), e = r;
|
|
2017
2013
|
}), e;
|
|
2018
2014
|
}
|
|
2019
|
-
function
|
|
2020
|
-
|
|
2021
|
-
return ((e = t.annotations) == null ? void 0 : e[nn]) === "true";
|
|
2022
|
-
}
|
|
2023
|
-
const tn = "pl7.app/graph/isVirtual", Ue = "pl7.app/label", nn = "pl7.app/isLinkerColumn";
|
|
2024
|
-
function rn(t) {
|
|
2025
|
-
var n, r;
|
|
2026
|
-
const e = /* @__PURE__ */ new Map();
|
|
2027
|
-
for (const { spec: i } of t) {
|
|
2028
|
-
const o = i.axesSpec.map(k).map(D);
|
|
2029
|
-
o.forEach((s) => {
|
|
2030
|
-
e.has(s) || e.set(s, /* @__PURE__ */ new Set());
|
|
2031
|
-
});
|
|
2032
|
-
for (let s = 0; s < o.length - 1; s++)
|
|
2033
|
-
for (let a = s + 1; a < o.length; a++) {
|
|
2034
|
-
const l = o[s], u = o[a];
|
|
2035
|
-
(n = e.get(l)) == null || n.add(u), (r = e.get(u)) == null || r.add(l);
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
return e;
|
|
2015
|
+
function Fe(t) {
|
|
2016
|
+
return !!St(t, R.IsLinkerColumn);
|
|
2039
2017
|
}
|
|
2040
|
-
function
|
|
2041
|
-
const n =
|
|
2042
|
-
for (const
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
const l = [];
|
|
2050
|
-
for (const u of a)
|
|
2051
|
-
for (const h of n.get(u) ?? [])
|
|
2052
|
-
o.has(h) || (l.push(h), o.add(h), s.set(h, Le(h)));
|
|
2053
|
-
a = l;
|
|
2018
|
+
function un(t, e) {
|
|
2019
|
+
const n = Pt.fromColumns(t.map(ve)), r = [], i = [...e.values()].map((a) => At(wt(a)).map(F));
|
|
2020
|
+
for (const a of i) {
|
|
2021
|
+
const l = n.keyAxesIds.find(
|
|
2022
|
+
(c) => c.every(
|
|
2023
|
+
(m) => a.find((d) => U(d, m))
|
|
2024
|
+
)
|
|
2025
|
+
);
|
|
2026
|
+
l && r.push(D(l));
|
|
2054
2027
|
}
|
|
2055
|
-
|
|
2028
|
+
const o = n.searchAvailableAxesKeys(r), s = n.getAxesListFromKeysList([...o]);
|
|
2029
|
+
return new Map(s.map((a) => {
|
|
2030
|
+
const l = F(a);
|
|
2031
|
+
return [D(l), a];
|
|
2032
|
+
}));
|
|
2056
2033
|
}
|
|
2057
|
-
function
|
|
2034
|
+
function je(t, e) {
|
|
2058
2035
|
const n = [];
|
|
2059
2036
|
return e.forEach((r) => {
|
|
2060
|
-
n.push(...
|
|
2037
|
+
n.push(...cn(t, r));
|
|
2061
2038
|
}), n;
|
|
2062
2039
|
}
|
|
2063
|
-
function
|
|
2064
|
-
const n = e.spec.axesSpec.map(
|
|
2065
|
-
if (n.every((
|
|
2040
|
+
function cn(t, e) {
|
|
2041
|
+
const n = e.spec.axesSpec.map(F);
|
|
2042
|
+
if (n.every((c) => t.has(D(c))))
|
|
2066
2043
|
return [e];
|
|
2067
|
-
const r = n.map((
|
|
2068
|
-
const
|
|
2069
|
-
for (const [
|
|
2070
|
-
U(
|
|
2071
|
-
return
|
|
2072
|
-
}), i =
|
|
2073
|
-
const
|
|
2074
|
-
return
|
|
2075
|
-
const
|
|
2044
|
+
const r = n.map((c) => {
|
|
2045
|
+
const m = [];
|
|
2046
|
+
for (const [d, h] of t)
|
|
2047
|
+
U(h, c) && !U(c, h) && m.push(h);
|
|
2048
|
+
return m;
|
|
2049
|
+
}), i = ln(r), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = i.map((c) => {
|
|
2050
|
+
const m = /* @__PURE__ */ new Set();
|
|
2051
|
+
return c.map((d, h) => {
|
|
2052
|
+
const f = e.spec.axesSpec[h].domain, y = d.domain;
|
|
2076
2053
|
return Object.entries(y ?? {}).forEach(([p, g]) => {
|
|
2077
|
-
if ((
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2054
|
+
if ((f == null ? void 0 : f[p]) === void 0) {
|
|
2055
|
+
const P = JSON.stringify([p, g]);
|
|
2056
|
+
m.add(P), o.add(P);
|
|
2080
2057
|
}
|
|
2081
2058
|
}), {
|
|
2082
|
-
...
|
|
2083
|
-
annotations: e.spec.axesSpec[
|
|
2059
|
+
...d,
|
|
2060
|
+
annotations: e.spec.axesSpec[h].annotations
|
|
2084
2061
|
};
|
|
2085
|
-
}),
|
|
2062
|
+
}), m;
|
|
2086
2063
|
});
|
|
2087
|
-
[...o].forEach((
|
|
2088
|
-
a.some((
|
|
2064
|
+
[...o].forEach((c) => {
|
|
2065
|
+
a.some((m) => !m.has(c)) && s.add(c);
|
|
2089
2066
|
});
|
|
2090
|
-
const l = i.map((
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
return (C = JSON.parse(g)) == null ? void 0 : C[1];
|
|
2067
|
+
const l = i.map((c, m) => {
|
|
2068
|
+
const d = an(e.id, c.map((p) => p.domain)), h = J(e.spec, R.Label) ?? "", f = [...a[m]].filter((p) => s.has(p)).sort().map((p) => {
|
|
2069
|
+
var g;
|
|
2070
|
+
return (g = JSON.parse(p)) == null ? void 0 : g[1];
|
|
2095
2071
|
}).join(" / "), y = {
|
|
2096
2072
|
...e.spec.annotations,
|
|
2097
|
-
[
|
|
2073
|
+
[R.Graph.IsVirtual]: Be(!0)
|
|
2098
2074
|
};
|
|
2099
|
-
return (
|
|
2100
|
-
id:
|
|
2075
|
+
return (h || f) && (y[R.Label] = h && f ? h + " / " + f : h + f), {
|
|
2076
|
+
id: d,
|
|
2101
2077
|
spec: {
|
|
2102
2078
|
...e.spec,
|
|
2103
|
-
axesSpec:
|
|
2104
|
-
...
|
|
2105
|
-
annotations: e.spec.axesSpec[
|
|
2079
|
+
axesSpec: c.map((p, g) => ({
|
|
2080
|
+
...p,
|
|
2081
|
+
annotations: e.spec.axesSpec[g].annotations
|
|
2106
2082
|
})),
|
|
2107
2083
|
annotations: y
|
|
2108
2084
|
},
|
|
@@ -2111,26 +2087,26 @@ function sn(t, e) {
|
|
|
2111
2087
|
});
|
|
2112
2088
|
return [e, ...l];
|
|
2113
2089
|
}
|
|
2114
|
-
function
|
|
2090
|
+
function pn(t) {
|
|
2115
2091
|
let e = !0;
|
|
2116
|
-
return t.data instanceof
|
|
2092
|
+
return t.data instanceof k ? e = e && t.data.getIsReadyOrError() : pe(t.data) && Ft(t.data, (n) => {
|
|
2117
2093
|
e = e && n.getIsReadyOrError();
|
|
2118
2094
|
}), e;
|
|
2119
2095
|
}
|
|
2120
2096
|
function re(t) {
|
|
2121
|
-
return t.every(
|
|
2097
|
+
return t.every(pn);
|
|
2122
2098
|
}
|
|
2123
|
-
function
|
|
2099
|
+
function Qn(t, e) {
|
|
2124
2100
|
if (!e) {
|
|
2125
|
-
const
|
|
2126
|
-
|
|
2127
|
-
const
|
|
2128
|
-
if (!re(
|
|
2101
|
+
const d = new Q();
|
|
2102
|
+
d.addColumnProvider(t.resultPool);
|
|
2103
|
+
const h = d.getColumns(() => !0, { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? [];
|
|
2104
|
+
if (!re(h))
|
|
2129
2105
|
return;
|
|
2130
|
-
const
|
|
2131
|
-
const g =
|
|
2132
|
-
return [D(g),
|
|
2133
|
-
})), y =
|
|
2106
|
+
const f = new Map(h.flatMap((p) => he(p.spec.axesSpec)).map((p) => {
|
|
2107
|
+
const g = F(p);
|
|
2108
|
+
return [D(g), p];
|
|
2109
|
+
})), y = je(f, h);
|
|
2134
2110
|
return t.createPFrame(y);
|
|
2135
2111
|
}
|
|
2136
2112
|
if (!re(e))
|
|
@@ -2138,82 +2114,82 @@ function Hn(t, e) {
|
|
|
2138
2114
|
const n = new Q();
|
|
2139
2115
|
n.addColumnProvider(t.resultPool), n.addColumns(e);
|
|
2140
2116
|
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
2141
|
-
for (const
|
|
2142
|
-
for (const
|
|
2143
|
-
const
|
|
2144
|
-
r.set(D(
|
|
2117
|
+
for (const d of e)
|
|
2118
|
+
for (const h of he(d.spec.axesSpec)) {
|
|
2119
|
+
const f = F(h);
|
|
2120
|
+
r.set(D(f), h), i.set(D(f), h);
|
|
2145
2121
|
}
|
|
2146
|
-
const o = n.getColumns((
|
|
2147
|
-
for (const
|
|
2148
|
-
r.set(...
|
|
2149
|
-
const a = (n.getColumns((
|
|
2150
|
-
const
|
|
2122
|
+
const o = n.getColumns((d) => Fe(d)) ?? [], s = un(o, r);
|
|
2123
|
+
for (const d of s)
|
|
2124
|
+
r.set(...d), i.set(...d);
|
|
2125
|
+
const a = (n.getColumns((d) => d.axesSpec.some((h) => {
|
|
2126
|
+
const f = F(h);
|
|
2151
2127
|
for (const y of r.values())
|
|
2152
|
-
if (U(y,
|
|
2128
|
+
if (U(F(y), f))
|
|
2153
2129
|
return !0;
|
|
2154
2130
|
return !1;
|
|
2155
|
-
}), { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? []).filter((
|
|
2131
|
+
}), { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? []).filter((d) => !we(d.spec));
|
|
2156
2132
|
if (!re(a))
|
|
2157
2133
|
return;
|
|
2158
|
-
for (const
|
|
2159
|
-
for (const
|
|
2160
|
-
const
|
|
2161
|
-
i.set(D(
|
|
2134
|
+
for (const d of a)
|
|
2135
|
+
for (const h of he(d.spec.axesSpec)) {
|
|
2136
|
+
const f = F(h);
|
|
2137
|
+
i.set(D(f), h);
|
|
2162
2138
|
}
|
|
2163
|
-
const l = (n.getColumns((
|
|
2164
|
-
const
|
|
2139
|
+
const l = (n.getColumns((d) => d.axesSpec.some((h) => {
|
|
2140
|
+
const f = F(h);
|
|
2165
2141
|
for (const y of i.values())
|
|
2166
|
-
if (U(y,
|
|
2142
|
+
if (U(F(y), f))
|
|
2167
2143
|
return !0;
|
|
2168
2144
|
return !1;
|
|
2169
|
-
}), { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? []).filter((
|
|
2145
|
+
}), { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? []).filter((d) => we(d.spec));
|
|
2170
2146
|
if (!re(l))
|
|
2171
2147
|
return;
|
|
2172
|
-
const
|
|
2173
|
-
return t.createPFrame(
|
|
2148
|
+
const c = [...a, ...l], m = je(r, c);
|
|
2149
|
+
return t.createPFrame(m);
|
|
2174
2150
|
}
|
|
2175
|
-
function
|
|
2151
|
+
function Zn({
|
|
2176
2152
|
selection: t,
|
|
2177
|
-
columnId: e =
|
|
2153
|
+
columnId: e = _t(),
|
|
2178
2154
|
label: n = "Selection marker",
|
|
2179
2155
|
domain: r
|
|
2180
2156
|
}) {
|
|
2181
2157
|
if (!(t != null && t.axesSpec.length))
|
|
2182
2158
|
return;
|
|
2183
|
-
const i = t.selectedKeys.filter((o) => o.every((s) => !
|
|
2159
|
+
const i = t.selectedKeys.filter((o) => o.every((s) => !xt(s))).map((o) => ({ key: o, val: 1 }));
|
|
2184
2160
|
if (i.length)
|
|
2185
2161
|
return {
|
|
2186
2162
|
id: e,
|
|
2187
2163
|
spec: {
|
|
2188
2164
|
kind: "PColumn",
|
|
2189
|
-
valueType:
|
|
2190
|
-
name:
|
|
2165
|
+
valueType: It.Int,
|
|
2166
|
+
name: de.Table.RowSelection,
|
|
2191
2167
|
axesSpec: t.axesSpec,
|
|
2192
2168
|
...r && Object.keys(r).length && { domain: r },
|
|
2193
2169
|
annotations: {
|
|
2194
|
-
|
|
2195
|
-
|
|
2170
|
+
[R.Label]: n,
|
|
2171
|
+
[R.DiscreteValues]: Be([1])
|
|
2196
2172
|
}
|
|
2197
2173
|
},
|
|
2198
2174
|
data: i
|
|
2199
2175
|
};
|
|
2200
2176
|
}
|
|
2201
|
-
function
|
|
2177
|
+
function er() {
|
|
2202
2178
|
return {
|
|
2203
2179
|
axesSpec: [],
|
|
2204
2180
|
selectedKeys: []
|
|
2205
2181
|
};
|
|
2206
2182
|
}
|
|
2207
|
-
function
|
|
2183
|
+
function dn(t) {
|
|
2208
2184
|
throw new Error("Unexpected object: " + t);
|
|
2209
2185
|
}
|
|
2210
|
-
function
|
|
2186
|
+
function N(t) {
|
|
2211
2187
|
return t.valueType === "Int" || t.valueType === "Long" || t.valueType === "Float" || t.valueType === "Double";
|
|
2212
2188
|
}
|
|
2213
2189
|
function ie(t) {
|
|
2214
2190
|
return t.valueType === "String";
|
|
2215
2191
|
}
|
|
2216
|
-
const
|
|
2192
|
+
const nt = {
|
|
2217
2193
|
lessThan: {
|
|
2218
2194
|
label: "Col < X (Less Than)",
|
|
2219
2195
|
form: {
|
|
@@ -2234,7 +2210,7 @@ const Ze = {
|
|
|
2234
2210
|
defaultValue: () => 0
|
|
2235
2211
|
}
|
|
2236
2212
|
},
|
|
2237
|
-
supportedFor:
|
|
2213
|
+
supportedFor: N
|
|
2238
2214
|
},
|
|
2239
2215
|
greaterThan: {
|
|
2240
2216
|
label: "Col > X (Greater Than)",
|
|
@@ -2256,7 +2232,7 @@ const Ze = {
|
|
|
2256
2232
|
defaultValue: () => 0
|
|
2257
2233
|
}
|
|
2258
2234
|
},
|
|
2259
|
-
supportedFor:
|
|
2235
|
+
supportedFor: N
|
|
2260
2236
|
},
|
|
2261
2237
|
lessThanOrEqual: {
|
|
2262
2238
|
label: "Col ≤ X (Less Than or Equal)",
|
|
@@ -2278,7 +2254,7 @@ const Ze = {
|
|
|
2278
2254
|
defaultValue: () => 0
|
|
2279
2255
|
}
|
|
2280
2256
|
},
|
|
2281
|
-
supportedFor:
|
|
2257
|
+
supportedFor: N
|
|
2282
2258
|
},
|
|
2283
2259
|
greaterThanOrEqual: {
|
|
2284
2260
|
label: "Col ≥ X (Greater Than or Equal)",
|
|
@@ -2300,7 +2276,7 @@ const Ze = {
|
|
|
2300
2276
|
defaultValue: () => 0
|
|
2301
2277
|
}
|
|
2302
2278
|
},
|
|
2303
|
-
supportedFor:
|
|
2279
|
+
supportedFor: N
|
|
2304
2280
|
},
|
|
2305
2281
|
lessThanColumn: {
|
|
2306
2282
|
label: "Col₁ < Col₂ (Compare Columns)",
|
|
@@ -2329,7 +2305,7 @@ const Ze = {
|
|
|
2329
2305
|
}
|
|
2330
2306
|
}
|
|
2331
2307
|
},
|
|
2332
|
-
supportedFor: (t, e) =>
|
|
2308
|
+
supportedFor: (t, e) => N(t) && (e === void 0 || N(e))
|
|
2333
2309
|
},
|
|
2334
2310
|
lessThanColumnOrEqual: {
|
|
2335
2311
|
label: "Col₁ ≤ Col₂ (Compare Columns)",
|
|
@@ -2358,7 +2334,7 @@ const Ze = {
|
|
|
2358
2334
|
}
|
|
2359
2335
|
}
|
|
2360
2336
|
},
|
|
2361
|
-
supportedFor: (t, e) =>
|
|
2337
|
+
supportedFor: (t, e) => N(t) && (e === void 0 || N(e))
|
|
2362
2338
|
},
|
|
2363
2339
|
topN: {
|
|
2364
2340
|
label: "Top N",
|
|
@@ -2380,7 +2356,7 @@ const Ze = {
|
|
|
2380
2356
|
defaultValue: () => 10
|
|
2381
2357
|
}
|
|
2382
2358
|
},
|
|
2383
|
-
supportedFor:
|
|
2359
|
+
supportedFor: N
|
|
2384
2360
|
},
|
|
2385
2361
|
bottomN: {
|
|
2386
2362
|
label: "Bottom N",
|
|
@@ -2402,7 +2378,7 @@ const Ze = {
|
|
|
2402
2378
|
defaultValue: () => 10
|
|
2403
2379
|
}
|
|
2404
2380
|
},
|
|
2405
|
-
supportedFor:
|
|
2381
|
+
supportedFor: N
|
|
2406
2382
|
},
|
|
2407
2383
|
patternContainSubsequence: {
|
|
2408
2384
|
label: "Col ~ Seq (Contain Subsequence)",
|
|
@@ -2577,16 +2553,16 @@ const Ze = {
|
|
|
2577
2553
|
supportedFor: () => !1
|
|
2578
2554
|
}
|
|
2579
2555
|
};
|
|
2580
|
-
function
|
|
2581
|
-
return t ? Object.entries(
|
|
2556
|
+
function tr(t) {
|
|
2557
|
+
return t ? Object.entries(nt).filter(([e, n]) => n.supportedFor(t)).map(([e, n]) => ({
|
|
2582
2558
|
label: n.label,
|
|
2583
2559
|
value: e
|
|
2584
2560
|
})) : [];
|
|
2585
2561
|
}
|
|
2586
|
-
function
|
|
2587
|
-
return
|
|
2562
|
+
function nr(t) {
|
|
2563
|
+
return nt[t];
|
|
2588
2564
|
}
|
|
2589
|
-
function
|
|
2565
|
+
function Ie(t) {
|
|
2590
2566
|
if (t.type === "or")
|
|
2591
2567
|
return {
|
|
2592
2568
|
type: "or",
|
|
@@ -2600,7 +2576,7 @@ function Ae(t) {
|
|
|
2600
2576
|
if (t.type === "not")
|
|
2601
2577
|
return {
|
|
2602
2578
|
type: "not",
|
|
2603
|
-
filter:
|
|
2579
|
+
filter: Ie(t.filter)
|
|
2604
2580
|
};
|
|
2605
2581
|
if (t.type === "isNA")
|
|
2606
2582
|
return {
|
|
@@ -2704,22 +2680,22 @@ function Ae(t) {
|
|
|
2704
2680
|
};
|
|
2705
2681
|
if (t.type === void 0)
|
|
2706
2682
|
throw new Error("Filter type is undefined, this should not happen");
|
|
2707
|
-
|
|
2683
|
+
dn(t);
|
|
2708
2684
|
}
|
|
2709
2685
|
function Me(t) {
|
|
2710
|
-
return t.filter((e) => e.type !== void 0).map(
|
|
2686
|
+
return t.filter((e) => e.type !== void 0).map(Ie);
|
|
2711
2687
|
}
|
|
2712
|
-
function
|
|
2688
|
+
function rr(t) {
|
|
2713
2689
|
return {
|
|
2714
2690
|
title: t.title,
|
|
2715
2691
|
mode: t.mode,
|
|
2716
2692
|
steps: t.steps.filter((e) => e.filter.type == null ? !1 : e.filter.type === "or" || e.filter.type === "and" ? e.filter.filters.length > 0 : !1).map((e) => ({
|
|
2717
2693
|
label: e.label.trim(),
|
|
2718
|
-
filter:
|
|
2694
|
+
filter: Ie(e.filter)
|
|
2719
2695
|
}))
|
|
2720
2696
|
};
|
|
2721
2697
|
}
|
|
2722
|
-
class
|
|
2698
|
+
class ir {
|
|
2723
2699
|
constructor(e) {
|
|
2724
2700
|
this.handle = e;
|
|
2725
2701
|
}
|
|
@@ -2736,140 +2712,134 @@ class er {
|
|
|
2736
2712
|
var r;
|
|
2737
2713
|
return (r = cfgRenderCtx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
2738
2714
|
...e,
|
|
2739
|
-
filters:
|
|
2715
|
+
filters: Ae(e.filters)
|
|
2740
2716
|
}), await platforma.pFrameDriver.calculateTableData(this.handle, e, n);
|
|
2741
2717
|
}
|
|
2742
2718
|
async getUniqueValues(e) {
|
|
2743
2719
|
return await platforma.pFrameDriver.getUniqueValues(this.handle, e);
|
|
2744
2720
|
}
|
|
2745
2721
|
}
|
|
2746
|
-
function
|
|
2747
|
-
return
|
|
2722
|
+
function fn(t) {
|
|
2723
|
+
return Ge({
|
|
2748
2724
|
__isRef: !0,
|
|
2749
2725
|
blockId: ae(t, "blockId"),
|
|
2750
2726
|
name: ae(t, "name")
|
|
2751
2727
|
});
|
|
2752
2728
|
}
|
|
2753
|
-
function
|
|
2754
|
-
return
|
|
2755
|
-
ref:
|
|
2729
|
+
function or(t) {
|
|
2730
|
+
return Ge({
|
|
2731
|
+
ref: fn(ae(t, "ref")),
|
|
2756
2732
|
label: ae(t, "label")
|
|
2757
2733
|
});
|
|
2758
2734
|
}
|
|
2759
|
-
const
|
|
2735
|
+
const sr = {
|
|
2760
2736
|
sdkVersion: X
|
|
2761
2737
|
};
|
|
2762
|
-
function
|
|
2738
|
+
function ar() {
|
|
2763
2739
|
return platformaApiVersion ?? 1;
|
|
2764
2740
|
}
|
|
2765
|
-
function
|
|
2766
|
-
return
|
|
2741
|
+
function lr() {
|
|
2742
|
+
return He({ sdkVersion: X, apiVersion: platformaApiVersion });
|
|
2767
2743
|
}
|
|
2768
|
-
function
|
|
2744
|
+
function ur(t) {
|
|
2769
2745
|
if (typeof globalThis.getEnvironmentValue == "function")
|
|
2770
2746
|
return globalThis.getEnvironmentValue(t);
|
|
2771
2747
|
}
|
|
2772
2748
|
export {
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2749
|
+
Cn as Args,
|
|
2750
|
+
Ne as BlockModel,
|
|
2751
|
+
sr as CurrentSdkInfo,
|
|
2776
2752
|
L as FutureRef,
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
nn as LINKER_COLUMN_ANNOTATION,
|
|
2782
|
-
bn as MainOutputs,
|
|
2783
|
-
Tt as OutputError,
|
|
2784
|
-
It as PAnnotationLabel,
|
|
2785
|
-
_t as PAnnotationTrace,
|
|
2753
|
+
Tn as It,
|
|
2754
|
+
Gn as JsRenderInternal,
|
|
2755
|
+
Sn as MainOutputs,
|
|
2756
|
+
Lt as OutputError,
|
|
2786
2757
|
Q as PColumnCollection,
|
|
2787
|
-
|
|
2788
|
-
|
|
2758
|
+
ir as PFrameImpl,
|
|
2759
|
+
$ as RT_BINARY_PARTITIONED,
|
|
2789
2760
|
z as RT_BINARY_SUPER_PARTITIONED,
|
|
2790
2761
|
H as RT_JSON_PARTITIONED,
|
|
2791
2762
|
ce as RT_JSON_SUPER_PARTITIONED,
|
|
2792
2763
|
le as RT_RESOURCE_MAP,
|
|
2793
2764
|
ue as RT_RESOURCE_MAP_PARTITIONED,
|
|
2794
2765
|
ne as RenderCtx,
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2766
|
+
Qt as ResultPool,
|
|
2767
|
+
Pn as StagingOutputs,
|
|
2768
|
+
Ut as Trace,
|
|
2769
|
+
Nt as TraceEntry,
|
|
2770
|
+
k as TreeNodeAccessor,
|
|
2771
|
+
An as UiState,
|
|
2772
|
+
rn as allColumnsComputed,
|
|
2802
2773
|
re as allColumnsReady,
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2774
|
+
En as and,
|
|
2775
|
+
rr as compileAnnotationScript,
|
|
2776
|
+
Ie as compileFilter,
|
|
2806
2777
|
Me as compileFilters,
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2778
|
+
Jt as convertOrParsePColumnData,
|
|
2779
|
+
Qn as createPFrameForGraphs,
|
|
2780
|
+
Yn as createPlDataTableSheet,
|
|
2781
|
+
Ue as createPlDataTableStateV2,
|
|
2782
|
+
Xn as createPlDataTableV2,
|
|
2783
|
+
er as createPlSelectionModel,
|
|
2784
|
+
Zn as createRowSelectionColumn,
|
|
2785
|
+
Qe as deriveLabels,
|
|
2786
|
+
ge as downgradeCfgOrLambda,
|
|
2787
|
+
je as enrichCompatible,
|
|
2788
|
+
jn as extractArchiveAndGetURL,
|
|
2789
|
+
zn as extractConfig,
|
|
2790
|
+
Bt as filterDataInfoEntries,
|
|
2791
|
+
nt as filterUiMetadata,
|
|
2792
|
+
In as flatten,
|
|
2793
|
+
or as fromPlOption,
|
|
2794
|
+
fn as fromPlRef,
|
|
2795
|
+
nn as getAllLabelColumns,
|
|
2796
|
+
un as getAvailableWithLinkersAxes,
|
|
2797
|
+
Rn as getBlobContent,
|
|
2798
|
+
Un as getBlobContentAsJson,
|
|
2799
|
+
Nn as getBlobContentAsString,
|
|
2800
|
+
Kn as getDownloadedBlobContent,
|
|
2801
|
+
ur as getEnvironmentValue,
|
|
2802
|
+
nr as getFilterUiMetadata,
|
|
2803
|
+
tr as getFilterUiTypeOptions,
|
|
2833
2804
|
Z as getFromCfg,
|
|
2834
2805
|
se as getImmediate,
|
|
2835
|
-
|
|
2806
|
+
Mn as getImportProgress,
|
|
2836
2807
|
ae as getJsonField,
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
hn as wrapOutputs
|
|
2808
|
+
$n as getLastLogs,
|
|
2809
|
+
Wn as getLogHandle,
|
|
2810
|
+
Ke as getMatchingLabelColumns,
|
|
2811
|
+
qn as getOnDemandBlobContent,
|
|
2812
|
+
jt as getPartitionKeysList,
|
|
2813
|
+
ar as getPlatformaApiVersion,
|
|
2814
|
+
Jn as getProgressLog,
|
|
2815
|
+
Bn as getProgressLogWithInfo,
|
|
2816
|
+
lr as getRawPlatformaInstance,
|
|
2817
|
+
kn as getResourceField,
|
|
2818
|
+
Dn as getResourceValueAsJson,
|
|
2819
|
+
$t as getUniquePartitionKeys,
|
|
2820
|
+
Ce as ifDef,
|
|
2821
|
+
on as isColumnHidden,
|
|
2822
|
+
sn as isColumnOptional,
|
|
2823
|
+
pn as isColumnReady,
|
|
2824
|
+
en as isConfigLambda,
|
|
2825
|
+
_n as isEmpty,
|
|
2826
|
+
we as isLabelColumn,
|
|
2827
|
+
Fe as isLinkerColumn,
|
|
2828
|
+
vn as isolate,
|
|
2829
|
+
wn as makeArray,
|
|
2830
|
+
tt as makeDefaultPTableParams,
|
|
2831
|
+
Ge as makeObject,
|
|
2832
|
+
xn as mapArrayValues,
|
|
2833
|
+
Fn as mapRecordValues,
|
|
2834
|
+
On as mapResourceFields,
|
|
2835
|
+
Ln as not,
|
|
2836
|
+
Vn as or,
|
|
2837
|
+
Pe as parsePColumnData,
|
|
2838
|
+
Hn as parseResourceMap,
|
|
2839
|
+
Et as readOutput,
|
|
2840
|
+
be as uniqueBy,
|
|
2841
|
+
dn as unreachable,
|
|
2842
|
+
tn as upgradePlDataTableStateV2,
|
|
2843
|
+
bn as wrapOutputs
|
|
2874
2844
|
};
|
|
2875
2845
|
//# sourceMappingURL=index.mjs.map
|