@platforma-sdk/model 1.42.1 → 1.42.4
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/PlSelectionModel.d.ts +2 -5
- package/dist/components/PlSelectionModel.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +212 -216
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/PlSelectionModel.ts +2 -14
- package/src/render/util/column_collection.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var it = Object.defineProperty;
|
|
2
2
|
var ot = (t, e, n) => e in t ? it(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var V = (t, e, n) => ot(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { isPColumn as je, mapPObjectData as Ae, isDataInfoEntries as qe, isDataInfo as pe, dataInfoToEntries as st, selectorsToPredicate as Y, resolveAnchors as
|
|
4
|
+
import { isPColumn as je, mapPObjectData as Ae, isDataInfoEntries as qe, isDataInfo as pe, dataInfoToEntries as st, selectorsToPredicate as Y, resolveAnchors as Fe, deriveNativeId as at, isPColumnSpec as oe, isPartitionedDataInfoEntries as lt, getAxisId as k, entriesToDataInfo as ut, canonicalizeAxisId as ct, withEnrichments as xe, AnchoredIdDeriver as Ie, isPlRef as pt, mapValueInVOE as dt, ensurePColumn as ft, extractAllColumns as ht, mapPTableDef as mt, mapDataInfo as gt, extractConfigGeneric as yt, matchAxisId as U, getColumnIdAndSpec as _e, canonicalizeJson as D, parseJson as Le, visitDataInfo as bt, isPTableAbsent as vt, uniquePlId as Ct } from "@milaboratories/pl-model-common";
|
|
5
5
|
export * from "@milaboratories/pl-model-common";
|
|
6
6
|
import Be from "canonicalize";
|
|
7
7
|
import { z as B } from "zod";
|
|
8
8
|
export * from "@milaboratories/pl-error-like";
|
|
9
|
-
class
|
|
9
|
+
class Tt 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 St(t) {
|
|
15
|
+
if (!t.ok) throw new Tt(t.errors, t.moreErrors);
|
|
16
16
|
return t.value;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function hn(t) {
|
|
19
19
|
return new Proxy(t, {
|
|
20
20
|
get(e, n) {
|
|
21
|
-
return
|
|
21
|
+
return St(e[n]);
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
}
|
|
@@ -28,13 +28,13 @@ function A(t) {
|
|
|
28
28
|
function Z(t) {
|
|
29
29
|
return { type: "GetFromCtx", variable: t };
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function mn(t) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Isolate",
|
|
34
34
|
cfg: t
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const gn = Z("$args"), yn = Z("$it"), bn = Z("$prod"), vn = Z("$staging"), Cn = Z("$ui");
|
|
38
38
|
function se(t) {
|
|
39
39
|
return { type: "Immediate", value: t };
|
|
40
40
|
}
|
|
@@ -46,7 +46,7 @@ function Je(t) {
|
|
|
46
46
|
template: e
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Tn(...t) {
|
|
50
50
|
const e = [];
|
|
51
51
|
for (const n of t) e.push(A(n));
|
|
52
52
|
return {
|
|
@@ -61,7 +61,7 @@ function ae(t, e) {
|
|
|
61
61
|
field: A(e)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Sn(t, e, n = "$it") {
|
|
65
65
|
return {
|
|
66
66
|
type: "MapRecordValues",
|
|
67
67
|
source: t,
|
|
@@ -69,7 +69,7 @@ function Pn(t, e, n = "$it") {
|
|
|
69
69
|
itVar: n
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Pn(t, e, n = "$it") {
|
|
73
73
|
return {
|
|
74
74
|
type: "MapArrayValues",
|
|
75
75
|
source: t,
|
|
@@ -77,13 +77,13 @@ function An(t, e, n = "$it") {
|
|
|
77
77
|
itVar: n
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function An(t) {
|
|
81
81
|
return {
|
|
82
82
|
type: "Flatten",
|
|
83
83
|
source: t
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function wn(t) {
|
|
87
87
|
return {
|
|
88
88
|
type: "IsEmpty",
|
|
89
89
|
arg: t
|
|
@@ -95,28 +95,28 @@ function Fn(t) {
|
|
|
95
95
|
operand: t
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function xn(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 In(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 _n(t, e) {
|
|
113
113
|
return {
|
|
114
114
|
type: "GetResourceField",
|
|
115
115
|
source: A(t),
|
|
116
116
|
field: A(e)
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Ln() {
|
|
120
120
|
return function(t) {
|
|
121
121
|
return {
|
|
122
122
|
type: "GetResourceValueAsJson",
|
|
@@ -124,7 +124,7 @@ function En() {
|
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function En(t, e, n = "$it") {
|
|
128
128
|
return {
|
|
129
129
|
type: "MapResourceFields",
|
|
130
130
|
source: t,
|
|
@@ -132,21 +132,21 @@ function Vn(t, e, n = "$it") {
|
|
|
132
132
|
itVar: n
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Vn(t, e) {
|
|
136
136
|
return {
|
|
137
137
|
type: "GetBlobContent",
|
|
138
138
|
range: e,
|
|
139
139
|
source: A(t)
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function kn(t, e) {
|
|
143
143
|
return {
|
|
144
144
|
type: "GetBlobContentAsString",
|
|
145
145
|
range: e,
|
|
146
146
|
source: A(t)
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function On() {
|
|
150
150
|
return function(t, e) {
|
|
151
151
|
return {
|
|
152
152
|
type: "GetBlobContentAsJson",
|
|
@@ -155,59 +155,59 @@ function Dn() {
|
|
|
155
155
|
};
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Dn(t) {
|
|
159
159
|
return {
|
|
160
160
|
type: "GetDownloadedBlobContent",
|
|
161
161
|
source: A(t)
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Rn(t) {
|
|
165
165
|
return {
|
|
166
166
|
type: "GetOnDemandBlobContent",
|
|
167
167
|
source: A(t)
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Nn(t, e) {
|
|
171
171
|
return {
|
|
172
172
|
type: "ExtractArchiveAndGetURL",
|
|
173
173
|
format: e,
|
|
174
174
|
source: A(t)
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Un(t) {
|
|
178
178
|
return {
|
|
179
179
|
type: "GetImportProgress",
|
|
180
180
|
source: A(t)
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Kn(t, e) {
|
|
184
184
|
return {
|
|
185
185
|
type: "GetLastLogs",
|
|
186
186
|
source: A(t),
|
|
187
187
|
lines: e
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Mn(t, e) {
|
|
191
191
|
return {
|
|
192
192
|
type: "GetProgressLog",
|
|
193
193
|
source: A(t),
|
|
194
194
|
patternToSearch: e
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function jn(t, e) {
|
|
198
198
|
return {
|
|
199
199
|
type: "GetProgressLogWithInfo",
|
|
200
200
|
source: A(t),
|
|
201
201
|
patternToSearch: e
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function qn(t) {
|
|
205
205
|
return {
|
|
206
206
|
type: "GetLogHandle",
|
|
207
207
|
source: A(t)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Pt() {
|
|
211
211
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
212
212
|
}
|
|
213
213
|
function $e(t) {
|
|
@@ -216,7 +216,7 @@ function $e(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 At() {
|
|
220
220
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
221
221
|
}
|
|
222
222
|
function b() {
|
|
@@ -224,13 +224,13 @@ function b() {
|
|
|
224
224
|
throw new Error("Not in config rendering context");
|
|
225
225
|
}
|
|
226
226
|
function G(t, e) {
|
|
227
|
-
const n =
|
|
227
|
+
const n = At();
|
|
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
232
|
const fe = /* @__PURE__ */ new Map();
|
|
233
|
-
function
|
|
233
|
+
function wt(t, e) {
|
|
234
234
|
t in b().callbackRegistry || (b().callbackRegistry[t] = (n) => {
|
|
235
235
|
for (const r of fe.get(t))
|
|
236
236
|
r(n);
|
|
@@ -240,7 +240,7 @@ 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, wt(e, (r) => {
|
|
244
244
|
this.resolvedValue = n(r), this.isResolved = !0;
|
|
245
245
|
});
|
|
246
246
|
}
|
|
@@ -500,48 +500,48 @@ function be(t, e, n) {
|
|
|
500
500
|
for (const [, i] of Object.entries(n))
|
|
501
501
|
i !== n && be(t, e, i);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function xt(t) {
|
|
504
504
|
const e = /* @__PURE__ */ new Set();
|
|
505
505
|
return be(e, /* @__PURE__ */ new Set(), t), e;
|
|
506
506
|
}
|
|
507
|
-
const
|
|
507
|
+
const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
508
508
|
__proto__: null,
|
|
509
509
|
GlobalCfgRenderCtxFeatureFlags: Ft,
|
|
510
510
|
MainAccessorName: Ge,
|
|
511
511
|
StagingAccessorName: We,
|
|
512
|
-
getAllFutureAwaits:
|
|
512
|
+
getAllFutureAwaits: xt,
|
|
513
513
|
isFutureAwait: He
|
|
514
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
514
|
+
}, Symbol.toStringTag, { value: "Module" })), It = "pl7.app/label", _t = "pl7.app/trace", Lt = B.object({
|
|
515
515
|
type: B.string(),
|
|
516
516
|
importance: B.number().optional(),
|
|
517
517
|
id: B.string().optional(),
|
|
518
518
|
label: B.string()
|
|
519
|
-
}),
|
|
519
|
+
}), Et = B.array(Lt), Vt = 1e-3, kt = "__LABEL__", Ee = "__LABEL__@1";
|
|
520
520
|
function ze(t, e, n = {}) {
|
|
521
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((d) => {
|
|
522
522
|
var c, v;
|
|
523
523
|
const y = e(d);
|
|
524
524
|
let p, g, C;
|
|
525
525
|
"spec" in y && typeof y.spec == "object" ? (p = y.spec, g = y.prefixTrace, C = y.suffixTrace) : p = y;
|
|
526
|
-
const E = (c = p.annotations) == null ? void 0 : c[
|
|
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 = [
|
|
527
527
|
...g ?? [],
|
|
528
528
|
...S,
|
|
529
529
|
...C ?? []
|
|
530
530
|
];
|
|
531
531
|
if (E !== void 0) {
|
|
532
|
-
const I = { label: E, type:
|
|
532
|
+
const I = { label: E, type: kt, importance: -2 };
|
|
533
533
|
n.addLabelAsSuffix ? P.push(I) : P.splice(0, 0, I);
|
|
534
534
|
}
|
|
535
|
-
const T = [],
|
|
535
|
+
const T = [], x = /* @__PURE__ */ new Map();
|
|
536
536
|
for (let I = P.length - 1; I >= 0; --I) {
|
|
537
|
-
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (
|
|
538
|
-
|
|
537
|
+
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (x.get($) ?? 0) + 1;
|
|
538
|
+
x.set($, j);
|
|
539
539
|
const N = `${$}@${j}`;
|
|
540
540
|
o.set(N, (o.get(N) ?? 0) + 1), r.set(
|
|
541
541
|
N,
|
|
542
542
|
Math.max(
|
|
543
543
|
r.get(N) ?? Number.NEGATIVE_INFINITY,
|
|
544
|
-
K - (P.length - I) *
|
|
544
|
+
K - (P.length - I) * Vt
|
|
545
545
|
)
|
|
546
546
|
), T.push({ ...P[I], fullType: N, occurrenceIndex: j });
|
|
547
547
|
}
|
|
@@ -566,9 +566,9 @@ function ze(t, e, n = {}) {
|
|
|
566
566
|
value: C.value
|
|
567
567
|
});
|
|
568
568
|
else return;
|
|
569
|
-
const
|
|
569
|
+
const F = E.map((P) => P.label), S = n.separator ?? " / ";
|
|
570
570
|
p.push({
|
|
571
|
-
label:
|
|
571
|
+
label: F.join(S),
|
|
572
572
|
value: C.value
|
|
573
573
|
});
|
|
574
574
|
}
|
|
@@ -624,7 +624,7 @@ function Ye(t, e, n, r = [], i) {
|
|
|
624
624
|
throw new Error(`Unknown resource type: ${t.resourceType.name}`);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Jn(t, e, n = !1) {
|
|
628
628
|
const r = [];
|
|
629
629
|
return { isComplete: Ye(t, e, r, [], n), data: r };
|
|
630
630
|
}
|
|
@@ -635,7 +635,7 @@ const ve = (t) => {
|
|
|
635
635
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
636
636
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
637
637
|
};
|
|
638
|
-
function
|
|
638
|
+
function Ot(t) {
|
|
639
639
|
if (!t) return;
|
|
640
640
|
const e = t.resourceType.name, n = t.getDataAsJson(), r = [];
|
|
641
641
|
let i = 0;
|
|
@@ -681,7 +681,7 @@ function Dt(t) {
|
|
|
681
681
|
}
|
|
682
682
|
return { data: r, keyLength: i };
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Dt(t) {
|
|
685
685
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
686
686
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
687
687
|
const { parts: e, partitionKeyLength: n } = t, r = [];
|
|
@@ -700,11 +700,11 @@ function Rt(t) {
|
|
|
700
700
|
}
|
|
701
701
|
return r.map((i) => Array.from(i.values()));
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Rt(t) {
|
|
704
704
|
if (t === void 0) return;
|
|
705
705
|
if (qe(t))
|
|
706
|
-
return
|
|
707
|
-
const e =
|
|
706
|
+
return Dt(t);
|
|
707
|
+
const e = Ot(t);
|
|
708
708
|
if (!e) return;
|
|
709
709
|
const { data: n, keyLength: r } = e, i = [];
|
|
710
710
|
for (let o = 0; o < r; ++o)
|
|
@@ -815,7 +815,7 @@ function Ce(t, e = []) {
|
|
|
815
815
|
throw new Error(`Unknown resource type: ${n}`);
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function Nt(t) {
|
|
819
819
|
if (t !== void 0) {
|
|
820
820
|
if (qe(t)) return t;
|
|
821
821
|
if (pe(t)) return st(t);
|
|
@@ -823,7 +823,7 @@ function Ut(t) {
|
|
|
823
823
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Ut(t, e) {
|
|
827
827
|
const n = [...e].sort((o, s) => s[0] - o[0]);
|
|
828
828
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
829
829
|
const { partitionKeyLength: o } = t;
|
|
@@ -883,13 +883,13 @@ function Kt(t, e) {
|
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function Kt(t) {
|
|
887
887
|
if (!Array.isArray(t)) return !1;
|
|
888
888
|
if (t.length === 0) return !0;
|
|
889
889
|
const e = t[0];
|
|
890
890
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
891
891
|
}
|
|
892
|
-
class
|
|
892
|
+
class Mt {
|
|
893
893
|
constructor(e) {
|
|
894
894
|
this.columns = e;
|
|
895
895
|
}
|
|
@@ -898,7 +898,7 @@ class jt {
|
|
|
898
898
|
return this.columns.filter((r) => n(r.spec));
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function jt(t) {
|
|
902
902
|
if (t)
|
|
903
903
|
return t.map((e) => ({
|
|
904
904
|
type: `split:${ct(e.axisId)}`,
|
|
@@ -907,11 +907,11 @@ function qt(t) {
|
|
|
907
907
|
// High importance for split filters in labels
|
|
908
908
|
}));
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function qt(t) {
|
|
911
911
|
if (t)
|
|
912
912
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function Bt(t, e) {
|
|
915
915
|
if (!e || e.length === 0) return t;
|
|
916
916
|
const n = [...e].sort((r, i) => r[0] - i[0]);
|
|
917
917
|
return Be({ id: t, axisFilters: n });
|
|
@@ -921,7 +921,7 @@ function Ve(t) {
|
|
|
921
921
|
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);
|
|
922
922
|
return !!e.domainAnchor || n || r;
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function Jt(t) {
|
|
925
925
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
926
926
|
return [];
|
|
927
927
|
const e = t.axes.map((n, r) => typeof n == "object" && "split" in n && n.split === !0 ? r : -1).filter((n) => n !== -1);
|
|
@@ -932,7 +932,7 @@ function $t(t) {
|
|
|
932
932
|
class Q {
|
|
933
933
|
constructor() {
|
|
934
934
|
V(this, "defaultProviderStore", []);
|
|
935
|
-
V(this, "providers", [new
|
|
935
|
+
V(this, "providers", [new Mt(this.defaultProviderStore)]);
|
|
936
936
|
V(this, "axisLabelProviders", []);
|
|
937
937
|
}
|
|
938
938
|
addColumnProvider(e) {
|
|
@@ -965,7 +965,7 @@ class Q {
|
|
|
965
965
|
if (Ve(g)) {
|
|
966
966
|
if (!r)
|
|
967
967
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
968
|
-
return Y(
|
|
968
|
+
return Y(Fe(r.anchors, g, n));
|
|
969
969
|
} else
|
|
970
970
|
return Y(g);
|
|
971
971
|
});
|
|
@@ -978,39 +978,39 @@ class Q {
|
|
|
978
978
|
if (g) {
|
|
979
979
|
if (!r)
|
|
980
980
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
981
|
-
C =
|
|
981
|
+
C = Fe(r.anchors, p, n);
|
|
982
982
|
} else
|
|
983
983
|
C = p;
|
|
984
|
-
const E = /* @__PURE__ */ new Set(),
|
|
984
|
+
const E = /* @__PURE__ */ new Set(), F = [];
|
|
985
985
|
for (const T of this.providers) {
|
|
986
|
-
const
|
|
987
|
-
for (const c of
|
|
986
|
+
const x = T.selectColumns(C);
|
|
987
|
+
for (const c of x) {
|
|
988
988
|
if (u(c.spec)) continue;
|
|
989
989
|
if (E.has(c.id))
|
|
990
990
|
throw new Error(`Duplicate column id ${c.id} in provider ${T.constructor.name}`);
|
|
991
991
|
const v = at(c.spec);
|
|
992
|
-
m.has(v) || (E.add(c.id), m.add(v),
|
|
992
|
+
m.has(v) || (E.add(c.id), m.add(v), F.push(c));
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
if (
|
|
996
|
-
const S =
|
|
997
|
-
for (const T of
|
|
995
|
+
if (F.length === 0) continue;
|
|
996
|
+
const S = Jt(p), P = S.length > 0;
|
|
997
|
+
for (const T of F) {
|
|
998
998
|
if (!oe(T.spec)) continue;
|
|
999
|
-
const
|
|
999
|
+
const x = T.spec;
|
|
1000
1000
|
if (P) {
|
|
1001
|
-
if (
|
|
1001
|
+
if (Kt(T.data))
|
|
1002
1002
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T.id}`);
|
|
1003
|
-
const c =
|
|
1003
|
+
const c = Nt(T.data);
|
|
1004
1004
|
if (!c) {
|
|
1005
1005
|
if (o) continue;
|
|
1006
1006
|
return;
|
|
1007
1007
|
}
|
|
1008
1008
|
if (!lt(c))
|
|
1009
1009
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c.type} for column ${T.id}`);
|
|
1010
|
-
const v =
|
|
1010
|
+
const v = Rt(c), I = S[S.length - 1];
|
|
1011
1011
|
if (I >= c.partitionKeyLength)
|
|
1012
|
-
throw new Error(`Not enough partition keys (${c.partitionKeyLength}) for requested split axes (max index ${I}) in column ${
|
|
1013
|
-
const $ = S.map((_) => this.findLabels(k(
|
|
1012
|
+
throw new Error(`Not enough partition keys (${c.partitionKeyLength}) for requested split axes (max index ${I}) in column ${x.name}`);
|
|
1013
|
+
const $ = S.map((_) => this.findLabels(k(x.axesSpec[_]))), K = [], j = (_, W) => {
|
|
1014
1014
|
if (W >= S.length) {
|
|
1015
1015
|
if (K.push([..._]), K.length > 1e4)
|
|
1016
1016
|
throw new Error("Too many key combinations, aborting.");
|
|
@@ -1029,19 +1029,19 @@ class Q {
|
|
|
1029
1029
|
};
|
|
1030
1030
|
if (j([], 0), K.length === 0)
|
|
1031
1031
|
continue;
|
|
1032
|
-
const N = [...
|
|
1032
|
+
const N = [...x.axesSpec], et = S.map((_) => _);
|
|
1033
1033
|
for (let _ = S.length - 1; _ >= 0; _--)
|
|
1034
1034
|
N.splice(S[_], 1);
|
|
1035
|
-
const tt = { ...
|
|
1035
|
+
const tt = { ...x, axesSpec: N };
|
|
1036
1036
|
for (const _ of K) {
|
|
1037
1037
|
const W = _.map((M, q) => {
|
|
1038
|
-
const te = et[q], nt = k(
|
|
1038
|
+
const te = et[q], nt = k(x.axesSpec[te]), de = $[q], rt = (de == null ? void 0 : de[M]) ?? String(M);
|
|
1039
1039
|
return { axisIdx: te, axisId: nt, value: M, label: rt };
|
|
1040
1040
|
});
|
|
1041
1041
|
f.push({
|
|
1042
1042
|
type: "split",
|
|
1043
1043
|
originalColumn: T,
|
|
1044
|
-
spec:
|
|
1044
|
+
spec: x,
|
|
1045
1045
|
adjustedSpec: tt,
|
|
1046
1046
|
dataEntries: c,
|
|
1047
1047
|
axisFilters: W
|
|
@@ -1051,8 +1051,8 @@ class Q {
|
|
|
1051
1051
|
f.push({
|
|
1052
1052
|
type: "direct",
|
|
1053
1053
|
originalColumn: T,
|
|
1054
|
-
spec:
|
|
1055
|
-
adjustedSpec:
|
|
1054
|
+
spec: x,
|
|
1055
|
+
adjustedSpec: x
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
@@ -1061,14 +1061,14 @@ class Q {
|
|
|
1061
1061
|
f,
|
|
1062
1062
|
(p) => ({
|
|
1063
1063
|
spec: p.spec,
|
|
1064
|
-
suffixTrace: p.type === "split" ?
|
|
1064
|
+
suffixTrace: p.type === "split" ? jt(p.axisFilters) : void 0
|
|
1065
1065
|
}),
|
|
1066
1066
|
l
|
|
1067
1067
|
), y = [];
|
|
1068
1068
|
for (const { value: p, label: g } of d) {
|
|
1069
|
-
const { originalColumn: C, spec: E } = p,
|
|
1069
|
+
const { originalColumn: C, spec: E } = p, F = p.type === "split" ? p.axisFilters : void 0, S = qt(F);
|
|
1070
1070
|
let P;
|
|
1071
|
-
r ? P = r.deriveS(E, S) : P =
|
|
1071
|
+
r ? P = r.deriveS(E, S) : P = Bt(C.id, S);
|
|
1072
1072
|
let T = { ...p.adjustedSpec };
|
|
1073
1073
|
s && (T = {
|
|
1074
1074
|
...T,
|
|
@@ -1079,7 +1079,7 @@ class Q {
|
|
|
1079
1079
|
}), y.push({
|
|
1080
1080
|
id: P,
|
|
1081
1081
|
spec: T,
|
|
1082
|
-
data: () => p.type === "split" ? ut(
|
|
1082
|
+
data: () => p.type === "split" ? ut(Ut(p.dataEntries, S)) : p.originalColumn.data,
|
|
1083
1083
|
label: g
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
@@ -1151,7 +1151,7 @@ function he(t, e) {
|
|
|
1151
1151
|
function ke(t) {
|
|
1152
1152
|
return Ae(t, (e) => e instanceof O ? e.handle : pe(e) ? gt(e, (n) => n.handle) : e);
|
|
1153
1153
|
}
|
|
1154
|
-
class
|
|
1154
|
+
class $t {
|
|
1155
1155
|
constructor() {
|
|
1156
1156
|
V(this, "ctx", b());
|
|
1157
1157
|
}
|
|
@@ -1165,10 +1165,10 @@ class Wt {
|
|
|
1165
1165
|
const r = typeof e == "function" ? e : Y(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
1166
1166
|
let o = {}, s = !1;
|
|
1167
1167
|
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" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l }) => ({
|
|
1168
|
-
ref:
|
|
1168
|
+
ref: xe(a, s),
|
|
1169
1169
|
label: l
|
|
1170
1170
|
})) : i.map(({ ref: a, obj: l }) => ({
|
|
1171
|
-
ref:
|
|
1171
|
+
ref: xe(a, s),
|
|
1172
1172
|
label: o(l, a)
|
|
1173
1173
|
}));
|
|
1174
1174
|
}
|
|
@@ -1427,7 +1427,7 @@ class ne {
|
|
|
1427
1427
|
V(this, "_uiStateCache");
|
|
1428
1428
|
// lazy rendering because this feature is rarely used
|
|
1429
1429
|
V(this, "_activeArgsCache");
|
|
1430
|
-
V(this, "resultPool", new
|
|
1430
|
+
V(this, "resultPool", new $t());
|
|
1431
1431
|
this.ctx = b();
|
|
1432
1432
|
}
|
|
1433
1433
|
get args() {
|
|
@@ -1535,15 +1535,15 @@ class ne {
|
|
|
1535
1535
|
this.ctx.logError(e);
|
|
1536
1536
|
}
|
|
1537
1537
|
}
|
|
1538
|
-
const
|
|
1539
|
-
function
|
|
1538
|
+
const Wt = "1.42.4", X = Wt;
|
|
1539
|
+
function Gt(t) {
|
|
1540
1540
|
return t.__renderLambda === !0;
|
|
1541
1541
|
}
|
|
1542
1542
|
function me(t) {
|
|
1543
1543
|
if (t !== void 0)
|
|
1544
|
-
return
|
|
1544
|
+
return Gt(t) ? t.handle : t;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function $n(t) {
|
|
1547
1547
|
return yt(t);
|
|
1548
1548
|
}
|
|
1549
1549
|
const w = class w {
|
|
@@ -1778,7 +1778,7 @@ const w = class w {
|
|
|
1778
1778
|
Object.entries(this._outputs).map(([r, i]) => [r, me(i)])
|
|
1779
1779
|
)
|
|
1780
1780
|
};
|
|
1781
|
-
return globalThis.platformaApiVersion = e,
|
|
1781
|
+
return globalThis.platformaApiVersion = e, Pt() ? $e({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n };
|
|
1782
1782
|
}
|
|
1783
1783
|
};
|
|
1784
1784
|
V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
@@ -1803,7 +1803,7 @@ function De() {
|
|
|
1803
1803
|
pTableParams: Qe()
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function Ht(t) {
|
|
1807
1807
|
return "version" in t || (t = De()), t.version === 2 && (t = {
|
|
1808
1808
|
version: 3,
|
|
1809
1809
|
stateCache: t.stateCache.map((e) => ({
|
|
@@ -1816,7 +1816,7 @@ function zt(t) {
|
|
|
1816
1816
|
function Se(t) {
|
|
1817
1817
|
return t.axesSpec.length === 1 && t.name === "pl7.app/label";
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function zt(t) {
|
|
1820
1820
|
return new Q().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
1821
1821
|
name: "pl7.app/label",
|
|
1822
1822
|
axes: [{}]
|
|
@@ -1860,7 +1860,7 @@ function Re(t, e) {
|
|
|
1860
1860
|
}
|
|
1861
1861
|
return s;
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function Xt(t) {
|
|
1864
1864
|
const e = (i) => Array.isArray(i), n = (i) => i instanceof O, r = (i) => typeof i == "object" && "type" in i;
|
|
1865
1865
|
return t.map((i) => i.data).every((i) => {
|
|
1866
1866
|
if (e(i))
|
|
@@ -1902,20 +1902,20 @@ function Ne(t) {
|
|
|
1902
1902
|
sorting: t.sorting
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function Yt(t) {
|
|
1906
1906
|
var e;
|
|
1907
1907
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function Qt(t) {
|
|
1910
1910
|
var e;
|
|
1911
1911
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
1912
1912
|
}
|
|
1913
1913
|
function ge(t, e) {
|
|
1914
1914
|
return [...new Map(t.map((n) => [e(n), n])).values()];
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function Wn(t, e, n, r) {
|
|
1917
1917
|
if (e.length === 0) return;
|
|
1918
|
-
const i = e.filter((c) => Pe(c.spec) || !
|
|
1918
|
+
const i = e.filter((c) => Pe(c.spec) || !Yt(c.spec)), o = Ht(n), s = zt(t.resultPool);
|
|
1919
1919
|
if (!s) return;
|
|
1920
1920
|
const a = Re(i.map(_e), s), l = [...i, ...a], h = [
|
|
1921
1921
|
...ge(
|
|
@@ -1946,17 +1946,17 @@ function Gn(t, e, n, r) {
|
|
|
1946
1946
|
filters: p,
|
|
1947
1947
|
sorting: g,
|
|
1948
1948
|
coreColumnPredicate: r == null ? void 0 : r.coreColumnPredicate
|
|
1949
|
-
}), E = t.createPTable(C),
|
|
1949
|
+
}), E = t.createPTable(C), F = new Set((() => {
|
|
1950
1950
|
if (d === "inner") return [];
|
|
1951
1951
|
const c = o.pTableParams.hiddenColIds;
|
|
1952
|
-
return c || i.filter((v) =>
|
|
1952
|
+
return c || i.filter((v) => Qt(v.spec)).map((v) => v.id);
|
|
1953
1953
|
})());
|
|
1954
|
-
i.filter((c) => Pe(c.spec)).forEach((c) =>
|
|
1954
|
+
i.filter((c) => Pe(c.spec)).forEach((c) => F.delete(c.id)), r != null && r.coreColumnPredicate && i.flatMap((v) => {
|
|
1955
1955
|
var I;
|
|
1956
1956
|
return (I = r == null ? void 0 : r.coreColumnPredicate) != null && I.call(r, v.spec) ? [v.id] : [];
|
|
1957
|
-
}).forEach((v) =>
|
|
1958
|
-
const S = i.filter((c) => !
|
|
1959
|
-
if (!
|
|
1957
|
+
}).forEach((v) => F.delete(v)), [...y.map((c) => c.column), ...p.map((c) => c.column), ...g.map((c) => c.column)].filter((c) => c.type === "column").forEach((c) => F.delete(c.id));
|
|
1958
|
+
const S = i.filter((c) => !F.has(c.id)), P = Re(S.map(_e), s);
|
|
1959
|
+
if (!Xt([...S, ...P])) return;
|
|
1960
1960
|
const T = Ne({
|
|
1961
1961
|
columns: S,
|
|
1962
1962
|
labelColumns: P,
|
|
@@ -1965,14 +1965,14 @@ function Gn(t, e, n, r) {
|
|
|
1965
1965
|
filters: p,
|
|
1966
1966
|
sorting: g,
|
|
1967
1967
|
coreColumnPredicate: r == null ? void 0 : r.coreColumnPredicate
|
|
1968
|
-
}),
|
|
1968
|
+
}), x = t.createPTable(T);
|
|
1969
1969
|
return {
|
|
1970
1970
|
sourceId: o.pTableParams.sourceId,
|
|
1971
1971
|
fullTableHandle: E,
|
|
1972
|
-
visibleTableHandle:
|
|
1972
|
+
visibleTableHandle: x
|
|
1973
1973
|
};
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function Gn(t, e, n) {
|
|
1976
1976
|
const r = t.resultPool.findLabels(e);
|
|
1977
1977
|
return {
|
|
1978
1978
|
axis: e,
|
|
@@ -1983,7 +1983,7 @@ function Hn(t, e, n) {
|
|
|
1983
1983
|
defaultValue: n[0]
|
|
1984
1984
|
};
|
|
1985
1985
|
}
|
|
1986
|
-
const
|
|
1986
|
+
const Zt = (t, e) => {
|
|
1987
1987
|
let n = t.toString();
|
|
1988
1988
|
return e == null || e.forEach((r) => {
|
|
1989
1989
|
if (r)
|
|
@@ -1991,7 +1991,7 @@ const en = (t, e) => {
|
|
|
1991
1991
|
n += i, n += o;
|
|
1992
1992
|
}), n;
|
|
1993
1993
|
};
|
|
1994
|
-
function
|
|
1994
|
+
function en(t) {
|
|
1995
1995
|
if (!t.length)
|
|
1996
1996
|
return [];
|
|
1997
1997
|
let e = [[]];
|
|
@@ -2004,10 +2004,10 @@ function tn(t) {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
function Pe(t) {
|
|
2006
2006
|
var e;
|
|
2007
|
-
return ((e = t.annotations) == null ? void 0 : e[
|
|
2007
|
+
return ((e = t.annotations) == null ? void 0 : e[nn]) === "true";
|
|
2008
2008
|
}
|
|
2009
|
-
const
|
|
2010
|
-
function
|
|
2009
|
+
const tn = "pl7.app/graph/isVirtual", Ue = "pl7.app/label", nn = "pl7.app/isLinkerColumn";
|
|
2010
|
+
function rn(t) {
|
|
2011
2011
|
var n, r;
|
|
2012
2012
|
const e = /* @__PURE__ */ new Map();
|
|
2013
2013
|
for (const { spec: i } of t) {
|
|
@@ -2023,8 +2023,8 @@ function on(t) {
|
|
|
2023
2023
|
}
|
|
2024
2024
|
return e;
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2027
|
-
const n =
|
|
2026
|
+
function on(t, e) {
|
|
2027
|
+
const n = rn(t), r = [...n.keys()].map(Le), i = [];
|
|
2028
2028
|
for (const l of e.values()) {
|
|
2029
2029
|
const u = r.find((h) => U(l, h));
|
|
2030
2030
|
u && i.push(D(u));
|
|
@@ -2043,10 +2043,10 @@ function sn(t, e) {
|
|
|
2043
2043
|
function Ke(t, e) {
|
|
2044
2044
|
const n = [];
|
|
2045
2045
|
return e.forEach((r) => {
|
|
2046
|
-
n.push(...
|
|
2046
|
+
n.push(...sn(t, r));
|
|
2047
2047
|
}), n;
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function sn(t, e) {
|
|
2050
2050
|
const n = e.spec.axesSpec.map(k);
|
|
2051
2051
|
if (n.every((u) => t.has(D(u))))
|
|
2052
2052
|
return [e];
|
|
@@ -2055,7 +2055,7 @@ function an(t, e) {
|
|
|
2055
2055
|
for (const [f, m] of t)
|
|
2056
2056
|
U(m, u) && !U(u, m) && h.push(m);
|
|
2057
2057
|
return h;
|
|
2058
|
-
}), i =
|
|
2058
|
+
}), i = en(r), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = i.map((u) => {
|
|
2059
2059
|
const h = /* @__PURE__ */ new Set();
|
|
2060
2060
|
return u.map((f, m) => {
|
|
2061
2061
|
const d = e.spec.axesSpec[m].domain, y = f.domain;
|
|
@@ -2075,12 +2075,12 @@ function an(t, e) {
|
|
|
2075
2075
|
});
|
|
2076
2076
|
const l = i.map((u, h) => {
|
|
2077
2077
|
var p;
|
|
2078
|
-
const f =
|
|
2078
|
+
const f = Zt(e.id, u.map((g) => g.domain)), m = ((p = e.spec.annotations) == null ? void 0 : p[Ue]) ?? "", d = [...a[h]].filter((g) => s.has(g)).sort().map((g) => {
|
|
2079
2079
|
var C;
|
|
2080
2080
|
return (C = JSON.parse(g)) == null ? void 0 : C[1];
|
|
2081
2081
|
}).join(" / "), y = {
|
|
2082
2082
|
...e.spec.annotations,
|
|
2083
|
-
[
|
|
2083
|
+
[tn]: "true"
|
|
2084
2084
|
};
|
|
2085
2085
|
return (m || d) && (y[Ue] = m && d ? m + " / " + d : m + d), {
|
|
2086
2086
|
id: f,
|
|
@@ -2097,16 +2097,16 @@ function an(t, e) {
|
|
|
2097
2097
|
});
|
|
2098
2098
|
return [e, ...l];
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function an(t) {
|
|
2101
2101
|
let e = !0;
|
|
2102
2102
|
return t.data instanceof O ? e = e && t.data.getIsReadyOrError() : pe(t.data) && bt(t.data, (n) => {
|
|
2103
2103
|
e = e && n.getIsReadyOrError();
|
|
2104
2104
|
}), e;
|
|
2105
2105
|
}
|
|
2106
2106
|
function re(t) {
|
|
2107
|
-
return t.every(
|
|
2107
|
+
return t.every(an);
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function Hn(t, e) {
|
|
2110
2110
|
if (!e) {
|
|
2111
2111
|
const f = new Q();
|
|
2112
2112
|
f.addColumnProvider(t.resultPool);
|
|
@@ -2129,7 +2129,7 @@ function zn(t, e) {
|
|
|
2129
2129
|
const d = k(m);
|
|
2130
2130
|
r.set(D(d), d), i.set(D(d), d);
|
|
2131
2131
|
}
|
|
2132
|
-
const o = n.getColumns((f) => Pe(f)) ?? [], s =
|
|
2132
|
+
const o = n.getColumns((f) => Pe(f)) ?? [], s = on(o, r);
|
|
2133
2133
|
for (const f of s)
|
|
2134
2134
|
r.set(...f), i.set(...f);
|
|
2135
2135
|
const a = (n.getColumns((f) => f.axesSpec.some((m) => {
|
|
@@ -2158,7 +2158,7 @@ function zn(t, e) {
|
|
|
2158
2158
|
const u = [...a, ...l], h = Ke(r, u);
|
|
2159
2159
|
return t.createPFrame(h);
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function zn({
|
|
2162
2162
|
selection: t,
|
|
2163
2163
|
columnId: e = Ct(),
|
|
2164
2164
|
label: n = "Selection marker",
|
|
@@ -2184,16 +2184,13 @@ function Xn({
|
|
|
2184
2184
|
data: i
|
|
2185
2185
|
};
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function Xn() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
axesSpec: [],
|
|
2190
2190
|
selectedKeys: []
|
|
2191
2191
|
};
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2194
|
-
return t === Tt ? (console.error("Axis value can never be N/A"), "") : t;
|
|
2195
|
-
}
|
|
2196
|
-
function un(t) {
|
|
2193
|
+
function ln(t) {
|
|
2197
2194
|
throw new Error("Unexpected object: " + t);
|
|
2198
2195
|
}
|
|
2199
2196
|
function R(t) {
|
|
@@ -2566,13 +2563,13 @@ const Ze = {
|
|
|
2566
2563
|
supportedFor: () => !1
|
|
2567
2564
|
}
|
|
2568
2565
|
};
|
|
2569
|
-
function
|
|
2566
|
+
function Yn(t) {
|
|
2570
2567
|
return t ? Object.entries(Ze).filter(([e, n]) => n.supportedFor(t)).map(([e, n]) => ({
|
|
2571
2568
|
label: n.label,
|
|
2572
2569
|
value: e
|
|
2573
2570
|
})) : [];
|
|
2574
2571
|
}
|
|
2575
|
-
function
|
|
2572
|
+
function Qn(t) {
|
|
2576
2573
|
return Ze[t];
|
|
2577
2574
|
}
|
|
2578
2575
|
function we(t) {
|
|
@@ -2693,12 +2690,12 @@ function we(t) {
|
|
|
2693
2690
|
};
|
|
2694
2691
|
if (t.type === void 0)
|
|
2695
2692
|
throw new Error("Filter type is undefined, this should not happen");
|
|
2696
|
-
|
|
2693
|
+
ln(t);
|
|
2697
2694
|
}
|
|
2698
2695
|
function Me(t) {
|
|
2699
2696
|
return t.filter((e) => e.type !== void 0).map(we);
|
|
2700
2697
|
}
|
|
2701
|
-
function
|
|
2698
|
+
function Zn(t) {
|
|
2702
2699
|
return {
|
|
2703
2700
|
title: t.title,
|
|
2704
2701
|
mode: t.mode,
|
|
@@ -2708,7 +2705,7 @@ function tr(t) {
|
|
|
2708
2705
|
}))
|
|
2709
2706
|
};
|
|
2710
2707
|
}
|
|
2711
|
-
class
|
|
2708
|
+
class er {
|
|
2712
2709
|
constructor(e) {
|
|
2713
2710
|
this.handle = e;
|
|
2714
2711
|
}
|
|
@@ -2732,48 +2729,48 @@ class nr {
|
|
|
2732
2729
|
return await platforma.pFrameDriver.getUniqueValues(this.handle, e);
|
|
2733
2730
|
}
|
|
2734
2731
|
}
|
|
2735
|
-
function
|
|
2732
|
+
function un(t) {
|
|
2736
2733
|
return Je({
|
|
2737
2734
|
__isRef: !0,
|
|
2738
2735
|
blockId: ae(t, "blockId"),
|
|
2739
2736
|
name: ae(t, "name")
|
|
2740
2737
|
});
|
|
2741
2738
|
}
|
|
2742
|
-
function
|
|
2739
|
+
function tr(t) {
|
|
2743
2740
|
return Je({
|
|
2744
|
-
ref:
|
|
2741
|
+
ref: un(ae(t, "ref")),
|
|
2745
2742
|
label: ae(t, "label")
|
|
2746
2743
|
});
|
|
2747
2744
|
}
|
|
2748
|
-
const
|
|
2745
|
+
const nr = {
|
|
2749
2746
|
sdkVersion: X
|
|
2750
2747
|
};
|
|
2751
|
-
function
|
|
2748
|
+
function rr() {
|
|
2752
2749
|
return platformaApiVersion ?? 1;
|
|
2753
2750
|
}
|
|
2754
|
-
function
|
|
2751
|
+
function ir() {
|
|
2755
2752
|
return $e({ sdkVersion: X, apiVersion: platformaApiVersion });
|
|
2756
2753
|
}
|
|
2757
|
-
function
|
|
2754
|
+
function or(t) {
|
|
2758
2755
|
if (typeof globalThis.getEnvironmentValue == "function")
|
|
2759
2756
|
return globalThis.getEnvironmentValue(t);
|
|
2760
2757
|
}
|
|
2761
2758
|
export {
|
|
2762
|
-
|
|
2759
|
+
gn as Args,
|
|
2763
2760
|
Oe as BlockModel,
|
|
2764
|
-
|
|
2761
|
+
nr as CurrentSdkInfo,
|
|
2765
2762
|
L as FutureRef,
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2763
|
+
tn as IS_VIRTUAL_COLUMN,
|
|
2764
|
+
yn as It,
|
|
2765
|
+
Bn as JsRenderInternal,
|
|
2769
2766
|
Ue as LABEL_ANNOTATION,
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2767
|
+
nn as LINKER_COLUMN_ANNOTATION,
|
|
2768
|
+
bn as MainOutputs,
|
|
2769
|
+
Tt as OutputError,
|
|
2770
|
+
It as PAnnotationLabel,
|
|
2771
|
+
_t as PAnnotationTrace,
|
|
2775
2772
|
Q as PColumnCollection,
|
|
2776
|
-
|
|
2773
|
+
er as PFrameImpl,
|
|
2777
2774
|
J as RT_BINARY_PARTITIONED,
|
|
2778
2775
|
z as RT_BINARY_SUPER_PARTITIONED,
|
|
2779
2776
|
H as RT_JSON_PARTITIONED,
|
|
@@ -2781,85 +2778,84 @@ export {
|
|
|
2781
2778
|
le as RT_RESOURCE_MAP,
|
|
2782
2779
|
ue as RT_RESOURCE_MAP_PARTITIONED,
|
|
2783
2780
|
ne as RenderCtx,
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2781
|
+
$t as ResultPool,
|
|
2782
|
+
vn as StagingOutputs,
|
|
2783
|
+
Et as Trace,
|
|
2784
|
+
Lt as TraceEntry,
|
|
2788
2785
|
O as TreeNodeAccessor,
|
|
2789
|
-
|
|
2790
|
-
|
|
2786
|
+
Cn as UiState,
|
|
2787
|
+
Xt as allColumnsComputed,
|
|
2791
2788
|
re as allColumnsReady,
|
|
2792
|
-
|
|
2793
|
-
|
|
2789
|
+
xn as and,
|
|
2790
|
+
Zn as compileAnnotationScript,
|
|
2794
2791
|
we as compileFilter,
|
|
2795
2792
|
Me as compileFilters,
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2793
|
+
Nt as convertOrParsePColumnData,
|
|
2794
|
+
Hn as createPFrameForGraphs,
|
|
2795
|
+
Gn as createPlDataTableSheet,
|
|
2799
2796
|
De as createPlDataTableStateV2,
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2797
|
+
Wn as createPlDataTableV2,
|
|
2798
|
+
Xn as createPlSelectionModel,
|
|
2799
|
+
zn as createRowSelectionColumn,
|
|
2803
2800
|
ze as deriveLabels,
|
|
2804
2801
|
me as downgradeCfgOrLambda,
|
|
2805
2802
|
Ke as enrichCompatible,
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2803
|
+
Nn as extractArchiveAndGetURL,
|
|
2804
|
+
$n as extractConfig,
|
|
2805
|
+
Ut as filterDataInfoEntries,
|
|
2809
2806
|
Ze as filterUiMetadata,
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2807
|
+
An as flatten,
|
|
2808
|
+
tr as fromPlOption,
|
|
2809
|
+
un as fromPlRef,
|
|
2810
|
+
zt as getAllLabelColumns,
|
|
2811
|
+
on as getAvailableWithLinkersAxes,
|
|
2812
|
+
Vn as getBlobContent,
|
|
2813
|
+
On as getBlobContentAsJson,
|
|
2814
|
+
kn as getBlobContentAsString,
|
|
2815
|
+
Dn as getDownloadedBlobContent,
|
|
2816
|
+
or as getEnvironmentValue,
|
|
2817
|
+
Qn as getFilterUiMetadata,
|
|
2818
|
+
Yn as getFilterUiTypeOptions,
|
|
2822
2819
|
Z as getFromCfg,
|
|
2823
2820
|
se as getImmediate,
|
|
2824
|
-
|
|
2821
|
+
Un as getImportProgress,
|
|
2825
2822
|
ae as getJsonField,
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2823
|
+
Kn as getLastLogs,
|
|
2824
|
+
rn as getLinkerColumnsMap,
|
|
2825
|
+
qn as getLogHandle,
|
|
2829
2826
|
Re as getMatchingLabelColumns,
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2827
|
+
Rn as getOnDemandBlobContent,
|
|
2828
|
+
Ot as getPartitionKeysList,
|
|
2829
|
+
rr as getPlatformaApiVersion,
|
|
2830
|
+
Mn as getProgressLog,
|
|
2831
|
+
jn as getProgressLogWithInfo,
|
|
2832
|
+
ir as getRawPlatformaInstance,
|
|
2833
|
+
_n as getResourceField,
|
|
2834
|
+
Ln as getResourceValueAsJson,
|
|
2835
|
+
Rt as getUniquePartitionKeys,
|
|
2839
2836
|
ye as ifDef,
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2837
|
+
Yt as isColumnHidden,
|
|
2838
|
+
Qt as isColumnOptional,
|
|
2839
|
+
an as isColumnReady,
|
|
2840
|
+
Gt as isConfigLambda,
|
|
2841
|
+
wn as isEmpty,
|
|
2845
2842
|
Se as isLabelColumn,
|
|
2846
2843
|
Pe as isLinkerColumn,
|
|
2847
|
-
|
|
2848
|
-
|
|
2844
|
+
mn as isolate,
|
|
2845
|
+
Tn as makeArray,
|
|
2849
2846
|
Qe as makeDefaultPTableParams,
|
|
2850
2847
|
Je as makeObject,
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
Vn as mapResourceFields,
|
|
2848
|
+
Pn as mapArrayValues,
|
|
2849
|
+
Sn as mapRecordValues,
|
|
2850
|
+
En as mapResourceFields,
|
|
2855
2851
|
Fn as not,
|
|
2856
|
-
|
|
2852
|
+
In as or,
|
|
2857
2853
|
Ce as parsePColumnData,
|
|
2858
|
-
|
|
2859
|
-
|
|
2854
|
+
Jn as parseResourceMap,
|
|
2855
|
+
St as readOutput,
|
|
2860
2856
|
ge as uniqueBy,
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2857
|
+
ln as unreachable,
|
|
2858
|
+
Ht as upgradePlDataTableStateV2,
|
|
2859
|
+
hn as wrapOutputs
|
|
2864
2860
|
};
|
|
2865
2861
|
//# sourceMappingURL=index.mjs.map
|